Reference Guide

9 Check the replication status by running the following command:
rs.status();
Figure 59. Replication status
10 Start mongod service and add the secondary nodes to the second and third nodes in the MongoDB cluster:
rs.add("IPAddress2:27017")
rs.add("IPAddress3:27017")
NOTE
: The port numbers will dier based on the systems at your network and systems.
11 After you add the nodes in the MongoDB cluster, check the replication status by running the following commands for the primary and
secondary nodes:
rs.status();
Achieve high availability on MongoDB
63