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;)
精彩评论