当在重新搭建secondary,在运行rs.status(); 报如下错误
{
"_id" : 2,
"name" : "10.100.9.75:37017",
"health" : 0,
"state" : 8,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"optime" : {
"t" : 0,
"i" : 0
},
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2013-05-10T08:38:52Z"),
"pingMs" : 0,
"errmsg" : "DBClientBase::findN: transport error:10.xxx.9.xx:37017 query: { authenticate: 1, nonce: \"ae865f5ac2267076\", user: \"__system\", key: \"c34231972365ffa80c6743e23cfdc929\" }"
},
google之,很多文章说是openlogsize太小了,赶紧kill mongodb进程,设置openlogsize为60G,重新sync,结果发现一会又报如此错误,不对啊,然后仔细认真看了后台的mongodb运行日志:
Fri May 10 08:41:07 [initandlisten] connection accepted from 10.100.9.01:59322 #237
31578700/47671793 66%
Fri May 10 08:41:17 [initandlisten] connection accepted from 10.100.9.02:47279 #238
Fri May 10 08:41:18 [initandlisten] connection accepted from 10.100.9.01:59326 #239
33645500/47671793 70%
Fri May 10 08:41:19 [initandlisten] connection accepted from 10.100.9.01:59327 #240
Fri May 10 08:41:19 [initandlisten] connection accepted from 10.100.9.01:59328 #241
35710000/47671793 74%
Fri May 10 08:41:29 [initandlisten] connection accepted from 10.100.9.02:47284 #242
Fri May 10 08:41:29 [initandlisten] connection accepted from 10.100.10.199:54327 #243
Fri May 10 08:41:38 [conn247] end connection 10.88.49.124:49908
Fri May 10 08:41:41 [initandlisten] connection accepted from 10.100.9.xx:47293 #248
38000000/47671793 79%
Fri May 10 08:41:42 [initandlisten] connection accepted from 10.100.9.01:59345 #249
Fri May 10 08:41:43 [initandlisten] connection accepted from 10.100.9.01:59347 #250
Fri May 10 08:41:43 [initandlisten] connection accepted from 10.100.9.01:59348 #251
40000000/47671793 83%
Fri May 10 08:41:53 [initandlisten] connection accepted from 10.100.9.02:47295 #252
Fri May 10 08:41:53 [initandlisten] connection accepted from 10.100.9.02:47296 #253
Fri May 10 08:41:53 [conn252] end connection 10.100.9.75:47295
Fri May 10 08:41:54 [initandlisten] connection accepted from 10.100.9.01:59349 #254
Fri May 10 08:41:54 [initandlisten] connection accepted from 10.100.9.01:59350 #255
Fri May 10 08:41:54 [conn254] end connection 10.100.9.74:59349
Fri May 10 08:41:55 [initandlisten] connection accepted from 10.100.9.01:59351 #256
Fri May 10 08:41:55 [initandlisten] connection accepted from 10.100.9.01:59352 #257
Fri May 10 08:41:55 [conn256] end connection 10.100.9.74:59351
Fri May 10 08:41:55 [initandlisten] connection accepted from 10.100.9.01:59353 #258
Fri May 10 08:41:55 [conn257] end connection 10.100.9.74:59352
Fri May 10 08:41:55 [initandlisten] connection accepted from 10.100.9.01:59354 #259
42000000/47671793 88%
Fri May 10 08:42:05 [initandlisten] connection accepted from 10.100.9.02:47302 #260
Fri May 10 08:42:06 [initandlisten] connection accepted from 10.100.9.01:59361 #261
Fri May 10 08:42:07 [initandlisten] connection accepted from 10.100.9.01:59362 #262
Fri May 10 08:42:07 [initandlisten] connection accepted from 10.100.9.01:59363 #263
44000000/47671793 92%
看到了有没有,正在传输数据呢,do not worry, just wait for a moment !
OK, 5分钟之后 ,rs.status(); 一切正常。
不得不感叹,开源的事情,生命力强悍啊,让我胆战心惊!