mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix vgreduce --removemissing failure exit code.
This commit is contained in:
parent
efa62ff443
commit
cd978f74da
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.46 -
|
Version 2.02.46 -
|
||||||
================================
|
================================
|
||||||
|
Fix vgreduce --removemissing failure exit code.
|
||||||
Fix remote metadata backup for clvmd.
|
Fix remote metadata backup for clvmd.
|
||||||
Alloc PV internal structure from VG mempool if possible.
|
Alloc PV internal structure from VG mempool if possible.
|
||||||
Fix metadata backup to run after vg_commit always.
|
Fix metadata backup to run after vg_commit always.
|
||||||
|
@ -6,7 +6,6 @@ lvcreate -m 1 -l 1 -n mirror $vg
|
|||||||
lvchange -a n $vg/mirror
|
lvchange -a n $vg/mirror
|
||||||
disable_dev $dev1
|
disable_dev $dev1
|
||||||
|
|
||||||
# FIXME should this return an error code due to that big fat WARNING?
|
not vgreduce --removemissing $vg
|
||||||
vgreduce --removemissing $vg
|
|
||||||
not lvchange -v -a y $vg/mirror
|
not lvchange -v -a y $vg/mirror
|
||||||
lvchange -v --partial -a y $vg/mirror
|
lvchange -v --partial -a y $vg/mirror
|
||||||
|
@ -556,11 +556,13 @@ int vgreduce(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
}
|
}
|
||||||
backup(vg);
|
backup(vg);
|
||||||
|
|
||||||
if (fixed)
|
if (fixed) {
|
||||||
log_print("Wrote out consistent volume group %s",
|
log_print("Wrote out consistent volume group %s",
|
||||||
vg_name);
|
vg_name);
|
||||||
|
ret = ECMD_PROCESSED;
|
||||||
|
} else
|
||||||
|
ret = ECMD_FAILED;
|
||||||
|
|
||||||
ret = ECMD_PROCESSED;
|
|
||||||
} else {
|
} else {
|
||||||
if (!vg_check_status(vg, EXPORTED_VG | LVM_WRITE | RESIZEABLE_VG))
|
if (!vg_check_status(vg, EXPORTED_VG | LVM_WRITE | RESIZEABLE_VG))
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user