Date: Fri, 13 Aug 2010 08:23:00 -0700 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: Andreas Mayer <andimayer82@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: zfs destroy snapshot doesn't free space Message-ID: <20100813152300.GA43660@icarus.home.lan> In-Reply-To: <AANLkTingjsiAu%2Br49Jj9kztjkajTP_D8ki05Uwq1L%2BUz@mail.gmail.com> References: <AANLkTingjsiAu%2Br49Jj9kztjkajTP_D8ki05Uwq1L%2BUz@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100813152300.GA43660>