diff --git a/WHATS_NEW b/WHATS_NEW index c7e257bc0..45e01fba8 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.116 - ==================================== + Check lock holding LV when lvconverting stacked raid LV in cluster. Support "udev" ext. dev. info for filters: PV min size, mpath, md, partition. Add fw_raid_component_detection lvm.conf option to enable FW raid detection. Add devices/external_device_info_source lvm.conf option ("none" by default). diff --git a/lib/metadata/raid_manip.c b/lib/metadata/raid_manip.c index 4ce84a0fd..c786e8992 100644 --- a/lib/metadata/raid_manip.c +++ b/lib/metadata/raid_manip.c @@ -1040,8 +1040,8 @@ int lv_raid_change_image_count(struct logical_volume *lv, /* * LV must be either in-active or exclusively active */ - if (lv_is_active(lv) && vg_is_clustered(lv->vg) && - !lv_is_active_exclusive_locally(lv)) { + if (lv_is_active(lv_lock_holder(lv)) && vg_is_clustered(lv->vg) && + !lv_is_active_exclusive_locally(lv_lock_holder(lv))) { log_error("%s/%s must be active exclusive locally to" " perform this operation.", lv->vg->name, lv->name); return 0;