Expand XFS LVM filesystem

December 30, 2009 – 10:02 am by Hannes Van de Vel

Expand XFS LVM logical volume with 500GB, assuming you have enough free unassigned space on physical partitions.

lvextend -L+500GB /dev/vg1/v2
xfs_growfs /dev/vg1/v2
Bookmark and Share

Expand LVM guest filesystem VMware

December 30, 2009 – 12:07 am by Hannes Van de Vel

First, increase the size of the virtual disk (VMDK) by 10GB for example

vmware-vdiskmanager -x 10GB /path/machineName.vmdk

(vCenter users can increase disk sizes easier via the Settings dialog of the VM)

# fdisk /dev/sda 
 n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition nr
3

Take defaults as from here

First cylinder (1045-2610, default 1045):
Using default value 1045
Last cylinder or +size or +sizeM or +sizeK (1045-2610, default 2610):
Using default value 2610

Change a partition’s system id

t
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)
w
The partition table has been altered!
 
Calling ioctl() to re-read partition table.
 
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.

Reload

# partprobe -s
/dev/sda: msdos partitions 1 2 3

Create PV

# pvcreate /dev/sda3
  Physical volume "/dev/sda3" successfully created

Extend VG with new partition

# vgextend VolGroup00 /dev/sda3
  Volume group "VolGroup00" successfully extended

Extend LV to maximum available

# lvextend -l +100%FREE /dev/VolGroup00/LogVol00
  Extending logical volume LogVol00 to 17.88 GB
  Logical volume LogVol00 successfully resized
# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 4685824 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 4685824 blocks long.

Check the result

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       18G  1.3G   16G   8% /
/dev/sda1              99M   14M   81M  14% /boot
tmpfs                 502M     0  502M   0% /dev/shm
Bookmark and Share

cu – Call up another system

December 29, 2009 – 5:14 pm by Tom Van den Berg

The cu command is used to call up another system and act as a dial in terminal. It can also do simple file transfers with no error checking.

The cu command can be installed by installing the uucp package.

 yum install uucp

Connect using the cu-command

cu -l /dev/ttyS0  -s 9600

More information can be found in the man pages.

man cu
Bookmark and Share

Reset APC PDU password

December 11, 2009 – 10:40 pm by Tom Van den Berg

Method 1:
Serial console, reset, login as apc/apc within 30 secs

Method 2:
press the reset button in for like 10 seconds then release it then imediately press it in again for literally 1 seccond
one of the lights will go orange
give it a min and then apc/apc will work for the first login only

Hint: Use a paperclip to press the reset button ;-)

Bookmark and Share

Pre-registreer uw .eu IDN naam

December 3, 2009 – 3:30 pm by Tom Van den Berg

Café.eu, couturière.eu, leçons.eu en à-volonté.eu, dit zijn maar enkele voorbeelden van de namen die binnenkort geregistreerd kunnen worden. Op 10 december start Eurid (.eu registry) met de registratie van .eu IDN namen (Internationalised Domain Names). Deze IDN namen zorgen ervoor dat domeinnamen die niet-Latijnse tekens bevatten ook geregistreerd kunnen worden. Enkele voorbeelden van deze tekens zijn: é, è, î, ü, ç.

Opgelet: Er komt geen sunrise periode voor het registreren van .eu IDN namen. Vanaf 10 december start de landrush en kan iedereen die dit wenst, met een adres binnen de Europese Unie, een .eu IDN naam registreren. Maak daarom alvast uw keuze uit de vele nieuwe mogelijke .eu combinaties en pre-registreer uw .eu IDN naam.

Let wel: een pre-registratie is geen garantie op succes.

Contacteer sales@connexeon.com voor meer informatie.

Bookmark and Share

PFDAVadmin on Exchange 2007: Could not expand…

November 18, 2009 – 9:28 pm by Hannes Van de Vel

You might want to use PFDAVAdmin on Exchange 2007 (to set public folder user rights for example) and run into this error;

Could not expand https://yourexchange.yourdomain.local/ExAdmin/Admin/….
Name cannot begin with the ‘0′ character, hexadecimal value 0×30. Line 1, position 399.

You should either install .NET Framework 1.1 or run the tool from a server or workstation with .NET Framework 1.1 installed.

When installing the 1.1 framework on Windows 2003 64 bit, run the following post install to fix IIS problems (OWA does not work until you run this);

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe –i

