source: server/major/nfs-utils.xml@ 0aeb696

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 0aeb696 was 0aeb696, checked in by Randy McMurchy <randy@…>, 18 years ago

Added a comment to each file that may need a mention of a test suite added to it, this allows closing of bug #1697

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

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