Extend LVM

I followed this wiki:
http://pve.proxmox.com/wiki/Intel_Modular_Server
Now I added 2 more disks to store vms.
Physically the disks are added to the Raid.

How can I extend the volume 'vmdisks'?
Hi,
create an partition on the new disks - type 8e (e.g. sdd1 + sde1)
"pvcreate /dev/sdd1" and sde1 (ok, vgextend do also this job for you).
"vgextend vmdisks /dev/sdd1" and sde1

That's all. Look before and after with
vgdisplay (lvdisplay,pvdisplay)

"man lvm" is also not to bad ;-)

Udo

PS: use parted instead of fdisk if your disks exceeded 2TB for creation the partition
 
Last edited:
Hi.
I don't want to have another partion, so I have tried parted.
But Lenny's parted was not able to extend the partition with LVM on it.
So, I have to boot with PartedMagic I think.
Not so good.
 
Hi.
I don't want to have another partion, so I have tried parted.
But Lenny's parted was not able to extend the partition with LVM on it.
So, I have to boot with PartedMagic I think.
Not so good.
Hi,
PartedMagic has also no lvm-support. But you have luck - you don't need lvm-support from this tool. You only need a new partition to extend your VG.
I assume, that your host see the new disks? Create an partition on the disks (fdisk/parted) and extend your VG (pvcreate,vgextend) - thats all.
(You can also use the whole disk without partition, but a disk with an partition looks not so unused... only to avoid trouble later).

Udo