Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fcntl(2)

lockf(3)

signal(3)

statd(8c)

lockd(8c)

Name

lockd − network lock daemon

Syntax

/usr/etc/lockd [ −t timeout ] [ −g graceperiod ]

Description

The lockd daemon processes lock requests that are either sent locally by the kernel or remotely by another lock daemon. The NFS locking service makes this advisory locking support possible by using the fcntl system call and the lockf subroutine. The lockd daemon forwards lock requests for remote data to the server site’s lock daemon. The lockd daemon then requests the status monitor daemon, statd, for monitor service. The reply to the lock request is not sent to the kernel until the status daemon and the server site’s lock daemon have replied.

If either the status monitor or server site’s lock daemon is unavailable, the reply to a lock request for remote data is delayed until all daemons become available. 

When a server recovers, it waits for a grace period for all client site lockd daemons to submit reclaim requests.  Client site lockd daemons are notified by statd of the server recovery and promptly resubmit previously granted lock requests.  If a client site’s lockd daemon fails to secure previously granted locks at the server site, the lockd daemon sends the signal SIGLOST to all the processes that were previously holding locks and cannot reclaim them.

Options

−t timeoutThe lockd daemon uses timeout (in seconds) as the interval instead of the default value of 15 seconds to retransmit a lock request to the remote server. 

−g graceperiodThe lockd daemon uses graceperiod (in seconds) as the grace period duration instead of the default value of 45 seconds. 

See Also

fcntl(2), lockf(3), signal(3), statd(8c)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026