Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2005 13:54:15 +0200 (CEST)
From:      "Julien Gabel" <jpeg@thilelli.net>
To:        "Gerhard Schmidt" <estartu@augusta.de>
Cc:        freebsd-questions@freebsd.org, Frank de Bot <freebsd@searchy.nl>
Subject:   Re: No free space add after removing large file.
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>

next in thread | previous in thread | raw e-mail | index | archive | help
>> 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 <filename>

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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48761.145.248.192.30.1125402855.squirrel>