[linux-lvm] Limitation: Snapshots does not work in cluster enviroment ?

Alasdair G Kergon agk at redhat.com
Sat Apr 14 15:24:07 UTC 2007

On Sat, Apr 14, 2007 at 04:37:51PM +0200, Daniel Schwager wrote:
> So, i want to use snapshot1 on server1, snapshot2 on server2. The 
> original LV
> (where the snapshot is created from) is not in use (not mounted on any 
> server).
> Is this possible ?

Well the reason you can't use snapshots in a cluster is because writes
cannot be handled correctly when there's more than one machine involved.
If all your writes are local with no impact on LVs in use on other
machines then the current kernel implementation ought to work.
I think the userspace LVM code could be tweaked to support this
configuration.  Until then, you'll need to activate the snapshots
manually using dmsetup directly.

Userspace changes we'd need for the tools to support this:
  Permit a snapshot to be activated without its corresponding origin.
  - requires a snapshot exclusive lock (already supported)
  - requires an origin lock that prevents any node having origin active
(implementation needs more thought but it should be possible)

agk at redhat.com

More information about the linux-lvm mailing list