[linux-lvm] Shared access to LVM2 metadata

Mark Round mark.round at ahc.uk.com
Wed Sep 16 16:05:04 UTC 2009


Hi all,

Quick question - is this page :
http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html only applicable to
LVM1, and not LVM2 ? I suspect that it is, based on the URL and my own
experiments but would like to be certain.

The reason I ask is that I have a number of hosts on a SAN (Xen Dom0
systems), which utilise a shared block device. I want to create a volume
group on this block device, and split this up into LVMs for each virtual
machine. The Dom0 systems would then see all volumes, although each
volume would only be active and mounted on one host at a time. 

I have run my own tests, and I can see that if I create, modify or
delete logical volumes within a shared volume group on one host, the
changes are immediately reflected on another (e.g. "lvcreate" on one
host shows the volume immediately on the other host with "lvs"). 

I have tried creating, resizing, delete, and performing various
file-system related activity on this shared volume group, and I haven't
run into any kind of LVM metadata or filesystem corruption, and was
happy to put this into production. But the stark warnings in that
document made me wary - am I missing something ? Am I risking some form
of latent LVM2 metadata corruption ?

Googling around didn't produce a definitive answer, so I apologise if
this has already been asked before.

Many thanks,

-Mark




More information about the linux-lvm mailing list