source: networking/netprogs/nfs-utils.xml@ 4b47205

systemd-13485
Last change on this file since 4b47205 was 8ee0429, checked in by Douglas R. Reno <renodr@…>, 8 years ago

(systemd) LFS79 Tags
(systemd) Tons of GCC6 Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17471 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 17.9 KB
RevLine 
[d47e7ea9]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[d47e7ea9]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[8e82479]7 <!ENTITY nfs-utils-download-http "&sourceforge-repo;/nfs/nfs-utils-&nfs-utils-version;.tar.bz2">
[8070b391]8 <!ENTITY nfs-utils-download-ftp " ">
[b91aa96]9 <!ENTITY nfs-utils-md5sum "9b87d890669eaaec8e97a2b0a35b2665">
10 <!ENTITY nfs-utils-size "776 KB">
11 <!ENTITY nfs-utils-buildsize "14 MB">
12 <!ENTITY nfs-utils-time "0.2 SBU">
[d47e7ea9]13]>
14
[b91aa96]15<sect1 id="nfs-utils" xreflabel="nfs-utils-&nfs-utils-version;">
[b86cfc2]16 <?dbhtml filename="nfs-utils.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[f8af105]23 <title>NFS-Utils-&nfs-utils-version;</title>
[b86cfc2]24
25 <indexterm zone="nfs-utils">
[b91aa96]26 <primary sortas="a-Nfs-utils">NFS Utilities</primary>
[b86cfc2]27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to NFS Utilities</title>
31
[b91aa96]32 <para>The <application>NFS Utilities</application> package contains the
33 userspace server and client tools necessary to use the kernel's NFS
34 abilities. NFS is a protocol that allows sharing file systems over the
35 network.</para>
[b86cfc2]36
[8ee0429]37 &lfs79_checked;&gcc6_checked;
[d40e1a4]38
[08fa4835]39 <bridgehead renderas="sect3">Package Information</bridgehead>
[b86cfc2]40 <itemizedlist spacing='compact'>
41 <listitem>
[b91aa96]42 <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para>
[b86cfc2]43 </listitem>
44 <listitem>
[b91aa96]45 <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para>
[b86cfc2]46 </listitem>
47 <listitem>
[b91aa96]48 <para>Download MD5 sum: &nfs-utils-md5sum;</para>
[b86cfc2]49 </listitem>
50 <listitem>
[b91aa96]51 <para>Download size: &nfs-utils-size;</para>
[b86cfc2]52 </listitem>
53 <listitem>
[b91aa96]54 <para>Estimated disk space required: &nfs-utils-buildsize;</para>
[b86cfc2]55 </listitem>
56 <listitem>
[b91aa96]57 <para>Estimated build time: &nfs-utils-time;</para>
[b86cfc2]58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">NFS Utilities Dependencies</bridgehead>
62
63 <bridgehead renderas="sect4">Required</bridgehead>
[ed6a289c]64 <para role="required">
[b163480]65 <xref linkend="libtirpc"/>
[ed6a289c]66 </para>
[06eb274]67
[b163480]68 <bridgehead renderas="sect4">Optional</bridgehead>
[ed6a289c]69 <para role="optional">
[b91aa96]70 <xref linkend="libevent"/>,
71 <xref linkend="sqlite"/> and
72 <xref linkend="libnfsidmap"/> (for NFSv4 support),
[ed6a289c]73 <xref linkend="mitkrb"/> or
[b91aa96]74 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and
75 <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink> (for GSS and RPC security support) and
76 <xref linkend="libcap-pam"/>
[ed6a289c]77 </para>
[0f10bc0]78
[b163480]79 <bridgehead renderas="sect4">Required (runtime)</bridgehead>
80 <para role="required">
[cca69d7]81 <xref linkend="rpcbind"/>
[ed6a289c]82 </para>
[b86cfc2]83
[3cb0c57]84 <para condition="html" role="usernotes">User Notes:
[b91aa96]85 <ulink url="&blfs-wiki;/nfs-utils"/></para>
86
[b86cfc2]87 </sect2>
88
[b91aa96]89 <sect2 role="kernel" id='nfs-utils-kernel'>
[b86cfc2]90 <title>Kernel Configuration</title>
91
[b91aa96]92 <para>Enable the following options in the kernel configuration
[d7bee48]93 (choose client and/or server support as appropriate) and recompile the
94 kernel if necessary:</para>
[d47e7ea9]95
[b163480]96<screen><literal>File systems ---&gt;
[ac38e9dc]97 [*] Network File Systems ---&gt; [CONFIG_NETWORK_FILESYSTEMS]
98 &lt;*/M&gt; NFS client support [CONFIG_NFS_FS]
99 &lt;*/M&gt; NFS server support [CONFIG_NFSD]</literal></screen>
[d47e7ea9]100
[b91aa96]101 <para>Select the appropriate sub-options that appear when the above options
102 are selected.</para>
[d7bee48]103
104 <note>
105 <para>
106 In BLFS we assume that nfs v3 will be used. If the
107 <emphasis>server</emphasis> offers nfs v4 (for linux, CONFIG_NFSD_V4)
108 then auto-negotiation for v3 will fail and you will need to add
109 <literal>nfsver=3</literal> to the mount options. This also applies
110 if that option is enabled in the <emphasis>client's</emphasis> kernel,
111 for example in a distro trying to mount from a BLFS v3 server.
112 </para>
113 </note>
[b86cfc2]114
115 <indexterm zone="nfs-utils nfs-utils-kernel">
[b91aa96]116 <primary sortas="d-nfs-utils">NFS Utilities</primary>
[b86cfc2]117 </indexterm>
[d47e7ea9]118
[b86cfc2]119 </sect2>
[d47e7ea9]120
[b91aa96]121 <sect2 role="installation" id='nfs-utils-install'
122 xreflabel='NFS Utilities Installation'>
[b86cfc2]123 <title>Installation of NFS Utilities</title>
[d47e7ea9]124
[b91aa96]125 <para>Install <application>NFS Utilities</application> by running
126 the following commands:</para>
[a16cb066]127
[b91aa96]128<screen><userinput>./configure --prefix=/usr \
129 --sysconfdir=/etc \
130 --without-tcp-wrappers \
131 --disable-nfsv4 \
132 --disable-gss &amp;&amp;
[ac38e9dc]133make</userinput></screen>
134
[b91aa96]135 <para>If your <filename class="directory">/usr</filename> directory
136 is NFS mounted, you should install the executables in
137 <filename class="directory">/sbin</filename> by passing
138 an additional parameter <option>--sbindir=/sbin</option> to the
139 above <command>./configure</command> command.</para>
[ac38e9dc]140
[b91aa96]141 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[d47e7ea9]142
[b163480]143<!-- dev note: make statduser=$(whoami) DESTDIR=<DESTDIR> install -->
[ac38e9dc]144
[b91aa96]145<screen role='root'><userinput>make install &amp;&amp;
146chmod u+w,go+r /sbin/mount.nfs</userinput></screen>
[b163480]147
[b91aa96]148 <para>The tests for this package require that the package be installed and
149 configured as specified below. In addition, the the daemon from <xref
150 linkend="rpcbind"/> needs to be running and the tests need to be run as the
151 <systemitem class="username">root</systemitem> user.</para>
[ac38e9dc]152
[b91aa96]153 <para>To test the results, issue, as root: <command>make check</command>.</para>
[e20c8110]154
[b86cfc2]155 </sect2>
[d47e7ea9]156
[b86cfc2]157 <sect2 role="commands">
158 <title>Command Explanations</title>
[a16cb066]159
[b91aa96]160 <para><parameter>--without-tcp-wrappers</parameter>: This option is
161 needed because TCP Wrappers is not in BLFS.</para>
[ac38e9dc]162
[d7bee48]163 <para><parameter>--disable-nfsv4</parameter>: This allows the package to be
164 built when libnfsidmap has not been installed.</para>
[b163480]165
[b91aa96]166 <para><parameter>--disable-gss</parameter>: Disables support for
167 RPCSEC GSS (RPC Security).</para>
[a16cb066]168
[b86cfc2]169 </sect2>
[a16cb066]170
[b86cfc2]171 <sect2 role="configuration">
172 <title>Configuring NFS Utilities</title>
[d47e7ea9]173
[b91aa96]174 <sect3 id='nfs-utils-server-config'>
175 <title>Server Configuration</title>
176
177 <para><filename>/etc/exports</filename> contains the exported directories
178 on NFS servers. Refer to the <filename>exports.5</filename> manual page
179 for the syntax of this file. Also refer to the "NFS HowTo" available at
180 <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on
181 how to configure the servers and clients in a secure manner. For example,
182 for sharing the <filename class="directory">/home</filename> directory
183 over the local network, the following line may be added:</para>
184
185<screen role="root"><userinput>/home <replaceable>192.168.0.0/24</replaceable>(rw,subtree_check,anonuid=99,anongid=99)</userinput></screen>
186
187 <note><para>Be sure to replace the directory, network address. and prefix above
188 to match your network. The only space in the line above should be between
189 the directory and the network address.</para></note>
[d47e7ea9]190
[b86cfc2]191 <indexterm zone="nfs-utils nfs-utils-server-config">
192 <primary sortas="e-etc-exportfs">/etc/exportfs</primary>
193 </indexterm>
194
[e20c8110]195 <sect4 id="nfs-utils-server-init">
[932240d]196 <title>Systemd Units</title>
[a16cb066]197
[932240d]198 <para>
[0da88ea3]199 To start the NFS server daemons at boot,
[932240d]200 install the systemd units from the <xref linkend="bootscripts"/>
201 package by running the following command as the
202 <systemitem class="username">root</systemitem> user:
203 </para>
[d47e7ea9]204
[ac38e9dc]205<screen role="root"><userinput>make install-nfsv4-server</userinput></screen>
206
207 <para>
208 If you have disabled NFSv4 support, run the following
209 command as the <systemitem
210 class="username">root</systemitem> user to omit the NFSv4
211 specific systemd units:
212 </para>
213
[eaf6a1cd]214<screen role="root"><userinput>make install-nfs-server</userinput></screen>
[d47e7ea9]215
[b86cfc2]216 <indexterm zone="nfs-utils nfs-utils-server-init">
217 <primary sortas="f-nfs-server">nfs-server</primary>
218 </indexterm>
219
[ac38e9dc]220 <para>
221 You can edit the <filename>/etc/default/nfs-utils</filename>
222 file to change the startup options for NFS daemons. Defaults
223 should be fine for most use cases.
224 </para>
[ed6a289c]225
[b86cfc2]226 <indexterm zone="nfs-utils nfs-utils-server-init">
[932240d]227 <primary sortas="e-etc-default-nfs-utils">/etc/default/nfs-utils</primary>
[b86cfc2]228 </indexterm>
229
230 </sect4>
[d47e7ea9]231
[b86cfc2]232 </sect3>
[d47e7ea9]233
[b91aa96]234 <sect3 id='nfs-utils-client-config'>
[3a929dc]235 <title>Client Configuration</title>
[eaf6a1cd]236
[b91aa96]237 <para><filename>/etc/fstab</filename> contains the directories that
238 are to be mounted on the client. Alternately the partitions can be
239 mounted by using the <command>mount</command> command with the proper
240 options. To mount the <filename class="directory">/home</filename>
241 and <filename class="directory">/usr</filename> partitions, add the
242 following to the <filename>/etc/fstab</filename>:</para>
243
244<screen role="root"><userinput><replaceable>&lt;server-name&gt;</replaceable>:/home /home nfs rw,_netdev 0 0
245<replaceable>&lt;server-name&gt;</replaceable>:/usr /usr nfs ro,_netdev 0 0</userinput></screen>
246
247 <para>The options which can be used are specified in <command>man 5 nfs</command>.
248 If both the client and server are running recent versions of linux, most of the
249 options will be negotiated. You can specify either <literal>rw</literal> or
250 <literal>ro</literal>, <literal>_netdev</literal> if the filesystem is to be
251 automatically mounted at boot, or <literal>noauto</literal> (and perhaps
252 <literal>user</literal>) for other filesystems.</para>
253
254 <para>If the fileserver is not running a recent version of linux, you may need to
255 specifiy other options.</para>
256
257 <para>If you are using systemd, you may need to enable autofs v4 in your kernel,
258 and add the option <literal>comment=systemd.automount</literal>. Some machines
259 need this, because systemd tries to mount the external fs&apos;s before the network
260 is up, others do not need it. An alternative is for <systemitem
261 class="username">root</systemitem> to run <command>mount -a</command>.</para>
[a16cb066]262
[b86cfc2]263 <indexterm zone="nfs-utils nfs-utils-client-config">
264 <primary sortas="e-etc-fstab">/etc/fstab</primary>
265 </indexterm>
[d47e7ea9]266
[b86cfc2]267 <sect4 id="nfs-utils-client-init">
[932240d]268 <title>Systemd Units</title>
[d47e7ea9]269
[ac38e9dc]270 <note>
271 <para>
272 The following systemd unis are not required if the
273 nfs-server units were previously installed.
274 </para>
275 </note>
[ed6a289c]276
[932240d]277 <para>
278 To start the NFS client services at boot,
279 install the systemd units from the <xref linkend="bootscripts"/>
280 package by running the following command as the
281 <systemitem class="username">root</systemitem> user:
282 </para>
[a16cb066]283
[b86cfc2]284<screen role="root"><userinput>make install-nfs-client</userinput></screen>
[a16cb066]285
[b86cfc2]286 <indexterm zone="nfs-utils nfs-utils-client-config">
287 <primary sortas="f-nfs-client">nfs-client</primary>
288 </indexterm>
289
290 </sect4>
291
292 </sect3>
293
294 </sect2>
295
296 <sect2 role="content">
297 <title>Contents</title>
298 <segmentedlist>
299 <segtitle>Installed Programs</segtitle>
300 <segtitle>Installed Libraries</segtitle>
301 <segtitle>Installed Directories</segtitle>
302
303 <seglistitem>
[b91aa96]304 <seg>exportfs, mountstats, mount.nfs, mount.nfs4 (link to mount.nfs),
305 nfsiostat, nfsstat, osd_login, rpc.mountd, rpc.nfsd, rpc.statd, rpcdebug,
306 showmount, sm-notify, start-statd, umount.nfs (link to mount.nfs),
307 and umount.nfs4 (link to mount.nfs)</seg>
308 <seg>None</seg>
309 <seg>/var/lib/nfs</seg>
[b86cfc2]310 </seglistitem>
311 </segmentedlist>
312
313 <variablelist>
314 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
315 <?dbfo list-presentation="list"?>
316 <?dbhtml list-presentation="table"?>
317
[b91aa96]318 <varlistentry id="exportfs">
319 <term><command>exportfs</command></term>
[b86cfc2]320 <listitem>
[b91aa96]321 <para>maintains a list of NFS exported file systems.</para>
322 <indexterm zone="nfs-utils exportfs">
323 <primary sortas="b-exportfs">exportfs</primary>
[b86cfc2]324 </indexterm>
325 </listitem>
326 </varlistentry>
327
[b91aa96]328 <varlistentry id="mountstats">
329 <term><command>mountstats</command></term>
[d40e1a4]330 <listitem>
[b91aa96]331 <para>displays NFS client per-mount statistics.</para>
332 <indexterm zone="nfs-utils mountstats">
333 <primary sortas="b-mountstats">mountstats</primary>
[d40e1a4]334 </indexterm>
335 </listitem>
336 </varlistentry>
337
[cb0bbd2]338 <varlistentry id="mount.nfs">
[0f10bc0]339 <term><command>mount.nfs</command></term>
340 <listitem>
[b91aa96]341 <para>Used to mount a network share using NFS</para>
[cb0bbd2]342 <indexterm zone="nfs-utils mount.nfs">
343 <primary sortas="b-mount.nfs">mount.nfs</primary>
[0f10bc0]344 </indexterm>
345 </listitem>
346 </varlistentry>
347
[cb0bbd2]348 <varlistentry id="mount.nfs4">
[0f10bc0]349 <term><command>mount.nfs4</command></term>
350 <listitem>
[b91aa96]351 <para>Used to mount a network share using NFSv4</para>
[cb0bbd2]352 <indexterm zone="nfs-utils mount.nfs4">
353 <primary sortas="b-mount.nfs4">mount.nfs4</primary>
[0f10bc0]354 </indexterm>
355 </listitem>
356 </varlistentry>
357
[d40e1a4]358 <varlistentry id="nfsiostat-nfs-utils">
359 <term><command>nfsiostat</command></term>
360 <listitem>
[b91aa96]361 <para>Report input/output statistics for network filesystems.</para>
[d40e1a4]362 <indexterm zone="nfs-utils nfsiostat-nfs-utils">
363 <primary sortas="b-nfsiostat-nfs-utils">nfsiostat</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
[b86cfc2]368 <varlistentry id="nfsstat">
369 <term><command>nfsstat</command></term>
370 <listitem>
[b91aa96]371 <para>displays statistics kept about NFS client and server activity.</para>
[b86cfc2]372 <indexterm zone="nfs-utils nfsstat">
373 <primary sortas="b-nfsstat">nfsstat</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
[cb0bbd2]378 <varlistentry id="osd_login">
379 <term><command>osd_login</command></term>
380 <listitem>
[b91aa96]381 <para>is a script that is a part of the autologin feature
[cb0bbd2]382 mandated by the pnfs-objects standard.</para>
383 <indexterm zone="nfs-utils osd_login">
384 <primary sortas="b-osd_login">osd_login</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389
390 <varlistentry id="rpc.mountd">
[b86cfc2]391 <term><command>rpc.mountd</command></term>
392 <listitem>
[b91aa96]393 <para>implements the NFS mount protocol on an NFS server.</para>
[cb0bbd2]394 <indexterm zone="nfs-utils rpc.mountd">
395 <primary sortas="b-rpc.mountd">rpc.mountd</primary>
[b86cfc2]396 </indexterm>
397 </listitem>
398 </varlistentry>
399
[cb0bbd2]400 <varlistentry id="rpc.nfsd">
[b86cfc2]401 <term><command>rpc.nfsd</command></term>
402 <listitem>
[b91aa96]403 <para>implements the user level part of the NFS
404 service on the server.</para>
[cb0bbd2]405 <indexterm zone="nfs-utils rpc.nfsd">
406 <primary sortas="b-rpc.nfsd">rpc.nfsd</primary>
[b86cfc2]407 </indexterm>
408 </listitem>
409 </varlistentry>
410
[cb0bbd2]411 <varlistentry id="rpc.statd">
[b86cfc2]412 <term><command>rpc.statd</command></term>
413 <listitem>
[b91aa96]414 <para>is used by the NFS file locking service. Run on both sides,
415 client as well as server, when you want file locking enabled.</para>
[cb0bbd2]416 <indexterm zone="nfs-utils rpc.statd">
417 <primary sortas="b-rpc.statd">rpc.statd</primary>
[b86cfc2]418 </indexterm>
419 </listitem>
420 </varlistentry>
421
[b91aa96]422 <varlistentry id="rpcdebug">
423 <term><command>rpcdebug</command></term>
424 <listitem>
425 <para>sets or clears the kernel's NFS client and server debug
426 flags.</para>
427 <indexterm zone="nfs-utils rpcdebug">
428 <primary sortas="b-rpcdebug">rpcdebug</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
[b86cfc2]433 <varlistentry id="showmount">
434 <term><command>showmount</command></term>
435 <listitem>
[b91aa96]436 <para>displays mount information for an NFS server.</para>
[b86cfc2]437 <indexterm zone="nfs-utils showmount">
438 <primary sortas="b-showmount">showmount</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
[d3761424]443 <varlistentry id="sm-notify">
444 <term><command>sm-notify</command></term>
445 <listitem>
[b91aa96]446 <para>is used to send Network Status Monitor reboot messages.</para>
[d3761424]447 <indexterm zone="nfs-utils sm-notify">
448 <primary sortas="b-sm-notify">sm-notify</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
453 <varlistentry id="start-statd">
454 <term><command>start-statd</command></term>
455 <listitem>
[b91aa96]456 <para>is a script called by nfsmount when mounting a filesystem with
457 locking enabled, if statd does not appear to be running. It can be
458 customised with whatever flags are appropriate for the site.</para>
[d3761424]459 <indexterm zone="nfs-utils start-statd">
460 <primary sortas="b-start-statd">start-statd</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
[cb0bbd2]465 <varlistentry id="umount.nfs">
[0f10bc0]466 <term><command>umount.nfs</command></term>
467 <listitem>
[b91aa96]468 <para>Used to unmount a network share using NFS</para>
[cb0bbd2]469 <indexterm zone="nfs-utils umount.nfs">
470 <primary sortas="b-umount.nfs">umount.nfs</primary>
[0f10bc0]471 </indexterm>
472 </listitem>
473 </varlistentry>
474
[cb0bbd2]475 <varlistentry id="umount.nfs4">
[0f10bc0]476 <term><command>umount.nfs4</command></term>
477 <listitem>
[b91aa96]478 <para>Used to unmount a network share using NFSv4</para>
[cb0bbd2]479 <indexterm zone="nfs-utils umount.nfs4">
480 <primary sortas="b-umount.nfs4">umount.nfs4</primary>
[0f10bc0]481 </indexterm>
482 </listitem>
483 </varlistentry>
484
[b86cfc2]485 </variablelist>
486
487 </sect2>
[d47e7ea9]488
[176b211]489</sect1>
Note: See TracBrowser for help on using the repository browser.