xref: /netbsd/usr.sbin/rpc.lockd/rpc.lockd.8 (revision e684a528)
1*e684a528Swiz.\"	$NetBSD: rpc.lockd.8,v 1.8 2012/08/13 12:37:05 wiz Exp $
2a6fdc939Sscottr.\"
3a6fdc939Sscottr.\" Copyright (c) 1995 A.R.Gordon, andrew.gordon@net-tel.co.uk
4a6fdc939Sscottr.\" All rights reserved.
5a6fdc939Sscottr.\"
6a6fdc939Sscottr.\" Redistribution and use in source and binary forms, with or without
7a6fdc939Sscottr.\" modification, are permitted provided that the following conditions
8a6fdc939Sscottr.\" are met:
9a6fdc939Sscottr.\" 1. Redistributions of source code must retain the above copyright
10a6fdc939Sscottr.\"    notice, this list of conditions and the following disclaimer.
11a6fdc939Sscottr.\" 2. Redistributions in binary form must reproduce the above copyright
12a6fdc939Sscottr.\"    notice, this list of conditions and the following disclaimer in the
13a6fdc939Sscottr.\"    documentation and/or other materials provided with the distribution.
14a6fdc939Sscottr.\" 3. All advertising materials mentioning features or use of this software
15a6fdc939Sscottr.\"    must display the following acknowledgement:
16a6fdc939Sscottr.\"	This product includes software developed by the University of
17a6fdc939Sscottr.\"	California, Berkeley and its contributors.
18a6fdc939Sscottr.\" 4. Neither the name of the University nor the names of its contributors
19a6fdc939Sscottr.\"    may be used to endorse or promote products derived from this software
20a6fdc939Sscottr.\"    without specific prior written permission.
21a6fdc939Sscottr.\"
22a6fdc939Sscottr.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23a6fdc939Sscottr.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24a6fdc939Sscottr.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25a6fdc939Sscottr.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26a6fdc939Sscottr.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27a6fdc939Sscottr.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28a6fdc939Sscottr.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29a6fdc939Sscottr.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30a6fdc939Sscottr.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31a6fdc939Sscottr.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32a6fdc939Sscottr.\" SUCH DAMAGE.
33a6fdc939Sscottr.\"
34a6fdc939Sscottr.\"
3580fd8714Spgoyette.Dd August 11, 2012
36a6fdc939Sscottr.Dt RPC.LOCKD 8
37a6fdc939Sscottr.Os
38a6fdc939Sscottr.Sh NAME
39a6fdc939Sscottr.Nm rpc.lockd
40a6fdc939Sscottr.Nd NFS file locking daemon
41a6fdc939Sscottr.Sh SYNOPSIS
42a6fdc939Sscottr.Nm
4380fd8714Spgoyette.Op Fl 46
44*e684a528Swiz.Op Fl d Ar debug_level
45*e684a528Swiz.Op Fl g Ar grace_period
46a6fdc939Sscottr.Sh DESCRIPTION
47a6fdc939SscottrThe
48a6fdc939Sscottr.Nm
49a6fdc939Sscottrdaemon provides monitored and unmonitored file and record locking services
50*e684a528Swizin an NFS environment.
51*e684a528SwizTo monitor the status of hosts requesting locks, the locking daemon
52*e684a528Swiztypically operates in conjunction with
53a6fdc939Sscottr.Xr rpc.statd 8 .
54a6fdc939Sscottr.Pp
55a6fdc939SscottrOptions and operands available for
56*e684a528Swiz.Nm :
57*e684a528Swiz.Bl -tag -width XgXgrace_periodXX
5880fd8714Spgoyette.It Fl 4
5980fd8714SpgoyetteListen for requests using IPv4.
6080fd8714SpgoyetteDo not listen using IPv6 unless the
6180fd8714Spgoyette.Fl 6
6280fd8714Spgoyetteoption is also specified.
6380fd8714SpgoyetteBy default,
6480fd8714Spgoyette.Nm
6580fd8714Spgoyettelistens for requests using both IPv4 and IPv6 if available.
6680fd8714Spgoyette.It Fl 6
6780fd8714SpgoyetteListen for requests using IPv6.
6880fd8714SpgoyetteIt is an error if IPv6 is not available.
69*e684a528Swiz.It Fl d Ar debug_level
70*e684a528SwizCause debugging information to be written to syslog, recording all
71*e684a528SwizRPC transactions to the daemon.
72*e684a528SwizThese messages are logged with level
73*e684a528Swiz.Dv LOG_DEBUG
74*e684a528Swizand facility
75*e684a528Swiz.Dv LOG_DAEMON .
76*e684a528SwizSpecifying a
77*e684a528Swiz.Ar debug_level
78*e684a528Swizof 1 results in the generation of one log line per protocol operation.
79*e684a528SwizHigher debug levels can be specified, causing display of operation
80*e684a528Swizarguments and internal operations of the daemon.
81*e684a528Swiz.It Fl g Ar grace_period
82*e684a528SwizSet the grace period (in seconds) to
83*e684a528Swiz.Ar grace_period .
84*e684a528SwizDuring the grace period
85*e684a528Swiz.Nm
86*e684a528Swizonly accepts requests from hosts which are reinitialising locks which
87*e684a528Swizexisted before the server restarted.
88*e684a528SwizDefault is 30 seconds.
89a6fdc939Sscottr.El
90a6fdc939Sscottr.Pp
91a6fdc939SscottrError conditions are logged to syslog, irrespective of the debug level,
92*e684a528Swizusing log level
93*e684a528Swiz.Dv LOG_ERR
94*e684a528Swizand facility
95*e684a528Swiz.Dv LOG_DAEMON .
96a6fdc939Sscottr.Pp
97a6fdc939SscottrThe
98a6fdc939Sscottr.Nm
99a6fdc939Sscottrdaemon must NOT be invoked by
100a6fdc939Sscottr.Xr inetd 8
101a6fdc939Sscottrbecause the protocol assumes that the daemon will run from system start time.
102a6fdc939SscottrInstead, it should be configured in
103a6fdc939Sscottr.Xr rc.conf 5
104a6fdc939Sscottrto run at system startup.
105a6fdc939Sscottr.Sh FILES
106a6fdc939Sscottr.Bl -tag -width /usr/include/rpcsvc/nlm_prot.x -compact
107a6fdc939Sscottr.It Pa /usr/include/rpcsvc/nlm_prot.x
108a6fdc939SscottrRPC protocol specification for the network lock manager protocol.
109a6fdc939Sscottr.El
110a6fdc939Sscottr.Sh SEE ALSO
111a6fdc939Sscottr.Xr syslog 3 ,
112a6fdc939Sscottr.Xr rc.conf 5 ,
113a6fdc939Sscottr.Xr rpc.statd 8
114146392e1Swiz.Sh STANDARDS
115146392e1SwizThe implementation is based on the specification in X/Open CAE Specification
116*e684a528SwizC218, "Protocols for X/Open PC Interworking: XNFS, Issue 4", ISBN 1 872630 66 9.
117146392e1Swiz.Sh HISTORY
118146392e1SwizA version of
119146392e1Swiz.Nm
120146392e1Swizappeared in
121146392e1Swiz.Tn SunOS 4 .
122a6fdc939Sscottr.Sh BUGS
123a6fdc939SscottrThe current implementation provides only the server side of the protocol
124*e684a528Swiz(i.e., clients running other OS types can establish locks on a
12534a98169Sperry.Nx
126*e684a528Swizfileserver, but there is currently no means for a
12734a98169Sperry.Nx
12834a98169Sperryclient to establish locks).
129a6fdc939Sscottr.Pp
130*e684a528SwizThe current implementation serialises lock requests that could be shared.
131