diff --git a/WHATS_NEW b/WHATS_NEW index 3a45f532a..b67dad9d7 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.18 - ==================================== + Avoid vgreduce error when mirror code removes the log LV. Remove 3 redundant AC_MSG_RESULTs from configure.in. Free memory in _raw_read_mda_header() error paths. Fix ambiguous vgsplit error message for split LV. diff --git a/tools/vgreduce.c b/tools/vgreduce.c index 3ad5f7b6d..1d3b977d3 100644 --- a/tools/vgreduce.c +++ b/tools/vgreduce.c @@ -347,7 +347,9 @@ static int _make_vg_consistent(struct cmd_context *cmd, struct volume_group *vg) list_iterate_items(lvl, &lvs_changed) { log_verbose("Removing LV %s from VG %s", lvl->lv->name, lvl->lv->vg->name); - if (!lv_remove(lvl->lv)) { + /* Skip LVs already removed by mirror code */ + if (find_lv_in_vg(vg, lvl->lv->name) && + !lv_remove(lvl->lv)) { stack; return 0; }