source: networking/netprogs/nfs-utils.xml@ adf6dd9a

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

Archive unneeded packages: pkgconfig,

bc, ibus, udev, slib, gamin, and notify-python

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

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