Networking Guide
Chapter 12, Configuring the Network File System (NFS)

Remote file locking

Remote file locking

With remote file locking, only one user or process can use a file at a time. Remote file locking allows for file locking and file sharing by NFS clients, and for the automatic maintenance of those locks in the event of a client or server crash. The following sections describe how remote file locking works, how to configure it for your network, and how to troubleshoot it.

Two RPC-based daemons interact to effect file locks: lockd and statd. lockd is the Network Lock Manager and statd is the Network Status Monitor. The following sections describe how they interact to lock files.