Forum Moderators: phranque
When /usr/ gets full, delete unnecessary files from
/usr/local/apache/domlogs/
/usr/local/apache/logs/archive (just backups from /logs/)
As well as:
rm -rf /usr/local/apache/logs/error_log
rm -rf /usr/local/apache/logs/suexec_log
touch /usr/local/apache/logs/suexec_log
httpd restart (maybe /scripts/restartsrv_httpd)
(httpd restart = restart Apache)
Another log file causing a problem for me:
cd /tmp/
rm -fr Net.WhoisIP.log; touch Net.WhoisIP.log
When /var/ gets full:
Check size of eximstats database:
du -sh /var/lib/mysql/eximstats
To clear data:
mysql eximstats
delete from sends;
delete from smtp;
Delete log files:
cd /var/log
rm -fr exim*.1
rm -fr exim*.2
rm -fr exim*.3
rm -fr exim*.4
rm -fr exim_mainlog; touch exim_mainlog ; chown mailnull.mail exim_mainlog
rm -fr exim_paniclog; touch exim_paniclog ; chown mailnull.mail exim_paniclog
rm -fr exim_rejectlog; touch exim_rejectlog ; chown mailnull.mail exim_rejectlog
service exim restart The crazy thing is, if I had left these sites on the much cheaper reseller account I had there would be no problem because on the reseller plan backups are not counted towards usage.
a fast and immediate solution might be to ask the provider to delete those files.
When I was in hospital
the server fell over - disk full - and some of my customer's email stopped working. It was log files.
I have a rotating log file deletion to avoid those issues, which automatically deletes files older than (choose your own date).
The log files are automatically downloaded weekly to keep them locally.