[SERVER-35012] Change IP Number shard Created: 16/May/18  Updated: 28/Jun/18  Resolved: 21/May/18

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

Type: Question Priority: Critical - P2
Reporter: Karsten Engstler Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

We had to change hostname and ip Adress.
I change replikast information of config and rs
But rs tries to reach Configserver at startup and will not find on so it hangs
db. How to change the ip number of the config server in the rs ? l

RS log: cfg1 is replica set of configsever

2018-05-16T10:29:56.800+0200 W NETWORK [monitoring keys for HMAC] Unable to reach primary for set cfg1
2018-05-16T10:29:57.100+0200 W NETWORK [initandlisten] Failed to connect to 4.128.226.36:27019, in(checking socket for error after poll), reason: Connection refused


Participants:

 Description   

We had to change hostname and ip number of our system

I changed all member hostname of all replica sets (also config server replicaset)

Now rs  is not starting,   config server is up an running  but   rs  seems to adress old

ips of config. #how can i change that. 

 

Got Error:

2018-05-16T10:29:56.800+0200 W NETWORK [monitoring keys for HMAC] Unable to reach primary for set cfg1
2018-05-16T10:29:57.100+0200 W NETWORK [initandlisten] Failed to connect to 4.128.226.36:27019, in(checking socket for error after poll), reason: Connection refused

Its from the replica set log

cfg1 is config server replica set

 

 



 Comments   
Comment by Ramon Fernandez Marina [ 21/May/18 ]

Thanks for your report. Take a look at the system.version collection in the admin database for each shard node, which stores information for config servers.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 04:38:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.