(source: http://support.microsoft.com/kb/894435)

Bookmark and Share

10 Nov 2009 – EDPnet failure

November 10, 2009 – 10:02 am by Hannes Van de Vel

Nederlandse versie

Door een storing bij EDPnet was connectiviteit vanuit bepaalde delen van het internet sinds 10/11, 7:45 naar onze POP in LCL Diegem niet mogelijk. In afwachting van een definitieve oplossing werd alle verkeer geherrouteerd via een andere connectiviteitsprovider.

Update

Het probleem werd verholpen om 10:15.

English version

Due to an EDPnet outage there was no connectivity since 10/11, 7h45 to our POP in LCL Diegem from some parts of the internet. We temporary rerouted traffic through another connectivityprovider until the problem gets resolved.

Update

The problem has been resolved since 10:15.

Bookmark and Share

21 Oct 2009 – Outage LCL Antwerpen

October 21, 2009 – 8:00 pm by Hannes Van de Vel

Nederlandse versie

Door een korte stroomstoring in LCL Antwerpen waren er algemene problemen vanaf 17h05. Omstreeks 17h40 waren de meeste problemen verholpen. Een kleine groep klanten was langer getroffen door een probleem met een deel van de shared firewalls. De laatste problemen waren omstreeks 18h30 verholpen.

De oorzaak van het probleem bevindt zich bij 1 van de 3 UPS-en, waar een probleem werd vastgesteld. De UPS die het probleem veroorzaakte werd buiten dienst genomen. Hoe 1 falende UPS impact kon hebben op de gehele stroomtoevoer wordt de komende dagen verder onderzocht. Zodra er meer nieuws over de oorzaak is, wordt deze post geüpdatet.

Update

LCL plant een onderhoud op donderdag 5 november 2009 tussen 23h en 4h. Het onderhoud heeft te maken met het incident van 21 oktober waarbij een UPS faalde en deze buiten dienst genomen werd. Men zal nu de UPS opnieuw aansluiten. Hoewel alle mogelijk maatregelen genomen zijn om een nieuwe storing te voorkomen, bestaat er een kleine kans dat dit onderhoud opnieuw een onderbreking tot gevolg heeft.

Update

De heringebruikname van de UPS werd succesvol afgerond.

English version

 A short power cut in LCL Antwerp caused general problems starting at 17h05. Around 17h40, most problems were solved. A small group of customers was affected longer because of a problem with some shared firewalls. The latter problems were solved around 18h30.

The power cut was caused by 1 of the 3 UPSes that failed briefly. The UPS that caused the problem was taken out of service. How a single UPS failure could impact on the entire power supply will be further examined in the next coming days. We will update this post when we get more information.

Update

LCL planned a maintenance on Thursday November 5th between 23h and 4h. The maintenance is related to the incident on October 21st; a failing UPS was taken out of service. This UPS will be put back into service during this maintenance. Although all possible precautions will be taken, there is a small possibility that this action might cause a new interruption.

Update

The reinstatement of the UPS has been successfully completed.

Bookmark and Share

Exchange Server 2007: Renewing the self-signed certificate

September 24, 2009 – 11:56 am by Tom Van den Berg

Exchange Server 2007 issues itself a self-signed certificate for use with services like SMTP, IMAP, POP, IIS and UM. The certificate is issued for a period of one year.

The self-signed certificate meets an important need – securing communication for Exchange services by default. Nevertheless, one should treat these self-signed certificates as temporary. It’s not recommended to use these for any client communication on an ongoing basis. For most deployments, you will end up procuring a certificate from a trusted 3rd-party CA (or perhaps an internal CA in organizations with PKI deployed).

However, should you decide to leave the self-signed certificate(s) on some servers and continue to use them, these need to be renewed – just as you would renew certificates from 3rd-party or in-house CAs.

Step 1:
To renew the certificate for server myserver.connexeon.com, a server with CAS and HT roles installed:

Get-ExchangeCertificate -domain "myserver.connexeon.com" | fl

Note the services the certificate is enabled for (by default: POP, IMAP, IIS, SMTP on CAS + HT servers).
Copy the thumbprint of the certificate.

Get-ExchangeCertificate -thumbprint "0B188A07E3ED59FE402C88ABAE462C663E00A1B9" | New-ExchangeCertificate

If the existing certificate is being used for SMTP, you will get the following prompt:

Overwrite Default SMTP Certificate Exchange 2007

Type y to continue. A new certificate is generated.

New Certificate Exchange 2007 generated

The new certificate is generated and enabled. Examine the new certificate:

Get-ExchangeCertificate -thumbprint "0B188A07E3ED59FE402C88ABAE462C663E22A1D8" | New-ExchangeCertificate

Step 2:
The old certificate is enabled for IIS, POP, IMAP and SMTP. The new certificate generated using the above command is enabled only for POP, IMAP and SMTP – IIS is missing.

To enable the certificate for IIS:

Enable-ExchangeCertificate -thumbprint "0B188A07E3ED59FE402C88ABAE462C663E22A1D8" -services IIS

This enables the certificate for IIS (in addition to any other services it may already be enabled for – it adds to existing values of the services property).

Step 3:
Test services are working with the new certificate. If it works as expected,
the old certificate can be removed:

Remove-ExchangeCertificate -thumbprint "0B188A07E3ED59FE402C88ABAE462C663E00A1B9"

Reference: Exchangepedia

Bookmark and Share

SSL Certificate from IIS to use in FileZilla FTP Server

August 14, 2009 – 1:26 pm by Tom Van den Berg

If you want to install a certificate to in Filezilla you can create a self-signed certificate.
If you want to create a certificate via a trusted Certificate Authority (CA) or use an existing certificate you need to export and import it to the correct type (for filezilla this is PEM).

More information about this you can find on following blog and here xca.

Bookmark and Share