#DRBD: Gracious role switching of live sites configured with DRBD replication

By | December 22, 2016

This is a follow up tutorial on the DRBD replication posts about gracious role switching of live sites configured with DRBD replication.

More than a year ago I described in a long tutorial how to use DRBD in a real production environment and the challenges associated to it. See: DRBD based disk replication of a production cluster to a remote cluster on RHEL6

When doing a site switch from the live site to the standby site the following steps must be
performed:

1. Stop the Application_Service on the live site

2. Check that the sites are synchronized.
If sites are not synchronized, wait for the standby site to receive all the replication data. This can be checked by executing on the standby site:

3. Stop the Database_Service on the live site

4. Stop the DRBD_Slave_Service on the standby site

5. Start the DRBD_Slave_Service on the live site

6. Start the Database_Service on the standby site

7. Start the Application_Service on the standby site

8. Check that the sites are in sync.

This can be also checked by executing on the standby site and live site:

The site switch is now complete.

Advertisements