codingstandards 发表于 2013-1-12 13:26:33

MongoDB非正常关闭后修复记录

MongoDB非正常关闭后修复记录

mongod没有后台执行,在终端连接非正常断开后,再次执行mongod报错,如下所示:
# ./mongod
./mongod --help for help and startup options
Tue Oct 25 19:49:02
Tue Oct 25 19:49:02 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
Tue Oct 25 19:49:02
Tue Oct 25 19:49:02 MongoDB starting : pid=13626 port=27017 dbpath=/data/db/ 32-bit host=sunrise16
Tue Oct 25 19:49:02
Tue Oct 25 19:49:02 ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
Tue Oct 25 19:49:02 **       see http://blog.mongodb.org/post/137788967/32-bit-limitations
Tue Oct 25 19:49:02 **       with --journal, the limit is lower
Tue Oct 25 19:49:02
Tue Oct 25 19:49:02 db version v2.0.0, pdfile version 4.5
Tue Oct 25 19:49:02 git version: 695c67dff0ffc361b8568a13366f027caa406222
Tue Oct 25 19:49:02 build info: Linux domU-12-31-39-01-70-B4 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 BOOST_LIB_VERSION=1_37
Tue Oct 25 19:49:02 options: {}
**************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
*************
Tue Oct 25 19:49:02 exception in initAndListen: 12596 old lock file, terminating
Tue Oct 25 19:49:02 dbexit:
Tue Oct 25 19:49:02 shutdown: going to close listening sockets...
Tue Oct 25 19:49:02 shutdown: going to flush diaglog...
Tue Oct 25 19:49:02 shutdown: going to close sockets...
Tue Oct 25 19:49:02 shutdown: waiting for fs preallocator...
Tue Oct 25 19:49:02 shutdown: closing all files...
Tue Oct 25 19:49:02 closeAllFiles() finished
Tue Oct 25 19:49:02 dbexit: really exiting now
 
<div class="quote_title">http://www.mongodb.org/display/DOCS/Durability+and+Repair#DurabilityandRepair-RepairCommand 写道
页: [1]
查看完整版本: MongoDB非正常关闭后修复记录