简体   繁体   中英

MongoDB Insufficient free space for journal files

I have installed a standalone mongo 2.6 in amazon ec2. The instance has reach the limit of disk space and it doesnt run now. I have set before the smallfiles=true in mongod.conf file, but for some reason this doesn't work neither. The log file says:

2015-03-12T19:41:26.881+0000 [initandlisten] ERROR: Insufficient free space for journal files 2015-03-12T19:41:26.881+0000 [initandlisten] Please make at least 422MB available in /data/journal or use --smallfiles 2015-03-12T19:41:26.881+0000 [initandlisten] 2015-03-12T19:41:26.881+0000 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating

I tried to set journal path in another volume >

sudo ln -s /journal /data/journal

But this doesn't work neither and logs the same error above :(

I want to mantain the /data (with all dbs files) in the same disk , I only want to move the journal path to another disk , is that possible? Please , any help is welcome!

pd: I used before tune2fs for get more space , but now I don't have it.

ec2已升级了其存储限制容量,所以我也设法解决了此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM