mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
raid: drop invalid modication of active parameter
lv_active_change will enforce proper activation. Modification of activation was wrong and lead to misuse of autoactivation. Fix allows to use proper local exclusive activation, while the removed code turned this into just exclusive activation (losing required local property).
This commit is contained in:
parent
8a21dcebac
commit
38e457c478
@ -1,5 +1,6 @@
|
||||
Version 2.02.106 -
|
||||
====================================
|
||||
Use local exclusive activation for creation of raid in cluster.
|
||||
Use correctly signed 64b constant when selecting raid volumes.
|
||||
Add systemd native service for clvmd, cmirrord and clustered LV activation.
|
||||
Remove ExecReload from lvmetad systemd unit: lvmetad -R undefined. (2.02.98)
|
||||
|
@ -6153,14 +6153,6 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg,
|
||||
} else if (seg_is_raid(lp)) {
|
||||
first_seg(lv)->min_recovery_rate = lp->min_recovery_rate;
|
||||
first_seg(lv)->max_recovery_rate = lp->max_recovery_rate;
|
||||
if (vg_is_clustered(lv->vg) &&
|
||||
is_change_activating(lp->activate) &&
|
||||
(lp->activate != CHANGE_AE)) {
|
||||
log_debug_activation("Creating RAID logical volume in a"
|
||||
" cluster: setting activation"
|
||||
" mode to EX");
|
||||
lp->activate = CHANGE_AE;
|
||||
}
|
||||
}
|
||||
|
||||
if (lp->cache) {
|
||||
|
Loading…
Reference in New Issue
Block a user