MongoDB failed to lock file on OpenShift using NFS file system

Summary This page documented the investigation of an issue: MongoDB Pod failed to lock mongod.lock on OpenShift/OKDv4. The problem was because NFSv3 was used to mount between OKDv4 Worker Nodes to the NFS server. MongoDB used internally flock/fcntl to lock the mongod.lock file descriptor. In a network file system like NFSv3, locking support was required … Continue reading MongoDB failed to lock file on OpenShift using NFS file system