1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvconvert: enable work with partial LVs

Fix printed message and enable handling of missing PVs.
This commit is contained in:
Zdenek Kabelac 2016-07-19 17:11:57 +02:00
parent f8872578e9
commit 6dc4d03508
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.162 -
=================================
Enabled lvconvert --uncache to work with partial VG.
Version 2.02.161 - 15th July 2016
=================================

View File

@ -2122,15 +2122,17 @@ static int _lvconvert_uncache(struct cmd_context *cmd,
return 0;
}
log_warn("WARNING: Uncaching of partially missing writethrough cache volume %s might destroy your data.",
display_lvname(first_seg(seg->pool_lv)->metadata_lv));
display_lvname(lv));
}
if (!lp->yes &&
yes_no_prompt("Do you really want to uncache %s? with missing LVs [y/n]: ",
yes_no_prompt("Do you really want to uncache %s with missing LVs? [y/n]: ",
display_lvname(lv)) == 'n') {
log_error("Conversion aborted.");
return 0;
}
cmd->handles_missing_pvs = 1;
cmd->partial_activation = 1;
}
if (lvremove_single(cmd, remove_lv, NULL) != ECMD_PROCESSED)