rs0:PRIMARY> rs.status()
{
"set" : "rs0",
"date" : ISODate("2016-03-02T17:04:43.528Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "unununium.local:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 55083,
"optime" : {
"ts" : Timestamp(1456938256, 3),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:04:16Z"),
"electionTime" : Timestamp(1456883201, 2),
"electionDate" : ISODate("2016-03-02T01:46:41Z"),
"configVersion" : 3,
"self" : true
},
{
"_id" : 1,
"name" : "unununium.local:27018",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 115,
"optime" : {
"ts" : Timestamp(1456938256, 3),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:04:16Z"),
"lastHeartbeat" : ISODate("2016-03-02T17:04:42.558Z"),
"lastHeartbeatRecv" : ISODate("2016-03-02T17:04:42.557Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "unununium.local:27017",
"configVersion" : 3
},
{
"_id" : 2,
"name" : "unununium.local:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 67,
"optime" : {
"ts" : Timestamp(1456938256, 3),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:04:16Z"),
"lastHeartbeat" : ISODate("2016-03-02T17:04:42.558Z"),
"lastHeartbeatRecv" : ISODate("2016-03-02T17:04:42.648Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "unununium.local:27018",
"configVersion" : 3
}
],
"ok" : 1
}
rs0:PRIMARY> rs.status()
{
"set" : "rs0",
"date" : ISODate("2016-03-02T17:06:33.484Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "unununium.local:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 55193,
"optime" : {
"ts" : Timestamp(1456938346, 3),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:05:46Z"),
"electionTime" : Timestamp(1456883201, 2),
"electionDate" : ISODate("2016-03-02T01:46:41Z"),
"configVersion" : 5,
"self" : true
},
{
"_id" : 1,
"name" : "unununium.local:27018",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 225,
"optime" : {
"ts" : Timestamp(1456938346, 3),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:05:46Z"),
"lastHeartbeat" : ISODate("2016-03-02T17:06:32.722Z"),
"lastHeartbeatRecv" : ISODate("2016-03-02T17:06:32.721Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "unununium.local:27017",
"configVersion" : 5
},
{
"_id" : 3,
"name" : "unununium.local:27020",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 44,
"optime" : {
"ts" : Timestamp(1456938347, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2016-03-02T17:05:47Z"),
"lastHeartbeat" : ISODate("2016-03-02T17:06:32.722Z"),
"lastHeartbeatRecv" : ISODate("2016-03-02T17:06:32.050Z"),
"pingMs" : NumberLong(0),
"electionTime" : Timestamp(1456938346, 2),
"electionDate" : ISODate("2016-03-02T17:05:46Z"),
"configVersion" : 5
}
],
"ok" : 1
}
Hi Ed,
If you executed rs.initiate() on the new node before it was added to the existing replica set, you might be running into SERVER-22287 which is fixed in the upcoming version 3.2.4.
If you did not execute rs.initiate() on the new node, could you please post the exact sequence of commands that you executed?
Best regards,
Kevin