Hi there,
I had conact with the MongoDB Support and we solved the issue.
We are running MongoDB with the DBPath set to an NFS share.
The server is able to access the share and can create and read files there.
When I unmounted the NFS share and started MongoDB again, it was working.
The DBPath was now pointing on the partition on the server itself.
After this I created an empty NFS Share and tried it there as well, but with the result, that it did not work.
No database was created. Just the mongod.lock file was written.
I found this error message in /var/log/syslog.
Apr 24 10:44:24 Server kernel: [4830863.552178] lockd: server <NFS Server> not responding, still trying
I added a rule at the firewall between the server and the NFS server that allowed anything.
After restarting the service it did work and I got this message in the syslog.
Apr 24 10:44:24 Server kernel: [4830863.554797] lockd: server <NFS Server> OK
In the log of the Firewall I found a connection from the MongoDB server to the NFS server on port 4045 UDP.
The Port is used for NFS lock daemon/manager.
I added the port to the firewall rule and restarted the service.
Now everything is working just fine again.
Thank you for having a look at our issue.
Best regards Florian