summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-01-12 15:59:07 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2018-01-17 14:44:33 +0100
commit5a961d3411c8c11312d2998378277efc8988fc7f (patch)
treef73353a0c4143ef57a0b63d9167952d6a8ebd571
parent7c6fb63041cd5c1fb899cc468d0a5cf23a01abbe (diff)
downloadlvm2-5a961d3411c8c11312d2998378277efc8988fc7f.tar.gz
pvmove: better check for exclusive LV
-rw-r--r--tools/pvmove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c
index 39cf25f2d..9bbe12be4 100644
--- a/tools/pvmove.c
+++ b/tools/pvmove.c
@@ -451,7 +451,9 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
}
if (vg_is_clustered(vg) &&
- lv_is_active_exclusive_remotely(lv)) {
+ lv_is_visible(lv) &&
+ lv_is_active(lv) &&
+ !lv_is_active_exclusive_locally(lv)) {
lv_skipped = 1;
log_print_unless_silent("Skipping LV %s which is activated "
"exclusively on remote node.", lv->name);