This technique requires a minimal number of manual steps as it relies upon the normal replica set synchronization process. The main disadvantage is that when you have a large amount of data, it inevitably generates a large amount of network traffic. This technique also impacts the primary by generating a larger-than-ordinary number of requests to the primary. Further, this technique can only work if other replica set members are up to date.
An initial sync is what occurs when either a new replica set is first brought online or when a member is added to a replica set. During this process, MongoDB clones the database onto the new member and then applies any operations in the oplog (https://docs.mongodb.com/manual/core/replica-set-sync/#initial-sync).
To resynchronize by forcing an initial sync, proceed as follows:
- Perform a graceful shutdown of the mongod instance on the server needing synchronization. You can either open...