From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 10:12:36 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 AE115106567C for ; Tue, 9 Dec 2008 10:12:36 +0000 (UTC) (envelope-from rhlebadm@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 67FB98FC29 for ; Tue, 9 Dec 2008 10:12:36 +0000 (UTC) (envelope-from rhlebadm@yandex.ru) Received: from webmail54.yandex.ru (webmail54.yandex.ru [77.88.32.228]) by forwards4.yandex.ru (Yandex) with ESMTP id 840AE193077 for ; Tue, 9 Dec 2008 12:51:23 +0300 (MSK) Received: from YAMAIL (webmail54) by mail.yandex.ru id S6520836AbYLIJvS for ; Tue, 9 Dec 2008 12:51:18 +0300 X-Yandex-Spam: 1 Received: from [85.249.118.71] ([85.249.118.71]) by mail.yandex.ru with HTTP; Tue, 09 Dec 2008 12:51:18 +0300 From: =?KOI8-R?B?6czY0Q==?= To: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-Id: <242941228816278@webmail54.yandex.ru> Date: Tue, 09 Dec 2008 12:51:18 +0300 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Subject: 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:12:36 -0000 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. 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'. -- Ilya.