Fix error: mongod dead but subsys locked

Vuong Tran
1 min readOct 26, 2016

--

I use mongodb v3.2 on CentOS 6, just restart mongod service and got error mongod dead but subsys locked . Humm…

How I fixd it.

  1. Stop service mongod: service mongod stop
  2. Add following in config file: vim /etc/mongod.conf
storage:
mmapv1:
smallFiles: true
Same in my mongod.conf file

3. Restart mongod service: service mongod restart — config /etc/mongod.conf

That’s it!
Happy coding

--

--