| 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.
|  | 
11-25-2009, 02:47 AM
| | | ZimbraLdapContext Error Hi!
Yesterday I tried to backup my zimbra server without stopping it.
Simple steps: Quote:
1- I did an image with clonezila (after creating the users)
2- Send some emails, create some contacts and some meetings (just to test)
3- Backup the folder /opt/zimbra/store and the mysql database with the software Mysql Administrator
4- "Crash it" (or simply restore you harddrive with clonezila's image)
5- After restoring, delete the folder /opt/zimbra/store and replace it with your backup that should be daily (or whatever you want)
6- Restore the mysql database using the software Mysql Administrator (this must be after the step 5)
| I was happy to see that I could see my mails contacts and calendar. The problem was when I tried to send/receive mails...it was not possible and now I can't see my mails because I get the following error: Quote:
method: GetMsgRequest
msg: system failure: ZimbraLdapContext
code: service.FAILURE
detail: soap:Receiver
| Other problem is that the Moderator bdial (special thanks to him) told my that I should backup my ldap database with the command: Quote: |
/opt/zimbra/libexec/zmslapcat /path/to/ldap/backup/dir
| I got 2 files: ldap.bak and ldap.bak.date_and_hour, but I don't know how to restore this
thanks. | 
11-25-2009, 03:23 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | Quote:
Originally Posted by ruben.mourinho Yesterday I tried to backup my zimbra server without stopping it.
Simple steps:
I was happy to see that I could see my mails contacts and calendar. The problem was when I tried to send/receive mails...it was not possible and now I can't see my mails because I get the following error: | You're surprised that you have a problem with a restore after backing up a running server? It's been discussed many times in these forums, you need to stop the server to ensure that it's in a consistent state and you've already been given pointers on how to do that in your last thread. If you don't stop the server then there's no guarantee you will be able to restore anything to a workable state. If this is for a Disaster Recovery then you really need to backup the /opt/zimbra directory, please read some of the articles in the forums and wiki that cover this scenario.
Please update your forum profile with the output of the following command (don't post it in this thread):
__________________
Regards
Bill
| 
11-25-2009, 03:54 AM
| | | Quote:
Originally Posted by phoenix You're surprised that you have a problem with a restore after backing up a running server? It's been discussed many times in these forums, you need to stop the server to ensure that it's in a consistent state and you've already been given pointers on how to do that in your last thread. If you don't stop the server then there's no guarantee you will be able to restore anything to a workable state. If this is for a Disaster Recovery then you really need to backup the /opt/zimbra directory, please read some of the articles in the forums and wiki that cover this scenario. | I'm surely more surprised that you are a forum moderator and you answer people that way. You could be more useful if you tell me how to backup/restore the ldap database... | 
11-25-2009, 04:01 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,312
| | Quote:
Originally Posted by ruben.mourinho I'm surely more surprised that you are a forum moderator and you answer people that way. | Instead of making peurile comments, try following the instruction I gave above. Quote:
Originally Posted by ruben.mourinho You could be more useful if you tell me how to backup/restore the ldap database... | You could be more useful if you updated your forum profile (so we know which version of Zimbra you're using) so we don't have to keep asking each time you start a new thread. If you took the effort to search the forums and the wiki as I've suggested you'll see that for a Disaster Recovery you'll need to backup the /opt/zimbra directory. If you don't believe me then, as I've suggested, search the forums for confirmation.
__________________
Regards
Bill
| 
11-25-2009, 04:03 AM
| | | Quote:
Originally Posted by phoenix Instead of making peurile comments, try following the instruction I gave above.
You could be more useful if you updated your forum profile (so we know which version of Zimbra you're using) so we don't have to keep asking each time you start a new thread. If you took the effort to search the forums and the wiki as I've suggested you'll see that for a Disaster Recovery you'll need to backup the /opt/zimbra directory. If you don't believe me then, as I've suggested, search the forums for confirmation. | I can't post my zimbra version because my server is restoring because the ldap is crashed because you don't tell me how to backup/restore my ldap db | 
11-25-2009, 03:39 PM
| | | Quote:
Originally Posted by ruben.mourinho Hi!
Yesterday I tried to backup my zimbra server without stopping it. | I am hoping for your sake that you took a real, complete, backup before attempting this so you can restore your server to a working state?
If not... you have probably ruined your install attempting this. As phoenix said, you MUST stop your server to perform a backup.
As for your LDAP restore issue, a simple search should have provided you with slapadd(8): Add entries to SLAPD database - Linux man page, but I doubt that is the only problem you have with this "restored" system. | 
11-25-2009, 10:47 PM
| | | Quote:
Originally Posted by ArcaneMagus I am hoping for your sake that you took a real, complete, backup before attempting this so you can restore your server to a working state?
If not... you have probably ruined your install attempting this. As phoenix said, you MUST stop your server to perform a backup.
As for your LDAP restore issue, a simple search should have provided you with slapadd(8): Add entries to SLAPD database - Linux man page, but I doubt that is the only problem you have with this "restored" system. | Thanks for the ldap tip  now it works!
If you have an image, you backup your mysql, your store (only folder) and your ldap database you don't have to stop the server (I did the test). | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |