mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
activate_lvs: deactivate on uniterate
When activation of LVs fails prior pvmove start, try to deactivate already activated LVs. TODO: possibly remember which LVs where already activate and only those take down - devices which are already in-use will stay active.
This commit is contained in:
parent
eab9097b46
commit
c820b43fc0
@ -1,5 +1,6 @@
|
||||
Version 2.02.177 -
|
||||
====================================
|
||||
Deactivate activated LVs on error path when pvmove activation fails.
|
||||
Add "io" to log/debug_classes for logging low-level I/O.
|
||||
Eliminate redundant nested VG metadata in VG struct.
|
||||
Avoid importing persistent filter in vgscan/pvscan/vgrename.
|
||||
|
@ -475,7 +475,7 @@ int activate_lvs(struct cmd_context *cmd, struct dm_list *lvs, unsigned exclusiv
|
||||
log_error("Failed to activate %s", lvl->lv->name);
|
||||
dm_list_uniterate(lvh, lvs, &lvl->list) {
|
||||
lvl = dm_list_item(lvh, struct lv_list);
|
||||
if (!activate_lv(cmd, lvl->lv))
|
||||
if (!deactivate_lv(cmd, lvl->lv))
|
||||
stack;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user