Skip to content

Instantly share code, notes, and snippets.

@smurugap
Last active January 25, 2020 01:09
Show Gist options
  • Save smurugap/4b69f9441ae487fc27ce05bd2fd05784 to your computer and use it in GitHub Desktop.
Save smurugap/4b69f9441ae487fc27ce05bd2fd05784 to your computer and use it in GitHub Desktop.
Increase disk size of host
Add a new physical disk to existing lvpartition:
104 vgdisplay
105 pvdisplay
106 vgextend a2s39-vg00 /dev/sdb1
107 df -h
108 lvextend /dev/a2s39-vg00/lv_var /dev/sdb1
109 resize2fs /dev/a2s39-vg00/lv_var
Remove a lvpartition and extend the other lvpartition:
umount /home
lvremove /dev/centos/home
lvextend /dev/centos/root /dev/sda2
xfs_growfs /dev/mapper/centos-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment