Database Reference
In-Depth Information
Now, using a mongo shell in the primary node, you can remove the old server from the
replica set:
rs.remove("mongod1.replicaset.com:27017")
Using this method and replication, we moved the database from an old machine to the
new server. This procedure can be used for other nodes, but make sure that you have an
odd number of members; otherwise, you will face issues during election.
Using an arbiter member enables you to have even number of members in a replica set,
since the arbiter can vote in the election process.
Search WWH ::




Custom Search