Ajcody-Disaster-Recovery-Specific-Notes
Disaster Recovery Specific Notes
Actual Disaster Recovery Specific Notes Homepage
Please see: Ajcody-Disaster-Recovery-Specific-Notes
My Disaster Recovery Failed
Main Reference
Please see: Network_Edition_Disaster_Recovery#Restoring_to_the_new_server
Bugs Filed That Might Apply
- "accounts.xml file dependency needed for zmrestore"
- "Expand restore recovery documentation to include multi-server configurations"
Please add your votes to this RFE!
- "Disaster recovery through server to server sync (beta)"
What To Do Or Check
Time Issues
First, make sure your TIME is set right! See Time_Zones_in_ZCS#The_server_OS
Authentication Password Issues
Though I'm still investigating why this is happening for our customers, the root issues seem to be resolved by the following. Some of the auth errors will be logged to /var/log/zimbra.log and /opt/zimbra/log/mailbox.log
Put the output of this command in a text file:
zmlocalconfig -s | grep password
These should match what's in /opt/zimbra/conf/localconfig.xml
Now, compare the passwords with what is in your restore. Put in your path of the restore specific directory.
vi /opt/zimbra/backup/sessions/YOUR_DIR/sys/localconfig.xml
Do a /password or the full variable in vi to see what the old passwords are. You'll need to adjust the following below. Remember to copy a backup.
cp /opt/zimbra/conf/localconfig.xml /opt/zimbra/conf/localconfig.xml.DR
- ldap_postfix_password
- vi /opt/zimbra/conf/localconfig.xml and put in the needed password
- ldap_amavis_password
- vi /opt/zimbra/conf/localconfig.xml and put in the needed password
- ldap_root_password
- http://wiki.zimbra.com/index.php?title=Resetting_LDAP_%26_MySQL_Passwords Note difference between 4.x and 5.x
- zimbra_ldap_password
- http://wiki.zimbra.com/index.php?title=Resetting_LDAP_%26_MySQL_Passwords Note difference between 4.x and 5.x
accounts.xml file - restore error
mailbox.log or restore command will output errors about
- accounts don't actually get restore though restore command appears to completed without error.
zimbra@xxxx:~/log$ zmrestore -all -rf ''<pre>Error occurred: invalid request: invalid account email address: ll ''<pre>zimbra@xxxx:~/log$ zmrestore -a bdavis@XXXXXXX.com -rf ''<pre>Error occurred: no such account: Account ID for bdavis@XXXXXXXXX.com not found in backup
- no such session backup label errors
com.zimbra.cs.backup.BackupServiceException: backup full-20080920.050014.406 not found: ''<pre>/opt/zimbra/backup/sessions/full-20080920.050014.406 not found ExceptionId:main:1222811246316:7615eea74222489d
If your missing the /opt/zimbra/backup/accounts.xml file, grab it from your saved backup directory or from the backup session your using ( /opt/zimbra/backup/sessions/full-XXXXXX/sessions.xml ). If you need/want to change the referenced session label in the accounts.xml file - just vi it and use the global search and replace string (
:%s/search_string/replacement_string/g ).
Errors about mysql or ldap not running
This will most likely be encounter if you have to adjust some items in regards to the restore command not working. Run or confirm the following:
su - zimbra zmconvertctl stop mysql.server start ldap start zmconvertctl start
Then try the restore command again.