Possible to extend a partition allocated to a PV/VG/LV with LVM ?

Associate
Joined
10 Nov 2004
Posts
2,237
Location
Expat in Singapore
Hi,

I have a CentOS virtual machine that was built with a 8GB root partition (LVM LV).

I have more space available on the SSD the VM files reside on and would like to extend the root partition.

I know I can create another virtual disk, assign it, partition it, create a PV, assign to a GV and resize a LV with it to allocate the extra space but rather than have two virtual drives pooled via single VG I would rather extend the first drives available space in ESXi. Can I extend the partition etc if it is allocated to a PV without loosing the data and if so is there any special tricks / issues that would help / I need to be aware of ?.

Thanks
RB
 
I have already and so added a second virtual disk, added it to the VG and extended the LV.

The problem is that I would like to move the VM to a new disk and I can use most of the disk for a PV rather than multiple chunks of the disk, just to tidy it up really. It is not really a requirement but just housekeeping.

Maybe I will stick with that then.

Thanks
RB
 
Back
Top Bottom