source: server/major/nfs-utils.xml@ 88adcdd

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 88adcdd was 4b067af, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Add proper dependencies for nfs-utils

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