[linux-lvm] cluster questions

Patrick Caulfield pcaulfie at redhat.com
Mon Jun 14 12:49:30 UTC 2004

On Fri, Jun 11, 2004 at 12:35:43PM -0700, Sebastien Boving wrote:
> I know LVM does not support clusters.  The HOWTO makes a good job in
> explaining how it is not, and how you could use it at your own risk, at:
> http://tldp.org/HOWTO/LVM-HOWTO/sharinglvm1.html
> I realize nothing protects an in-use LV to be mounted by another host,
> which can severely corrupt non-clustered filesystems.
> i still have a few questions in this regard though:
> 1) What are my advantages of running LVM2 instead of LVM?
> LVM does all i need, i think, part from being cluster-enabled.  LVM2 is
> also not clustered enabled, though it is the basis of CLVM (which is on
> its way?).  Any advantages in this regard to already go to LVM2 now, even
> if only cause the upgrade to CLVM will go smoother?  The only reason i
> wouldn't go to LVM2 is cause my RHES3.0 supports LVM out of the box, not
> LVM2, and i rather stick to included software / kernel modules / ...
> unless i have a valid reason not to.

When clustered LVM does become available you will need LVM2. 
Even if you don't use that, lvm2 offers better metadata integrity features than
LVM1 which might make it easier to recover if you do make a mistake in your
"manual" clustering! Plus all the other normal benefits of LVM2...
> 2) Can snapshots safely be used by other nodes on the cluster?
> Say a 'master node' owns the LVM config of a particular node.  It mounts
> all (non-snapshot) LV's in there.  Can i have it create a snapshot on one
> of its LV's, mount this on another node to perform a backup (sparing the
> first node's cpu and network resources), then delete the snapshot on the
> master mode, all this while observing the 'Other Nodes' procedure on the
> above mentionned FAQ page?  Is this a 100% safe & supported way of doing
> things?

No. the current snapshot implementation behviour is single-node only. If you try
to back up a snapshot on another node you won't get a valid backup because the
snapshot exceptions are written on the node that has the original LV mounted. 



More information about the linux-lvm mailing list