Operations on a File System Fail With Error: 37: No Locks Available

Operations on the file system sometimes fail with Linux-x86_64 Error: 37: No locks available.

Cause: The rpc-statd service and lockd daemon are not running on the client.

Solution: Enable and start the rpc-statd service to initialize the lockd service:
  1. Open a terminal window on the instance and use the following commands to enable the rpc-statd service:
    $sudo systemctl status rpc-statd 
    $sudo systemctl enable rpc-statd 
    $sudo systemctl start rpc-statd 
    $sudo systemctl status rpc-statd