我已经安装了mongo-10gen mongo-10gen-server在Linux CentOS服务器上 server。
我遵循链接中的步骤。
我已经将/etc/mongod.conf配置为-
logpath=/var/log/mongo/mongod.log
port=27017
dbpath=/var/lib/mongo
我在iptables中为mongo设置了端口27017 。要启动mongo,我使用了命令-
service mongod start and
mongo
一切顺利,但是几天后我收到了错误消息-
Tue Jan 29 08:41:54 [initandlisten] ERROR: Insufficient free space for journal files
Tue Jan 29 08:41:54 [initandlisten] Please make at least 3379MB available in /var/lib/mongo/journal or use --smallfiles
Tue Jan 29 08:41:54 [initandlisten]
Tue Jan 29 08:41:54 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
Tue Jan 29 08:41:54 dbexit:
Tue Jan 29 08:41:54 [initandlisten] shutdown: going to close listening sockets...
Tue Jan 29 08:41:54 [initandlisten] shutdown: going to flush diaglog...
Tue Jan 29 08:41:54 [initandlisten] shutdown: going to close sockets...
Tue Jan 29 08:41:54 [initandlisten] shutdown: waiting for fs preallocator...
Tue Jan 29 08:41:54 [initandlisten] shutdown: lock for final commit...
Tue Jan 29 08:41:54 [initandlisten] shutdown: final commit...
Tue Jan 29 08:41:54 [initandlisten] shutdown: closing all files...
Tue Jan 29 08:41:54 [initandlisten] closeAllFiles() finished
Tue Jan 29 08:41:54 [initandlisten] journalCleanup...
Tue Jan 29 08:41:54 [initandlisten] removeJournalFiles
Tue Jan 29 08:41:54 [initandlisten] shutdown: removing fs lock...
Tue Jan 29 08:41:54 dbexit: really exiting now
当我执行命令时-
service mongod status
它给出了错误-
mongod dead but subsys locked
请帮助我解决mongod死但子系统已锁定以及期刊可用空间不足的问题,从而终止
/var/lib/mongo/journal
需要的3.3GB文件,因此无法启动。