Details
-
Question
-
Resolution: Done
-
Critical - P2
-
None
-
2.4.6
-
None
-
Ubuntu 13.10 release at AWS in on m1.large multiple regions
Description
Having trouble adding nodes to a replica set after converting a single standalone to a replica set. I get the following error:
sun01:PRIMARY> rs.add("secondary.mongodb.sungevity.com")
{
"errmsg" : "exception: need most members up to reconfigure, not ok : secondary.mongodb.sungevity.com:27017",
"code" : 13144,
"ok" : 0
}
I can connect to the node I'm attempting to add from the replica node:
ubuntu@primary:~$ mongo secondary.mongodb.sungevity.com/admin
MongoDB shell version: 2.4.6
connecting to: secondary.mongodb.sungevity.com/admin
> db
admin
And I can connect to the replica node from the node I wish to add:
ubuntu@secondary:~$ mongo primary.mongodb.sungevity.com/admin
MongoDB shell version: 2.4.6
connecting to: primary.mongodb.sungevity.com/admin
> db
admin
Here is replica status output from the primary that I initiated the replica set on:
sun01:PRIMARY> db.runCommand (
{ replSetGetStatus: 1 } )
{
"set" : "sun01",
"date" : ISODate("2013-10-28T17:16:05Z"),
"myState" : 1,
"members" : [
],
"ok" : 1
}
sun01:PRIMARY> rs.conf()
{
"_id" : "sun01",
"version" : 1,
"members" : [
]
}
I have attached both the primary (replica set node) and secondary (node I want to add) mongodb.conf files to this ticket.
The documentation is so simple and clear, I figure I'm missing something arcane or so obvious I'm going to be embarrassed.
Thanks for your assistance.