我已经看到这个问题问了几次,但目前没有任何对我有用的东西。所以从它是错误消息:aws ec2 - Mongodb EROR:日志文件的可用空间不足
Tue May 31 16:06:09.566 [initandlisten] ERROR: Insufficient free space for journal files
Tue May 31 16:06:09.566 [initandlisten] Please make at least 3379MB available in data/journal or use --smallfiles
我的数据库称为data
所以当我运行mongod
我需要在我的数据库处于使得我运行通过mongod --dbpath data/
我试过附加--smallfiles
以及与此结束:
Tue May 31 16:07:10.268 [FileAllocator] error: failed to allocate new file: data/local.ns size: 16777216 boost::filesystem::create_directory: No space left on device: "data/_tmp". will try again in 10 seconds
我遇到了这个答案Why getting error mongod dead but subsys locked and Insufficient free space for journal files on Linux?它告诉我添加smallfiles = true
到mongodb.conf
文件,我已经和仍然得到问题。
因为我不知道如何解决这个问题,我试着从t2.micro
增加我的实例m4.large
,我仍然没有足够的可用空间越来越错误。
有没有人知道我能做些什么来解决这个问题?
干杯! :)这固定我的问题! – PourMeSomeCode