mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvremove: detect cluster wide active state
If the LV is active remotely do not skip question for deactivation.
This commit is contained in:
parent
b37203c819
commit
189d0f8e1d
@ -1,5 +1,6 @@
|
||||
Version 2.02.112 -
|
||||
=====================================
|
||||
Check cluster-wide (not local) active status before removing LV.
|
||||
Properly check if activation of removed cached LV really activated.
|
||||
Lvremoving cached LV removes cachepool (keep with lvconvert --splitcache).
|
||||
Always remove spare LV with last removed pool volume.
|
||||
|
@ -5429,7 +5429,8 @@ int lv_remove_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
/* FIXME Ensure not referred to by another existing LVs */
|
||||
ask_discard = find_config_tree_bool(cmd, devices_issue_discards_CFG, NULL);
|
||||
|
||||
if (!lv_is_cache_pool(lv) && lv_is_active_locally(lv)) {
|
||||
if (!lv_is_cache_pool(lv) && /* cache pool cannot be active */
|
||||
lv_is_active(lv)) {
|
||||
if (!lv_check_not_in_use(lv))
|
||||
return_0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user