mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
Fix exclusive lvmchange -aey to fail if volume is active on different node.
Activation on remote node should be tried only if it is masked by tags locally (like when hosttags enabled, IOW activate_lv_excl_local() doesn't return error.) Introduced change caused that lvchange -aey succeeded even if volume was activated exclusively remotely.
This commit is contained in:
parent
945058e844
commit
46e9aac160
@ -1,5 +1,6 @@
|
||||
Version 2.02.96 -
|
||||
================================
|
||||
Fix exclusive lvchange running from other node. (2.02.89)
|
||||
Add 'vgscan --cache' functionality for consistency with 'pvscan --cache'.
|
||||
Keep exclusive activation in pvmove if LV is already active.
|
||||
Disallow pvmove for exclusive LV if some affected LVs are not exclusively activated.
|
||||
|
@ -551,7 +551,7 @@ int activate_lv_excl(struct cmd_context *cmd, struct logical_volume *lv)
|
||||
if (!vg_is_clustered(lv->vg))
|
||||
return activate_lv_excl_local(cmd, lv);
|
||||
|
||||
if (lv_is_active_exclusive(lv))
|
||||
if (lv_is_active_exclusive_locally(lv))
|
||||
return 1;
|
||||
|
||||
if (!activate_lv_excl_local(cmd, lv))
|
||||
|
Loading…
x
Reference in New Issue
Block a user