Skip to content

Instantly share code, notes, and snippets.

@rshsmi
Last active June 13, 2016 16:10
Show Gist options
  • Save rshsmi/2b6c5470feb7a9639c694418a4023197 to your computer and use it in GitHub Desktop.
Save rshsmi/2b6c5470feb7a9639c694418a4023197 to your computer and use it in GitHub Desktop.
Increasing the size of logical volume
fdisk -l
fdisk /dev/sdb
n
p
enter default
enter deafult
enter default
t
8e
w
fdisk -l
pvcreate /dev/sdb1
vgdisplay
vgextend centos /dev/sdb1
pvscan
lvdisplay
lvextend /dev/centos/root /dev/sdb1
resize2fs /dev/VolGroup00/root
"OR"
xfs_growfs /dev/centos/root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment