***** 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.