From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 11:54:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 302CA16A420 for ; Tue, 30 Aug 2005 11:54:23 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from smtp.thilelli.net (smtp.thilelli.net [213.41.129.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DF8543D55 for ; Tue, 30 Aug 2005 11:54:21 +0000 (GMT) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 5C40A5C7D; Tue, 30 Aug 2005 13:54:20 +0200 (CEST) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 80362-05-2; Tue, 30 Aug 2005 13:54:15 +0200 (CEST) Received: from webmail.thilelli.net (localhost [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id 98BFC5C7C; Tue, 30 Aug 2005 13:54:15 +0200 (CEST) Received: from 145.248.192.30 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Tue, 30 Aug 2005 13:54:15 +0200 (CEST) Message-ID: <48761.145.248.192.30.1125402855.squirrel@webmail.thilelli.net> In-Reply-To: <20050830114845.GA72574@augusta.de> References: <43144514.40005@searchy.nl> <20050830114845.GA72574@augusta.de> Date: Tue, 30 Aug 2005 13:54:15 +0200 (CEST) From: "Julien Gabel" To: "Gerhard Schmidt" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at thilelli.net Cc: freebsd-questions@freebsd.org, Frank de Bot Subject: Re: No free space add after removing large file. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jpeg@thilelli.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 11:54:23 -0000 >> On my fs I had a file of 20gb. The free space on that fs was at that >> time around 1gb. But after removing the 20gb file, the freespace wasn't >> added :-S ? >> What has gone wrong and how can I 'reclaim' the free space? > > There could be a process which has an open filehandle to this file. The > file isn't deleted until all filehandles are closed. > > Try to install /usr/ports/sysutils/lsof and look for the open handle. E.g. > > lsof | grep You can use fstat(1) from the base system, too. > Kill the process and the freespace should grow. If this doesn't work > or there is no open handle try do go to single user mode an force an > fsck on this fielsystem. -- -jpeg.