On a handful of boxes I have running Zimbra 5.0.4_GA_2101_RHEL5, I've noticed that the directory holding MySQL data for the Zimbra logger ( in /opt/zimbra/logger/db/data/zimbra_logger/ )is massive. The raw_logs.MYD and raw_logs.MYI files are nearly 30GB in some instances. If this is just log data, is there any way to purge it and set smaller log retention times?
I've seen other posts here in the forums that reference this issue but none have a clear fix that I can see. All help is appreciated. Thank you!
Edit:
After looking in /opt/zimbra/logger/db/data/<hostname>.com.err I see a bunch of these:
Code:
081003 11:52:39 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
081003 11:52:39 [ERROR] /opt/zimbra/logger/mysql/libexec/mysqld: Table './zimbra_logger/mta' is marked as crashed and last (automatic?) repair failed
I'm running a "check table raw_logs;" from mysql right now and will probably need to follow up with a "repair".
BUT, that still does not explain why the database is so huge does it?
--Tim