This is more of Resize LVM
I have tested this on CentOS 5.5. Since this is root partition modification, I’ll recommend to keep config backup before proceeding.
create new partition (partition id should be 8e Linux LVM)
ADD PHYSICAL VOLUME
Verify new physical volume
Extend existing VOLUME GROUP
vgextend VolGroup00 /dev/xvda3
make sure vg free size is = new partition size using vgdisplay command
Extend existing LVM by adding new partition
lvextend /dev/VolGroup00/LogVol00 /dev/xvda3
make sure lv size is increased, use lvdisplay
RESIZE FILE SYSTEM
Reboot Linux to init1
fsck -f /dev/VolGroup00/LogVol00
Mount / partition or reboot to init1 for following command to run.
Now you may reboot & check / partition size.if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.