[lvm-devel] [PATCHv3 2 of 2]LVM: allow exclusive snapshots in cluster
Alasdair G Kergon
agk at redhat.com
Wed Feb 2 19:50:48 UTC 2011
On Wed, Feb 02, 2011 at 12:07:46PM -0600, Jon Brassow wrote:
> A) the exclusive flag on an LV is lost after the following operations:
> 1) lvchange -aey vg/lv
> 2) lvcreate -s -n snap vg/lv
> 3) lvremove vg/snap
> 4) lvcreate -s -n snap vg/lv - fails because lv is !EX
> I don't think this is a result of the changes I've made, but an oddity
> that has not been discovered yet.
Bug. Check from the logs at what point the exclusive lock is dropped.
(We fixed bug similar to this before.)
> B) 'vgchange -ay' returns success on only one node (as mbroz
> highlighted) when there are snapshots in a cluster because only one node
> can activate all the LVs. The other LVs on the remaining nodes still
> activate properly.
Bug.
You may have to query the status afterwards to work out the
right return code to use or combine the responses from all the nodes
intelligently to see that exactly one has it active.
(The node running the command doesn't know what activation filters
might be set on other nodes, so must send the command to every node
but expect exactly one to end up with it active.)
Alasdair
More information about the lvm-devel
mailing list