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