[lvm-devel] [PATCH 10/13] Replicator: activate change for vgchange

Zdenek Kabelac zkabelac at redhat.com
Mon Oct 5 14:00:37 UTC 2009


Activate only replicator-dev segment. Activation of one segment will
activivate also all other related heads.

Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
 tools/vgchange.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/vgchange.c b/tools/vgchange.c
index 07d5262..78660be 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -69,6 +69,11 @@ static int _activate_lvs_in_vg(struct cmd_context *cmd,
 		if ((lv->status & MIRROR_IMAGE) || (lv->status & MIRROR_LOG))
 			continue;
 
+		/* Only request activation of replicator device LV */
+		if (lv_is_rlog(lv) || lv_is_slog(lv) || lv_is_rimage(lv) ||
+		    lv_is_replicator(lv))
+			continue;
+
 		/* Can't deactivate a pvmove LV */
 		/* FIXME There needs to be a controlled way of doing this */
 		if (((activate == CHANGE_AN) || (activate == CHANGE_ALN)) &&
-- 
1.6.5.rc2




More information about the lvm-devel mailing list