Linux下mongo启动报:Insufficient free space for journal files
2014-12-01 11:14
555 查看
Linux下mongo启动报:Insufficient free space for journal files
原因是因为mongo的journa目录下空间小于3379MB,具体Log如下:
***** SERVER RESTARTED *****
Mon Dec 1 09:47:31 [initandlisten] MongoDB starting : pid=3400 port=27017 dbpath=/home/mongodb/data 64-bit host=pera611
Mon Dec 1 09:47:31 [initandlisten] db version v2.2.2, pdfile version 4.5
Mon Dec 1 09:47:31 [initandlisten] git version: d1b43b61a5308c4ad0679d34b262c5af9d664267
Mon Dec 1 09:47:31 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Mon Dec 1 09:47:31 [initandlisten] options: { dbpath: "/home/mongodb/data", fork: true, logappend: true, logpath: "/home/mongodb/mongolog/mongod.log", port: 27017 }
Mon Dec 1 09:47:31 [initandlisten] journal dir=/home/mongodb/data/journal
Mon Dec 1 09:47:31 [initandlisten] recover : no journal files present, no recovery needed
Mon Dec 1 09:47:31 [initandlisten]
Mon Dec 1 09:47:31 [initandlisten] ERROR: Insufficient free space for journal files
Mon Dec 1 09:47:31 [initandlisten] Please make at least 3379MB available in /home/mongodb/data/journal or use --smallfiles
Mon Dec 1 09:47:31 [initandlisten]
Mon Dec 1 09:47:31 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
Mon Dec 1 09:47:31 dbexit:
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to close listening sockets...
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to flush diaglog...
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to close sockets...
Mon Dec 1 09:47:31 [initandlisten] shutdown: waiting for fs preallocator...
Mon Dec 1 09:47:31 [initandlisten] shutdown: lock for final commit...
Mon Dec 1 09:47:31 [initandlisten] shutdown: final commit...
Mon Dec 1 09:47:31 [initandlisten] shutdown: closing all files...
Mon Dec 1 09:47:31 [initandlisten] closeAllFiles() finished
Mon Dec 1 09:47:31 [initandlisten] journalCleanup...
Mon Dec 1 09:47:31 [initandlisten] removeJournalFiles
Mon Dec 1 09:47:31 [initandlisten] shutdown: removing fs lock...
Mon Dec 1 09:47:31 dbexit: really exiting now
解决办法:
错误原因和解决办法在该LOG中已经说的很清楚了,认真读下可以发现: Please make at least 3379MB available in /home/mongodb/data/journal or use --smallfiles
所以此次我是加了--smallfiles
# ./mongod -port 27017 --logpath /home/mongodb/mongolog/mongod.log --dbpath /home/mongodb/data --fork --logappend --smallfiles
原因是因为mongo的journa目录下空间小于3379MB,具体Log如下:
***** SERVER RESTARTED *****
Mon Dec 1 09:47:31 [initandlisten] MongoDB starting : pid=3400 port=27017 dbpath=/home/mongodb/data 64-bit host=pera611
Mon Dec 1 09:47:31 [initandlisten] db version v2.2.2, pdfile version 4.5
Mon Dec 1 09:47:31 [initandlisten] git version: d1b43b61a5308c4ad0679d34b262c5af9d664267
Mon Dec 1 09:47:31 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Mon Dec 1 09:47:31 [initandlisten] options: { dbpath: "/home/mongodb/data", fork: true, logappend: true, logpath: "/home/mongodb/mongolog/mongod.log", port: 27017 }
Mon Dec 1 09:47:31 [initandlisten] journal dir=/home/mongodb/data/journal
Mon Dec 1 09:47:31 [initandlisten] recover : no journal files present, no recovery needed
Mon Dec 1 09:47:31 [initandlisten]
Mon Dec 1 09:47:31 [initandlisten] ERROR: Insufficient free space for journal files
Mon Dec 1 09:47:31 [initandlisten] Please make at least 3379MB available in /home/mongodb/data/journal or use --smallfiles
Mon Dec 1 09:47:31 [initandlisten]
Mon Dec 1 09:47:31 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
Mon Dec 1 09:47:31 dbexit:
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to close listening sockets...
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to flush diaglog...
Mon Dec 1 09:47:31 [initandlisten] shutdown: going to close sockets...
Mon Dec 1 09:47:31 [initandlisten] shutdown: waiting for fs preallocator...
Mon Dec 1 09:47:31 [initandlisten] shutdown: lock for final commit...
Mon Dec 1 09:47:31 [initandlisten] shutdown: final commit...
Mon Dec 1 09:47:31 [initandlisten] shutdown: closing all files...
Mon Dec 1 09:47:31 [initandlisten] closeAllFiles() finished
Mon Dec 1 09:47:31 [initandlisten] journalCleanup...
Mon Dec 1 09:47:31 [initandlisten] removeJournalFiles
Mon Dec 1 09:47:31 [initandlisten] shutdown: removing fs lock...
Mon Dec 1 09:47:31 dbexit: really exiting now
解决办法:
错误原因和解决办法在该LOG中已经说的很清楚了,认真读下可以发现: Please make at least 3379MB available in /home/mongodb/data/journal or use --smallfiles
所以此次我是加了--smallfiles
# ./mongod -port 27017 --logpath /home/mongodb/mongolog/mongod.log --dbpath /home/mongodb/data --fork --logappend --smallfiles
相关文章推荐
- Linux-004-解决 Tomcat 启动时提示 Insufficient space for shared memory file
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- Tomcat8启动报there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
- tomcat服务启动异常:Insufficient space for shared memory file
- 磁盘爆满导致MySQL无法启动:Disk is full writing './mysql-bin.~rec~' (Errcode: 28). Waiting for someone to free space...
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- tomcat部署jenkins启动报错:insufficient free space available after evicting expired cache entries-consider increasing the maximum size of the cache.
- Top 7 Free SFTP or SCP Clients for Windows (Transfer Files to Linux)
- linux Apache启动提示 httpd: apr_sockaddr_info_get() failed for apache
- Linux 2.6.38.4: User-space interface for Crypto API
- 启动linux时在Enabling Swap Space都要停留时间很长
- Oracle 监听无法启动 TNS-12540: TNS:internal limit restrictionexceeded Linux Error: 28: No space left 处理方法
- Matlab for Linux的安装笔记和启动过程中的问题解决
- 戴尔Compellent/Red Hat Linux原生的可用空间恢复功能(Native Free Space Recovery)
- adb shell 无法启动 (insufficient permissions for device)
- 解决系统集成中X无法启动waiting for X server to shut down FreeFontPath
- TQ2440上移植linux2.6.25时启动linux中free init 120kB 后卡住
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法