Intel Modular Server and expanding size of LVM parition

mjoconr

Renowned Member
Dec 5, 2009
88
1
73
Hi Guys

I've realized I did not allocate enough space to my LVM partition for KVM hosts.

I'm running the system on an Intel Modular Server and the storage controller allows me to increase the size of a 'virtual drive'.

I've never tried to increase the size of an LVM partition let along tried on proxmox.

So could those in the know comment on the above issue.

Also how does one copy a KVM host to a different LVM partition ?

Thanks
Mike
 
I think the following should work:

- power off the blade running Proxmox
- increase the size of the virtual drive using the web GUI of the modular server
- power on the blade
- use fdisk to create a new partition in the virtual drive (in the free space you have just created) of type LVM
- reboot the blade so Proxmox can actually use the newly created partition (kernel needs to re-read the partition table)
- turn the new partition into a PV (physical volume) for LVM using pvcreate
- and finally, use vgextend to add this PV to the LVM VG (volume group)

Hope this helps!