I want to add a new member to an existing RS. I understand that since there’s a lot of data in the cluster, initial sync will take a long time.
So followed the instructions here - Add Members to a Replica Set — MongoDB Manual
which suggests copying the data folder from an existing member. However, when I start the node and add it to the cluster, it performs initial sync and is stuck in STARTUP2 status. Looking at the
rs.printSlaveReplicationInfo() I see:
syncedTo: Thu Jan 01 1970 00:00:00 GMT+0000 (UTC) 1647860466 secs (457739.02 hrs) behind the primary
The docs say that I should make sure that I “can copy the data directory to the new member and begin replication within the window allowed by the oplog. Otherwise, the new instance will have to perform an initial sync, which completely resynchronizes the data”.
The oplog is configured at 409600MB. The data copied is recent.
What else should I look for or try?