]> sourceware.org Git - lvm2.git/commitdiff
Also skip pvmove for remotely active LVs.
authorMilan Broz <mbroz@redhat.com>
Tue, 27 Mar 2012 11:43:32 +0000 (11:43 +0000)
committerMilan Broz <mbroz@redhat.com>
Tue, 27 Mar 2012 11:43:32 +0000 (11:43 +0000)
tools/pvmove.c

index 2d0e2d687da97574f18bdb0862aff8fe9e3db0f2..a81bce3040b50651cc1d6dad573bb29d380c4dc1 100644 (file)
@@ -239,6 +239,14 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
                        continue;
                }
 
+               if (vg_is_clustered(vg) &&
+                   lv_is_active_exclusive_remotely(lv)) {
+                       lv_skipped = 1;
+                       log_print("Skipping LV %s which is activated "
+                                 "exclusively on remote node.", lv->name);
+                       continue;
+               }
+
                if (vg_is_clustered(vg)) {
                        if (lv_is_active_exclusive_locally(lv))
                                lv_exclusive_count++;
This page took 0.030034 seconds and 5 git commands to generate.