diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c index 305be8578..cb7f26069 100644 --- a/lib/metadata/lv_manip.c +++ b/lib/metadata/lv_manip.c @@ -5954,6 +5954,16 @@ static int _lv_resize_check_used(struct logical_volume *lv) return 0; } + if (lv_is_vdo(lv) && !lv_is_active(lv)) { + log_error("Cannot resize inactive VDO logical volume %s.", display_lvname(lv)); + return 0; + } + + if (lv_is_vdo_pool(lv) && !lv_is_active(lv_lock_holder(lv))) { + log_error("Cannot resize inactive VDO POOL volume %s.", display_lvname(lv)); + return 0; + } + if (lv_is_external_origin(lv)) { /* * Since external-origin can be activated read-only,