1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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 - Version 2.02.18 -
==================================== ====================================
Avoid vgreduce error when mirror code removes the log LV.
Remove 3 redundant AC_MSG_RESULTs from configure.in. Remove 3 redundant AC_MSG_RESULTs from configure.in.
Free memory in _raw_read_mda_header() error paths. Free memory in _raw_read_mda_header() error paths.
Fix ambiguous vgsplit error message for split LV. 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) { list_iterate_items(lvl, &lvs_changed) {
log_verbose("Removing LV %s from VG %s", lvl->lv->name, log_verbose("Removing LV %s from VG %s", lvl->lv->name,
lvl->lv->vg->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; stack;
return 0; return 0;
} }