4

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] 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.

  • Rather than running your server down to the last available byte, I would recommend attaching a larger EBS volume and moving your dbpath to this. If you're that low on disk space you're living very dangerously ;-). – Stennie Mar 19 '15 at 3:19
3

I got the solution by typing the mongod --smallfiles

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.