Specific Disaster Recovery steps

Revision as of 15:16, 24 April 2015 by Jorge de la Cruz (talk | contribs) (Created page with "{{WIP}}{{Article Infobox|{{admin}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}}} =Specific Disaster Recovery steps= ==Purpose== A specific Disaster Recovery Steps. ==Resolution== He...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 8.6 Article ZCS 8.6 ZCS 8.5 Article ZCS 8.5 ZCS 8.0 Article ZCS 8.0


Specific Disaster Recovery steps

Purpose

A specific Disaster Recovery Steps.

Resolution

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-04-24



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