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 09-15-2009, 05:48 AM
Project Contributor
 
Posts: 116
Default [SOLVED] Rebuild logger database (ZCS 6.0.1 NE)

Hi everybody.

We are working with a testing environment in order to perform a zimbra upgrade from 5.0.16 NE to 6.0.1 NE.
After restoring a full backup on this environment, we have performed an in-place upgrade.
Everything is working but logger service. Folder /opt/zimbra/logger/data has dissapeared (in fact i don't know if it has dissapeared due to upgrade or has never worked after restoring backup).

Question is: how do I rebuild logger database in ZCS 6.0.1?
In 5.0.X we followed a procedure that is not valid with 6.0.1

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-15-2009, 06:39 AM
Moderator
 
Posts: 7,911
Default

I think but have not tried
Code:
su - zimbra
zmlogger stop
rm -rf /opt/zimbra/logger/db/data/*
zmlogger start
That will remove the SQLite database and all the RRDs.
__________________
Reply With Quote
  #3 (permalink)  
Old 09-15-2009, 07:45 AM
Outstanding Member
 
Posts: 594
Default

Not sure if that works. I generally run zmloggerinit script to reinitialize logger database. This off course wipes out old data.
Reply With Quote
  #4 (permalink)  
Old 09-15-2009, 07:46 AM
Outstanding Member
 
Posts: 594
Default

You need to run :-

/opt/zimbra/libexec/zmloggerinit ${mysql_logger_root_password}

for reinitializing database.
Reply With Quote
  #5 (permalink)  
Old 09-15-2009, 07:50 AM
Project Contributor
 
Posts: 116
Default

Thank you.

Finally the problem was located at /var/log/zimbra-stats.log. This file had not been created and process was unable to run.
A simple:

Code:
touch /var/log/zimbra-stats.log
chown zimbra:zimbra /var/log/zimbra-stats.log
su - zimbra
zmloggerctl start

was enought to put logger online again.
Reply With Quote
  #6 (permalink)  
Old 09-15-2009, 08:44 AM
Special Member
 
Posts: 174
Default not on mine

Quote:
Originally Posted by veronica View Post
You need to run :-

/opt/zimbra/libexec/zmloggerinit ${mysql_logger_root_password}

for reinitializing database.
Hi Veronica,
zmloggerinit does not exist on my box. not in that directory. is this not used in 6.0?
Bill
Reply With Quote
  #7 (permalink)  
Old 09-15-2009, 08:55 AM
Special Member
 
Posts: 174
Default

zmloggerinit is on the server at the school 5.0.18 my home server is 6.0 and it is not there

Last edited by bbarrons; 09-15-2009 at 09:28 AM..
Reply With Quote
  #8 (permalink)  
Old 09-15-2009, 09:30 AM
Moderator
 
Posts: 7,911
Default

Correct ... In V6 it is as per my post ... Part of the zmlogger script is to initialise the SQLite and RRDs.
__________________
Reply With Quote
  #9 (permalink)  
Old 09-15-2009, 09:35 AM
Special Member
 
Posts: 174
Default

I had hoped that this thread would solve the logger/stat problem but it didnt for me. I did see where zmlogger is in 6.0 but I could not get it to run as a zimbra user or a sudo user. I get command not found. Maybe that is part of my problem then.
Bill
Reply With Quote
  #10 (permalink)  
Old 09-15-2009, 09:40 AM
Moderator
 
Posts: 7,911
Default

How are you trying to run the command ? Can you post the full message ?
__________________
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.