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

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 ff8e45f was ff8e45f, checked in by Dan Nichilson <dnicholson@…>, 18 years ago

Added gcc4 patch for nfs-utils-1.0.7

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

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