开发者

Mongodb repair problem

There is a problem about Mongodb.Our version is MongoDB version 1.6.4.

Yesterday I had to kill mongodb process in our 64 bit linux machine. Then queries were running so long开发者_C百科 time.

I checked with;

mongod --repair or ->db.repairDatabase() command and I checked repair with

->db.users.validate();

the result must be "...."result" : " validate"..." but,

returns : { "errmsg" : "ns not found", "ok" : 0, "valid" : false }

How can I fix this error message ?


Maybe try check this comment. But it can be probably hard to solve problem and it is easier to start over as suggested here.

I suggest to upgrade mongodb to 1.8.x and start it with --journal option. No more repairs should be needed then;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