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

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

Update nfs-utils to 1.0.7

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

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