I have process that works for days and produces log file.
Every midnight the log file is closed for the current day and new one
for the new day creates. I delete the old logs.
This procedure works on about 10 log files that grow to 10-300MB.
The problem appears is after big log files that been created and
deleted, the df still see them holding the avaiable space and the du
-ks doesnt see them.
I got to situation that the difference between the df and du was over
800MB
I know how df and du work, but my problem is I cant close this process
and free the space.
Is there a possibility to remove these deleted files (removed files
that have an inode of 0) while df sees and du skips without killing
the process?
Currently, I kill the process every time the filesystem become almost
full to prevent any system problems.
I will be happy for better solution,
Thanks,
Avi