From owner-freebsd-questions@FreeBSD.ORG Fri May 22 16:38:44 2009 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 2738D1065672 for ; Fri, 22 May 2009 16:38:44 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id F19F08FC18 for ; Fri, 22 May 2009 16:38:43 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6923 invoked from network); 22 May 2009 16:38:43 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 22 May 2009 16:38:43 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id 9AE4750825; Fri, 22 May 2009 12:38:37 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 7A1361CCC2; Fri, 22 May 2009 12:38:37 -0400 (EDT) To: Luke Dean References: From: Lowell Gilbert Date: Fri, 22 May 2009 12:38:37 -0400 In-Reply-To: (Luke Dean's message of "Fri\, 22 May 2009 09\:14\:22 -0700 \(PDT\)") Message-ID: <444ovdw0s2.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: How to recover disk space after "filesystem full" 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: Fri, 22 May 2009 16:38:44 -0000 Luke Dean writes: > Yes, it sounds like a stupid question, but let me tell the story. > > The log for my dhcp server filled up /var last night, which meant that > dhcpd was also unable to hand out new leases, which meant that I had > effectively been DOSed. I'll have to look into changing my logging > policies. > > So, to correct the problem, I log into the router, removed the big > log and several other files in /var to free up some space, and assumed > this would correct the problem. > > It did not. > Several minutes after freeing up a lot of space on /var, I continued > to get "filesystem full" messages and "df" continued to show the > capacity at >100%. I checked "df -i" for the inodes too. That was > fine. I ran a quick fsck to see if that might shock the system into > seeing all the space that I'd freed up, but no good. > > I ended up rebooting the box. > > Was there any other possible solution I could've tried? > > Why wouldn't the free space immediately appear as free? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DU-VS-DF