FreeBSD Server Administration

« Email Problem Follow-up | Main | Great FreeBSD Security Page »

June 01, 2005

More About Apache Log File Rotation

As I wrote earlier, I remove old Apache log files by deleting all of them and doing a graceful restart, this is also what Apache documentations suggested, everything works well except that Apache doesn't release the disk space used by the deleted log files. As a result, "du" command shows that /var was using 100% disk space, but if I run "df -ma" under /var, it's only using 23 MB. Postfix can't receive any emails since disk space was used up, which gave an error message like: "Out: 452 Insufficient system storage". A non-graceful Apache restart solved the problem.

In Summary
"apachectl graceful" doesn't work 100% correctly, it holds the disk space used by deleted log files. I didn't test how it works if the new log file uses different file name.


Category : Apache

Posted by FreeBSD Newbie at June 1, 2005 05:34 AM

Comments

Post a comment



(Optional, will not be shown to the public)

Remember Me?