I discovered that one of my logs consumes lots of space which comes from a running process. I wanted to clean this file, so I can run logadm to rotate it after. but I don't know how# >MyLog_nohup.out# ls -lLh MyLog_nohup.out-rw-r-lr--   1 user     group       72G Jul 30 07:26 MyLog_nohup.out# du -sh MyLog_nohup.out480K   MyLog_nohup.outEven after freeing it, still consumes 72G, and running more on it, just showing blank lines.. How can I fix that? I can't afford restarting the process. But I wanted to use logadm to rotate this log file, is this possible? I tried, but it keeps coping blank lines an infinite loop. same as when I do more on this file. Is there any other way to fix this?For logrotate, there is copytruncate option that deals with the open file, but I can't use it while the file has these blank lines as it runs in a loop.I still don't understand why I can not view/more/head this file!
unix file is corrupted
files