Add documentation about NFSlocking.
PR: docs/103956 Submitted by: novel Facilitated by: Snow B.V.
This commit is contained in:
parent
a6de994932
commit
cd9d242a13
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28844
1 changed files with 26 additions and 0 deletions
|
@ -821,6 +821,32 @@ mountd_flags="-r"</programlisting>
|
||||||
options.</para>
|
options.</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>Locking</title>
|
||||||
|
|
||||||
|
<para>Some applications (e.g. <application>mutt</application>)
|
||||||
|
require file locking to operate correctly. In the case of
|
||||||
|
<acronym>NFS</acronym>, <application>rpc.lockd</application>
|
||||||
|
can be used for file locking. To enable it, add the following
|
||||||
|
to the <filename>/etc/rc.conf</filename> file on both client
|
||||||
|
and server (it is assumed that the <acronym>NFS</acronym>
|
||||||
|
client and server are configured already):</para>
|
||||||
|
|
||||||
|
<programlisting>rpc_lockd_enable="YES"
|
||||||
|
rpc_statd_enable="YES"</programlisting>
|
||||||
|
|
||||||
|
<para>Start the application by using:</para>
|
||||||
|
|
||||||
|
<screen>&prompt.root; <userinput>/etc/rc.d/nfslocking start</userinput></screen>
|
||||||
|
|
||||||
|
<para>If real locking between the <acronym>NFS</acronym> clients
|
||||||
|
and <acronym>NFS</acronym> server is not required, it is
|
||||||
|
possible to let the <acronym>NFS</acronym>client do locking
|
||||||
|
locally by passing <option>-L</option> to &man.mount.nfs.8;.
|
||||||
|
Refer to the &man.mount.nfs.8; manual page for further details.
|
||||||
|
</para>
|
||||||
|
</sect2>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
<title>Practical Uses</title>
|
<title>Practical Uses</title>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue