Don't allow shrinking the shared store. The kernel will never support it. Signed-off-by: Mikulas Patocka --- tools/lvresize.c | 5 +++++ 1 file changed, 5 insertions(+) Index: LVM2.2.02.53/tools/lvresize.c =================================================================== --- LVM2.2.02.53.orig/tools/lvresize.c 2009-10-12 10:46:21.000000000 +0200 +++ LVM2.2.02.53/tools/lvresize.c 2009-10-12 10:51:49.000000000 +0200 @@ -565,6 +565,11 @@ static int _lvresize(struct cmd_context return ECMD_FAILED; } } + if (lp->resize == LV_REDUCE && + lv_is_cow(lv) && lv->snapshot->status & SNAPSHOT_SHARED) { + log_error("Shared snapshot cannot be reduced."); + return ECMD_FAILED; + } if ((lp->resize == LV_REDUCE) && lp->argc) log_warn("Ignoring PVs on command line when reducing");