master - activation: if LV inactive and non-clustered, do not issue "Cannot deactivate" on -aln
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c52c9a1e316b6a92a2475dfe3ad2aac92edc80c0 Commit: c52c9a1e316b6a92a2475dfe3ad2aac92edc80c0 Parent: ea662ca06065d1e3d44814b54cf8501c9bb9594f Author: Peter Rajnoha <[email protected]> AuthorDate: Thu Aug 7 16:44:09 2014 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Thu Aug 7 16:44:09 2014 +0200
activation: if LV inactive and non-clustered, do not issue "Cannot deactivate" on -aln
The message "Cannot deactivate remotely exclusive device locally." makes sense only for clustered LV. If the LV is non-clustered, then it's always exclusive by definition and if it's already deactivated, this message pops up inappropriately as those two conditions are met.
So issue the message only if the conditions are met AND we have clustered VG.
--- WHATS_NEW | 1 + lib/metadata/lv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.110 - ================================== + If LV inactive and non-clustered, do not issue "Cannot deactivate" on -aln. Remove spurious "Skipping mirror LV" message on pvmove of clustered mirror. Version 2.02.109 - 5th August 2014
lib/metadata/lv.c +1 -1
@@ -859,7 +859,7 @@ deactivate: return_0;break ;case CHANGE_ALN : -if (_lv_is_exclusive (lv)) { +if (vg_is_clustered (lv->vg) &&_lv_is_exclusive (lv)) {if (!lv_is_active_locally (lv)) {log_error ("Cannot deactivate remotely exclusive device locally." );return 0 ;