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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 e164343 was e164343, checked in by Randy McMurchy <randy@…>, 19 years ago

Fixed typos in NFS-Utils instructions

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

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