Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Dec 2011 10:00:30 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Bastien Semene <bsemene@cyanide-studio.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: df command reports wrong value after fd have been released
Message-ID:  <4439d3vx0x.fsf@be-well.ilk.org>
In-Reply-To: <4ED7A3C0.3090201@cyanide-studio.com> (Bastien Semene's message of "Thu, 01 Dec 2011 16:56:48 %2B0100")
References:  <4ED7A3C0.3090201@cyanide-studio.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bastien Semene <bsemene@cyanide-studio.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4439d3vx0x.fsf>