1
0
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:
Alasdair Kergon 2007-01-09 23:14:35 +00:00
parent 7cb5941799
commit 7c0cd2730c
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}