| Subcribe via RSS

Cleaning Zimbra Log and Re-Init It

November 13th, 2008 Posted in Uncategorized

In my Zimbra server, the directory /opt/zimbra/logger/db/data is growing to much.
The log files are huge. Some of the log files are more than 1 GB.
I want to clean it without breaking the system. After googling some sites, I found some documents about it.
Here are the steps that I took to clean it.
===
Log in as Zimbra and stop the Mysql logger:
su – zimbra
logmysql.server stop
Log out from zimbra account, delete the log files, re-init the logger and fix the permissions:
logout
rm -rf /opt/zimbra/logger/db/data/*
cd /opt/zimbra/libexec
./zmloggerinit
./zmfixperms
Log in as zimbra, start the logger and check the services status
su – zimbra
zmlogswatchctl start
zmcontrol status

After performing these steps, the log are slim.

Comments are closed.