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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 e2c98cc6 was e2c98cc6, checked in by Randy McMurchy <randy@…>, 18 years ago

Minor fixes to the FFmpeg and NFS Utilities instructions

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

  • Property mode set to 100644
File size: 16.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "ee7903365255b7d840a45be4d6e2b0e2">
10 <!ENTITY nfs-utils-size "508 KB">
11 <!ENTITY nfs-utils-buildsize "12.2 MB">
12 <!ENTITY nfs-utils-time "0.3 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 <keywordset>
22 <keyword role="package">nfs-utils-&nfs-utils-version;.tar</keyword>
23 <keyword role="ftpdir">nfs-utils</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>NFS Utilities-&nfs-utils-version;</title>
28
29 <indexterm zone="nfs-utils">
30 <primary sortas="a-Nfs-utils">NFS Utilities</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to NFS Utilities</title>
35
36 <para>The <application>NFS Utilities</application> package contains the
37 userspace server and client tools necessary to use the kernel's NFS
38 abilities. NFS is a protocol that allows sharing file systems over the
39 network.</para>
40
41 <bridgehead renderas="sect3">Package information</bridgehead>
42 <itemizedlist spacing='compact'>
43 <listitem>
44 <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &nfs-utils-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &nfs-utils-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &nfs-utils-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &nfs-utils-time;</para>
60 </listitem>
61 </itemizedlist>
62
63 <!--
64 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
65 <itemizedlist spacing='compact'>
66 <listitem>
67 <para>Required patch: <ulink
68 url="&patch-root;/nfs-utils-&nfs-utils-version;-gcc4-1.patch"/></para>
69 </listitem>
70 </itemizedlist>
71 -->
72
73 <bridgehead renderas="sect3">NFS Utilities Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required"><xref linkend="portmap"/></para>
77
78 <bridgehead renderas="sect4">Optional for NFSv4 Support</bridgehead>
79 <para role="optional"><xref linkend="pkgconfig"/> and
80 <ulink url="http://www.monkey.org/~provos/libevent/">libevent</ulink> and
81 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libnsfidmap</ulink>
82 </para>
83
84 <bridgehead renderas="sect4">Optional for GSS (RPC Security) Support</bridgehead>
85 <para role="optional"><xref linkend="pkgconfig"/>, and
86 <xref linkend="mitkrb"/> or
87 <xref linkend="heimdal"/> or
88 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and
89 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink>;
90 for additional SPKM-3 support, install
91 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">SPKM-3</ulink></para>
92
93 <para condition="html" role="usernotes">User Notes:
94 <ulink url="&blfs-wiki;/nfs-utils"/></para>
95
96 </sect2>
97
98 <sect2 role="kernel" id='nfs-utils-kernel'>
99 <title>Kernel Configuration</title>
100
101 <para>Enable the following options in the kernel configuration
102 and recompile the kernel if necessary:</para>
103
104<screen><literal>File systems:
105 Network File Systems:
106 NFS File System Support: M or Y
107 NFS Server Support: M or Y</literal></screen>
108
109 <para>Select the appropriate sub-options that appear when the above options
110 are selected.</para>
111
112 <indexterm zone="nfs-utils nfs-utils-kernel">
113 <primary sortas="d-nfs-utils">NFS Utilities</primary>
114 </indexterm>
115
116 </sect2>
117
118 <sect2 role="installation" id='nfs-utils-install'
119 xreflabel='NFS Utilities Installation'>
120 <title>Installation of NFS Utilities</title>
121
122 <para>Before you compile the program, ensure that the
123 <systemitem class="username">nobody</systemitem> user and
124 <systemitem class="groupname">nogroup</systemitem> group have been
125 created. You can add them by running the following commands as the
126 <systemitem class="username">root</systemitem> user:</para>
127
128<screen role="root"><userinput>groupadd -g 99 nogroup &amp;&amp;
129useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
130 -s /bin/false -u 99 nobody</userinput></screen>
131
132 <note>
133 <para>The classic uid and gid values are 65534 which is also -2 when
134 interpreted as a signed 16-bit number. These values impact other files
135 on some filesystems that do not have support for sparse files. The
136 <systemitem class="username">nobody</systemitem> and <systemitem
137 class="groupname">nogroup</systemitem> values are relatively arbitrary.
138 The impact on a server is nil if the <filename>exports</filename> file
139 is configured correctly. If it is misconfigured, an
140 <command>ls -l</command> or <command>ps</command> listing will show a
141 uid or gid number of 65534 instead of a name. The client uses <systemitem
142 class="username">nobody</systemitem> only as the user running
143 <command>rpc.statd</command>.</para>
144 </note>
145
146 <para>Install <application>NFS Utilities</application> by running
147 the following commands:</para>
148
149<screen><userinput>./configure --prefix=/usr \
150 --sysconfdir=/etc \
151 --disable-nfsv4 \
152 --disable-gss &amp;&amp;
153make</userinput></screen>
154
155 <para>This package does not come with a test suite.</para>
156
157 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
158
159 <note>
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 </note>
166
167<screen role='root'><userinput>make install</userinput></screen>
168
169 </sect2>
170
171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
174 <para><parameter>--disable-nfsv4</parameter>: Disables support
175 for NFS version 4.</para>
176
177 <para><parameter>--disable-gss</parameter>: Disables support for
178 RPCSEC GSS (RPC Security).</para>
179
180 <para><option>--with-tcp-wrappers</option>: Use this option to enable
181 tcpwrappers support.</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/255.255.255.0&gt;</replaceable>(rw,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
210 linkend="bootscripts"/> package to start the server
211 at boot.</para>
212
213<screen role="root"><userinput>make install-nfs-server</userinput></screen>
214
215 <indexterm zone="nfs-utils nfs-utils-server-init">
216 <primary sortas="f-nfs-server">nfs-server</primary>
217 </indexterm>
218
219 <para>Now create the <filename>/etc/sysconfig/nfs-server</filename>
220 configuration file:</para>
221
222<screen role="root"><userinput>cat &gt; /etc/sysconfig/nfs-server &lt;&lt; "EOF"
223<literal>PORT="2049"
224PROCESSES="8"
225QUOTAS="no"
226KILLDELAY="10"</literal>
227EOF</userinput></screen>
228
229 <indexterm zone="nfs-utils nfs-utils-server-init">
230 <primary
231 sortas="e-etc-sysconfig-nfs-server">/etc/sysconfig/nfs-server</primary>
232 </indexterm>
233
234 </sect4>
235
236 <sect4 id="nfs-utils-server-wrappers-support">
237 <title>tcpwrappers Configuration</title>
238
239 <para>If you enabled support for <application>tcpwrappers</application>,
240 ensure you have an entry in the <filename>/etc/hosts.allow</filename>
241 file for access from the <command>portmap</command> daemon if you have a
242 restrictive <filename>/etc/hosts.deny</filename> file.</para>
243
244 </sect4>
245
246 </sect3>
247
248 <sect3 id='nfs-utils-client-config'>
249 <title>Client Configuration</title>
250
251 <para><filename>/etc/fstab</filename> contains the directories that
252 are to be mounted on the client. Alternately the partitions can be
253 mounted by using the <command>mount</command> command with the proper
254 options. To mount the <filename class="directory">/home</filename>
255 and <filename class="directory">/usr</filename> partitions, add the
256 following to the <filename>/etc/fstab</filename>:</para>
257
258<screen role="root"><userinput>&lt;server-name&gt;:/home /home nfs rw,_netdev,rsize=8192,wsize=8192 0 0
259&lt;server-name&gt;:/usr /usr nfs ro,_netdev,rsize=8192 0 0</userinput></screen>
260
261 <indexterm zone="nfs-utils nfs-utils-client-config">
262 <primary sortas="e-etc-fstab">/etc/fstab</primary>
263 </indexterm>
264
265 <sect4 id="nfs-utils-client-init">
266 <title>Boot Script</title>
267
268 <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
269 init script included in the
270 <xref linkend="bootscripts"/> package to
271 start the client services at boot.</para>
272
273<screen role="root"><userinput>make install-nfs-client</userinput></screen>
274
275 <indexterm zone="nfs-utils nfs-utils-client-config">
276 <primary sortas="f-nfs-client">nfs-client</primary>
277 </indexterm>
278
279 <para>To automatically mount <systemitem
280 class="filesystem">nfs</systemitem> filesystems, clients will also
281 need to install the <filename>netfs</filename> bootscript as described
282 in <xref linkend='postlfs-config-netfs'/>.</para>
283
284 <indexterm zone="nfs-utils nfs-utils-client-config">
285 <primary sortas="f-netfs">netfs</primary>
286 </indexterm>
287
288 </sect4>
289
290 </sect3>
291
292 </sect2>
293
294 <sect2 role="content">
295 <title>Contents</title>
296 <segmentedlist>
297 <segtitle>Installed Programs</segtitle>
298 <segtitle>Installed Libraries</segtitle>
299 <segtitle>Installed Directories</segtitle>
300
301 <seglistitem>
302 <seg>exportfs, nfsstat, nhfsgraph, nhfsnums, nhfsrun, nhfsstone,
303 rpc.lockd, rpc.mountd, rpc.nfsd, rpc.rquotad, rpc.statd,
304 and showmount</seg>
305 <seg>None</seg>
306 <seg>/var/lib/nfs</seg>
307 </seglistitem>
308 </segmentedlist>
309
310 <variablelist>
311 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
312 <?dbfo list-presentation="list"?>
313 <?dbhtml list-presentation="table"?>
314
315 <varlistentry id="exportfs">
316 <term><command>exportfs</command></term>
317 <listitem>
318 <para>maintains a list of NFS exported file systems.</para>
319 <indexterm zone="nfs-utils exportfs">
320 <primary sortas="b-exportfs">exportfs</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="nfsstat">
326 <term><command>nfsstat</command></term>
327 <listitem>
328 <para>prints NFS statistics.</para>
329 <indexterm zone="nfs-utils nfsstat">
330 <primary sortas="b-nfsstat">nfsstat</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="nhfsgraph">
336 <term><command>nhfsgraph</command></term>
337 <listitem>
338 <para>runs <command>nhfsstone</command> over multiple loads.</para>
339 <indexterm zone="nfs-utils nhfsgraph">
340 <primary sortas="b-nhfsgraph">nhfsgraph</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="nhfsnums">
346 <term><command>nhfsnums</command></term>
347 <listitem>
348 <para>converts raw numbers from <command>nhfsstone</command>
349 output into plot format.</para>
350 <indexterm zone="nfs-utils nhfsnums">
351 <primary sortas="b-nhfsnums">nhfsnums</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="nhfsrun">
357 <term><command>nhfsrun</command></term>
358 <listitem>
359 <para>executes <command>nhfsstone</command> with a range of
360 different loads.</para>
361 <indexterm zone="nfs-utils nhfsrun">
362 <primary sortas="b-nhfsrun">nhfsrun</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="nhfsstone">
368 <term><command>nhfsstone</command></term>
369 <listitem>
370 <para>is used on a NFS client to generate an artificial load
371 with a particular mix of NFS operations.</para>
372 <indexterm zone="nfs-utils nhfsstone">
373 <primary sortas="b-nhfsstone">nhfsstone</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="rpclockd">
379 <term><command>rpc.lockd</command></term>
380 <listitem>
381 <para>starts the NFS lock manager (NLM) on kernels that don't
382 start it automatically. However, since most kernels do start it
383 automatically it is usually not required.</para>
384 <indexterm zone="nfs-utils rpclockd">
385 <primary sortas="b-rpclockd">rpc.lockd</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="rpcmountd">
391 <term><command>rpc.mountd</command></term>
392 <listitem>
393 <para>implements the NFS mount protocol on an NFS server.</para>
394 <indexterm zone="nfs-utils rpcmountd">
395 <primary sortas="b-rpcmountd">rpc.mountd</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="rpcnfsd">
401 <term><command>rpc.nfsd</command></term>
402 <listitem>
403 <para>implements the user level part of the NFS
404 service on the server.</para>
405 <indexterm zone="nfs-utils rpcnfsd">
406 <primary sortas="b-rpcnfsd">rpc.nfsd</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="rpcrquotad">
412 <term><command>rpc.rquotad</command></term>
413 <listitem>
414 <para>is an rpc server which returns quotas for a user of a
415 local file system which is mounted by a remote machine over
416 the NFS.</para>
417 <indexterm zone="nfs-utils rpcrquotad">
418 <primary sortas="b-rpcrquotad">rpc.rquotad</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
423 <varlistentry id="rpcstatd">
424 <term><command>rpc.statd</command></term>
425 <listitem>
426 <para>is used by the NFS file locking service,
427 <command>rpc.lockd</command>, to implement lock recovery when
428 the NFS server machine crashes and reboots. Runs on the NFS
429 server only.</para>
430 <indexterm zone="nfs-utils rpcstatd">
431 <primary sortas="b-rpcstatd">rpc.statd</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="showmount">
437 <term><command>showmount</command></term>
438 <listitem>
439 <para>displays mount information for an NFS server.</para>
440 <indexterm zone="nfs-utils showmount">
441 <primary sortas="b-showmount">showmount</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 </variablelist>
447
448 </sect2>
449
450</sect1>
Note: See TracBrowser for help on using the repository browser.