How to free up disk space on Zimbra server

5
(4)

You can remove logs to make some space urgently to prevent your Zimbra from crash.

du -sh /var/log

Please pay special attention to the DOT after file names

rm -rf /var/log/zimbra.log.*
rm -rf /var/log/messages.*
rm -rf /var/log/maillog.*
rm -rf /var/log/rpmpkgs.*
rm -rf /var/log/boot.log.*
rm -rf /var/log/cron.*

Null current logs.

cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/zimbra.log
cat /dev/null > /var/log/cbpolicyd.log

Remove zimbra other logs

rm -rf /opt/zimbra/log/zmswatch.out.*
rm -rf /opt/zimbra/log/myslow.log.*
rm -rf /opt/zimbra/log/zmmailboxd.out.*
rm -rf /opt/zimbra/log/mailbox.log.*
rm -rf /opt/zimbra/log/audit.log.*
rm -rf /opt/zimbra/log/zmmtaconfig.log.*
rm -rf /opt/zimbra/log/zmlogswatch.out.*

du -sh /opt/zimbra/log

Remove zibra stats

du -sh /opt/zimbra/zmstat

rm -rf /opt/zimbra/zmstat/2014-*
rm -rf /opt/zimbra/zmstat/2015-*
rm -rf /opt/zimbra/zmstat/2016-*

du -sh /opt/zimbra/zmstat

Similar Posts:

11,033

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 4

No votes so far! Be the first to rate this post.

Scroll to Top