Last active
December 23, 2015 20:29
-
-
Save dobriak/6689701 to your computer and use it in GitHub Desktop.
Extending root LV ext4 partition
This file contains 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
FREEDISK=/dev/vdb | |
VGROOT=VolGroup | |
LVROOT=lv_root | |
mkfs.ext4 ${FREEDISK} | |
pvcreate ${FREEDISK} | |
vgextend /dev/${VGROOT} ${FREEDISK} | |
lvextend -l +100%FREE /dev/${VGROOT}/${LVROOT} | |
resize2fs /dev/${VGROOT}/${LVROOT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment