On Fri, 15 Mar 2002, thorsten Sideb0ard wrote:

> Did you have any large log files that you have zeroed for space?
> If you have a process that is connected to a file, for example
> /var/log/apache/blah which was like 9370768, and you ran
> echo "" > /var/log/apache/blah
>
> Even tho the filesystem shows 0 bytes or whatever, their is still open
> inode to that space on the filesystem, and it won't really be freed until
> no process is connected to the inode.
> You will have to HUP the process that is connected to the file, in this
> case apache.
>
> does that make sense? i know what i mean, but i dunno if i am explaining
> it right.

        This makes perfect sense but AFAIK echoing "" won't do this
        but deleting it will.  Unix doesn't remove files until the
        all processes using that file are done.

        (Once upon a time when I worked at Sun [ Before the Dark
         Times.  Before the *Empire* ] I was doing some *massive*
         ftp [ a tarball of Oracle, IIRC - and 750mb was massive for
         then ] - and I accidentally deleted the file on the server
         while I was still downloading.  However, I watched it
         continue downloading in the other window.  Was cool.)

        -b.


_____________________________________________b r a n d o n  h a r r i s___
[EMAIL PROTECTED]                                          www.gaijin.com



_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to