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.84/tools/lvresize.c =================================================================== --- LVM2.2.02.84.orig/tools/lvresize.c 2011-05-05 02:11:22.000000000 +0200 +++ LVM2.2.02.84/tools/lvresize.c 2011-05-05 02:12:10.000000000 +0200 @@ -626,6 +626,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");