Disaster and Recovery for Multi-Site
This section describes the various disaster and recovery scenarios with respect to the Multi-Site cluster which includes both Docker Swarm and MongoDB cluster. Multi-Site Docker Swarm is a 3 node cluster.
Restarting a Single Node of the Cluster if it Goes Down Temporarily
This section describes how to restart a single node of the cluster if it goes down temporarily.
Procedure
|
Restart the node which was down. No additional steps are required and the cluster recovers by itself. |
Replacing a Single Node of the Cluster with a New Node
This section describes how to replace a single node of the cluster with a new node.
In this scenario node 1 goes down and you want to replace node 1 with a new node.
Procedure
| Step 1 |
On any existing node, get the ID of the node that is down (node1). Execute the following command:
|
| Step 2 |
You must demote node1, execute the following command:
<node ID> is where you received the node ID from step 1. |
| Step 3 |
Remove node1 which is down before adding the new node, execute the following command:
|
| Step 4 |
On any existing node, change to the /opt/cisco/msc/builds/<build_number>/prodha directory: Example:
|
| Step 5 |
Take note of the token. On any existing node, execute the following command:
|
| Step 6 |
Taken note of IP address of the new leader. On any existing node, enter the following command: Example:
|
| Step 7 |
On the leader node (node2), take note of the IP address:
|
| Step 8 |
Prepare the new third node. Set the correct hostname for the new node: Example:
|
| Step 9 |
Change to the /opt/cisco/msc/builds/<build_number>/prodha directory: Example:
|
| Step 10 |
Join the new node to the swarm: Example:
<token> is where you received the token information from step 5. <address of leader> is where you received the leader IP address in step 7. |
| Step 11 |
On any node, change to the /opt/cisco/msc/builds/<build_number>/prodha directory: Example:
|
| Step 12 |
On any node, execute the following command:
|
At this point all service should be up and database replicated.
Restarting Two Nodes of Cluster that Go Down Temporarily
This sections describes how to restart two nodes of the cluster that go down temporarily.
Procedure
| Step 1 |
At this point due to lack of a quorum of 3 manager nodes in the Docker swarm, Multi-Site will not be available. Cisco recommends that you back up the MongoDB prior to any recovery attempts. For more information, see Backing Up the MongoDB for Cisco ACI Multi-Site. |
| Step 2 |
Restart the 2 nodes which were down. No additional steps are required and the cluster recovers by itself. |
Replacing Two Existing Nodes of the Cluster with New Nodes
This section describes how to replace two existing nodes of the cluster with new nodes.
Procedure
| Step 1 |
At this point due to lack of a quorum of 3 manager nodes in the Docker swarm, Multi-Site will not be available. Cisco recommends that you back up the DB prior to any recovery attempts. For more information, see Backing Up the MongoDB for Cisco ACI Multi-Site. |
| Step 2 |
Bring up 2 new nodes and set appropriate node names for each new node using the following commands: Example:
|
| Step 3 |
On the only live node which was previously part of swarm, execute the following command:
|
| Step 4 |
SSH into node1 and change to the /opt/cisco/msc/builds/<build number>/prodha directory: Example:
|
| Step 5 |
On node1, execute the following command:
|
| Step 6 |
On node1, execute the docker node ls command and delete any nodes marked as Down. Example:
|
| Step 7 |
On the 2 new nodes, using the token generated from docker init command, execute the /opt/cisco/msc/builds/<build number>/prodha/msc_cfg_join.py script. The nodes will join as workers. Example:
|
| Step 8 |
On any node, SSH into node1 and execute the following from the /opt/cisco/msc/builds/<build number>/prodha directory:
|
At this point all service should be up and database replicated.
Backing Up the MongoDB for Cisco ACI Multi-Site
Cisco recommends that you back up the MongoDB prior to any Cisco ACI Multi-Site Orchestrator upgrades or downgrades, as described in this section.
Procedure
| Step 1 |
Log in to the Cisco ACI Multi-Site Orchestrator virtual machine (VM). |
| Step 2 |
Execute the Cisco ACI Multi-Site Orchestrator backup script:
The msc_backup_<date+%Y%m%d%H%M>.archive file is created. |
| Step 3 |
Copy the msc_backup_<date+%Y%m%d%H%M>.archive file to a safe place. |
Restoring the MongoDB for Cisco ACI Multi-Site
This section describes how to restore the MongoDB for Cisco ACI Multi-Site.
Procedure
| Step 1 |
Log in to the Multi-Site virtual machine (VM). |
| Step 2 |
Copy your msc_backup_<date+%Y%m%d%H%M>.archive file to the VM. |
| Step 3 |
Execute the Multi-Site DB restore script:
|
| Step 4 |
Push the schemas again by executing the python script:
|


Feedback