From owner-freebsd-questions@FreeBSD.ORG Wed Mar 11 19:23:51 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 EA6411065672 for ; Wed, 11 Mar 2009 19:23:51 +0000 (UTC) (envelope-from jamgill@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id A49738FC08 for ; Wed, 11 Mar 2009 19:23:51 +0000 (UTC) (envelope-from jamgill@gmail.com) Received: by an-out-0708.google.com with SMTP id b38so104747ana.13 for ; Wed, 11 Mar 2009 12:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=sSGG8++uwRF+qwrmctZvh6dnM6IEaVbKJ8KoU7DYuVU=; b=v6HmkONx1wCCtk6SOb4J3Oqex56ARRdKK740IBL4dqIL8HyaQDgPodB1Y1Q6JKso4v RCvaXfrxUDtrKSKD18NXGJZbuVQNEtTWyK0+NfHmVu5ENW3lMyG/tiIbEg0ngBiiXtuS bp0wsg81bCnowUKQrtQFR6ZLyYVtlT+KC9ONo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=BVxytqqYfqNYQVLe9ky3Hzb3K7U248li19o9adrRlcLn+/wQdXEDiPn5gojbk+FPE+ PfCErVe6j31kLDneadGrqw/2O4gn05C+2QGJ0+seMIZXGNZWWAj8TxDdqvcF6krTukLf JUT1NFuxK8Elu3LWDezW62IeK0mmP6kOeW+SQ= MIME-Version: 1.0 Received: by 10.142.154.9 with SMTP id b9mr3238909wfe.327.1236799430460; Wed, 11 Mar 2009 12:23:50 -0700 (PDT) In-Reply-To: <20090311190422.GA71253@darklight.homeunix.org> References: <9da4e0e90903111130o71de8b54xc417b51c1aaf31dd@mail.gmail.com> <20090311190422.GA71253@darklight.homeunix.org> Date: Wed, 11 Mar 2009 15:23:50 -0400 Message-ID: <9da4e0e90903111223j7549c28ak16c2d14739507992@mail.gmail.com> From: jamgill To: Yuri Pankov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:23:52 -0000 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 problem has been going on for some time now, so I have more than exceeded the recommendation to "wait up to 30 seconds". It does appear that softupdates are on, if that matters. deathray# dumpfs /var | grep -i soft flags soft-updates As the FAQ and Neal's response point out, this is where logs go, but I have cleaned out logs several times over the last few months, so that doesn't appear to be the problem: deathray# du -sh /var/log 1.5M /var/log I am also not sure what to make of the 5% inode usage on this volume: deathray# df -hi /var Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/da0d 248M 214M 15M 94% 1720 31302 5% /var --j.