我正在使用一个简单的mongodb副本集配置。我有一个小学,两个中学。
我关闭辅助节点之一,然后检查状态(rs.status()),就像
{
"_id" : 2,
"name" : "xx.xx.xxx.xxx:27018",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"optime" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"optimeDurable" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"optimeDurableDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2018-10-30T06:31:11.529Z"),
"lastHeartbeatRecv" : ISODate("2018-10-30T06:28:53.265Z"),
"pingMs" : NumberLong(0),
"lastHeartbeatMessage" : "Connection refused",
"syncingTo" : "",
"syncSourceHost" : "",
"syncSourceId" : -1,
"infoMessage" : "",
"configVersion" : -1
}
启动节点后,该节点已关闭,但状态仍然保持不变
我如何恢复该节点?