Extend lvm mount point in 3 minutes

Follow the steps:

add your new disk

echo “- – -” > /sys/class/scsi_host/host0/scan

fdisk /dev/sdb
n
p
default =1
default
t
8e
w
pvcreate /dev/sdb1
vgdisplay # show your volume groups, I need to add sdb1 to fbmsvn01
vgextend fbmsvn01 /dev/sdb1
lvdisplay # shows your logical volumes , I need to extend /dev/fbmsvn01/var
lvextend -L+5G /dev/fbmsvn01/var
resize2fs /dev/fbmsvn01/var # resize your partition, so it gets the new inodes. if it’s your root partition a backup may give you some peace.

done.

Documentació extra: http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html

You must be logged in to post a comment.