Repair MongoDB after an unclean shutdown

This was on an Ubuntu 14.04 VM:

vagrant@vagrant-ubuntu-trusty-64:~$ sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb

One thought on “Repair MongoDB after an unclean shutdown

Leave a Reply

Your email address will not be published. Required fields are marked *