From: Milan Broz Date: Tue, 27 Mar 2012 11:43:32 +0000 (+0000) Subject: Also skip pvmove for remotely active LVs. X-Git-Tag: v2_02_96~96 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=3d5d5196d063b3cc9eba5962f6a5dc74e784bd01;p=lvm2.git Also skip pvmove for remotely active LVs. --- diff --git a/tools/pvmove.c b/tools/pvmove.c index 2d0e2d687..a81bce304 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -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++;