diff --git a/WHATS_NEW b/WHATS_NEW index 972d87b5b..811716543 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Mirrored log is now fixed before its mirror when double-fault occurs. Add python-lvm unit test case Exit pvscan --cache immediately if cluster locking used or lvmetad not used. Don't use lvmetad in lvm2-monitor.service ExecStop to avoid a systemd issue. diff --git a/tools/lvconvert.c b/tools/lvconvert.c index f23fc4b27..27d818162 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -1341,10 +1341,6 @@ int mirror_remove_missing(struct cmd_context *cmd, if (!(failed_pvs = _failed_pv_list(lv->vg))) return_0; - /* No point in keeping a log if the result is not a mirror */ - if (_failed_mirrors_count(lv) + 1 >= lv_mirror_count(lv)) - log_count = 0; - if (force && _failed_mirrors_count(lv) == lv_mirror_count(lv)) { log_error("No usable images left in %s.", lv->name); return lv_remove_with_dependencies(cmd, lv, DONT_PROMPT, 0); @@ -1363,8 +1359,8 @@ int mirror_remove_missing(struct cmd_context *cmd, _is_partial_lv, NULL, 0)) return 0; - if (!_lv_update_log_type(cmd, NULL, lv, failed_pvs, - log_count)) + if (lv_is_mirrored(lv) && + !_lv_update_log_type(cmd, NULL, lv, failed_pvs, log_count)) return 0; if (!_reload_lv(cmd, lv->vg, lv))