source: networking/netprogs/nfs-utils.xml@ 68d01360

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 68d01360 was 7fdeb26, checked in by Krejzi <krejzi@…>, 12 years ago

remove heimdal kerberos. one kerberos implementation is enough for BLFS

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

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