From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 21:12:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A14C816A41C for ; Wed, 13 Jul 2005 21:12:03 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4688B43D4C for ; Wed, 13 Jul 2005 21:12:03 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j6DLC1g7033925; Wed, 13 Jul 2005 16:12:01 -0500 (CDT) (envelope-from dan) Date: Wed, 13 Jul 2005 16:12:01 -0500 From: Dan Nelson To: Hilco Wijbenga Message-ID: <20050713211201.GC75904@dan.emsphone.com> References: <1121288487.25124.83.camel@hwijbenga.mspace.merchantspace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1121288487.25124.83.camel@hwijbenga.mspace.merchantspace.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: freebsd-questions@freebsd.org Subject: Re: Soft-updates & du & df 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, 13 Jul 2005 21:12:03 -0000 In the last episode (Jul 13), Hilco Wijbenga said: > I've taken over the administration of a FreeBSD box and now I've run > into a problem that I could not solve by means of Google or the > FreeBSD mailinglist archives. I am quite familiar with (Gentoo) > GNU/Linux but a complete newbie when it comes to FreeBSD. > > While I was doing some work I got an error about a device being full. > As it turned out /var was completely full. Not a big problem because > there were a few very big log files that I could throw away. Problem > solved? Apparently not because > > root@svn[var]# df -h /var > Filesystem Size Used Avail Capacity Mounted on > /dev/ad2s1d 248M 246M -18M 108% /var > > even though > > root@svn[var]# du -hs /var > 43M /var > > Shouldn't du and df roughly agree on the amount that's used/available? You probably have some deleted logfiles that are still held open by processes. Run "lsof +L1 -a /var" to list the files and the processes (you may need to install lsof from ports). Kill and restart the offending processes and your freespace should go back to normal. -- Dan Nelson dnelson@allantgroup.com