diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index a42a7f5f6..b5fc84ad4 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -6678,6 +6678,10 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, lp->extents = size; } } + + if (seg_is_cache(lp) && + !wipe_cache_pool(pool_lv)) + return_NULL; } /* Resolve origin volume */