From owner-freebsd-questions@FreeBSD.ORG Fri Dec 2 15:00:34 2011 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 29EC21065675 for ; Fri, 2 Dec 2011 15:00:34 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id EDF568FC12 for ; Fri, 2 Dec 2011 15:00:33 +0000 (UTC) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.50]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 01706A70B16 for ; Fri, 2 Dec 2011 10:00:32 -0500 (EST) Received: (qmail 29694 invoked from network); 2 Dec 2011 15:00:32 -0000 Received: by simscan 1.4.0 ppid: 721, pid: 6513, t: 0.3492s scanners: clamav: 0.88.2/m:52/d:10739 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 2 Dec 2011 15:00:32 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 0DAB65645F; Fri, 2 Dec 2011 10:00:30 -0500 (EST) From: Lowell Gilbert To: Bastien Semene References: <4ED7A3C0.3090201@cyanide-studio.com> Date: Fri, 02 Dec 2011 10:00:30 -0500 In-Reply-To: <4ED7A3C0.3090201@cyanide-studio.com> (Bastien Semene's message of "Thu, 01 Dec 2011 16:56:48 +0100") Message-ID: <4439d3vx0x.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: df command reports wrong value after fd have been released X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2011 15:00:34 -0000 Bastien Semene writes: > I removed a file from /var using all my filesystem space, then restarted > the process that handled its file descriptors. > I then, for another reason, had to reboot the system. > > During the boot I had a warning saying that the filesystem is full. > > I did not checked the fs state with df before, thinking it was resolved. > df now still shows me the fs is full, I stopped the process then checked > the fd with lsof, they were removed. > I changed the log file name then restarted the process. > lsof shows me that the process no longer uses fd on this "ghost" file. > > I'm out of ideas to resolve the problem, as I'm out of knowledge to > understand it. > Any explanation/idea to resolve this issue is welcome. > > some informations : > # uname -a > FreeBSD vcs.cyanide-studio.com 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: > Tue Sep 27 18:45:57 UTC 2011 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > Are you sure there isn't some other file on /var using up the space? The file you already deleted might not be the culprit. It also might be useful to fsck the filesystem and to mount it without the database ("tank," you called it) filesystem on top of it, to make sure there are no files shadowed there.