]> sourceware.org Git - lvm2.git/commitdiff
pvmove: better check for exclusive LV
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 12 Jan 2018 14:59:07 +0000 (15:59 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 17 Jan 2018 13:44:33 +0000 (14:44 +0100)
tools/pvmove.c

index 39cf25f2da043ea6e848db356482c65258d19c8a..9bbe12be42290cd70cfd7ae54d06cdf2709c84be 100644 (file)
@@ -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);
This page took 0.038426 seconds and 5 git commands to generate.