Sunday, March 6, 2011

VMware: Increase disk space of Linux VM


  • Increase disk space to desired size using the VM Client.

  • Login to the VM and restart the machine (init 6)

  • After restart go to fdisk (fisk /dev/sda or /dev/hda etc.)

  • Create new partition using fdisk, save and exit.

  • If an LVM is used then the newly created partition will be needed to added the the LVM.


  • Follow instructions below. Assume new partition is /dev/sda3 (4GB), volume group is VolGroup-00 and Logical volume is LogVol-100

  • pvcreate /dev/sda3

  • vgextend VolGroup00 /dev/sda3

  • lvextend -L +4G /dev/mapper/VolGroup00-LogVol00

  • resize2fs /dev/mapper/VolGroup00-LogVol00



  •