25 December, 2009

Howto: Enlarge disk in CentOS under VMWare

According to this post: http://smartiecomputers.com/blog/?p=117
1. Power off the VM
2. Remove all snapshots
3. Expand the disk
4. Power on VM
5. Create new LVM partition using fdisk with type: 8e (Linux LVM)
6. Create physical volume: pvcreate /dev/sda3
7. Extend VolGroup: vgextend VolGroup00 /dev/sda3
8. Show the free space we got: vgdisplay
9. Grow the VolGroup: lvextend -L+nG /dev/VolGroup00/LogVol00
10. Resize the file system online: resize2fs /dev/VolGroup00/LogVol00

Done!

No comments: