DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

lockd(NADM)


lockd -- network lock daemon

Syntax

/etc/lockd [ -b block_timeout ] [ -d debuglevel ] [ -g graceperiod ]
[ -l k2utimeout ] [ -t ntcpservers ] [ -u nudpservers ] [ nudpservers ]

Description

lockd is the Network Lock Manager (NLM) server daemon which processes lock requests that are either sent locally by the kernel or remotely by another lock daemon. The number of server daemon processes allocated is determined by the -t, -u, or nudpservers options. This number should be based on the load expected on this server.

lockd forwards lock requests for remote data to the remote server's lock daemon through the RPC/XDR(NS) package. lockd then requests the status monitor daemon, statd(NADM), for monitor service. The reply to the lock request will not be sent to the kernel until the status daemon and the remote server's lock daemon have replied.

If either the status monitor or remote server'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 lock managers to submit reclaim requests. On the other hand, client site lock managers are notified by the status monitor of the server's recovery and promptly resubmit previously granted lock requests. If lockd fails to secure a previously granted lock at the remote server, lockd sends a deadlock signal SIGUSR2 to a process.

Options


-b block_timeout
lockd will use block_timeout (seconds) as the interval instead of the default value (5 seconds) to retransmit a blocked lock request to the remote server.

-d debuglevel
lockd has extensive internal reporting capabilities. A level of 2 will report significant events. A level of 4 will report internal state and all lock request traffic in verbose form.

-g graceperiod
lockd will use graceperiod (seconds) as the grace period duration instead of the default value (45 seconds).

-l k2utimeout
lockd will use k2utimeout (seconds) as the interval instead of the default value (2 seconds) to retransmit kernel lock manager requests. This is the timeout value used for local lock requests.

-t ntcpservers
ntcpservers is the number of daemon processes allocated to handle lockd requests transmitted via TCP. The default value is one.

-u nudpservers
nudpservers is the number of daemon processes allocated to handle lockd requests transmitted via UDP. The default value is one.

nudpservers
nudpservers is the number of daemon processes allocated to handle lockd requests transmitted via UDP (older syntax replaced by -u option).

See also

fcntl(S), lockf(S), signal(S), statd(NADM)
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003