mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
lvchange: do not start dmevent for resyn
If monitoring is disabled in lvm.conf, avoid its starting and preserve DMEVENTD_MONITOR_IGNORE settings internally.
This commit is contained in:
parent
d414fe28fa
commit
cdb7502e54
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.98 -
|
Version 2.02.98 -
|
||||||
=================================
|
=================================
|
||||||
|
Do not start dmeventd for lvchange --resync when monitoring is off.
|
||||||
Remove ExecStartPost with pvscan --cache from lvm2-lvmetad.service.
|
Remove ExecStartPost with pvscan --cache from lvm2-lvmetad.service.
|
||||||
Report invalid percentage for property snap_percent of non-snaphot LVs.
|
Report invalid percentage for property snap_percent of non-snaphot LVs.
|
||||||
Disallow convertion of thins to mirrors.
|
Disallow convertion of thins to mirrors.
|
||||||
|
@ -370,6 +370,7 @@ static int lvchange_resync(struct cmd_context *cmd,
|
|||||||
|
|
||||||
/* Activate exclusively to ensure no nodes still have LV active */
|
/* Activate exclusively to ensure no nodes still have LV active */
|
||||||
monitored = dmeventd_monitor_mode();
|
monitored = dmeventd_monitor_mode();
|
||||||
|
if (monitored != DMEVENTD_MONITOR_IGNORE)
|
||||||
init_dmeventd_monitor(0);
|
init_dmeventd_monitor(0);
|
||||||
|
|
||||||
if (!deactivate_lv(cmd, lv)) {
|
if (!deactivate_lv(cmd, lv)) {
|
||||||
@ -383,6 +384,7 @@ static int lvchange_resync(struct cmd_context *cmd,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (monitored != DMEVENTD_MONITOR_IGNORE)
|
||||||
init_dmeventd_monitor(monitored);
|
init_dmeventd_monitor(monitored);
|
||||||
init_mirror_in_sync(0);
|
init_mirror_in_sync(0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user