From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 16:12:28 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 3DB501065675 for ; Thu, 1 Dec 2011 16:12:28 +0000 (UTC) (envelope-from bsemene@cyanide-studio.com) Received: from mail.cyanide-studio.com (mail.cyanide-studio.com [195.66.80.226]) by mx1.freebsd.org (Postfix) with ESMTP id C357B8FC17 for ; Thu, 1 Dec 2011 16:12:27 +0000 (UTC) Received: from localhost (unknown [10.1.8.14]) by mail.cyanide-studio.com (Postfix) with ESMTP id 0ADB017BF4D8 for ; Thu, 1 Dec 2011 16:56:01 +0100 (CET) Received: from mail.cyanide-studio.com ([10.1.8.3]) by localhost (mailguard.cyanide-studio.com [10.1.8.14]) (amavisd-maia, port 10024) with ESMTP id 97191-09 for ; Thu, 1 Dec 2011 16:56:00 +0100 (CET) Received: from [10.1.8.96] (unknown [10.1.8.96]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bsemene@cyanide-studio.com) by mail.cyanide-studio.com (Postfix) with ESMTP id D905317BF4CB for ; Thu, 1 Dec 2011 16:56:00 +0100 (CET) Message-ID: <4ED7A3C0.3090201@cyanide-studio.com> Date: Thu, 01 Dec 2011 16:56:48 +0100 From: Bastien Semene User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: df command reports wrong value after fd have been released 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: Thu, 01 Dec 2011 16:12:28 -0000 Hi, 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 # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 9.7G 287M 8.6G 3% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad4s1e 989M 144K 910M 0% /home /dev/ad4s1d 4.8G 384K 4.5G 0% /tmp /dev/ad4s1g 108G 25G 74G 26% /usr /dev/ad4s1f 19G 19G -1.5G 109% /var tank 1.8T 1.1T 718G 61% /var/db/svn All fs are UFS, except "tank" that is a zfs fs.