Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install a mongodb instance with a lot of data storage. We have a Lustre FS with hundreds of terabytes, but when monogdb start show me this error:

Mon Jul 15 12:06:50.898 [initandlisten] exception in initAndListen: 10310 Unable to lock file: /var/lib/mongodb/mongod.lock. Is a mongod instance already running?, terminating
Mon Jul 15 12:06:50.898 dbexit: 

But the permissions should be fine:

# ls -lart /project/mongodb/
total 8
drwxr-xr-x 19 root   root   4096 Jul 15 11:12 ..
-rwxr-xr-x  1 mongod mongod    0 Jul 15 11:54 mongod.lock
drwxr-xr-x  2 mongod mongod 4096 Jul 15 12:10 .

And no other running process:

# ps -fu mongod

Has anyone done this (Lustre+mongodb)?

share|improve this question

Just delete the existing mongod.lock file and it should take care of everything. If mongodb doesnt exit gracefully it wont clean this file up when it exits so it thinks something may still be running.

share|improve this answer
I have already tried that :( – UnixEng Jul 17 '13 at 5:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.