Expand LVM shared storage online

galphanet

Renowned Member
Jun 18, 2009
33
1
73
Hello all,

I'm running proxmox on 8 nodes with a shared SAN on fiber channel exposing an LVM volume.

Today I need to expand the storage for the VM but I doesn't want to shutdown all the VM on the LVM volume.

I've read here: http://www.tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html and there: https://forum.proxmox.com/threads/drbd-on-lvm-resize-pv.20750/#post-105828 some suggestions about that but I want to be sure of what I'm doing.

Can I run pvextend/vgextend on one host and then run pvscan/vgscan on others hosts to see the increased space without shutting down the VM ?

Thanks for your help.
 
Can I run pvextend/vgextend on one host and then run pvscan/vgscan on others hosts to see the increased space without shutting down the VM ?

That's the main purpose for a technology like LVM.

Normally, we add another LUN (no resizing) and run pvcreate and vgextend on them. Afterwards you'll have your increased pool size.