From owner-freebsd-questions@FreeBSD.ORG Thu Feb 5 13:48:02 2004 Return-Path: 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 1893B16A4CE for ; Thu, 5 Feb 2004 13:48:02 -0800 (PST) Received: from dm3cn8.bell.ca (dm3cn8.bell.ca [206.47.0.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F16C43D3F for ; Thu, 5 Feb 2004 13:48:00 -0800 (PST) (envelope-from christopher.hollow@cgi.com) Received: from 142.122.115.62dm3cn8.bell.ca with ESMTP (Tumbleweed MMS SMTP Relay (MMS v5.0)); Thu, 05 Feb 2004 16:46:29 -0500 X-Server-Uuid: D4A4E604-913A-4A1B-8C07-2866D92AD410 Received: from cgi.com ([142.122.30.40]) by bt5c69.on.bell.ca (Netscape Messaging Server 4.15 BESI_Messaging_7 Apr 29 2002 13:22:02) with ESMTP id HSMSHG00.IQ7; Thu, 5 Feb 2004 16:46:28 -0500 Message-ID: <4022B9B4.1050600@cgi.com> Date: Thu, 05 Feb 2004 16:46:28 -0500 From: "HOLLOW, CHRISTOPHER" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Herbert Wolverson" References: <20040205211207.GA25512@charizard.tsghelp.com> In-Reply-To: <20040205211207.GA25512@charizard.tsghelp.com> X-WSS-ID: 6C3C663F372571-01-01 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Free space wierdness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 21:48:02 -0000 UNIX file caching. The files were likely deleted but still open by some process and therefore still taking up space. The reboot killed the process, released the file and -viola- the free space was reported correctly. HTH, Christopher Hollow Herbert Wolverson wrote: >I have a system running FreeBSD 4.9-RELEASE. It primarily functions as a firewall and >router, and is generally pretty lightly loaded (load averages around 0.2). It >is a low end system (P200, 64mb RAM, 2 gig hard drive), and is generally >stable as a rock. > >The system has drives setup as follows: >/ 256M (UFS) >/usr 1.2gb (UFS+Softupdates) >(/var and /tmp are linked onto /usr/var and /usr/tmp respectively) > >This morning I noticed that the "/" partition was at 108% utilization, >and "df -h" looked like this (approximately): > >Filesystem Size Used Avail Capacity Mounted on >/dev/ad0s1a 252M 256M -8M 108% / > >Oddly, "du -h -d1 -x" showed only a total of 29Mb used on the partition! >The output looked like this: > >su-2.05b# du -h -d1 -x > 68K ./dev >2.0K ./usr >2.7M ./stand >1.3M ./etc >512B ./proc >4.0M ./bin >542K ./boot >2.0K ./mnt >6.4M ./modules > 30K ./root > 12M ./sbin >4.0K ./tmp >4.0K ./oldvar > 29M . > >When I rebooted the system (without deleting any files), "df -h" showed >the following: > >Filesystem Size Used Avail Capacity Mounted on >/dev/ad0s1a 252M 29M 203M 12% / > >This is good, since the correct amount of free space now shows, and the >server is back to running perfectly. Can anyone shed any light as to why >this discrepancy happened in the first place? I'd love to know what I can do to avoid ever having to worry >about this again! > >Thanks, >Herbert Wolverson, >The Turner Stephenson Group, Inc. >http://www.tsghelp.com/ >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > -- Christopher Hollow - Technical Consultant Infrastructure & Technology Support Toronto, ON