i need install mongodb instance lot of data storage. have lustre fs hundreds of terabytes, when monogdb start show me error:
mon jul 15 12:06:50.898 [initandlisten] exception in initandlisten: 10310 unable lock file: /var/lib/mongodb/mongod.lock. mongod instance running?, terminating mon jul 15 12:06:50.898 dbexit:
but permissions should 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 uid pid ppid c stime tty time cmd #
has done (lustre+mongodb)?
# rm mongod.lock rm: remove regular empty file `mongod.lock'? y # ls -lrt total 0 # ls -lart total 8 drwxr-xr-x 19 root root 4096 jul 15 11:12 .. drwxr-xr-x 2 mongod mongod 4096 jul 15 12:10 . # ps aux | grep mongod root 25865 0.0 0.0 103296 884 pts/15 s+ 13:04 0:00 grep mongod # service mongod start starting mongod: fork child process, waiting until server ready connections. forked process: 25935 output going to: /var/log/mongo/mongod.log error: child process failed, exited error number 100 [failed]
i realize old question, feel should set record straight.
mongodb, or db or application can run against lustre file system without issues. however, default, lustre clients do not explicitly set user_xattr or flock (enable).
having set -o flock
or -o localflock
while mounting file system have resolved issue.
Comments
Post a Comment