diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-01-12 15:59:07 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-01-17 14:44:33 +0100 |
commit | 5a961d3411c8c11312d2998378277efc8988fc7f (patch) | |
tree | f73353a0c4143ef57a0b63d9167952d6a8ebd571 | |
parent | 7c6fb63041cd5c1fb899cc468d0a5cf23a01abbe (diff) | |
download | lvm2-5a961d3411c8c11312d2998378277efc8988fc7f.tar.gz |
pvmove: better check for exclusive LV
-rw-r--r-- | tools/pvmove.c | 4 |
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); |