[DOCS-11648] Unclear step in restoring a sharded cluster procedure Created: 24/Apr/18  Updated: 27/Oct/23  Resolved: 08/Apr/19

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Idan Sher Assignee: Ravind Kumar (Inactive)
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-11486 Missing RS re-configuration in Manual... Closed
is related to DOCS-11479 Update docs with procedures requiring... Closed
is related to DOCS-9517 Docs for SERVER-24465: Remove recover... Closed
Participants:
Days since reply: 4 years, 44 weeks, 2 days ago

 Description   

In the procedure for restoring a sharded cluster step 5 states:

"If shard hostnames have changed, update the config database.
If shard hostnames have changed, connect a mongo shell to the mongos instance and update the shards collection in the Config Database to reflect the new hostnames."

I believe an example will make this step clear. For example:
Get the current configuration:

use config
db.shards.find()

A typical output would be as follows:

{ "_id" : "shard01", "host" : "shard01/oldHost1:27018,oldHost1:27018,oldHost1:27018" }

Finally, updating the document with the new hosts:

db.shards.update({_id:"shard01"},{$set:{"host":"shard01/newHost1:27018,newHost2:27018,newHost3:27018"}})



 Comments   
Comment by Ravind Kumar (Inactive) [ 08/Apr/19 ]

https://docs.mongodb.com/manual/tutorial/restore-sharded-cluster/#for-any-planned-or-completed-shard-hostname-or-replica-set-name-changes-update-the-metadata-in-config-shards

 

I think DOCS-9517 ended up resolving this. The current instructions have explicit instructions on the expected output and an example update.

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