source: server/major/nfs-utils.xml@ 43b1987f

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 43b1987f was 43b1987f, checked in by Randy McMurchy <randy@…>, 16 years ago

Standardized the linkend= values to double-qoutes to make searching for package references easier

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

  • Property mode set to 100644
File size: 14.9 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
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">
[e7138cbb]9 <!ENTITY nfs-utils-md5sum "407785488241f9db67b1874e3f36370e">
10 <!ENTITY nfs-utils-size "785 KB">
[c7328ac]11 <!ENTITY nfs-utils-buildsize "8.2 MB">
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
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
[e20c8110]59 <!--
[ff8e45f]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>
[e20c8110]67 -->
[ff8e45f]68
[b86cfc2]69 <bridgehead renderas="sect3">NFS Utilities Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
[c7328ac]72 <para role="required"><xref linkend="portmap"/> (Runtime dependency)</para>
[b86cfc2]73
[e20c8110]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>
[b86cfc2]88
[3cb0c57]89 <para condition="html" role="usernotes">User Notes:
90 <ulink url="&blfs-wiki;/nfs-utils"/></para>
91
[b86cfc2]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
[bfb7882]98 and recompile the kernel if necessary:</para>
[d47e7ea9]99
[eaf6a1cd]100<screen><literal>File systems:
[d47e7ea9]101 Network File Systems:
102 NFS File System Support: M or Y
[eaf6a1cd]103 NFS Server Support: M or Y</literal></screen>
[d47e7ea9]104
[b86cfc2]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>
[d47e7ea9]111
[b86cfc2]112 </sect2>
[d47e7ea9]113
[e20c8110]114 <sect2 role="installation" id='nfs-utils-install'
115 xreflabel='NFS Utilities Installation'>
[b86cfc2]116 <title>Installation of NFS Utilities</title>
[d47e7ea9]117
[e20c8110]118 <para>Before you compile the program, ensure that the
[b86cfc2]119 <systemitem class="username">nobody</systemitem> user and
[e20c8110]120 <systemitem class="groupname">nogroup</systemitem> group have been
121 created. You can add them by running the following commands as the
[b86cfc2]122 <systemitem class="username">root</systemitem> user:</para>
[a16cb066]123
[eaf6a1cd]124<screen role="root"><userinput>groupadd -g 99 nogroup &amp;&amp;
[0dfb754]125useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
126 -s /bin/false -u 99 nobody</userinput></screen>
[d47e7ea9]127
[b86cfc2]128 <note>
129 <para>The classic uid and gid values are 65534 which is also -2 when
[17b7723]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
[b86cfc2]132 <systemitem class="username">nobody</systemitem> and <systemitem
[17b7723]133 class="groupname">nogroup</systemitem> values are relatively arbitrary.
[e20c8110]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
[b86cfc2]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>
[d47e7ea9]144
[e20c8110]145<screen><userinput>./configure --prefix=/usr \
146 --sysconfdir=/etc \
147 --disable-nfsv4 \
148 --disable-gss &amp;&amp;
[a16cb066]149make</userinput></screen>
150
[e20c8110]151 <para>This package does not come with a test suite.</para>
[a16cb066]152
[e20c8110]153 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[d47e7ea9]154
[b86cfc2]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>
[d47e7ea9]162
[e20c8110]163<screen role='root'><userinput>make install</userinput></screen>
164
[b86cfc2]165 </sect2>
[d47e7ea9]166
[b86cfc2]167 <sect2 role="commands">
168 <title>Command Explanations</title>
[a16cb066]169
[b86cfc2]170 <para><parameter>--disable-nfsv4</parameter>: Disables support
[e20c8110]171 for NFS version 4.</para>
[a16cb066]172
[b86cfc2]173 <para><parameter>--disable-gss</parameter>: Disables support for
174 RPCSEC GSS (RPC Security).</para>
[a16cb066]175
[e20c8110]176 <para><option>--with-tcp-wrappers</option>: Use this option to enable
177 tcpwrappers support.</para>
178
[b86cfc2]179 </sect2>
[a16cb066]180
[b86cfc2]181 <sect2 role="configuration">
182 <title>Configuring NFS Utilities</title>
[d47e7ea9]183
[b86cfc2]184 <sect3 id='nfs-utils-server-config'>
[3a929dc]185 <title>Server Configuration</title>
[d47e7ea9]186
[b86cfc2]187 <para><filename>/etc/exports</filename> contains the exported directories
[e20c8110]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>
[d47e7ea9]194
[c7328ac]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>
[d47e7ea9]196
[b86cfc2]197 <indexterm zone="nfs-utils nfs-utils-server-config">
198 <primary sortas="e-etc-exportfs">/etc/exportfs</primary>
199 </indexterm>
200
[e20c8110]201 <sect4 id="nfs-utils-server-init">
[b86cfc2]202 <title>Boot Script</title>
[a16cb066]203
[b86cfc2]204 <para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
205 init script included in the <xref
[5254d12]206 linkend="bootscripts"/> package to start the server
[b86cfc2]207 at boot.</para>
[d47e7ea9]208
[eaf6a1cd]209<screen role="root"><userinput>make install-nfs-server</userinput></screen>
[d47e7ea9]210
[b86cfc2]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>
[f5e4bdec]217
[eaf6a1cd]218<screen role="root"><userinput>cat &gt; /etc/sysconfig/nfs-server &lt;&lt; "EOF"
219<literal>PORT="2049"
[f5e4bdec]220PROCESSES="8"
221QUOTAS="no"
[eaf6a1cd]222KILLDELAY="10"</literal>
223EOF</userinput></screen>
[f5e4bdec]224
[b86cfc2]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>
[d47e7ea9]231
[e20c8110]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
[b86cfc2]242 </sect3>
[d47e7ea9]243
[b86cfc2]244 <sect3 id='nfs-utils-client-config'>
[3a929dc]245 <title>Client Configuration</title>
[eaf6a1cd]246
[b86cfc2]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>
[a16cb066]253
[eaf6a1cd]254<screen role="root"><userinput>&lt;server-name&gt;:/home /home nfs rw,_netdev,rsize=8192,wsize=8192 0 0
[a16cb066]255&lt;server-name&gt;:/usr /usr nfs ro,_netdev,rsize=8192 0 0</userinput></screen>
256
[b86cfc2]257 <indexterm zone="nfs-utils nfs-utils-client-config">
258 <primary sortas="e-etc-fstab">/etc/fstab</primary>
259 </indexterm>
[d47e7ea9]260
[b86cfc2]261 <sect4 id="nfs-utils-client-init">
262 <title>Boot Script</title>
[d47e7ea9]263
[b86cfc2]264 <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
265 init script included in the
[5254d12]266 <xref linkend="bootscripts"/> package to
[b86cfc2]267 start the client services at boot.</para>
[a16cb066]268
[b86cfc2]269<screen role="root"><userinput>make install-nfs-client</userinput></screen>
[a16cb066]270
[b86cfc2]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
[43b1987f]278 in <xref linkend="postlfs-config-netfs"/>.</para>
[b86cfc2]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>
[d3761424]298 <seg>exportfs, nfsstat, rpc.mountd, rpc.nfsd, rpc.statd, rpcdebug,
299 showmount, sm-notify, and start-statd</seg>
[b86cfc2]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
[d3761424]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
[b86cfc2]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
[d3761424]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
[b86cfc2]407 </variablelist>
408
409 </sect2>
[d47e7ea9]410
[176b211]411</sect1>
Note: See TracBrowser for help on using the repository browser.