I am replacing a member of a replica set (the new member has a different IP address).
What I am looking to do is as follows:
- RSYNC the data directory of the existing secondary node to the new node.
- Stop the existing node.
- Map the existing hostname to the IP of the new node.
- Start MongoDB on this new node with the replica set.
Mongo Version 3.2 and storage engine MMapV1
it is 3 member replica set.
My plan is to first replace arbiter with a new secondary node then. Do the procedure with on existing secondary node to replace this also.
Could someone please verify if the above steps make sense?