diff --git a/WHATS_NEW b/WHATS_NEW index 987b020a3..62eace74b 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.40 - ================================ + Prevent resizing an LV while lvconvert is using it. Avoid repeatedly wiping cache while VG_GLOBAL is held in vgscan & pvscan. Fix pvresize to not allow resize if PV has two metadata areas. Fix setting of volume limit count if converting to lvm1 format. diff --git a/tools/lvresize.c b/tools/lvresize.c index 4911da956..0a8bf7daf 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -308,6 +308,11 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg, return ECMD_FAILED; } + if (lv->status & CONVERTING) { + log_error("Can't resize %s while lvconvert in progress", lv->name); + return ECMD_FAILED; + } + alloc = arg_uint_value(cmd, alloc_ARG, lv->alloc); if (lp->size) {