Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 02-04-2008, 12:54 AM
Senior Member
 
Join Date: Oct 2006
ZCS Version: 4.5.10_GA:1575.UBUNTU6 UBUNTU6 FOSS edition
Posts: 57
cedbl is on a distinguished road
Exclamation [SOLVED] Database Integrity check report

Hi receive for the first time this email
what i have to do?

Database errors found.
/opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password=.............
mysql.help_category
error : Table upgrade required. Please do "REPAIR TABLE `help_category`" to fix it!
mysql.help_keyword
error : Table upgrade required. Please do "REPAIR TABLE `help_keyword`" to fix it!
mysql.help_topic
error : Table upgrade required. Please do "REPAIR TABLE `help_topic`" to fix it!
mysql.user
error : Table upgrade required. Please do "REPAIR TABLE `user`" to fix it!
zimbra.config
error : Table upgrade required. Please do "REPAIR TABLE `config`" to fix it!
zimbra.mailbox_metadata
error : Table upgrade required. Please do "REPAIR TABLE `mailbox_metadata`" to fix it!
zimbra.out_of_office
error : Table upgrade required. Please do "REPAIR TABLE `out_of_office`" to fix it!
zimbra.service_status
error : Table upgrade required. Please do "REPAIR TABLE `service_status`" to fix it!
zimbra.table_maintenance
error : Table upgrade required. Please do "REPAIR TABLE `table_maintenance`" to fix it!
zimbra.volume
error : Table upgrade required. Please do "REPAIR TABLE `volume`" to fix it!

Friday 1 Feb i upgrade from FOSS 4.5.1 to 4.5.10
in the upgrade script the verify integrity was ok
i finished migration and all was ok at 20.00 o clock.

Saturday i did not receive Database Integrity check report
Today is monday (4 Feb ) and i recive this email with
this time 03/02/2008 23.01
zimbra was working now but i don't know what i have to do
Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 05:09 AM
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,839
phoenix is on a distinguished road
Default

The upgrade will have done a check & repair on the database.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 09:41 AM
Senior Member
 
Join Date: Oct 2006
ZCS Version: 4.5.10_GA:1575.UBUNTU6 UBUNTU6 FOSS edition
Posts: 57
cedbl is on a distinguished road
Default

I don't understand:

The upgrade
will do
or have just done

a check & repair on the database
Reply With Quote
  #4 (permalink)  
Old 02-05-2008, 03:32 AM
Zimbra Employee
 
Join Date: Sep 2005
Location: Vannes, France
Posts: 7,839
phoenix is on a distinguished road
Default

The upgrade has done a check on the db. If you want to make sure that it's OK look in the /opt/zimbra/logger/db/data/yourservername.com.err log (obviously put the fqdn of your server instead of 'yourservername.com' in there) and see if there's any errors. The db integrity report runs overnight and if there's any erros you should have seen them. If you want to confirm that it's OK the run this /opt/zimbra/libexec/zmdbintegrityreport -m as the zimbra user and see if there's any errors (that script also logs to the file I mentioned above.

Does that answer your question?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 02-05-2008, 04:14 AM
Senior Member
 
Join Date: Oct 2006
ZCS Version: 4.5.10_GA:1575.UBUNTU6 UBUNTU6 FOSS edition
Posts: 57
cedbl is on a distinguished road
Exclamation

Quote:
Originally Posted by phoenix View Post
look in the /opt/zimbra/logger/db/data/yourservername.com.err log (obviously put the fqdn of your server instead of 'yourservername.com' in there) and see if there's any errors.
there is a file mail.err but i don't find some like mail.mydomain.com.err
ls -la on this file give me today date 5 feb 11.52
Quote:
Originally Posted by phoenix View Post
The db integrity report runs overnight and if there's any erros you should have seen them. If you want to confirm that it's OK the run this /opt/zimbra/libexec/zmdbintegrityreport -m as the zimbra user and see if there's any errors (that script also logs to the file I mentioned above.
i don't receive any message at the prompt but i receive this mail
Database errors found.
/opt/zimbra/mysql/bin/mysqlcheck --defaults-file=/opt/zimbra/conf/my.cnf -S /opt/zimbra/db/mysql.sock -A -C -s -u root --password="mypassoword"
mysql.help_category
error : Table upgrade required. Please do "REPAIR TABLE `help_category`" to fix it!
mysql.help_keyword
error : Table upgrade required. Please do "REPAIR TABLE `help_keyword`" to fix it!
mysql.help_topic
error : Table upgrade required. Please do "REPAIR TABLE `help_topic`" to fix it!
mysql.user
error : Table upgrade required. Please do "REPAIR TABLE `user`" to fix it!
zimbra.config
error : Table upgrade required. Please do "REPAIR TABLE `config`" to fix it!
zimbra.mailbox_metadata
error : Table upgrade required. Please do "REPAIR TABLE `mailbox_metadata`" to fix it!
zimbra.out_of_office
error : Table upgrade required. Please do "REPAIR TABLE `out_of_office`" to fix it!
zimbra.service_status
error : Table upgrade required. Please do "REPAIR TABLE `service_status`" to fix it!
zimbra.table_maintenance
error : Table upgrade required. Please do "REPAIR TABLE `table_maintenance`" to fix it!
zimbra.volume
error : Table upgrade required. Please do "REPAIR TABLE `volume`" to fix it!

