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 07-18-2007, 11:20 AM
Moderator
 
Posts: 883
Default No Server Statistics

I just realized that since upgrading to version 4.5.6 my Server Statistics page on the Admin console is not getting updated. In searching around the system I found the following in the /tmp/logprocess.out file:
Code:
Table './zimbra_logger/mta' is marked as crashed and should be repaired
Table './zimbra_logger/mta' is marked as crashed and should be repaired at /opt/zimbra/libexec/zmlogprocess line 1047.
I'm assuming this is why I'm not getting the stats, but even if it isn't it's probably something that I need to address. How would I go about fixing this table? I'm not too familiar with MySQL database repair so any pointers would be greatly appreciated. I'd also like to know if it's recommended to shutdown Zimbra while doing the repair. Everything else on the system seems to be working fine, so I don't want to take any chances just to get the stats back.

TIA,
John
Reply With Quote
  #2 (permalink)  
Old 07-18-2007, 10:24 PM
Former Zimbran
 
Posts: 5,606
Default

Try
Code:
su - zimbra
logmysql -D zimbra_logger
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with a ; or \g.
Your MySQL connection id is 5
Server version: 5.0.33-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> repair table mta;
It should give you some output as to whether it went okay.

Good luck,
john
Reply With Quote
  #3 (permalink)  
Old 07-19-2007, 09:08 AM
Moderator
 
Posts: 883
Default

Any risk of doing this with Zimbra running or should I shut it down first?
Reply With Quote
  #4 (permalink)  
Old 07-19-2007, 09:36 AM
Moderator
 
Posts: 7,928
Exclamation

I have repaired tables dynamically, but do so at your own *** RISK ***. Best way would be to shutdown Zimbra, take a backup, repair table, and then restart Zimbra.
__________________
Reply With Quote
  #5 (permalink)  
Old 07-19-2007, 09:40 AM
Former Zimbran
 
Posts: 5,606
Default

Quote:
Originally Posted by soxfan View Post
Any risk of doing this with Zimbra running or should I shut it down first?
You have to have logmysql.server running in order to repair the tables.

My suggestion would be to stop zimbra, and run a
logmysql.server start

then repair the tables with only logmysql.server running.
Reply With Quote
  #6 (permalink)  
Old 07-22-2007, 02:42 PM
Moderator
 
Posts: 883
Default

Well, I finally got a chance to try the repair (weekend - less users on the system, lower email volume, etc.). Unfortunately I didn't have any luck. As suggested, I first shutdown zimbra, and then ran logmysql.server start. Next I executed 'logmysql -D zimbra_logger', which successfully brought up the mysql command prompt, then I ran 'mysql repair mta'. However, it immediately came back and said 'Table is already up to date'. As the command came back so quickly and didn't seem to do anything I was wary and sure enough when I ran 'check table mta' it still shows that the table is 'marked as crashed and should be repaired'. I tried the repair a couple of more times, but always with the same result.

Any other suggestions? I've been Googling around for some general info on repairing MySQL tables, but I'm afraid to try anything that could make things worse. Since this is apparently just a log/stats table I'm willing to wipe it out and start from scratch, but I don't want to do anything that could mess up an otherwise fully functioning Zimbra server.
Reply With Quote
  #7 (permalink)  
Old 07-25-2007, 06:32 AM
Moderator
 
Posts: 883
Default

Sorry, but I can't let this one drop. Even though everything seems to be running fine besides the stats, I don't like the idea of having a corrupted/crashed database table on the system. I think at this point I could probably drop the table, recreate it, and start from scratch. However, as I said before I don't want to do anything that might mess up something else. Can anyone provide any further help or suggestions?

Thanks again,
John
Reply With Quote
  #8 (permalink)  
Old 09-11-2007, 03:25 PM
Moderator
 
Posts: 1,147
Default

The following page has a few tricks to repair corrupt tables. You might try one of the alternate methods listed here.
Reply With Quote
  #9 (permalink)  
Old 09-12-2007, 06:28 AM
Starter Member
 
Posts: 2
Default

I found on 4.5.6 that the reason stats were not being generated was that the rrdtool binaries used to generate the images were not in the right place. I suggest looking thru the cron logs and the stuff in /tmp to see if the cron job is executing.

You can also "su - zimbra" then do "crontab -l" to see all the cron jobs that are executing.

Also, have you tried a full restart of everything, like /etc/init.d zimbra stop followed by start?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

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.