From owner-freebsd-stable@FreeBSD.ORG Fri Aug 13 15:23:02 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F1D810656A7 for ; Fri, 13 Aug 2010 15:23:02 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id E73178FC12 for ; Fri, 13 Aug 2010 15:23:01 +0000 (UTC) Received: from omta15.emeryville.ca.mail.comcast.net ([76.96.30.71]) by qmta05.emeryville.ca.mail.comcast.net with comcast id tnzh1e0031Y3wxoA5rP108; Fri, 13 Aug 2010 15:23:01 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta15.emeryville.ca.mail.comcast.net with comcast id trP01e0083LrwQ28brP0SZ; Fri, 13 Aug 2010 15:23:01 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 50B699B425; Fri, 13 Aug 2010 08:23:00 -0700 (PDT) Date: Fri, 13 Aug 2010 08:23:00 -0700 From: Jeremy Chadwick To: Andreas Mayer Message-ID: <20100813152300.GA43660@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: zfs destroy snapshot doesn't free space X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 15:23:02 -0000 On Fri, Aug 13, 2010 at 04:51:24PM +0200, Andreas Mayer wrote: > I have a problem with my ZFS storage: some application filled a > certain directory in /var completely up with data and the server runs > a script which takes a snapshot every night. So, ~650 GB of the > available 700 GB were filled up. > > Then I destroyed the last two snapshots (each referencing about 300 > GB) and the files on the live system so that now there are no > snapshots for > /var and "du -hs /var" reports a size of 2 GB. > > However, zfs still reports that 623G are referenced: > > # zfs list rpool/var > NAME USED AVAIL REFER MOUNTPOINT > rpool/var 623G 48.4G 623G /var > > # zfs get all rpool/var > ... > rpool/var usedbysnapshots 0 - > rpool/var usedbydataset 623G - > rpool/var usedbychildren 0 - > rpool/var usedbyrefreservation 0 - > ... > > If I take a snapshot again, this snapshot also references 623G. > > What can I do to reclaim this space? I have to do this before I can > set a quota (I have set quotas for all other file systems now :) ). Can you provide uname -a output please? Thanks. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |