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.60/tools/lvresize.c =================================================================== --- LVM2.2.02.60.orig/tools/lvresize.c 2010-01-05 22:07:31.000000000 +0100 +++ LVM2.2.02.60/tools/lvresize.c 2010-02-08 20:29:48.000000000 +0100 @@ -568,6 +568,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");