Deleted log file - how to get back via file descriptor and keep alive?
Hi all,
I thought I'd rotate a log file manually not realising the Flexlm daemon was still holding onto it. The new file was 0 bytes and would not update. I managed to find the old file was still being written to via its inode - I can copy the file back from /proc/PID/fd/1 However this is just a copy - is there any way I can point the writing to this file without re-starting the daemon? ( I followed instructions at http://www.finalcog.com/undelete-open-file-from-inode if anyones interested ) Cheers for any help. P. |
Ok - looks like it may be possible as detailed at :-
http://glandium.org/blog/?p=87%22%20...22glandium.org However it uses debugfs - has anyone ever used this? I'm weary as this is a Red Hat ES4 machine using LVM/ext3 and from reports it doesn't look safe - looks like I'll have to leave it until its rebooted. Cheers for looking P. |
All times are GMT -5. The time now is 08:46 PM. |