mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Avoid vgreduce error when mirror code removes the log LV.
This commit is contained in:
parent
7cb5941799
commit
7c0cd2730c
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user