source: networking/netprogs/nfs-utils.xml@ 405c8dc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 405c8dc was 405c8dc, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

LFS-7.3 tags thanks to Thoms Trepl

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

  • Property mode set to 100644
File size: 17.3 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 "&sourceforge-repo;/nfs/nfs-utils-&nfs-utils-version;.tar.bz2">
8 <!ENTITY nfs-utils-download-ftp " ">
9 <!ENTITY nfs-utils-md5sum "8be543ca270c2234ff18f8c8d35e0d37">
10 <!ENTITY nfs-utils-size "744 KB">
11 <!ENTITY nfs-utils-buildsize "15 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 &lfs73_checked;
38
39 <bridgehead renderas="sect3">Package information</bridgehead>
40 <itemizedlist spacing='compact'>
41 <listitem>
42 <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &nfs-utils-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &nfs-utils-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &nfs-utils-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &nfs-utils-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>
65 Required patch:
66 <ulink url="&patch-root;/nfs-utils-&nfs-utils-version;-fix_configure-1.patch"/>
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">NFS Utilities Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="libtirpc"/> and
76 <xref linkend="pkgconfig"/>
77 </para>
78
79 <para role="required">
80 <xref linkend="rpcbind"/> (Runtime dependency)
81 </para>
82
83 <bridgehead renderas="sect4">Optional for NFSv4 Support</bridgehead>
84 <para role="optional">
85 <xref linkend="libevent"/>,
86 <xref linkend="sqlite3"/>, and
87 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libnfsidmap</ulink>
88 </para>
89
90 <bridgehead renderas="sect4">Optional for GSS (RPC Security) Support</bridgehead>
91 <para role="optional">
92 <xref linkend="mitkrb"/> or
93 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and
94 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink>
95 </para>
96
97 <bridgehead renderas="sect4">Optional for SPKM-3 Support</bridgehead>
98 <para>
99 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">SPKM-3</ulink>
100 </para>
101
102 <para condition="html" role="usernotes">User Notes:
103 <ulink url="&blfs-wiki;/nfs-utils"/></para>
104
105 </sect2>
106
107 <sect2 role="kernel" id='nfs-utils-kernel'>
108 <title>Kernel Configuration</title>
109
110 <para>Enable the following options in the kernel configuration
111 and recompile the kernel if necessary:</para>
112
113<screen><literal>File systems:
114 Network File Systems:
115 NFS File System Support: M or Y
116 NFS Server Support: M or Y</literal></screen>
117
118 <para>Select the appropriate sub-options that appear when the above options
119 are selected.</para>
120
121 <indexterm zone="nfs-utils nfs-utils-kernel">
122 <primary sortas="d-nfs-utils">NFS Utilities</primary>
123 </indexterm>
124
125 </sect2>
126
127 <sect2 role="installation" id='nfs-utils-install'
128 xreflabel='NFS Utilities Installation'>
129 <title>Installation of NFS Utilities</title>
130
131 <para>Before you compile the program, ensure that the
132 <systemitem class="username">nobody</systemitem> user and
133 <systemitem class="groupname">nogroup</systemitem> group have been
134 created. You can add them by running the following commands as the
135 <systemitem class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>groupadd -g 99 nogroup &amp;&amp;
138useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
139 -s /bin/false -u 99 nobody</userinput></screen>
140
141 <note>
142 <para>The classic uid and gid values are 65534 which is also -2 when
143 interpreted as a signed 16-bit number. These values impact other files
144 on some filesystems that do not have support for sparse files. The
145 <systemitem class="username">nobody</systemitem> and <systemitem
146 class="groupname">nogroup</systemitem> values are relatively arbitrary.
147 The impact on a server is nil if the <filename>exports</filename> file
148 is configured correctly. If it is misconfigured, an
149 <command>ls -l</command> or <command>ps</command> listing will show a
150 uid or gid number of 65534 instead of a name. The client uses <systemitem
151 class="username">nobody</systemitem> only as the user running
152 <command>rpc.statd</command>.</para>
153 </note>
154
155 <para>Install <application>NFS Utilities</application> by running
156 the following commands:</para>
157
158<screen><userinput>patch -Np1 -i ../nfs-utils-&nfs-utils-version;-fix_configure-1.patch &amp;&amp;
159
160autoreconf &amp;&amp;
161
162./configure --prefix=/usr \
163 --sysconfdir=/etc \
164 --without-tcp-wrappers \
165 --disable-nfsv4 \
166 --disable-nfsv41 \
167 --disable-gss &amp;&amp;
168make</userinput></screen>
169
170 <para>If your <filename class="directory">/usr</filename> directory
171 is NFS mounted, you should install the executables in
172 <filename class="directory">/sbin</filename> by passing
173 an additional parameter <option>--sbindir=/sbin</option> to the
174 above <command>./configure</command> command.</para>
175
176 <para>This package does not come with a test suite.</para>
177
178 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
179
180<screen role='root'><userinput>make install</userinput></screen>
181
182 </sect2>
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
187 <para><parameter>--disable-nfsv4</parameter> and
188 <parameter>--disable-nfsv41</parameter>: Disables support
189 for NFS version 4 and version 4.1.</para>
190
191 <para><parameter>--disable-gss</parameter>: Disables support for
192 RPCSEC GSS (RPC Security).</para>
193
194 <para><parameter>--without-tcp-wrappers</parameter>: This option is
195 needed because TCP Wrappers is not in BLFS.</para>
196
197 </sect2>
198
199 <sect2 role="configuration">
200 <title>Configuring NFS Utilities</title>
201
202 <sect3 id='nfs-utils-server-config'>
203 <title>Server Configuration</title>
204
205 <para><filename>/etc/exports</filename> contains the exported directories
206 on NFS servers. Refer to the <filename>exports.5</filename> manual page
207 for the syntax of this file. Also refer to the "NFS HowTo" available at
208 <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on
209 how to configure the servers and clients in a secure manner. For example,
210 for sharing the <filename class="directory">/home</filename> directory
211 over the local network, the following line may be added:</para>
212
213<screen role="root"><userinput>/home <replaceable>&lt;192.168.0.0/24&gt;</replaceable>(rw,subtree_check,anonuid=99,anongid=99)</userinput></screen>
214
215 <indexterm zone="nfs-utils nfs-utils-server-config">
216 <primary sortas="e-etc-exportfs">/etc/exportfs</primary>
217 </indexterm>
218
219 <sect4 id="nfs-utils-server-init">
220 <title>Boot Script</title>
221
222 <para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
223 init script included in the <xref linkend="bootscripts"/> package
224 to start the server at boot.</para>
225
226<screen role="root"><userinput>make install-nfs-server</userinput></screen>
227
228 <indexterm zone="nfs-utils nfs-utils-server-init">
229 <primary sortas="f-nfs-server">nfs-server</primary>
230 </indexterm>
231
232 <para>Now create the <filename>/etc/sysconfig/nfs-server</filename>
233 configuration file:</para>
234
235<screen role="root"><userinput>cat &gt; /etc/sysconfig/nfs-server &lt;&lt; "EOF"
236<literal>PORT="2049"
237PROCESSES="8"
238QUOTAS="no"
239KILLDELAY="10"</literal>
240EOF</userinput></screen>
241
242 <note><para>The above parameters may be optionally placed in
243 <filename>/etc/sysconfig/rc.site</filename>.</para></note>
244
245 <indexterm zone="nfs-utils nfs-utils-server-init">
246 <primary
247 sortas="e-etc-sysconfig-nfs-server">/etc/sysconfig/nfs-server</primary>
248 </indexterm>
249
250 </sect4>
251
252 </sect3>
253
254 <sect3 id='nfs-utils-client-config'>
255 <title>Client Configuration</title>
256
257 <para><filename>/etc/fstab</filename> contains the directories that
258 are to be mounted on the client. Alternately the partitions can be
259 mounted by using the <command>mount</command> command with the proper
260 options. To mount the <filename class="directory">/home</filename>
261 and <filename class="directory">/usr</filename> partitions, add the
262 following to the <filename>/etc/fstab</filename>:</para>
263
264<screen role="root"><userinput><replaceable>&lt;server-name&gt;</replaceable>:/home /home nfs rw,_netdev,rsize=8192,wsize=8192 0 0
265<replaceable>&lt;server-name&gt;</replaceable>:/usr /usr nfs ro,_netdev,rsize=8192 0 0</userinput></screen>
266
267 <indexterm zone="nfs-utils nfs-utils-client-config">
268 <primary sortas="e-etc-fstab">/etc/fstab</primary>
269 </indexterm>
270
271 <sect4 id="nfs-utils-client-init">
272 <title>Boot Script</title>
273
274 <note><para>The following boot script is not required if the
275 nfs-server script is installed.</para></note>
276
277 <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename> init
278 script included in the <xref linkend="bootscripts"/> package to start
279 the client services at boot.</para>
280
281<screen role="root"><userinput>make install-nfs-client</userinput></screen>
282
283 <indexterm zone="nfs-utils nfs-utils-client-config">
284 <primary sortas="f-nfs-client">nfs-client</primary>
285 </indexterm>
286
287 <para>To automatically mount <systemitem
288 class="filesystem">nfs</systemitem> filesystems, clients will also need
289 to install the <filename>netfs</filename> bootscript as described in
290 <xref linkend="postlfs-config-netfs"/>.</para>
291
292 <indexterm zone="nfs-utils nfs-utils-client-config">
293 <primary sortas="f-netfs">netfs</primary>
294 </indexterm>
295
296 </sect4>
297
298 </sect3>
299
300 </sect2>
301
302 <sect2 role="content">
303 <title>Contents</title>
304 <segmentedlist>
305 <segtitle>Installed Programs</segtitle>
306 <segtitle>Installed Libraries</segtitle>
307 <segtitle>Installed Directories</segtitle>
308
309 <seglistitem>
310 <seg>exportfs, mountstats, mount.nfs, mount.nfs4 (link to mount.nfs),
311 nfsiostat, nfsstat, rpc.mountd, rpc.nfsd, rpc.statd, rpcdebug,
312 showmount, sm-notify, start-statd, umount.nfs (link to mount.nfs),
313 and umount.nfs4 (link to mount.nfs)</seg>
314 <seg>None</seg>
315 <seg>/var/lib/nfs</seg>
316 </seglistitem>
317 </segmentedlist>
318
319 <variablelist>
320 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
321 <?dbfo list-presentation="list"?>
322 <?dbhtml list-presentation="table"?>
323
324 <varlistentry id="exportfs">
325 <term><command>exportfs</command></term>
326 <listitem>
327 <para>maintains a list of NFS exported file systems.</para>
328 <indexterm zone="nfs-utils exportfs">
329 <primary sortas="b-exportfs">exportfs</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="mountstats">
335 <term><command>mountstats</command></term>
336 <listitem>
337 <para>displays NFS client per-mount statistics.</para>
338 <indexterm zone="nfs-utils mountstats">
339 <primary sortas="b-mountstats">mountstats</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="mountnfs">
345 <term><command>mount.nfs</command></term>
346 <listitem>
347 <para>Used to mount a network share using NFS</para>
348 <indexterm zone="nfs-utils mountnfs">
349 <primary sortas="b-mountnfs">mount.nfs</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="mountnfs4">
355 <term><command>mount.nfs4</command></term>
356 <listitem>
357 <para>Used to mount a network share using NFSv4</para>
358 <indexterm zone="nfs-utils mountnfs4">
359 <primary sortas="b-mountnfs4">mount.nfs4</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 <varlistentry id="nfsiostat-nfs-utils">
365 <term><command>nfsiostat</command></term>
366 <listitem>
367 <para>Report input/output statistics for network filesystems.</para>
368 <indexterm zone="nfs-utils nfsiostat-nfs-utils">
369 <primary sortas="b-nfsiostat-nfs-utils">nfsiostat</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 <varlistentry id="nfsstat">
375 <term><command>nfsstat</command></term>
376 <listitem>
377 <para>displays statistics kept about NFS client and server activity.</para>
378 <indexterm zone="nfs-utils nfsstat">
379 <primary sortas="b-nfsstat">nfsstat</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="rpcmountd">
385 <term><command>rpc.mountd</command></term>
386 <listitem>
387 <para>implements the NFS mount protocol on an NFS server.</para>
388 <indexterm zone="nfs-utils rpcmountd">
389 <primary sortas="b-rpcmountd">rpc.mountd</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="rpcnfsd">
395 <term><command>rpc.nfsd</command></term>
396 <listitem>
397 <para>implements the user level part of the NFS
398 service on the server.</para>
399 <indexterm zone="nfs-utils rpcnfsd">
400 <primary sortas="b-rpcnfsd">rpc.nfsd</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="rpcstatd">
406 <term><command>rpc.statd</command></term>
407 <listitem>
408 <para>is used by the NFS file locking service. Run on both sides,
409 client as well as server, when you want file locking enabled.</para>
410 <indexterm zone="nfs-utils rpcstatd">
411 <primary sortas="b-rpcstatd">rpc.statd</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415
416 <varlistentry id="rpcdebug">
417 <term><command>rpcdebug</command></term>
418 <listitem>
419 <para>sets or clears the kernel's NFS client and server debug
420 flags.</para>
421 <indexterm zone="nfs-utils rpcdebug">
422 <primary sortas="b-rpcdebug">rpcdebug</primary>
423 </indexterm>
424 </listitem>
425 </varlistentry>
426
427 <varlistentry id="showmount">
428 <term><command>showmount</command></term>
429 <listitem>
430 <para>displays mount information for an NFS server.</para>
431 <indexterm zone="nfs-utils showmount">
432 <primary sortas="b-showmount">showmount</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
437 <varlistentry id="sm-notify">
438 <term><command>sm-notify</command></term>
439 <listitem>
440 <para>is used to send Network Status Monitor reboot messages.</para>
441 <indexterm zone="nfs-utils sm-notify">
442 <primary sortas="b-sm-notify">sm-notify</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="start-statd">
448 <term><command>start-statd</command></term>
449 <listitem>
450 <para>is a script called by nfsmount when mounting a filesystem with
451 locking enabled, if statd does not appear to be running. It can be
452 customised with whatever flags are appropriate for the site.</para>
453 <indexterm zone="nfs-utils start-statd">
454 <primary sortas="b-start-statd">start-statd</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="umountnfs">
460 <term><command>umount.nfs</command></term>
461 <listitem>
462 <para>Used to unmount a network share using NFS</para>
463 <indexterm zone="nfs-utils umountnfs">
464 <primary sortas="b-umountnfs">umount.nfs</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="umountnfs4">
470 <term><command>umount.nfs4</command></term>
471 <listitem>
472 <para>Used to unmount a network share using NFSv4</para>
473 <indexterm zone="nfs-utils umountnfs4">
474 <primary sortas="b-umountnfs4">umount.nfs4</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 </variablelist>
480
481 </sect2>
482
483</sect1>
Note: See TracBrowser for help on using the repository browser.