Out of disk space after only a week?
Posted: Mon Jan 25, 2010 12:41 pm
I figured the machine was 8GB because that was sufficient, but boy was I wrong.
***** Nagios XI Alert ***** Notification Type: PROBLEM Service: Root Partition Host: localhost Address: 127.0.0.1 State: WARNING Info: DISK WARNING - free space: / 1355 MB (20% inode=93%)
Since it's a VM on a vSphere cluster and since the XI appliance uses LVM, it shouldn't be too much trouble to extend it, or so I thought.
Here's the steps I went through, including where I think I went wrong:
1. Shut down the appliance
2. Edit the config in the vSphere Client. I expanded the disk from 8GB to 64GB
3. Boot up the appliance, partition the new free space at the end of the disk as a primary partition type Linux LVM (8e)
4. Expand VolGroup00 to fill the new partition (/dev/sda3 in my case)
5. Expand the logical volume VolGroup00-Logvol00 to fill the empty space in the volume group
6. Expand the ext3 partition to fill the new space in the logical volume** this is where I messed it up.
I issued the command "resize2fs /dev/mapper/VolGroup00-Logvol00", and this is the output I got:
It has been quite a while, which is why I'm worried that it has failed. Monitoring the CPU, Memory, and Disk Usage in vSphere I see that it did peak for a few minutes but it's basically flatlining now. There has been zero disk usage for the last 30 minutes. I did try searching the wiki for info on this topic before I proceeded but the wiki seems to be pretty much empty. I knew I should have just rolled my own Nagios box, but mgmt likes to see support contracts, "enterprise", ajaxy interfaces and pretty pictures, all of which seem to be covered by Nagios XI.
***** Nagios XI Alert ***** Notification Type: PROBLEM Service: Root Partition Host: localhost Address: 127.0.0.1 State: WARNING Info: DISK WARNING - free space: / 1355 MB (20% inode=93%)
Since it's a VM on a vSphere cluster and since the XI appliance uses LVM, it shouldn't be too much trouble to extend it, or so I thought.
Here's the steps I went through, including where I think I went wrong:
1. Shut down the appliance
2. Edit the config in the vSphere Client. I expanded the disk from 8GB to 64GB
3. Boot up the appliance, partition the new free space at the end of the disk as a primary partition type Linux LVM (8e)
4. Expand VolGroup00 to fill the new partition (/dev/sda3 in my case)
5. Expand the logical volume VolGroup00-Logvol00 to fill the empty space in the volume group
6. Expand the ext3 partition to fill the new space in the logical volume** this is where I messed it up.
I issued the command "resize2fs /dev/mapper/VolGroup00-Logvol00", and this is the output I got:
Code: Select all
[root@nagiosxi ~]# resize2fs /dev/mapper/VolGroup00-LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-LogVol00 to 16424960 (4k) blocks.