I am new to MongoDB.
I have setup a replica of 3 nodes with one arbiter on EC2. In My test
setup only primary and arbiter has elastic ip and the secondary has dynamic
ip generated by EC2.
Now when I restarted the setup, IP of secondary has been changed . And I
am not able to update the config .
I tried changing the config :
config = {_id: 'ticklereplica', members: [
{_id: 0, host: 'Primary:27017'},
{_id: 1, host: 'Changed_secondary:27017'},
{_id: 2, host: 'arbiter:27017', arbiterOnly: true}]
}
And then ran rs.reconfig(config).
It is not working out. It is throwing following error: -
{
"startupStatus" : 1,
"errmsg" : "loading local.system.replset config (LOADINGCONFIG)",
"ok" : 0
}
I also tried adding adding the new IP and then thought to remove the older
one. using rs.add() and then rs.remove() .
But again same issue .
Appreciate your help.
Thanks Deepak
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/fvf_CxepL1sJ.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
