The Apache log files tend to fill up disk space. We clean these up every month or so by moving them to a different partition. The other partition is not backed up. We are saving these so we can do security and usage analyses.
Here's what to do next time this happens:
andrews
, become root
cd /usr du -dk . >& du.out
sort -nr du.out | head -40
local/apache-N.M/logs/200Y/MM
is taking up lots of space.
So, we move it:
cd /usr/local/apache/logs/2007 mv 10 /export/home1/root/apache/logs/2007 ln -s /export/home1/root/apache/logs/2007/10 .
/usr/bin/find /export/home1/root/apache logs/`date +%Y` -mtime +2 -name agent_log -size +1000000c -print > /tmp/agent_logs /usr/local/adm/compress_agent_log `cat /tmp/agent_logs`
cd /export/home1/root/apache/logs/2010 gzip -9 */*/*log*
/etc/init.d/gsrc stop mv /export/home1/tmp/php.err /export/home1/tmp/php.err.4 /etc/init.d/gsrc start