Wednesday, January 13, 2016

Mongodb recovery after system crash

If mongodb is terminating siting old lock file reasons, it is because of it was not properly shutdown on previous instance due to system crash.

You can use following commands in linux to fix it

sudo -u mongodb mongod --repair --dbpath /var/lib/mongodb/
sudo service mongodb start

No comments:

Subscribe free via email

Enter your email address:

Delivered by FeedBurner

...