-
-
Save rehrumesh/950bbf23de3b54597f9a0c24ea6d6e05 to your computer and use it in GitHub Desktop.
Extend CentOs LVM Partition
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
| fdisk -l | |
| df -h | |
| fdisk /dev/sda | |
| n | |
| p | |
| enter | |
| enter | |
| enter | |
| t | |
| 4 | |
| L | |
| 8e | |
| w | |
| reboot | |
| pvcreate /dev/sda4 | |
| vgdisplay note the vgname | |
| vgextend <vgname> /dev/sda4 | |
| vgdisplay | |
| lvdisplay note lvpath vgname | |
| pvscan | |
| lvextend -L+50G /dev/cl/root | |
| lvdisplau | |
| vgdisplay | |
| df -h | |
| resize2fs /dev/cl/root | |
| xfs_growfs /dev/cl/root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment