source: server/major/nfs-utils.xml@ d3761424

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d3761424 was d3761424, checked in by Ken Moffat <ken@…>, 16 years ago

Update descriptions for nfs-utils, thanks to Jens Stroebel for noticing some were no longer present. Strangely, the nhfs* programs have disappeared, apart from debian/ references in Makefile.{am,in} - there is no debian/ directory.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7242 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 14.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY nfs-utils-download-http "http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-&nfs-utils-version;.tar.gz">
8 <!ENTITY nfs-utils-download-ftp "ftp://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-&nfs-utils-version;.tar.gz">
9 <!ENTITY nfs-utils-md5sum "407785488241f9db67b1874e3f36370e">
10 <!ENTITY nfs-utils-size "785 KB">
11 <!ENTITY nfs-utils-buildsize "8.2 MB">
12 <!ENTITY nfs-utils-time "0.2 SBU">
13]>
14
15<sect1 id="nfs-utils" xreflabel="NFS Utilities-&nfs-utils-version;">
16 <?dbhtml filename="nfs-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>NFS Utilities-&nfs-utils-version;</title>
24
25 <indexterm zone="nfs-utils">
26 <primary sortas="a-Nfs-utils">NFS Utilities</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to NFS Utilities</title>
31
32 <para>The <application>NFS Utilities</application> package contains the
33 userspace server and client tools necessary to use the kernel's NFS
34 abilities. NFS is a protocol that allows sharing file systems over the
35 network.</para>
36
37 <bridgehead renderas="sect3">Package information</bridgehead>
38 <itemizedlist spacing='compact'>
39 <listitem>
40 <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &nfs-utils-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &nfs-utils-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &nfs-utils-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &nfs-utils-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <!--
60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing='compact'>
62 <listitem>
63 <para>Required patch: <ulink
64 url="&patch-root;/nfs-utils-&nfs-utils-version;-gcc4-1.patch"/></para>
65 </listitem>
66 </itemizedlist>
67 -->
68
69 <bridgehead renderas="sect3">NFS Utilities Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required"><xref linkend="portmap"/> (Runtime dependency)</para>
73
74 <bridgehead renderas="sect4">Optional for NFSv4 Support</bridgehead>
75 <para role="optional"><xref linkend="pkgconfig"/> and
76 <ulink url="http://www.monkey.org/~provos/libevent/">libevent</ulink> and
77 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libnsfidmap</ulink>
78 </para>
79
80 <bridgehead renderas="sect4">Optional for GSS (RPC Security) Support</bridgehead>
81 <para role="optional"><xref linkend="pkgconfig"/>, and
82 <xref linkend="mitkrb"/> or
83 <xref linkend="heimdal"/> or
84 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and
85 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink>;
86 for additional SPKM-3 support, install
87 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">SPKM-3</ulink></para>
88
89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/nfs-utils"/></para>
91
92 </sect2>
93
94 <sect2 role="kernel" id='nfs-utils-kernel'>
95 <title>Kernel Configuration</title>
96
97 <para>Enable the following options in the kernel configuration
98 and recompile the kernel if necessary:</para>
99
100<screen><literal>File systems:
101 Network File Systems:
102 NFS File System Support: M or Y
103 NFS Server Support: M or Y</literal></screen>
104
105 <para>Select the appropriate sub-options that appear when the above options
106 are selected.</para>
107
108 <indexterm zone="nfs-utils nfs-utils-kernel">
109 <primary sortas="d-nfs-utils">NFS Utilities</primary>
110 </indexterm>
111
112 </sect2>
113
114 <sect2 role="installation" id='nfs-utils-install'
115 xreflabel='NFS Utilities Installation'>
116 <title>Installation of NFS Utilities</title>
117
118 <para>Before you compile the program, ensure that the
119 <systemitem class="username">nobody</systemitem> user and
120 <systemitem class="groupname">nogroup</systemitem> group have been
121 created. You can add them by running the following commands as the
122 <systemitem class="username">root</systemitem> user:</para>
123
124<screen role="root"><userinput>groupadd -g 99 nogroup &amp;&amp;
125useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
126 -s /bin/false -u 99 nobody</userinput></screen>
127
128 <note>
129 <para>The classic uid and gid values are 65534 which is also -2 when
130 interpreted as a signed 16-bit number. These values impact other files
131 on some filesystems that do not have support for sparse files. The
132 <systemitem class="username">nobody</systemitem> and <systemitem
133 class="groupname">nogroup</systemitem> values are relatively arbitrary.
134 The impact on a server is nil if the <filename>exports</filename> file
135 is configured correctly. If it is misconfigured, an
136 <command>ls -l</command> or <command>ps</command> listing will show a
137 uid or gid number of 65534 instead of a name. The client uses <systemitem
138 class="username">nobody</systemitem> only as the user running
139 <command>rpc.statd</command>.</para>
140 </note>
141
142 <para>Install <application>NFS Utilities</application> by running
143 the following commands:</para>
144
145<screen><userinput>./configure --prefix=/usr \
146 --sysconfdir=/etc \
147 --disable-nfsv4 \
148 --disable-gss &amp;&amp;
149make</userinput></screen>
150
151 <para>This package does not come with a test suite.</para>
152
153 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
154
155 <note>
156 <para>If your <filename class="directory">/usr</filename> directory
157 is NFS mounted, you should install the executables in
158 <filename class="directory">/sbin</filename> by passing
159 an additional parameter <option>--sbindir=/sbin</option> to the
160 above <command>./configure</command> command.</para>
161 </note>
162
163<screen role='root'><userinput>make install</userinput></screen>
164
165 </sect2>
166
167 <sect2 role="commands">
168 <title>Command Explanations</title>
169
170 <para><parameter>--disable-nfsv4</parameter>: Disables support
171 for NFS version 4.</para>
172
173 <para><parameter>--disable-gss</parameter>: Disables support for
174 RPCSEC GSS (RPC Security).</para>
175
176 <para><option>--with-tcp-wrappers</option>: Use this option to enable
177 tcpwrappers support.</para>
178
179 </sect2>
180
181 <sect2 role="configuration">
182 <title>Configuring NFS Utilities</title>
183
184 <sect3 id='nfs-utils-server-config'>
185 <title>Server Configuration</title>
186
187 <para><filename>/etc/exports</filename> contains the exported directories
188 on NFS servers. Refer to the <filename>exports.5</filename> manual page
189 for the syntax of this file. Also refer to the "NFS HowTo" available at
190 <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on
191 how to configure the servers and clients in a secure manner. For example,
192 for sharing the <filename class="directory">/home</filename> directory
193 over the local network, the following line may be added:</para>
194
195<screen role="root"><userinput>/home <replaceable>&lt;192.168.0.0/255.255.255.0&gt;</replaceable>(rw,subtree_check,anonuid=99,anongid=99)</userinput></screen>
196
197 <indexterm zone="nfs-utils nfs-utils-server-config">
198 <primary sortas="e-etc-exportfs">/etc/exportfs</primary>
199 </indexterm>
200
201 <sect4 id="nfs-utils-server-init">
202 <title>Boot Script</title>
203
204 <para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
205 init script included in the <xref
206 linkend="bootscripts"/> package to start the server
207 at boot.</para>
208
209<screen role="root"><userinput>make install-nfs-server</userinput></screen>
210
211 <indexterm zone="nfs-utils nfs-utils-server-init">
212 <primary sortas="f-nfs-server">nfs-server</primary>
213 </indexterm>
214
215 <para>Now create the <filename>/etc/sysconfig/nfs-server</filename>
216 configuration file:</para>
217
218<screen role="root"><userinput>cat &gt; /etc/sysconfig/nfs-server &lt;&lt; "EOF"
219<literal>PORT="2049"
220PROCESSES="8"
221QUOTAS="no"
222KILLDELAY="10"</literal>
223EOF</userinput></screen>
224
225 <indexterm zone="nfs-utils nfs-utils-server-init">
226 <primary
227 sortas="e-etc-sysconfig-nfs-server">/etc/sysconfig/nfs-server</primary>
228 </indexterm>
229
230 </sect4>
231
232 <sect4 id="nfs-utils-server-wrappers-support">
233 <title>tcpwrappers Configuration</title>
234
235 <para>If you enabled support for <application>tcpwrappers</application>,
236 ensure you have an entry in the <filename>/etc/hosts.allow</filename>
237 file for access from the <command>portmap</command> daemon if you have a
238 restrictive <filename>/etc/hosts.deny</filename> file.</para>
239
240 </sect4>
241
242 </sect3>
243
244 <sect3 id='nfs-utils-client-config'>
245 <title>Client Configuration</title>
246
247 <para><filename>/etc/fstab</filename> contains the directories that
248 are to be mounted on the client. Alternately the partitions can be
249 mounted by using the <command>mount</command> command with the proper
250 options. To mount the <filename class="directory">/home</filename>
251 and <filename class="directory">/usr</filename> partitions, add the
252 following to the <filename>/etc/fstab</filename>:</para>
253
254<screen role="root"><userinput>&lt;server-name&gt;:/home /home nfs rw,_netdev,rsize=8192,wsize=8192 0 0
255&lt;server-name&gt;:/usr /usr nfs ro,_netdev,rsize=8192 0 0</userinput></screen>
256
257 <indexterm zone="nfs-utils nfs-utils-client-config">
258 <primary sortas="e-etc-fstab">/etc/fstab</primary>
259 </indexterm>
260
261 <sect4 id="nfs-utils-client-init">
262 <title>Boot Script</title>
263
264 <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
265 init script included in the
266 <xref linkend="bootscripts"/> package to
267 start the client services at boot.</para>
268
269<screen role="root"><userinput>make install-nfs-client</userinput></screen>
270
271 <indexterm zone="nfs-utils nfs-utils-client-config">
272 <primary sortas="f-nfs-client">nfs-client</primary>
273 </indexterm>
274
275 <para>To automatically mount <systemitem
276 class="filesystem">nfs</systemitem> filesystems, clients will also
277 need to install the <filename>netfs</filename> bootscript as described
278 in <xref linkend='postlfs-config-netfs'/>.</para>
279
280 <indexterm zone="nfs-utils nfs-utils-client-config">
281 <primary sortas="f-netfs">netfs</primary>
282 </indexterm>
283
284 </sect4>
285
286 </sect3>
287
288 </sect2>
289
290 <sect2 role="content">
291 <title>Contents</title>
292 <segmentedlist>
293 <segtitle>Installed Programs</segtitle>
294 <segtitle>Installed Libraries</segtitle>
295 <segtitle>Installed Directories</segtitle>
296
297 <seglistitem>
298 <seg>exportfs, nfsstat, rpc.mountd, rpc.nfsd, rpc.statd, rpcdebug,
299 showmount, sm-notify, and start-statd</seg>
300 <seg>None</seg>
301 <seg>/var/lib/nfs</seg>
302 </seglistitem>
303 </segmentedlist>
304
305 <variablelist>
306 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
307 <?dbfo list-presentation="list"?>
308 <?dbhtml list-presentation="table"?>
309
310 <varlistentry id="exportfs">
311 <term><command>exportfs</command></term>
312 <listitem>
313 <para>maintains a list of NFS exported file systems.</para>
314 <indexterm zone="nfs-utils exportfs">
315 <primary sortas="b-exportfs">exportfs</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="nfsstat">
321 <term><command>nfsstat</command></term>
322 <listitem>
323 <para>prints NFS statistics.</para>
324 <indexterm zone="nfs-utils nfsstat">
325 <primary sortas="b-nfsstat">nfsstat</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="rpcmountd">
331 <term><command>rpc.mountd</command></term>
332 <listitem>
333 <para>implements the NFS mount protocol on an NFS server.</para>
334 <indexterm zone="nfs-utils rpcmountd">
335 <primary sortas="b-rpcmountd">rpc.mountd</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="rpcnfsd">
341 <term><command>rpc.nfsd</command></term>
342 <listitem>
343 <para>implements the user level part of the NFS
344 service on the server.</para>
345 <indexterm zone="nfs-utils rpcnfsd">
346 <primary sortas="b-rpcnfsd">rpc.nfsd</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="rpcstatd">
352 <term><command>rpc.statd</command></term>
353 <listitem>
354 <para>is used by the NFS file locking service,
355 <command>rpc.lockd</command>, to implement lock recovery when
356 the NFS server machine crashes and reboots. Runs on the NFS
357 server only.</para>
358 <indexterm zone="nfs-utils rpcstatd">
359 <primary sortas="b-rpcstatd">rpc.statd</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="rpcdebug">
365 <term><command>rpcdebug</command></term>
366 <listitem>
367 <para>sets or clears the kernel's NFS client and server debug flags.
368 </para>
369 <indexterm zone="nfs-utils rpcdebug">
370 <primary sortas="b-rpcdebug">rpcdebug</primary>
371 </indexterm>
372 </listitem>
373 </varlistentry>
374
375 <varlistentry id="showmount">
376 <term><command>showmount</command></term>
377 <listitem>
378 <para>displays mount information for an NFS server.</para>
379 <indexterm zone="nfs-utils showmount">
380 <primary sortas="b-showmount">showmount</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="sm-notify">
386 <term><command>sm-notify</command></term>
387 <listitem>
388 <para>is used to send Network Status Monitor reboot messages.</para>
389 <indexterm zone="nfs-utils sm-notify">
390 <primary sortas="b-sm-notify">sm-notify</primary>
391 </indexterm>
392 </listitem>
393 </varlistentry>
394
395 <varlistentry id="start-statd">
396 <term><command>start-statd</command></term>
397 <listitem>
398 <para>is a script called by nfsmount when mounting a filesystem with
399 locking enabled, if statd does not appear to be running. It can be
400 customised with whatever flags are appropriate for the site.</para>
401 <indexterm zone="nfs-utils start-statd">
402 <primary sortas="b-start-statd">start-statd</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 </variablelist>
408
409 </sect2>
410
411</sect1>
Note: See TracBrowser for help on using the repository browser.