mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
pvmove: drop misleading pvmove restriction for cluster
pvmove handles properly locked LVs in cluster and this extra check actually cause misbehavior as some LVs were silently skipped from operation scope.
This commit is contained in:
parent
5a961d3411
commit
02621cffb0
@ -371,16 +371,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
|
||||
if (lv_name && strcmp(lv->name, top_level_lv_name(vg, lv_name)))
|
||||
continue;
|
||||
|
||||
/*
|
||||
* RAID, thin and snapshot-related LVs are not
|
||||
* processed in a cluster, so we don't have to
|
||||
* worry about avoiding certain PVs in that context.
|
||||
*
|
||||
* Allow clustered mirror, but not raid mirror.
|
||||
*/
|
||||
if (vg_is_clustered(vg) && !lv_is_mirror_type(lv))
|
||||
continue;
|
||||
|
||||
if (!lv_is_on_pvs(lv, source_pvl))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user