Skip to content

Instantly share code, notes, and snippets.

@rehrumesh
Created June 24, 2017 07:55
Show Gist options
  • Select an option

  • Save rehrumesh/950bbf23de3b54597f9a0c24ea6d6e05 to your computer and use it in GitHub Desktop.

Select an option

Save rehrumesh/950bbf23de3b54597f9a0c24ea6d6e05 to your computer and use it in GitHub Desktop.
Extend CentOs LVM Partition
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