]> sourceware.org Git - lvm2.git/commit - lib/activate/activate.c
Fix issue preventing cluster mirror creation.
authorJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 22 Jun 2011 21:31:21 +0000 (21:31 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Wed, 22 Jun 2011 21:31:21 +0000 (21:31 +0000)
commit9e277b9e2ccc40ec645bfdafaf26891bf6c59ce7
tree88a8289ba9602649c90584bfd0ee50d6a2d419cf
parent901e7257d11471573301112c85c3a4d013b61f84
Fix issue preventing cluster mirror creation.

Mirrors used to be created by first creating a linear device and then adding
the other images plus the log.  Now mirrors are created by creating all the
images in one go and then adding the log separately.  The new way ran into
the condition that cluster mirrors cannot change the log type (in the case
of creation, from core -> disk) while the mirror is not active.  (It isn't
active because it is in the process of being created.)  The reason this
condition is in place is because a remote node may have the mirror active, and
we don't want to alter the log underneath it.

What we really needed was a way of checking if the mirror was active remotely
but not locally, and in that case do not allow a change of the log.  I've added
this check, and cluster mirrors can now be created again.
WHATS_NEW
lib/activate/activate.c
lib/activate/activate.h
lib/metadata/mirror.c
This page took 0.029228 seconds and 5 git commands to generate.