From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 11:53:00 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 966EB16A41F for ; Tue, 30 Aug 2005 11:53:00 +0000 (GMT) (envelope-from freebsd@searchy.nl) Received: from s001.searchy.nl (s001.searchy.nl [82.94.249.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CE2C43D46 for ; Tue, 30 Aug 2005 11:53:00 +0000 (GMT) (envelope-from freebsd@searchy.nl) Received: from [192.168.1.14] (53525E6F.cable.casema.nl [83.82.94.111]) by s001.searchy.nl (Postfix) with ESMTP id C3D798D828 for ; Tue, 30 Aug 2005 13:52:58 +0200 (CEST) Message-ID: <43144897.2050607@searchy.nl> Date: Tue, 30 Aug 2005 13:52:55 +0200 From: Frank de Bot User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729 X-Accept-Language: en-us, en MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <43144514.40005@searchy.nl> <20050830114845.GA72574@augusta.de> In-Reply-To: <20050830114845.GA72574@augusta.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: No free space add after removing large file 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: Tue, 30 Aug 2005 11:53:00 -0000 Gerhard Schmidt wrote: > On Tue, Aug 30, 2005 at 01:37:56PM +0200, Frank de Bot wrote: > >>Hi, >> >>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 > > 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. Yes, that was the cause. I got my 20gb back :-D Thanks!