From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 10:45:28 2008 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 82B47106564A for ; Tue, 9 Dec 2008 10:45:28 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 149E18FC1D for ; Tue, 9 Dec 2008 10:45:28 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:49697 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1LA05n-0002V0-6T for freebsd-questions@freebsd.org; Tue, 09 Dec 2008 11:45:27 +0100 Received: (qmail 17420 invoked from network); 9 Dec 2008 11:45:25 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 9 Dec 2008 11:45:25 +0100 Received: (qmail 18300 invoked by uid 1001); 9 Dec 2008 11:45:24 +0100 Date: Tue, 9 Dec 2008 11:45:24 +0100 From: Erik Trulsson To: ???? Message-ID: <20081209104524.GA18183@owl.midgard.homeip.net> References: <242941228816278@webmail54.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <242941228816278@webmail54.yandex.ru> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1LA05n-0002V0-6T. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1LA05n-0002V0-6T bcf76f8ecb1ed925da944b69fc67b837 Cc: freebsd-questions@freebsd.org Subject: Re: Strange behaviour of the filesystem on FreeBSD-5.5 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: Tue, 09 Dec 2008 10:45:28 -0000 On Tue, Dec 09, 2008 at 12:51:18PM +0300, ???? wrote: > Hello. > -- > I have a trouble with /var filesystem on FreeBSD 5.5-RELEASE-p20 (upgraded from 5.2 to 5.3, and then to 5.5 some days ago): > 'df -h' shows: > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1d 248M 138M 90M 61% /var > 'du -s /var' shows: > 28M /var > I'm sure, that there can not be 62Mb of technical info on such small > partition. So, probably there is a bug in soft-updates, or some another > thing, that i can't understand. Free space on /var reduces with time, and > after three days there are no free inodes. But after i reboot my machine > (and background fsck makes it's job), things are good again, du and df are > in agreement about sizes of filesystems. > > Also i tried to verify, that there are no files, which are deleted, but > still occupy place in filesystem (i.e., when some process still use it's > filehandle). The output of 'lsof +D /var' shows *only* existent files on > /var filesystem. Are you sure that lsof can determine the correct directory for deleted files that still exist? They do not reside in any directory any longer after all. I strongly suspect that your problem is indeed files that have been deleted but are still in use by some process (all the symptoms fit), but that your method of finding such files is insufficient. Reading the lsof(8) manpage makes me think that 'lsof +aL1 /var' will list the deleted-but-still-existing files you are interested in. (Given as an example in the description of the +L option.) > Can anybody, please, give me some advice about how to fix this VERY > annoying problem, since this FreeBSD box is our enterprise's router, and i > sometimes must go to office and reboot it even on holidays. Maybe, > reinstalling everything from scratch would be the simplest thing to do, > but i still hope, that somebody can tell me how to fix everything 'in > place'. -- Erik Trulsson ertr1013@student.uu.se