-
Type: Question
-
Resolution: Done
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
None
current status
primary-secondary-arbiter (1:1:1)
1) secondary server fails
2) data size 2TB
3) we cannot initial sync because of data size so big
4) we have dump backup with option --oplog
I want to do below
1) in failed secondary
rm data directory
MongoDB start
mongorestore with option --oplogReplay --> success
2) in primary
rs.add(secondary)
--> but start to initial sync
--> i want to sync after dump last position (how can i do ?)
in case of Mysql
change master
...
master_log_file='binary_log.000002', master_log_pos=120; --> i can begin to replicate from special position that i want