No free space add after removing large file

Gerhard Schmidt estartu at augusta.de
Tue Aug 30 11:48:16 GMT 2005


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 <filename>  

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. 

Bye
        Estartu
 
----------------------------------------------------------------------------
Gerhard Schmidt    | Nick : estartu      IRC : Estartu  |
Fischbachweg 3     |                                    |  PGP Public Key
86856 Hiltenfingen | EMail: estartu at augusta.de          |  on request
Germany            |                                    |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 292 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050830/8fc3422e/attachment.bin


More information about the freebsd-questions mailing list