diff options
author | Milan Broz <mbroz@redhat.com> | 2012-03-27 11:43:32 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2012-03-27 11:43:32 +0000 |
commit | 3d5d5196d063b3cc9eba5962f6a5dc74e784bd01 (patch) | |
tree | 1f8b66cd22c16a8b5ede6b105227ca1e11d791eb /tools | |
parent | 3be9089cd3827637c0c18a4ea44a6d8858d971c6 (diff) | |
download | lvm2-3d5d5196d063b3cc9eba5962f6a5dc74e784bd01.tar.gz lvm2-3d5d5196d063b3cc9eba5962f6a5dc74e784bd01.tar.xz lvm2-3d5d5196d063b3cc9eba5962f6a5dc74e784bd01.zip |
Also skip pvmove for remotely active LVs.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pvmove.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c index 2d0e2d68..a81bce30 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++; |