mongoDB意外关闭重启

线上一台mongoDB意外关闭,重启的时候报错:

old lock file: /duitang/dist/sys/mongodb/mydb/mongod.lock.  probably means unclean shutdown,
but there are no journal files to recover.
this is likely human error or filesystem corruption.
found 17 dbs.
see: http://dochub.mongodb.org/core/repair for more information

需要删掉/duitang/dist/sys/mongodb/mydb/mongod.lock, 并通过/duitang/dist/sys/mongodb/bin/mongod  --repair 然后启动。

重启:numactl --interleave=all /duitang/dist/sys/mongodb/bin/mongod -f /duitang/dist/conf/mongodb/mongodb.conf 

猜你喜欢

转载自san-yun.iteye.com/blog/1740360