[SERVER-12254] i am adding new node to replca set and how do i sync data files to new node Created: 05/Jan/14  Updated: 10/Dec/14  Resolved: 08/Jan/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: koteswararao Makkena Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Comments   
Comment by Eliot Horowitz (Inactive) [ 08/Jan/14 ]

General process is:
1) start node
2) on primary of replica set, rs.add( <new host> )
3) then the new nodes starts syncing, you shouldn't have to do anything else

you can only do an rsync if you stop a mongod and then copy the files, or do a fsync+lock, and then copy the files

Comment by koteswararao Makkena [ 05/Jan/14 ]

i tried below steps

1) started mongo.
2) Add new node to configuration.
3) reconfig the config file. is it sync all data files from primary or is there any way we can sync data files.

can you please explain how rsync is useful bewtween replica set.

Generated at Thu Feb 08 03:28:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.