mongo崩溃修复 --journal enabled when journal/ files are present, terminating

version:3.2.5日志

exception: exception in initAndListen: 13597 can't start without --journal enabled when journal/ files are present, terminatingcode

解决方法it

1.删除 journal 文件夹io

2.执行List

./mongod --repair --dbpath xxxx --storageEngine=mmapv1 --nojournalfile

会出现如下日志exception

2017-05-27T16:14:55.258+0800 I STORAGE  [FileAllocator] allocating new datafile /home/gongbg/mongo_data/data/shard/_tmp_repairDatabase_0/local.1, filling with zeroes...
2017-05-27T16:14:55.271+0800 I STORAGE  [FileAllocator] done allocating datafile /home/gongbg/mongo_data/data/shard/_tmp_repairDatabase_0/local.1, size: 2047MB,  took 0.013 secs

等所有执行完成以后,此问题就修复成功了。map

相关文章
相关标签/搜索