I have standalone bitnami mongodb(2.4.10). The output of rs.status() command is below :
rs.status()
{
"set" : "test",
"date" : ISODate("2015-11-13T08:07:41Z"),
"myState" : 5,
"members" : [
{
"_id" : 0,
"name" : "10.11.208.182:27017",
"health" : 1,
"state" : 5,
"stateStr" : "STARTUP2",
"uptime" : 1024,
"optime" : Timestamp(0, 0),
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"errmsg" : "initial sync need a member to be primary or secondary to do our initial sync",
"self" : true
}
],
"ok" : 1
}
How can I change it to primary?
I have to use replica set in standalone server. This server was launched by bitnami mongodb)2.4.10) AMI.
I am new for mongodb. Any help much appreciated.
I Don't have any replica set member. It was standalone server. rs.conf ()
dwandra:STARTUP2> rs.conf() { "_id" : "dwandra", "version" : 93960, "members" : [ { "_id" : 0, "host" : "10.11.208.182:27017" } ] }