mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
lvmlockd: enable vdo conversion
As we turn 'already' active/locked LV into a data LV of vdopool, we just keep active lock for such volume (uuid is preserved).
This commit is contained in:
parent
75b28ab49d
commit
8cbba1d164
@ -5499,18 +5499,16 @@ static int _lvconvert_to_vdopool_single(struct cmd_context *cmd,
|
||||
}
|
||||
}
|
||||
|
||||
if (vg_is_shared(vg)) {
|
||||
/* FIXME: need to swap locks betwen LVs? */
|
||||
log_error("Unable to convert VDO pool in VG with lock_type %s", vg->lock_type);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!fill_vdo_target_params(cmd, &vdo_params, &vdo_pool_header_size, vg->profile))
|
||||
goto_out;
|
||||
|
||||
if (!get_vdo_settings(cmd, &vdo_params, NULL))
|
||||
goto_out;
|
||||
|
||||
/* If LV is inactive here, ensure it's not active elsewhere. */
|
||||
if (!lockd_lv(cmd, lv, "ex", 0))
|
||||
goto_out;
|
||||
|
||||
if (!activate_lv(cmd, lv)) {
|
||||
log_error("Cannot activate %s.", display_lvname(lv));
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user