Specific Disaster Recovery steps

Specific Disaster Recovery steps

   KB 21875        Last updated on 2015-07-13  

(0 votes)


A specific Disaster Recovery Steps.


Here are the steps which you need to perform for Disaster Recovery.

On new Server

  • First is stop the Zimbra Collaboration services:
zmcontrol stop
  • Take a backup of /opt/zimbra/conf/localconfig.xml, as you need to copy all the passwords from localconfig.xml (from the Full backup) and replace it in /opt/zimbra/conf/localconfig.xml file.

Restore Ldap

Follow the next steps to restore the LDAP:

rm -rf /opt/zimbra/data/ldap/config/*
rm -rf /opt/zimbra/data/ldap/mdb/*
mkdir -p /opt/zimbra/data/ldap/mdb/db /opt/zimbra/data/ldap/mdb/logs
chown -R zimbra:zimbra /opt/zimbra/data/ldap
  • Get the /backup/ldap-config.bak file from full backup
  • Get the /backup/ldap.bak file from full backup
/opt/zimbra/openldap/sbin/slapadd -q -n 0 -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap-config.bak.
/opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -cv -l /backup/ldap.bak

Reinitialize MySQL

Follow the next steps to Reinitialize MySQL:

mv /opt/zimbra/db/data /opt/zimbra/db/data_new
source ~/bin/zmshutil ; zmsetvars
/opt/zimbra/libexec/zmmyinit --sql_root_pw $mysql_root_password (this was done to initialize the data, i.e to have a clean slate)

Restore Offline from full backup

Follow the next steps to restore the Backup file from the Full Backup:

cd /tmp ; nohup zmrestoreoffline -sys -a all -c -rf -lb <full backup>

After this replay the redo logs from incremental backup:-

zmplayredo --logfiles redo.xxxx.seq1.log redo.xxxx.seq2.log

Here you need to replay incremental redologs from the oldest one to newest.

Additional Content

Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/21/2015
Article ID: https://wiki.zimbra.com/index.php?title=Specific_Disaster_Recovery_steps Date Modified: 2015-07-13

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by SME1 SME2 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search