mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: deactivate subvolumes
Do not leave active thin data and metadata volumes if activation of thin pool fails.
This commit is contained in:
parent
dde5a6c52b
commit
ade2f47829
@ -1960,6 +1960,11 @@ static int _lvconvert_thinpool(struct cmd_context *cmd,
|
||||
if (!activate_lv_excl(cmd, pool_lv)) {
|
||||
log_error("Failed to activate pool logical volume %s/%s.",
|
||||
pool_lv->vg->name, pool_lv->name);
|
||||
/* Deactivate subvolumes */
|
||||
if (!deactivate_lv(cmd, seg_lv(seg, 0)))
|
||||
log_error("Failed to deactivate pool data logical volume.");
|
||||
if (!deactivate_lv(cmd, seg->metadata_lv))
|
||||
log_error("Failed to deactivate pool metadata logical volume.");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user