From owner-freebsd-questions@FreeBSD.ORG Mon Mar 17 15:47:19 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 2D3CD1065676 for ; Mon, 17 Mar 2008 15:47:19 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id CFC4A8FC13 for ; Mon, 17 Mar 2008 15:47:18 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 18918 invoked by uid 0); 17 Mar 2008 15:47:17 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (216.186.148.249) by smtp1.knology.net with SMTP; 17 Mar 2008 15:47:17 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id BFBD228425; Mon, 17 Mar 2008 10:47:16 -0500 (CDT) Date: Mon, 17 Mar 2008 10:47:16 -0500 From: David Kelly To: "Dr. Jennifer Nussbaum" Message-ID: <20080317154716.GA9395@Grumpy.DynDNS.org> References: <878724.45020.qm@web53408.mail.re2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878724.45020.qm@web53408.mail.re2.yahoo.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: Urgent: filesystem "full", though space is available 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: Mon, 17 Mar 2008 15:47:19 -0000 On Mon, Mar 17, 2008 at 08:34:18AM -0700, Dr. Jennifer Nussbaum wrote: > > Hi, Ive got a big problem now on a production server. > > When i do various things, i am getting "write failed, file system full" > messages all over the place. Ive gone through and deleted > things i can, and i should have the space now, but its just > not available: Deleted files only disappear from the directory listings. File space is not freed until the last process closes the open file. A programming "trick" is to create/open temporary file(s) when program is launched then unlink (delete) the file(s) while they are still open. As long as one has an open file handle the files are perfectly usable. When program terminates normally or by exception, the OS cleans up and no mess is left. > $ df -m > Filesystem 1M-blocks Used Avail Capacity Mounted on > /dev/da0s1a 2015 1858 -3 100% / > /dev/da0s1e 14061 9002 3933 70% /usr/local > procfs 0 0 0 100% /proc > > I dont know what kind of math lets you do 2015-1858 and gives > you an answer of -3! There is an 8% reserve that only root can eat into. You are 3 MB into your 8% reserve. This is BSD Unix 101. > I have softupdates, or whatever, but i dont know how to get > it to release this space. I cant reboot the running server. > I am planning on adding a disc to this system but right now > i need to get this space released ASAP! Can anyone help? A reboot is the fastest way to close open files and release their space. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.