now after /opt/zimbra/libexec/zmdbintegrityreport -m as the zimbra user if i do ls -la mail.err i have the same date 5 feb 11.52 as before to give the command
Reply With Quote
  #6 (permalink)  
Old 02-05-2008, 08:12 AM
Senior Member
 
Join Date: Aug 2007
Location: Indianapolis
ZCS Version: Release 5.0.2 GA RHEL5_64 NE
Posts: 36
peng1can is on a distinguished road
Default

Is your hostname "mail"? That may be why your file is just called mail.err. I don't know if mysql just uses the value of hostname variable, but if you type "hostname" at a shell prompt does it simply say "mail"? If so, you might want to fix that in your OS so that it's a FQDN. In any case, I'm sure this is probably the correct file.

I don't think running the integrity report will affect the .err file... this will be continuously updated by mysql. Look at the contents of the file. Is it complaining about corrupted tables and such? If so (and well, from the content of the email you received), your tables probably are indeed corrupted and need repaired. Did you run out of disk space recently or anything like that? That's one cause I've seen for table corruption.

I believe the correct fix is to do as the directions indicate and run the repair table commands via the mysql command line. I've only done this with the logger tables, so I'll let someone more experienced comment on what precautions you might need to take on these tables. In any case, make sure those backups have been running!
Reply With Quote
  #7 (permalink)  
Old 02-05-2008, 08:40 AM
Senior Member
 
Join Date: Oct 2006
ZCS Version: 4.5.10_GA:1575.UBUNTU6 UBUNTU6 FOSS edition
Posts: 57
cedbl is on a distinguished road
Default

Hi
Th
yes my server name is mail
but in my /etc/hosts i have fqdn before
yes the first time i start this server i had only 2G Ram and so i stop zimbra i enlarge my ram to 3G and then restart my OS and zimbra
how can i run the repair table commands via the mysql command line?
Reply With Quote
  #8 (permalink)  
Old 02-05-2008, 08:13 PM
mmorse's Avatar
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,613
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

zmdbintegrityreport -v
zmdbintegrityreport -r
(located in /opt/zimbra/libexec/)
v will give some verbose output & r is repair
please make sure you have a backup as well...
Reply With Quote
  #9 (permalink)  
Old 02-06-2008, 06:35 AM
Senior Member
 
Join Date: Oct 2006
ZCS Version: 4.5.10_GA:1575.UBUNTU6 UBUNTU6 FOSS edition
Posts: 57
cedbl is on a distinguished road
Smile

Quote:
Originally Posted by mmorse View Post
zmdbintegrityreport -v
same message at prompt as above
Quote:
Originally Posted by mmorse View Post
zmdbintegrityreport -r
the first time same message as above
the second time some like
"Generate report
no error"


then i do zmdbintegrityreport -m and i received an email with object "Database Integrity check report" and body clean

now i think my zimbra is fine isn't it?

Could you give me some information about the command "zmdbintegrityreport"
what are the valid options?
I look in the wiki in the forum and in pdf doc for zimbra 4.5 but i don't find these informations. I know perhaps i could do zmdbintegrityreport -? os similar but for the moment i prefer to wait i come from a critical situation!!
Reply With Quote
  #10 (permalink)  
Old 02-06-2008, 01:11 PM
mmorse's Avatar
Zimbra Employee
 
Join Date: May 2006
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 4,613
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

Yup, if you got a blank email you should be set -it's a bug, future versions will send an 'all ok' status in that email.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Integrity check report Blank? sel5150 Installation 6 04-04-2008 10:51 AM
Run Database Integrity Check or Skip during Upgrade? soxfan Administrators 8 01-25-2008 11:37 PM
Database Integrity check report contains nothing dljordaneku Administrators 4 12-17-2007 10:28 AM
Database Integrity check report: Errors found mcevoys Administrators 8 12-07-2007 07:26 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.1.0