[nSLUG] EXT3 missing log file

John Stanton john at stantonnet.org
Tue Feb 9 14:51:20 AST 2010


Hey Joe,

So the log is now just writing to nowhere(/dev/null)?

John Stanton, RHCE
john at stantonnet.org


On 02/09/2010 02:44 PM, Joe Dunn wrote:
> hey john
>
> was this apache and it wasn't shutdown before the logfile got whatever 
> done to it. Cause the file handle will be kept open. Actually most 
> things will keep the file handle open and you'll just have mystery 
> space. syslog/apache etc etc.
>
> joe
>
> On Tue, Feb 9, 2010 at 1:38 PM, John Stanton <john at stantonnet.org 
> <mailto:john at stantonnet.org>> wrote:
>
>     Hi,
>
>     Thanks, So the file has been removed but the process still has it
>     open.
>     Know of anyway to get that file back?or view its contents?
>
>     John Stanton, RHCE
>     john at stantonnet.org <mailto:john at stantonnet.org>
>
>
>     On 02/09/2010 02:05 PM, Ben Armstrong wrote:
>     > On Tue, 09 Feb 2010 13:49:57 -0400
>     > John Stanton<john at stantonnet.org <mailto:john at stantonnet.org>>
>      wrote:
>     >
>     >> I have a process I do not want to kill, but the filesystem is
>     filling up
>     >> quickly(ext3 100Mb free, and the log file is missing), The
>     process seems
>     >> fine. lsof is saying the file is still open.
>     >>
>     >> Any ideas why the log has disappeared? Or where it may have went?
>     >>
>     >> Any help would be great.
>     >>
>     >>
>     > A simple test case demonstrating what's happening with two open
>     > terminals:
>     >
>     > terminal 1:
>     >
>     > synrg at lear:~$ cat>testfile
>     > blah
>     >
>     > terminal 2:
>     >
>     > synrg at lear:~$ rm testfile
>     > synrg at lear:~$ lsof |grep testfile
>     > cat       11005      synrg    1w      REG        8,1        5
>     > 27349088 /u11/u12/home/synrg/testfile (deleted)
>     >
>     > Until I close the cat in terminal 1 by issuing an EOF, the file
>     > exists.  It just doesn't have a directory entry pointing at it.
>     >
>     > Ben
>     >
>     > --
>     >   ,-.  nSLUG http://www.nslug.ns.ca synrg at sanctuary.nslug.ns.ca
>     <mailto:synrg at sanctuary.nslug.ns.ca>
>     >   \`'  Debian http://www.debian.org synrg at debian.org
>     <mailto:synrg at debian.org>
>     >    `          [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27
>     13C8 ]
>     >
>     _______________________________________________
>     nSLUG mailing list
>     nSLUG at nslug.ns.ca <mailto:nSLUG at nslug.ns.ca>
>     http://nslug.ns.ca/mailman/listinfo/nslug
>
>
>
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/mailman/listinfo/nslug
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/mailman/private/nslug/attachments/20100209/a00c8d99/attachment-0002.html>


More information about the nSLUG mailing list