From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 19:57:43 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390151065674 for ; Wed, 11 Mar 2009 19:57:43 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id D4AB78FC14 for ; Wed, 11 Mar 2009 19:57:42 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id BC23828412; Thu, 12 Mar 2009 08:57:40 +1300 (NZDT) Date: Thu, 12 Mar 2009 08:57:40 +1300 From: Jonathan Chen To: jamgill Message-ID: <20090311195740.GA70853@osiris.chen.org.nz> References: <9da4e0e90903111130o71de8b54xc417b51c1aaf31dd@mail.gmail.com> <20090311190422.GA71253@darklight.homeunix.org> <9da4e0e90903111223j7549c28ak16c2d14739507992@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9da4e0e90903111223j7549c28ak16c2d14739507992@mail.gmail.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: reclaiming /var capacity? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2009 19:57:43 -0000 On Wed, Mar 11, 2009 at 03:23:50PM -0400, jamgill wrote: > On Wed, Mar 11, 2009 at 3:04 PM, Yuri Pankov wrote: > > > On Wed, Mar 11, 2009 at 02:30:08PM -0400, j. wrote: > > > Where did my capacity go and how can I get it back? > > > > > > deathray# du -sh /var > > > 70M /var > > > > > > > > > deathray# df -h /var > > > Filesystem Size Used Avail Capacity Mounted on > > > /dev/da0d 248M 214M 15M 94% /var > > > > > > > > > Thanks, > > > > > > --j. > > > > http://www.freebsd.org/doc/en/books/faq/disks.html#DU-VS-DF > > > > > > Thanks, Yuri. According to the FAQ you linked, wouldn't a good smattering > of "sync ; sync ; sync ; sync ; sync" cause the the two to reflect the sizes > accurately? This will do nothing if a process has an open file descriptor on a deleted file. Use fstat(1) or lsof to help hunt down the offending process. -- Jonathan Chen ---------------------------------------------------------------------- When all else fails, RTFM