We have had a mongodb running fine for a few weeks and all of sudden it has gone down.
We are unable to start it back up as it is complaining that the dbpath (/data/db/) does not exist
. I've tried routing through the documentation and have seen others suggest using the dbpath flag, however still no luck.
We are starting it with sudo service mongodb start
and the config file dbpath config points to a directory with our db in.
Any advice would be greatly appreciated.
Best Answer
Since you are running out of space for the journal files, here is what the docs says:
journal
journalCommitInterval
For more clarification, please read Recover MongoDB Data following Unexpected Shutdown. You may need to run
validate()
on your data collections to verify integrity.You should also read about Journaling
SUGGESTIONS
If different block devices provide the journal and data files the default journal commit interval is 30 milliseconds.