Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-2008, 08:44 AM
Intermediate Member
 
Posts: 17
Default MySQL and zimbra_logger disk usage?

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

Last edited by tnelson; 10-03-2008 at 10:00 AM.. Reason: More info from logs...
Reply With Quote
  #2 (permalink)  
Old 10-03-2008, 01:17 PM
Zimbra Employee
 
Posts: 604
Default

Default is 31d for raw logs. If the mta summary table was corrupt the raw_logs will not be summarized and pruned as it would result in a lose of data.

After fixing the corruption you can reduce the lifetime of raw_logs with the following.
Code:
zmprov mcf zimbraLogRawLifetime 2d
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 10-03-2008, 01:21 PM
Intermediate Member
 
Posts: 17
Default

When my 'repair table raw_logs;' completes, I'll give that a shot. I'm assuming it will immediately 'prune' the database or will I need to initiate that process after making the change?
Reply With Quote
  #4 (permalink)  
Old 10-03-2008, 01:43 PM
Zimbra Employee
 
Posts: 604
Default

The next scheduled run of zmlogprocess will prune it. You can always run /opt/zimbra/libexec/zmlogprocess by hand if you want it to happen sooner.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 10-17-2008, 07:33 AM
Intermediate Member
 
Posts: 17
Default

I ran a repair on the database which took a few days to complete. However, zmlogprocess is still throwing errors complaining about the table being corrupt and the automatic repair process not fixing it. How do I proceed? I'm more than happy to just rm these files if mysql/logger will automatically recreate them. I just can't see keeping some 30GB of what I consider useless data sitting around...

Suggestions and/or comments?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.