mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-26 14:04:15 +03:00
Don't remove mirror LV until after other LVs reloaded.
This commit is contained in:
parent
859fe69083
commit
03b75a2d27
@ -445,14 +445,15 @@ static int _finish_pvmove(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unlock_lvs(cmd, lvs_changed);
|
||||||
|
|
||||||
if (!lock_vol(cmd, lv_mirr->lvid.s, LCK_LV_DEACTIVATE)) {
|
if (!lock_vol(cmd, lv_mirr->lvid.s, LCK_LV_DEACTIVATE)) {
|
||||||
log_error("ABORTING: Unable to deactivate temporary logical "
|
log_error("ABORTING: Unable to deactivate temporary logical "
|
||||||
"volume \"%s\"", lv_mirr->name);
|
"volume \"%s\"", lv_mirr->name);
|
||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unlock_lvs(cmd, lvs_changed);
|
log_verbose("Removing temporary pvmove LV");
|
||||||
|
|
||||||
if (!lv_remove(vg, lv_mirr)) {
|
if (!lv_remove(vg, lv_mirr)) {
|
||||||
log_error("ABORTING: Removal of temporary pvmove LV failed");
|
log_error("ABORTING: Removal of temporary pvmove LV failed");
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user