Friday, January 31, 2014

Online expanding of a VMWare linux server LVM Volume

Add the hard drive to the running VM.

dmesg (figure out what the device name is for the new device like /dev/sdf)
parted /dev/sdf

mklabel msdos (inside parted)
quit (inside parted)

pvcreate /dev/sdf
vgextend VolGroup00 /dev/sdf
lvextend /dev/mapper/VolGroup00-LogVol00 /dev/sdf
resize2fs /dev/mapper/VolGroup00-LogVol00 

No comments: