From owner-freebsd-questions Tue Jun 30 11:21:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06818 for freebsd-questions-outgoing; Tue, 30 Jun 1998 11:21:02 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from horton.iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06796 for ; Tue, 30 Jun 1998 11:20:55 -0700 (PDT) (envelope-from proot@horton.iaces.com) Received: (from proot@localhost) by horton.iaces.com (8.8.7/8.8.7) id NAA16094; Tue, 30 Jun 1998 13:19:50 -0500 (CDT) From: "Paul T. Root" Message-Id: <199806301819.NAA16094@horton.iaces.com> Subject: Re: Full filesystems In-Reply-To: <199806301643.KAA00413@ns2.theonlynet.com> from Robert Ricci at "Jun 30, 1998 10:42: 3 am" To: rricci@theonlynet.com Date: Tue, 30 Jun 1998 13:19:50 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, Robert Ricci said: > (Please CC: me, as I am not subscribed to this list) > > The other day, I accidentally filled up my /var filesystem, causing sendmail to > start refusing connections and other fun problems. After removing a ~50MB file, > `df` still showed the file system as being past full. Doing a `du -k` in /var > showed that I had about 50MB used on this 100MB filesystem, but df still > reported 100MB used. Even after killing sendmail and restarting it, it still > believed /var was full and refused connections. Finally, I rebooted the machine, > and everything began to function correctly. df now reports 50MB used on /var. > Short of rebooting, what can I do to make programs recognize that the > filesystem is no longer full? > > BTW: This machine is running 2.2.1: has this been fixed in a more recent > release? Well, there's nothing really that can be fixed. What happened was you removed a file that was opened by an program that was running. The space of that file is not freed until the program completes or is killed (possibly with a -HUP). Until that happens, the file remains, though you can't see it. -- "What did you have in mind, Sergeant?"-- Sharon Stone in "Basic Instinct" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message