Blame SOURCES/lvm2-2_02_178-pvmove-better-check-for-exclusive-LV.patch

f0aa83
From d21e2b6005f656c1600bb49942f585d001e94839 Mon Sep 17 00:00:00 2001
f0aa83
From: Zdenek Kabelac <zkabelac@redhat.com>
f0aa83
Date: Fri, 12 Jan 2018 15:59:07 +0100
f0aa83
Subject: [PATCH 15/25] pvmove: better check for exclusive LV
f0aa83
f0aa83
(cherry picked from commit 5a961d3411c8c11312d2998378277efc8988fc7f)
f0aa83
---
f0aa83
 tools/pvmove.c | 4 +++-
f0aa83
 1 file changed, 3 insertions(+), 1 deletion(-)
f0aa83
f0aa83
diff --git a/tools/pvmove.c b/tools/pvmove.c
f0aa83
index 39cf25f..9bbe12b 100644
f0aa83
--- a/tools/pvmove.c
f0aa83
+++ b/tools/pvmove.c
f0aa83
@@ -451,7 +451,9 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
f0aa83
 		}
f0aa83
 
f0aa83
 		if (vg_is_clustered(vg) &&
f0aa83
-		    lv_is_active_exclusive_remotely(lv)) {
f0aa83
+		    lv_is_visible(lv) &&
f0aa83
+		    lv_is_active(lv) &&
f0aa83
+		    !lv_is_active_exclusive_locally(lv)) {
f0aa83
 			lv_skipped = 1;
f0aa83
 			log_print_unless_silent("Skipping LV %s which is activated "
f0aa83
 						"exclusively on remote node.", lv->name);
f0aa83
-- 
f0aa83
1.8.3.1
f0aa83