My mongo has stopped running:
$ sudo systemctl status mongodb.service
● mongodb.service - High-performance, schema-free document-oriented database
Loaded: loaded (/usr/lib/systemd/system/mongodb.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-01-05 02:26:08 GMT; 8min ago
Process: 27887 ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf (code=exited, status=1/FAILURE)
Main PID: 27887 (code=exited, status=1/FAILURE)
Jan 05 02:26:08 localhost systemd[1]: Started High-performance, schema-free document-oriented database.
Jan 05 02:26:08 localhost systemd[1]: mongodb.service: Main process exited, code=exited, status=1/FAILURE
Jan 05 02:26:08 localhost systemd[1]: mongodb.service: Unit entered failed state.
Jan 05 02:26:08 localhost systemd[1]: mongodb.service: Failed with result 'exit-code'.
I think probably it is running out of space:
$ df -h /var/lib/mongodb/
Filesystem Size Used Avail Use% Mounted on
/dev/root 38G 38G 0 100% /
How can I fix this? Can we increase the the size for it?
I am on Arch Linux, from its wiki:
Check that there is at least 3GB space available for its journal files, otherwise mongodb can fail to start (without issuing a message to the user):
$ df -h /var/lib/mongodb/
Or is it /dev/root
that I should increase (how do I increase it)?
Any ideas?