-
Type:
Question
-
Resolution: Cannot Reproduce
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 3.6.3
-
Component/s: None
-
None
-
Environment:Sharded cluster with 2 shards 3 replica set each and config server replica set. One mongos process. All on same server (Linux x86_64)
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
I am trying to restore mongodb sharded cluster deployment from one server to another .
Current deployment has 2 shards, 3 replica each and config server replica set .one mongos process.
Took backup from primary shards and config server primary . used fsynclock for same.
moved the backup to different server . Created new deployment with same replica set name on different ports that the source. Restored shards and then config server . updated config database shards collection with new server details but deployment is not getting started after the restore . getting below error in sh.status.
balancer:
Currently enabled: yes
Currently running: no
Failed balancer rounds in last 5 attempts: 5
Last reported error: Could not find host matching read preference { mode: "primary" } for set rs0
Have tried several times the redirected restore using the link:
https://docs.mongodb.com/manual/tutorial/restore-sharded-cluster/
but with no luck .