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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!