Often when you have a Linux up and running you run out of space. I use VMware Fusion on my Macbook Pro 13 inch to do a lot of testing. To increase the diskspace you can follow the below simple steps
- Shutdown the VM and Increase the Diskspace
- Go to Disk Utility and the device /dev/sda will show the additional space as empty
- Right click and say create partition, once partition created it will have a device name eg: /dev/sda3
- $ vgdisplay
- $ lvdisplay
- $ lvextend /dev/VolGroup/lv_root /dev/sda3
- The logical volume is extended now resize the filesystem to reflect the new change
- $ resize2fs /dev/VolGroup/lv_root
- $ df -h
There is thus a new partition /dev/sda3 created and the logical volume is extended to include this partition. And finally the filesystem has been resized to reflect the disk size