Unable to lock files on VxFS filesystems exported using NFS

book

Article ID: 100006025

calendar_today

Updated On:

Description

Error Message

Fcntl syscall returns an error stating it is not possible to lock the given file on any VxFS file systems which are mounting via NFS.

Cause

The lockd process not running on both NFS server and NFS client systems.

Resolution

Check that on NFS server and NFS client machines the "lockd" process is running.
If no lockd is running it will not be possible to acquire any locks on the NFS exported filesystems. regardless of the filesystem type (UFS/VxFS).
To check if lockd is running and if not, to start it, run the below commands on all systems (NFS  server and NFS  clients):

# ps -ef | grep lockd | grep -v grep    #  If no lockd PID is returned continue running the below
# /usr/lib/nfs/lockd

 

Note! For details about the lockd process and how it works please refer to the lockd(1M) Man page.


Issue/Introduction

On all the VxFS filesystems exported via NFS it is not possible to lock any files.