Skip to content

Instantly share code, notes, and snippets.

@rpfilomeno
Last active November 10, 2015 09:18
Show Gist options
  • Save rpfilomeno/81a3666e4b444dffcd65 to your computer and use it in GitHub Desktop.
Save rpfilomeno/81a3666e4b444dffcd65 to your computer and use it in GitHub Desktop.
Resize Centos LVM partion on VMWare guest
1. Add the Gparted CD ISO
2. Change VM Properties -> Options Tab -> Boot Options: Check Force BIOS Setup
3. Boot VM and edit BIOS boot order to CDROM First then Exit setup with Save to reboot
4. Allow VM to Boot GParted
5. ON Gparted, select LVM Partition with Lock Icon then select Partition menu -> Disable
6. Expand the said partition and Apply. Exit Gparted.
7. Run terminal on GParted
8. run "lvm lvdisplay" and take note of the /dev/ path of the partition needing expansion
9. run "lvextend –l +100%FREE /dev/[path]"
10. shutdown Gparted
11. Removed Gparted CD ISO then Boot the VM and login to Centos as root
12. run "df -h" and take note again of the /dev/ path of the partition needing expansion
13. run "resize2fs /dev/[path]"
14. run "df -h" again to confirm expansion is successful
Reference: https://easyitstuff.wordpress.com/2013/11/25/how-to-expand-and-resize-centos-logical-volume-on-virtual-machine/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment