diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-23 21:49:50 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-26 00:29:44 +0200 |
commit | cd39b67b7e91c06937d422b1f230b3b3f6e5a1ca (patch) | |
tree | 0a9190709f2b0ab178378c4eed606f7816bbf1eb | |
parent | 96fd312e85ce38a8fc8cb80f106f3fdc49c31a97 (diff) | |
download | lvm2-cd39b67b7e91c06937d422b1f230b3b3f6e5a1ca.tar.gz |
pvmove: detect exclusively active LVs
Before pvmove start, it need to decide if exlusive mode of pvmove
must be used - this mode needs to be used if some move LV is
already exclusively activated.
-rw-r--r-- | tools/pvmove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvmove.c b/tools/pvmove.c index 3a447c4e5..cecff00e8 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -397,7 +397,8 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd, /* Presence of exclusive LV decides whether pvmove must be also exclusive */ if (!seg_only_exclusive(seg)) { holder = lv_lock_holder(lv); - if (seg_only_exclusive(first_seg(holder)) || lv_is_origin(holder) || lv_is_cow(holder)) + if (seg_only_exclusive(first_seg(holder)) || lv_is_origin(holder) || + lv_is_cow(holder) || lv_is_active_exclusive(holder)) needs_exclusive = 1; } else needs_exclusive = 1; |