Re: Delete a file THAT big? Surely you are joking.

[prev] [thread] [next] [lurker] [Date index for 2006/12/18]

From: Martin Ebourne
Subject: Re: Delete a file THAT big? Surely you are joking.
Date: 16:59 on 18 Dec 2006
Yossi Kreinin <yossi.kreinin@xxxxxxxx.xxx> wrote:
> * Why didn't rm say they were open?

rm doesn't know if the files are open, so it can't tell you.

> * And by which process, so I'd know if it's OK to kill it?

lsof is your friend. May need to be run as root depending on what you  
ask of it.

> * Why did unmounting the filesystem succeed, instead of saying the  
> processes still need it?

That is an indication there were no open files (unless you used the  
force option). Maybe you did kill the processes off. ext3 can be slow  
to delete large files, but seconds not minutes.

If the files really are not open, and a short while has passed, the  
space should be available again. If you've managed to unmount and  
remount the filesystem and the space is still missing according to df  
then that's a bug.

Cheers,

Martin.

PS. Beware of nfs keeping files open on behalf of a client machine.
There's stuff above here

Generated at 03:01 on 20 Dec 2006 by mariachi 0.52