Both of my secondary nodes are way behind the primary node. Both node1 and node3 are recovery state now.
In this situation I have tried many times following options
- Delete the data directory on 3rd node and start the daemon then the node goes for startup2 state for more than 12 hours and then becomes recovery state forever.
- I also tried locking primary db.fsyncLock() and then copy then copy over the data from primary node to node3 but when I started the daemon I get 51 code (though I delete mongod.pid and mongod.lock file on node3)
d2node which is primary:
mongo7955:PRIMARY> rs.printSlaveReplicationInfo(); source: d1node:7955 syncedTo: Tue Apr 20 2021 06:08:00 GMT+0000 (UTC) 814437 secs (226.23 hrs) behind the primary source: d3node:7955 syncedTo: Thu Jan 01 1970 00:00:00 GMT+0000 (UTC) 1619713317 secs (449920.37 hrs) behind the primary mongo7955:PRIMARY>
what's the best way I can sync other 2 nodes ?