All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Shared access to LVM2 metadata
@ 2009-09-16 16:05 Mark Round
  2009-09-17  8:52 ` Mark Round
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Round @ 2009-09-16 16:05 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [linux-lvm] Shared access to LVM2 metadata
  2009-09-16 16:05 [linux-lvm] Shared access to LVM2 metadata Mark Round
@ 2009-09-17  8:52 ` Mark Round
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Round @ 2009-09-17  8:52 UTC (permalink / raw)
  To: LVM general discussion and development

As a follow-up to my own question :

Some answers off-list seem to imply that it is not so much shared access
to the SAN-shared LVM2 volume group that is the issue, it is the worry
of two or more systems updating the LVM metadata at the same time.

I just want to clarify that assuming this can be mitigated by only ever
updating the metadata (creating,deleting,resizing volumes etc.) on one
server, is this safe ?

Thanks,

-Mark

-----Original Message-----
From: linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com]
On Behalf Of Mark Round
Sent: 16 September 2009 17:05
To: linux-lvm@redhat.com
Subject: [linux-lvm] Shared access to LVM2 metadata

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-17  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-16 16:05 [linux-lvm] Shared access to LVM2 metadata Mark Round
2009-09-17  8:52 ` Mark Round

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.