mrc0mmand / rpms / lvm2

Forked from rpms/lvm2 3 years ago
Clone

Blame SOURCES/lvm2-2_02_178-pvmove-drop-misleading-pvmove-restriction-for-cluste.patch

d6c8c5
From 00277d60e98409e493f6208f7f541f7b85ace91f Mon Sep 17 00:00:00 2001
d6c8c5
From: Zdenek Kabelac <zkabelac@redhat.com>
d6c8c5
Date: Thu, 11 Jan 2018 16:15:16 +0100
d6c8c5
Subject: [PATCH 16/25] pvmove: drop misleading pvmove restriction for cluster
d6c8c5
d6c8c5
pvmove handles properly locked LVs in cluster and this extra check
d6c8c5
actually cause misbehavior as some LVs were silently skipped from
d6c8c5
operation scope.
d6c8c5
d6c8c5
(cherry picked from commit 02621cffb0d5ff72adb8770e26c1b4adb95bd0d9)
d6c8c5
---
d6c8c5
 tools/pvmove.c | 10 ----------
d6c8c5
 1 file changed, 10 deletions(-)
d6c8c5
d6c8c5
diff --git a/tools/pvmove.c b/tools/pvmove.c
d6c8c5
index 9bbe12b..c5d7e52 100644
d6c8c5
--- a/tools/pvmove.c
d6c8c5
+++ b/tools/pvmove.c
d6c8c5
@@ -371,16 +371,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
d6c8c5
 		if (lv_name && strcmp(lv->name, top_level_lv_name(vg, lv_name)))
d6c8c5
 			continue;
d6c8c5
 
d6c8c5
-		/*
d6c8c5
-		 * RAID, thin and snapshot-related LVs are not
d6c8c5
-		 * processed in a cluster, so we don't have to
d6c8c5
-		 * worry about avoiding certain PVs in that context.
d6c8c5
-		 *
d6c8c5
-		 * Allow clustered mirror, but not raid mirror.
d6c8c5
-		 */
d6c8c5
-		if (vg_is_clustered(vg) && !lv_is_mirror_type(lv))
d6c8c5
-			continue;
d6c8c5
-
d6c8c5
 		if (!lv_is_on_pvs(lv, source_pvl))
d6c8c5
 			continue;
d6c8c5
 
d6c8c5
-- 
d6c8c5
1.8.3.1
d6c8c5