From owner-freebsd-fs@freebsd.org Tue Jul 14 17:27:37 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C32899CA01 for ; Tue, 14 Jul 2015 17:27:37 +0000 (UTC) (envelope-from accounts-ag@netlabs.org) Received: from r2-d2.netlabs.org (r2-d2.netlabs.org [213.238.45.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D12961CFF for ; Tue, 14 Jul 2015 17:27:36 +0000 (UTC) (envelope-from accounts-ag@netlabs.org) Received: (qmail 74368 invoked by uid 89); 14 Jul 2015 17:27:33 -0000 Received: from unknown (HELO eternal-3.metropolis.netlabs.org) (accounts-ag@netlabs.org@213.144.156.18) by 0 with ESMTPA; 14 Jul 2015 17:27:33 -0000 Subject: Re: ZFS volume does not seem to free space for deleted files To: "Matthew D. Fuller" References: <55A4DB1D.7000404@netlabs.org> <20150714100023.GC96394@over-yonder.net> Cc: freebsd-fs@freebsd.org From: accounts-ag Message-ID: <55A54684.7060408@netlabs.org> Date: Tue, 14 Jul 2015 19:27:32 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <20150714100023.GC96394@over-yonder.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 17:27:37 -0000 On 14.07.15 12:00, Matthew D. Fuller wrote: > I'm pretty sure you can't just add up those USED's and get a number > suggesting how much space deleting them all will free up. AIUI, the > USED number for a snapshot means how much that one alone is using; > e.g., how much space would be freed by deleting just that one. So any > blocks referenced by 2 or more wouldn't show up in those numbers. A > bunch of files that have been sitting around a long time would be a > good candidate for existing in most (/all) of them, so you won't see > them in per-snapshot USED until you delete all but 1. looks right, I found this later: # zfs list -t all -r tank/jail/www NAME USED AVAIL REFER MOUNTPOINT [...] tank/jail/www@hourly-2015-07-13_04.04.00--2d 257M - 46.1G - tank/jail/www@hourly-2015-07-13_10.04.00--2d 260M - 46.5G - tank/jail/www@hourly-2015-07-13_16.04.00--2d 1.70G - 46.7G - tank/jail/www@hourly-2015-07-13_22.04.00--2d 48.4M - 22.3G - tank/jail/www@daily-2015-07-14_00.00.00--2w 32.4M - 4.61G - tank/jail/www@hourly-2015-07-14_04.04.00--2d 20.0M - 4.60G - tank/jail/www@hourly-2015-07-14_10.04.00--2d 20.4M - 4.61G - tank/jail/www@hourly-2015-07-14_16.04.00--2d 19.8M - 4.57G - so one can clearly see where I deleted the files. Will now delete the snapshots before that point and see if this solves it. regards Adrian