[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 |
|
---|
[1f4c3f9f] | 7 | <!ENTITY nfs-utils-download-http "&sourceforge-dl;/nfs/nfs-utils-&nfs-utils-version;.tar.xz">
|
---|
[8070b391] | 8 | <!ENTITY nfs-utils-download-ftp " ">
|
---|
[ff1cc0f] | 9 | <!ENTITY nfs-utils-md5sum "ce1921b8f15db54c3a6c840795312242">
|
---|
| 10 | <!ENTITY nfs-utils-size "659 KB">
|
---|
[bfe8dc3f] | 11 | <!ENTITY nfs-utils-buildsize "16 MB">
|
---|
[42e4ab5a] | 12 | <!ENTITY nfs-utils-time "0.2 SBU">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[f8af105] | 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">
|
---|
| 26 | <primary sortas="a-Nfs-utils">NFS Utilities</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to NFS Utilities</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>NFS Utilities</application> package contains the
|
---|
[e20c8110] | 33 | userspace server and client tools necessary to use the kernel's NFS
|
---|
[b86cfc2] | 34 | abilities. NFS is a protocol that allows sharing file systems over the
|
---|
| 35 | network.</para>
|
---|
| 36 |
|
---|
[3077c39] | 37 | &lfs90_checked;
|
---|
[d40e1a4] | 38 |
|
---|
[08fa4835] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[b86cfc2] | 40 | <itemizedlist spacing='compact'>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&nfs-utils-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&nfs-utils-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &nfs-utils-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &nfs-utils-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &nfs-utils-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &nfs-utils-time;</para>
|
---|
| 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">
|
---|
[8c83efc] | 65 | <xref linkend="libtirpc"/>,
|
---|
| 66 | <xref linkend="rpcsvc-proto"/>
|
---|
[ed6a289c] | 67 | </para>
|
---|
[06eb274] | 68 |
|
---|
[b163480] | 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[ed6a289c] | 70 | <para role="optional">
|
---|
[a15d5e1] | 71 | <xref linkend="lvm2"/> (libdevmapper for NFSv4 support),
|
---|
[ef5c2e3] | 72 | <xref linkend="libnfsidmap"/> (for NFSv4 support),
|
---|
[a15d5e1] | 73 | <xref linkend="libnsl"/> (for NIS client support),
|
---|
| 74 | <xref linkend="sqlite"/>,
|
---|
[ed6a289c] | 75 | <xref linkend="mitkrb"/> or
|
---|
| 76 | <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">libgssapi</ulink>, and
|
---|
[6336840d] | 77 | <ulink url="http://www.citi.umich.edu/projects/nfsv4/linux/">librpcsecgss</ulink> (for GSS and RPC security support) and
|
---|
[cb1e2842] | 78 |
|
---|
[56605b9] | 79 | <xref linkend="libcap-pam"/>
|
---|
[ed6a289c] | 80 | </para>
|
---|
[0f10bc0] | 81 |
|
---|
[b163480] | 82 | <bridgehead renderas="sect4">Required (runtime)</bridgehead>
|
---|
| 83 | <para role="required">
|
---|
[45029cb] | 84 | <xref role="runtime" linkend="rpcbind"/>
|
---|
[ed6a289c] | 85 | </para>
|
---|
[b86cfc2] | 86 |
|
---|
[a15d5e1] | 87 | <!-- NSS configuration isn't directly related to NFS, but left here in case
|
---|
| 88 | <bridgehead renderas="sect4">Optional (runtime for NIS clients)</bridgehead>
|
---|
| 89 | <para role="optional">
|
---|
| 90 | <ulink url="https://github.com/thkukuk/libnss_compat">libnss_compat</ulink>,
|
---|
| 91 | <ulink url="https://github.com/thkukuk/libnss_nis">libnss_nis</ulink>, and
|
---|
| 92 | <ulink url="https://github.com/thkukuk/libnss_nisplus">libnss_nisplus</ulink>
|
---|
| 93 | </para>
|
---|
| 94 | -->
|
---|
| 95 |
|
---|
[3cb0c57] | 96 | <para condition="html" role="usernotes">User Notes:
|
---|
| 97 | <ulink url="&blfs-wiki;/nfs-utils"/></para>
|
---|
| 98 |
|
---|
[b86cfc2] | 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="kernel" id='nfs-utils-kernel'>
|
---|
| 102 | <title>Kernel Configuration</title>
|
---|
| 103 |
|
---|
| 104 | <para>Enable the following options in the kernel configuration
|
---|
[d2df2ce] | 105 | (choose client and/or server support as appropriate) and recompile the
|
---|
| 106 | kernel if necessary:</para>
|
---|
[d47e7ea9] | 107 |
|
---|
[b163480] | 108 | <screen><literal>File systems --->
|
---|
[196d393] | 109 | [*] Network File Systems ---> [CONFIG_NETWORK_FILESYSTEMS]
|
---|
| 110 | <*/M> NFS client support [CONFIG_NFS_FS]
|
---|
| 111 | <*/M> NFS server support [CONFIG_NFSD]</literal></screen>
|
---|
[d47e7ea9] | 112 |
|
---|
[b86cfc2] | 113 | <para>Select the appropriate sub-options that appear when the above options
|
---|
| 114 | are selected.</para>
|
---|
| 115 |
|
---|
[d2df2ce] | 116 | <note>
|
---|
| 117 | <para>
|
---|
| 118 | In BLFS we assume that nfs v3 will be used. If the
|
---|
| 119 | <emphasis>server</emphasis> offers nfs v4 (for linux, CONFIG_NFSD_V4)
|
---|
| 120 | then auto-negotiation for v3 will fail and you will need to add
|
---|
| 121 | <literal>nfsver=3</literal> to the mount options. This also applies
|
---|
| 122 | if that option is enabled in the <emphasis>client's</emphasis> kernel,
|
---|
| 123 | for example in a distro trying to mount from a BLFS v3 server.
|
---|
| 124 | </para>
|
---|
[1f4c3f9f] | 125 | <para>
|
---|
| 126 | Even if neither end of the connection supports nfs v4, adding
|
---|
| 127 | <literal>nfsver=3</literal> is still beneficial because it prevents an
|
---|
| 128 | error message "NFS: bad mount option value specified: minorversion=1"
|
---|
| 129 | being logged on every mount.
|
---|
| 130 | </para>
|
---|
[d2df2ce] | 131 | </note>
|
---|
| 132 |
|
---|
[b86cfc2] | 133 | <indexterm zone="nfs-utils nfs-utils-kernel">
|
---|
| 134 | <primary sortas="d-nfs-utils">NFS Utilities</primary>
|
---|
| 135 | </indexterm>
|
---|
[d47e7ea9] | 136 |
|
---|
[b86cfc2] | 137 | </sect2>
|
---|
[d47e7ea9] | 138 |
|
---|
[e20c8110] | 139 | <sect2 role="installation" id='nfs-utils-install'
|
---|
| 140 | xreflabel='NFS Utilities Installation'>
|
---|
[b86cfc2] | 141 | <title>Installation of NFS Utilities</title>
|
---|
[d47e7ea9] | 142 |
|
---|
[b0b87ad6] | 143 | <para>Before you compile the program, ensure that the <systemitem
|
---|
| 144 | class="username">nobody</systemitem> user and <systemitem
|
---|
| 145 | class="groupname">nogroup</systemitem> group have been created as done in
|
---|
| 146 | the current LFS book. You can add them by running the following commands
|
---|
| 147 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[a16cb066] | 148 |
|
---|
[8c2155e] | 149 | <screen role="nodump"><userinput>groupadd -g 99 nogroup &&
|
---|
[0dfb754] | 150 | useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
|
---|
| 151 | -s /bin/false -u 99 nobody</userinput></screen>
|
---|
[d47e7ea9] | 152 |
|
---|
[b86cfc2] | 153 | <note>
|
---|
| 154 | <para>The classic uid and gid values are 65534 which is also -2 when
|
---|
[17b7723] | 155 | interpreted as a signed 16-bit number. These values impact other files
|
---|
| 156 | on some filesystems that do not have support for sparse files. The
|
---|
[b86cfc2] | 157 | <systemitem class="username">nobody</systemitem> and <systemitem
|
---|
[17b7723] | 158 | class="groupname">nogroup</systemitem> values are relatively arbitrary.
|
---|
[e20c8110] | 159 | The impact on a server is nil if the <filename>exports</filename> file
|
---|
| 160 | is configured correctly. If it is misconfigured, an
|
---|
| 161 | <command>ls -l</command> or <command>ps</command> listing will show a
|
---|
| 162 | uid or gid number of 65534 instead of a name. The client uses <systemitem
|
---|
[b86cfc2] | 163 | class="username">nobody</systemitem> only as the user running
|
---|
| 164 | <command>rpc.statd</command>.</para>
|
---|
| 165 | </note>
|
---|
| 166 |
|
---|
| 167 | <para>Install <application>NFS Utilities</application> by running
|
---|
| 168 | the following commands:</para>
|
---|
[d47e7ea9] | 169 |
|
---|
[7abed3b] | 170 | <screen><userinput>./configure --prefix=/usr \
|
---|
[37441de] | 171 | --sysconfdir=/etc \
|
---|
[ad6f90ab] | 172 | --sbindir=/sbin \
|
---|
[37441de] | 173 | --disable-nfsv4 \
|
---|
| 174 | --disable-gss &&
|
---|
[a16cb066] | 175 | make</userinput></screen>
|
---|
| 176 |
|
---|
[1f4c3f9f] | 177 | <!-- Test breakage: see
|
---|
| 178 | http://lists.linuxfromscratch.org/pipermail/blfs-book/2017-December/071861.html -->
|
---|
[fccfaa4] | 179 | <para>This package does not come with a working test suite.</para>
|
---|
[1f4c3f9f] | 180 |
|
---|
[e20c8110] | 181 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[d47e7ea9] | 182 |
|
---|
[b163480] | 183 | <!-- dev note: make statduser=$(whoami) DESTDIR=<DESTDIR> install -->
|
---|
| 184 |
|
---|
[1f4c3f9f] | 185 | <screen role='root'><userinput>make install &&
|
---|
| 186 | mv -v /sbin/start-statd /usr/sbin &&
|
---|
| 187 | chmod u+w,go+r /sbin/mount.nfs &&
|
---|
[a1b111f8] | 188 | chown nobody.nogroup /var/lib/nfs</userinput></screen>
|
---|
[e20c8110] | 189 |
|
---|
[1f4c3f9f] | 190 | <!-- commented, in case the tests get fixed
|
---|
[ce386957] | 191 | <para>The tests for this package require that the package be installed and
|
---|
[fccfaa4] | 192 | configured as specified below. In addition, the daemon from <xref
|
---|
[ce386957] | 193 | linkend="rpcbind"/> needs to be running and the tests need to be run as the
|
---|
| 194 | <systemitem class="username">root</systemitem> user.</para>
|
---|
[f3429309] | 195 |
|
---|
[1f4c3f9f] | 196 | <para>To test the results, issue, as root: <command>make check</command>.</para>-->
|
---|
[ce386957] | 197 |
|
---|
[b86cfc2] | 198 | </sect2>
|
---|
[d47e7ea9] | 199 |
|
---|
[b86cfc2] | 200 | <sect2 role="commands">
|
---|
| 201 | <title>Command Explanations</title>
|
---|
[7abed3b] | 202 | <!--
|
---|
[4bf60a36] | 203 | <para><command>sed ... support/nsm/rpc.c</command>: This sed it required
|
---|
| 204 | to fix a build issue with glibc-2.26 and later.</para>
|
---|
[7abed3b] | 205 | -->
|
---|
[d2df2ce] | 206 | <para><parameter>--disable-nfsv4</parameter>: This allows the package to be
|
---|
| 207 | built when libnfsidmap has not been installed.</para>
|
---|
[a16cb066] | 208 |
|
---|
[b86cfc2] | 209 | <para><parameter>--disable-gss</parameter>: Disables support for
|
---|
| 210 | RPCSEC GSS (RPC Security).</para>
|
---|
[a16cb066] | 211 |
|
---|
[a1b111f8] | 212 | <para><command>chown nobody.nogroup /var/lib/nfs</command>: The
|
---|
| 213 | rpc.statd program uses the ownership of this directory to set
|
---|
| 214 | it's UID and GID. This command sets those to unprivileged entries.
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
[b86cfc2] | 217 | </sect2>
|
---|
[a16cb066] | 218 |
|
---|
[b86cfc2] | 219 | <sect2 role="configuration">
|
---|
| 220 | <title>Configuring NFS Utilities</title>
|
---|
[d47e7ea9] | 221 |
|
---|
[b86cfc2] | 222 | <sect3 id='nfs-utils-server-config'>
|
---|
[3a929dc] | 223 | <title>Server Configuration</title>
|
---|
[d47e7ea9] | 224 |
|
---|
[b86cfc2] | 225 | <para><filename>/etc/exports</filename> contains the exported directories
|
---|
[e20c8110] | 226 | on NFS servers. Refer to the <filename>exports.5</filename> manual page
|
---|
| 227 | for the syntax of this file. Also refer to the "NFS HowTo" available at
|
---|
| 228 | <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> for information on
|
---|
| 229 | how to configure the servers and clients in a secure manner. For example,
|
---|
| 230 | for sharing the <filename class="directory">/home</filename> directory
|
---|
| 231 | over the local network, the following line may be added:</para>
|
---|
[d47e7ea9] | 232 |
|
---|
[fbbc908] | 233 | <screen role="nodump"><userinput>cat >> /etc/exports << EOF
|
---|
| 234 | <replaceable>/home 192.168.0.0/24</replaceable>(rw,subtree_check,anonuid=99,anongid=99)
|
---|
| 235 | EOF</userinput></screen>
|
---|
[01155b9] | 236 |
|
---|
| 237 | <note><para>Be sure to replace the directory, network address. and prefix above
|
---|
| 238 | to match your network. The only space in the line above should be between
|
---|
| 239 | the directory and the network address.</para></note>
|
---|
[d47e7ea9] | 240 |
|
---|
[b86cfc2] | 241 | <indexterm zone="nfs-utils nfs-utils-server-config">
|
---|
| 242 | <primary sortas="e-etc-exportfs">/etc/exportfs</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 |
|
---|
[e20c8110] | 245 | <sect4 id="nfs-utils-server-init">
|
---|
[7b478500] | 246 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 247 | <phrase revision="systemd">Systemd Units</phrase></title>
|
---|
| 248 |
|
---|
| 249 | <para>Install the
|
---|
| 250 | <phrase revision="sysv"><filename>/etc/rc.d/init.d/nfs-server</filename>
|
---|
| 251 | init script</phrase>
|
---|
| 252 | <phrase revision="systemd">NFSv4 server units</phrase>
|
---|
| 253 | included in the <xref linkend="bootscripts" revision="sysv"/>
|
---|
[3c7bd00] | 254 | <xref linkend="systemd-units" revision="systemd"/> package
|
---|
[ed6a289c] | 255 | to start the server at boot.</para>
|
---|
[d47e7ea9] | 256 |
|
---|
[7b478500] | 257 | <screen role="root" revision="systemd"><userinput>make install-nfsv4-server</userinput></screen>
|
---|
| 258 |
|
---|
| 259 | <para revision="systemd">
|
---|
| 260 | If you have disabled NFSv4 support, run the following command as the
|
---|
| 261 | <systemitem class="username">root</systemitem> user to omit the NFSv4
|
---|
| 262 | specific systemd units:
|
---|
| 263 | </para>
|
---|
| 264 |
|
---|
| 265 | <!-- both -->
|
---|
[eaf6a1cd] | 266 | <screen role="root"><userinput>make install-nfs-server</userinput></screen>
|
---|
[d47e7ea9] | 267 |
|
---|
[7b478500] | 268 | <indexterm zone="nfs-utils nfs-utils-server-init" revision="sysv">
|
---|
[b86cfc2] | 269 | <primary sortas="f-nfs-server">nfs-server</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 |
|
---|
[7b478500] | 272 | <para revision="sysv">Now create the
|
---|
| 273 | <filename>/etc/sysconfig/nfs-server</filename> configuration file:
|
---|
| 274 | </para>
|
---|
[f5e4bdec] | 275 |
|
---|
[7b478500] | 276 | <screen role="root" revision="sysv"><userinput>cat > /etc/sysconfig/nfs-server << "EOF"
|
---|
[eaf6a1cd] | 277 | <literal>PORT="2049"
|
---|
[f5e4bdec] | 278 | PROCESSES="8"
|
---|
[eaf6a1cd] | 279 | KILLDELAY="10"</literal>
|
---|
| 280 | EOF</userinput></screen>
|
---|
[f5e4bdec] | 281 |
|
---|
[7b478500] | 282 | <note revision="sysv">
|
---|
| 283 | <para>The above parameters may be optionally placed in
|
---|
| 284 | <filename>/etc/sysconfig/rc.site</filename>.
|
---|
| 285 | </para>
|
---|
| 286 | </note>
|
---|
[ed6a289c] | 287 |
|
---|
[7b478500] | 288 | <indexterm zone="nfs-utils nfs-utils-server-init" revision="sysv">
|
---|
[b86cfc2] | 289 | <primary
|
---|
| 290 | sortas="e-etc-sysconfig-nfs-server">/etc/sysconfig/nfs-server</primary>
|
---|
| 291 | </indexterm>
|
---|
| 292 |
|
---|
[7b478500] | 293 | <para revision="systemd">
|
---|
| 294 | You can edit the <filename>/etc/default/nfs-utils</filename>
|
---|
| 295 | file to change the startup options for NFS daemons. Defaults
|
---|
| 296 | should be fine for most use cases.
|
---|
| 297 | </para>
|
---|
| 298 |
|
---|
| 299 | <indexterm zone="nfs-utils nfs-utils-server-init" revision="systemd">
|
---|
| 300 | <primary sortas="e-etc-default-nfs-utils">/etc/default/nfs-utils</primary>
|
---|
| 301 | </indexterm>
|
---|
| 302 |
|
---|
| 303 |
|
---|
| 304 |
|
---|
[b86cfc2] | 305 | </sect4>
|
---|
[d47e7ea9] | 306 |
|
---|
[b86cfc2] | 307 | </sect3>
|
---|
[d47e7ea9] | 308 |
|
---|
[b86cfc2] | 309 | <sect3 id='nfs-utils-client-config'>
|
---|
[3a929dc] | 310 | <title>Client Configuration</title>
|
---|
[eaf6a1cd] | 311 |
|
---|
[b86cfc2] | 312 | <para><filename>/etc/fstab</filename> contains the directories that
|
---|
| 313 | are to be mounted on the client. Alternately the partitions can be
|
---|
| 314 | mounted by using the <command>mount</command> command with the proper
|
---|
| 315 | options. To mount the <filename class="directory">/home</filename>
|
---|
| 316 | and <filename class="directory">/usr</filename> partitions, add the
|
---|
| 317 | following to the <filename>/etc/fstab</filename>:</para>
|
---|
[a16cb066] | 318 |
|
---|
[fccfaa4] | 319 | <screen role="nodump"><userinput><replaceable><server-name></replaceable>:/home /home nfs rw,_netdev 0 0
|
---|
[0d1cbe66] | 320 | <replaceable><server-name></replaceable>:/usr /usr nfs ro,_netdev 0 0</userinput></screen>
|
---|
| 321 |
|
---|
| 322 | <para>The options which can be used are specified in <command>man 5 nfs</command>.
|
---|
| 323 | If both the client and server are running recent versions of linux, most of the
|
---|
[1f4c3f9f] | 324 | options will be negotiated (but see the Note above on nfsver=3). You can specify
|
---|
| 325 | either <literal>rw</literal> or
|
---|
[0d1cbe66] | 326 | <literal>ro</literal>, <literal>_netdev</literal> if the filesystem is to be
|
---|
| 327 | automatically mounted at boot, or <literal>noauto</literal> (and perhaps
|
---|
| 328 | <literal>user</literal>) for other filesystems.</para>
|
---|
| 329 |
|
---|
| 330 | <para>If the fileserver is not running a recent version of linux, you may need to
|
---|
| 331 | specifiy other options.</para>
|
---|
| 332 |
|
---|
| 333 | <para>If you are using systemd, you may need to enable autofs v4 in your kernel,
|
---|
| 334 | and add the option <literal>comment=systemd.automount</literal>. Some machines
|
---|
| 335 | need this, because systemd tries to mount the external fs's before the network
|
---|
| 336 | is up, others do not need it. An alternative is for <systemitem
|
---|
| 337 | class="username">root</systemitem> to run <command>mount -a</command>.</para>
|
---|
[a16cb066] | 338 |
|
---|
[b86cfc2] | 339 | <indexterm zone="nfs-utils nfs-utils-client-config">
|
---|
| 340 | <primary sortas="e-etc-fstab">/etc/fstab</primary>
|
---|
| 341 | </indexterm>
|
---|
[d47e7ea9] | 342 |
|
---|
[b86cfc2] | 343 | <sect4 id="nfs-utils-client-init">
|
---|
[7b478500] | 344 | <title><phrase revision="sysv">Boot Script</phrase>
|
---|
| 345 | <phrase revision="systemd">Systemd Units</phrase></title>
|
---|
| 346 |
|
---|
| 347 | <note>
|
---|
| 348 | <para>
|
---|
| 349 | The following <phrase revision="sysv">boot script is</phrase>
|
---|
| 350 | <phrase revision="systemd">systemd units are</phrase> not required
|
---|
| 351 | if the nfs-server <phrase revision="sysv">script is</phrase>
|
---|
| 352 | <phrase revision="systemd">units are</phrase> installed.
|
---|
| 353 | </para>
|
---|
| 354 | </note>
|
---|
| 355 |
|
---|
| 356 | <para>Install the
|
---|
| 357 | <phrase revision="sysv">
|
---|
| 358 | <filename>/etc/rc.d/init.d/nfs-client</filename> init script</phrase>
|
---|
| 359 | <phrase revision="systemd">units</phrase> included in the
|
---|
| 360 | <xref linkend="bootscripts" revision="sysv"/>
|
---|
[3c7bd00] | 361 | <xref linkend="systemd-units" revision="systemd"/> package to start
|
---|
[ed6a289c] | 362 | the client services at boot.</para>
|
---|
[a16cb066] | 363 |
|
---|
[b86cfc2] | 364 | <screen role="root"><userinput>make install-nfs-client</userinput></screen>
|
---|
[a16cb066] | 365 |
|
---|
[b86cfc2] | 366 | <indexterm zone="nfs-utils nfs-utils-client-config">
|
---|
| 367 | <primary sortas="f-nfs-client">nfs-client</primary>
|
---|
| 368 | </indexterm>
|
---|
| 369 |
|
---|
[e468571] | 370 | <para revision="sysv">To automatically mount <systemitem
|
---|
[ed6a289c] | 371 | class="filesystem">nfs</systemitem> filesystems, clients will also need
|
---|
| 372 | to install the <filename>netfs</filename> bootscript as described in
|
---|
| 373 | <xref linkend="postlfs-config-netfs"/>.</para>
|
---|
[b86cfc2] | 374 |
|
---|
[7b478500] | 375 | <indexterm zone="nfs-utils nfs-utils-client-config" revision="sysv">
|
---|
[b86cfc2] | 376 | <primary sortas="f-netfs">netfs</primary>
|
---|
| 377 | </indexterm>
|
---|
| 378 |
|
---|
| 379 | </sect4>
|
---|
| 380 |
|
---|
| 381 | </sect3>
|
---|
| 382 |
|
---|
| 383 | </sect2>
|
---|
| 384 |
|
---|
| 385 | <sect2 role="content">
|
---|
| 386 | <title>Contents</title>
|
---|
| 387 | <segmentedlist>
|
---|
| 388 | <segtitle>Installed Programs</segtitle>
|
---|
| 389 | <segtitle>Installed Libraries</segtitle>
|
---|
| 390 | <segtitle>Installed Directories</segtitle>
|
---|
| 391 |
|
---|
| 392 | <seglistitem>
|
---|
[06eb274] | 393 | <seg>exportfs, mountstats, mount.nfs, mount.nfs4 (link to mount.nfs),
|
---|
[b163480] | 394 | nfsiostat, nfsstat, osd_login, rpc.mountd, rpc.nfsd, rpc.statd, rpcdebug,
|
---|
[d40e1a4] | 395 | showmount, sm-notify, start-statd, umount.nfs (link to mount.nfs),
|
---|
| 396 | and umount.nfs4 (link to mount.nfs)</seg>
|
---|
[b86cfc2] | 397 | <seg>None</seg>
|
---|
| 398 | <seg>/var/lib/nfs</seg>
|
---|
| 399 | </seglistitem>
|
---|
| 400 | </segmentedlist>
|
---|
| 401 |
|
---|
| 402 | <variablelist>
|
---|
| 403 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 404 | <?dbfo list-presentation="list"?>
|
---|
| 405 | <?dbhtml list-presentation="table"?>
|
---|
| 406 |
|
---|
| 407 | <varlistentry id="exportfs">
|
---|
| 408 | <term><command>exportfs</command></term>
|
---|
| 409 | <listitem>
|
---|
| 410 | <para>maintains a list of NFS exported file systems.</para>
|
---|
| 411 | <indexterm zone="nfs-utils exportfs">
|
---|
| 412 | <primary sortas="b-exportfs">exportfs</primary>
|
---|
| 413 | </indexterm>
|
---|
| 414 | </listitem>
|
---|
| 415 | </varlistentry>
|
---|
| 416 |
|
---|
[d40e1a4] | 417 | <varlistentry id="mountstats">
|
---|
| 418 | <term><command>mountstats</command></term>
|
---|
| 419 | <listitem>
|
---|
| 420 | <para>displays NFS client per-mount statistics.</para>
|
---|
| 421 | <indexterm zone="nfs-utils mountstats">
|
---|
| 422 | <primary sortas="b-mountstats">mountstats</primary>
|
---|
| 423 | </indexterm>
|
---|
| 424 | </listitem>
|
---|
| 425 | </varlistentry>
|
---|
| 426 |
|
---|
[6d772cc] | 427 | <varlistentry id="mount.nfs">
|
---|
[0f10bc0] | 428 | <term><command>mount.nfs</command></term>
|
---|
| 429 | <listitem>
|
---|
[2f12da13] | 430 | <para>is used to mount a network share using NFS</para>
|
---|
[6d772cc] | 431 | <indexterm zone="nfs-utils mount.nfs">
|
---|
| 432 | <primary sortas="b-mount.nfs">mount.nfs</primary>
|
---|
[0f10bc0] | 433 | </indexterm>
|
---|
| 434 | </listitem>
|
---|
| 435 | </varlistentry>
|
---|
| 436 |
|
---|
[6d772cc] | 437 | <varlistentry id="mount.nfs4">
|
---|
[0f10bc0] | 438 | <term><command>mount.nfs4</command></term>
|
---|
| 439 | <listitem>
|
---|
[2f12da13] | 440 | <para>is used to mount a network share using NFSv4</para>
|
---|
[6d772cc] | 441 | <indexterm zone="nfs-utils mount.nfs4">
|
---|
| 442 | <primary sortas="b-mount.nfs4">mount.nfs4</primary>
|
---|
[0f10bc0] | 443 | </indexterm>
|
---|
| 444 | </listitem>
|
---|
| 445 | </varlistentry>
|
---|
| 446 |
|
---|
[d40e1a4] | 447 | <varlistentry id="nfsiostat-nfs-utils">
|
---|
| 448 | <term><command>nfsiostat</command></term>
|
---|
| 449 | <listitem>
|
---|
[2f12da13] | 450 | <para>reports input/output statistics for network filesystems.</para>
|
---|
[d40e1a4] | 451 | <indexterm zone="nfs-utils nfsiostat-nfs-utils">
|
---|
| 452 | <primary sortas="b-nfsiostat-nfs-utils">nfsiostat</primary>
|
---|
| 453 | </indexterm>
|
---|
| 454 | </listitem>
|
---|
| 455 | </varlistentry>
|
---|
| 456 |
|
---|
[b86cfc2] | 457 | <varlistentry id="nfsstat">
|
---|
| 458 | <term><command>nfsstat</command></term>
|
---|
| 459 | <listitem>
|
---|
[d40e1a4] | 460 | <para>displays statistics kept about NFS client and server activity.</para>
|
---|
[b86cfc2] | 461 | <indexterm zone="nfs-utils nfsstat">
|
---|
| 462 | <primary sortas="b-nfsstat">nfsstat</primary>
|
---|
| 463 | </indexterm>
|
---|
| 464 | </listitem>
|
---|
| 465 | </varlistentry>
|
---|
| 466 |
|
---|
[72d90b67] | 467 | <varlistentry id="osd_login">
|
---|
[8b9ad6e] | 468 | <term><command>osd_login</command></term>
|
---|
[72d90b67] | 469 | <listitem>
|
---|
[5ee1266] | 470 | <para>is a script that is a part of the autologin feature
|
---|
[72d90b67] | 471 | mandated by the pnfs-objects standard.</para>
|
---|
| 472 | <indexterm zone="nfs-utils osd_login">
|
---|
| 473 | <primary sortas="b-osd_login">osd_login</primary>
|
---|
| 474 | </indexterm>
|
---|
| 475 | </listitem>
|
---|
| 476 | </varlistentry>
|
---|
| 477 |
|
---|
| 478 |
|
---|
[6d772cc] | 479 | <varlistentry id="rpc.mountd">
|
---|
[b86cfc2] | 480 | <term><command>rpc.mountd</command></term>
|
---|
| 481 | <listitem>
|
---|
| 482 | <para>implements the NFS mount protocol on an NFS server.</para>
|
---|
[6d772cc] | 483 | <indexterm zone="nfs-utils rpc.mountd">
|
---|
| 484 | <primary sortas="b-rpc.mountd">rpc.mountd</primary>
|
---|
[b86cfc2] | 485 | </indexterm>
|
---|
| 486 | </listitem>
|
---|
| 487 | </varlistentry>
|
---|
| 488 |
|
---|
[6d772cc] | 489 | <varlistentry id="rpc.nfsd">
|
---|
[b86cfc2] | 490 | <term><command>rpc.nfsd</command></term>
|
---|
| 491 | <listitem>
|
---|
| 492 | <para>implements the user level part of the NFS
|
---|
| 493 | service on the server.</para>
|
---|
[6d772cc] | 494 | <indexterm zone="nfs-utils rpc.nfsd">
|
---|
| 495 | <primary sortas="b-rpc.nfsd">rpc.nfsd</primary>
|
---|
[b86cfc2] | 496 | </indexterm>
|
---|
| 497 | </listitem>
|
---|
| 498 | </varlistentry>
|
---|
| 499 |
|
---|
[6d772cc] | 500 | <varlistentry id="rpc.statd">
|
---|
[b86cfc2] | 501 | <term><command>rpc.statd</command></term>
|
---|
| 502 | <listitem>
|
---|
[0f10bc0] | 503 | <para>is used by the NFS file locking service. Run on both sides,
|
---|
| 504 | client as well as server, when you want file locking enabled.</para>
|
---|
[6d772cc] | 505 | <indexterm zone="nfs-utils rpc.statd">
|
---|
| 506 | <primary sortas="b-rpc.statd">rpc.statd</primary>
|
---|
[b86cfc2] | 507 | </indexterm>
|
---|
| 508 | </listitem>
|
---|
| 509 | </varlistentry>
|
---|
| 510 |
|
---|
[d3761424] | 511 | <varlistentry id="rpcdebug">
|
---|
| 512 | <term><command>rpcdebug</command></term>
|
---|
| 513 | <listitem>
|
---|
[81066706] | 514 | <para>sets or clears the kernel's NFS client and server debug
|
---|
| 515 | flags.</para>
|
---|
[d3761424] | 516 | <indexterm zone="nfs-utils rpcdebug">
|
---|
| 517 | <primary sortas="b-rpcdebug">rpcdebug</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
[b86cfc2] | 522 | <varlistentry id="showmount">
|
---|
| 523 | <term><command>showmount</command></term>
|
---|
| 524 | <listitem>
|
---|
| 525 | <para>displays mount information for an NFS server.</para>
|
---|
| 526 | <indexterm zone="nfs-utils showmount">
|
---|
| 527 | <primary sortas="b-showmount">showmount</primary>
|
---|
| 528 | </indexterm>
|
---|
| 529 | </listitem>
|
---|
| 530 | </varlistentry>
|
---|
| 531 |
|
---|
[d3761424] | 532 | <varlistentry id="sm-notify">
|
---|
| 533 | <term><command>sm-notify</command></term>
|
---|
| 534 | <listitem>
|
---|
| 535 | <para>is used to send Network Status Monitor reboot messages.</para>
|
---|
| 536 | <indexterm zone="nfs-utils sm-notify">
|
---|
| 537 | <primary sortas="b-sm-notify">sm-notify</primary>
|
---|
| 538 | </indexterm>
|
---|
| 539 | </listitem>
|
---|
| 540 | </varlistentry>
|
---|
| 541 |
|
---|
| 542 | <varlistentry id="start-statd">
|
---|
| 543 | <term><command>start-statd</command></term>
|
---|
| 544 | <listitem>
|
---|
| 545 | <para>is a script called by nfsmount when mounting a filesystem with
|
---|
[81066706] | 546 | locking enabled, if statd does not appear to be running. It can be
|
---|
| 547 | customised with whatever flags are appropriate for the site.</para>
|
---|
[d3761424] | 548 | <indexterm zone="nfs-utils start-statd">
|
---|
| 549 | <primary sortas="b-start-statd">start-statd</primary>
|
---|
| 550 | </indexterm>
|
---|
| 551 | </listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
[6d772cc] | 554 | <varlistentry id="umount.nfs">
|
---|
[0f10bc0] | 555 | <term><command>umount.nfs</command></term>
|
---|
| 556 | <listitem>
|
---|
[2f12da13] | 557 | <para>is used to unmount a network share using NFS</para>
|
---|
[6d772cc] | 558 | <indexterm zone="nfs-utils umount.nfs">
|
---|
| 559 | <primary sortas="b-umount.nfs">umount.nfs</primary>
|
---|
[0f10bc0] | 560 | </indexterm>
|
---|
| 561 | </listitem>
|
---|
| 562 | </varlistentry>
|
---|
| 563 |
|
---|
[6d772cc] | 564 | <varlistentry id="umount.nfs4">
|
---|
[0f10bc0] | 565 | <term><command>umount.nfs4</command></term>
|
---|
| 566 | <listitem>
|
---|
[2f12da13] | 567 | <para>is used to unmount a network share using NFSv4</para>
|
---|
[6d772cc] | 568 | <indexterm zone="nfs-utils umount.nfs4">
|
---|
| 569 | <primary sortas="b-umount.nfs4">umount.nfs4</primary>
|
---|
[0f10bc0] | 570 | </indexterm>
|
---|
| 571 | </listitem>
|
---|
| 572 | </varlistentry>
|
---|
| 573 |
|
---|
[b86cfc2] | 574 | </variablelist>
|
---|
| 575 |
|
---|
| 576 | </sect2>
|
---|
[d47e7ea9] | 577 |
|
---|
[176b211] | 578 | </sect1>
|
---|