I've reached a point where mongo fails to start because there's no enough free disk space. The log suggests using the --smallfiles
option to start the mongod service.
So, I have two options, either make the hard drive bigger (it's an Amazon free instance) or doing what the mongodb log suggested.
Would data get corrupted if I enable --smallfiles
for an existing mongo instance? I wouldn't want to lose any data.
--smallfiles
got removed in mongodb 4.2 anyways (just if someone is still looking for something like this).