Last active
January 25, 2020 01:09
-
-
Save smurugap/4b69f9441ae487fc27ce05bd2fd05784 to your computer and use it in GitHub Desktop.
Increase disk size of host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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