[d47e7ea9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/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">
|
---|
[f5f7f9d] | 9 | <!ENTITY nfs-utils-md5sum "f17e9983457e1cf61c37f0be4493fce6">
|
---|
[b0c67c8b] | 10 | <!ENTITY nfs-utils-size "260 KB">
|
---|
| 11 | <!ENTITY nfs-utils-buildsize "4.1 MB">
|
---|
| 12 | <!ENTITY nfs-utils-time "0.9 SBU">
|
---|
[d47e7ea9] | 13 | ]>
|
---|
| 14 |
|
---|
[547df0bc] | 15 | <sect1 id="nfs-utils" xreflabel="NFS Utilities-&nfs-utils-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="nfs-utils.html"?>
|
---|
[547df0bc] | 21 | <title>NFS Utilities-&nfs-utils-version;</title>
|
---|
[176b211] | 22 |
|
---|
[d47e7ea9] | 23 | <sect2>
|
---|
| 24 | <title>Introduction to <application>nfs-utils</application></title>
|
---|
| 25 |
|
---|
[f5f7f9d] | 26 | <para>The <application>nfs-utils</application> package contains the userspace
|
---|
| 27 | server and client tools necessary to use the kernel's nfs-abilities.
|
---|
| 28 | <acronym>NFS</acronym> is a protocol that allows sharing file systems over the
|
---|
| 29 | network.</para>
|
---|
[d47e7ea9] | 30 |
|
---|
| 31 | <sect3><title>Package information</title>
|
---|
| 32 | <itemizedlist spacing='compact'>
|
---|
| 33 | <listitem><para>Download (HTTP): <ulink
|
---|
| 34 | url="&nfs-utils-download-http;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download (FTP): <ulink
|
---|
| 36 | url="&nfs-utils-download-ftp;"/></para></listitem>
|
---|
[f5f7f9d] | 37 | <listitem><para>Download MD5 sum: &nfs-utils-md5sum;</para></listitem>
|
---|
[d47e7ea9] | 38 | <listitem><para>Download size: &nfs-utils-size;</para></listitem>
|
---|
[518538f] | 39 | <listitem><para>Estimated disk space required:
|
---|
[d47e7ea9] | 40 | &nfs-utils-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &nfs-utils-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
| 45 | <sect3><title><application>nfs-utils</application> dependencies</title>
|
---|
| 46 | <sect4><title>Required</title>
|
---|
| 47 | <para><xref linkend="portmap"/></para>
|
---|
| 48 | </sect4>
|
---|
| 49 | </sect3>
|
---|
| 50 |
|
---|
| 51 | </sect2>
|
---|
| 52 |
|
---|
| 53 | <sect2>
|
---|
| 54 | <title>Kernel Configuration</title>
|
---|
| 55 |
|
---|
| 56 | <para>Enable the following options in the kernel configuration
|
---|
| 57 | and recompile the kernel if neccessary:</para>
|
---|
| 58 |
|
---|
| 59 | <screen>File systems:
|
---|
| 60 | Network File Systems:
|
---|
| 61 | NFS File System Support: M or Y
|
---|
| 62 | NFS Server Support: M or Y</screen>
|
---|
| 63 |
|
---|
| 64 | <para>Select the appropriate sub-options that appear when the above options
|
---|
| 65 | are selected.</para>
|
---|
| 66 |
|
---|
| 67 | </sect2>
|
---|
| 68 |
|
---|
| 69 | <sect2>
|
---|
| 70 | <title>Installation of nfs-utils</title>
|
---|
| 71 |
|
---|
| 72 | <para>Before you compile the program, you need to be sure the "nobody"
|
---|
| 73 | user and "nogroup" group are available. You can add these with the
|
---|
| 74 | following commands:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput><command>groupadd -g 65534 nogroup &&
|
---|
| 77 | useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody</command></userinput></screen>
|
---|
| 78 |
|
---|
| 79 | <para>Install nfs-utils by running the following commands:</para>
|
---|
| 80 |
|
---|
| 81 | <para><screen><userinput><command>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
| 82 | make &&
|
---|
| 83 | make install</command></userinput></screen></para>
|
---|
| 84 |
|
---|
| 85 | <note><para>If your <filename>/usr</filename> directory is NFS mounted,
|
---|
| 86 | you should install the executables in <filename>/sbin</filename> by passing
|
---|
| 87 | an additional parameter <command>--sbindir=/sbin</command> to the above
|
---|
| 88 | <command>./configure</command> command.</para></note>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2>
|
---|
| 93 | <title>Configuring nfs-utils</title>
|
---|
| 94 |
|
---|
| 95 | <sect3><title>Server Configutation</title>
|
---|
| 96 |
|
---|
[f5f7f9d] | 97 | <para><filename>/etc/exports</filename> contains the exported directories on
|
---|
| 98 | <acronym>NFS</acronym> servers. Refer to the exports manual page for the
|
---|
| 99 | syntax of this file. Also refer to the <acronym>NFS</acronym> HowTo available
|
---|
| 100 | at <ulink url="http://nfs.sourceforge.net/nfs-howto/"/> on how to configure
|
---|
| 101 | the servers and clients in a secure manner. For example, for sharing the
|
---|
| 102 | <filename>/home</filename> directory over the local network, the following
|
---|
| 103 | line may be added:</para>
|
---|
[d47e7ea9] | 104 |
|
---|
| 105 | <screen><userinput>/home 192.168.0.0/255.255.0.0(rw)</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>Install the <filename>/etc/rc.d/init.d/nfs-server</filename>
|
---|
| 108 | init script included in the
|
---|
| 109 | <xref linkend="intro-important-bootscripts"/> package to start
|
---|
| 110 | the server at boot.</para>
|
---|
| 111 |
|
---|
| 112 | <screen><userinput><command>make install-nfs-server</command></userinput></screen>
|
---|
| 113 |
|
---|
[f5f7f9d] | 114 | <para>Now create the <filename>/etc/sysconfig/nfs-server</filename>
|
---|
| 115 | configuration file:</para>
|
---|
[f5e4bdec] | 116 |
|
---|
[d31869d] | 117 | <screen><userinput><command>cat > /etc/sysconfig/nfs-server << "EOF"</command>
|
---|
[f5e4bdec] | 118 | PORT="2049"
|
---|
| 119 | PROCESSES="8"
|
---|
| 120 | QUOTAS="no"
|
---|
| 121 | KILLDELAY="10"
|
---|
| 122 | <command>EOF</command></userinput></screen>
|
---|
| 123 |
|
---|
[d47e7ea9] | 124 | </sect3>
|
---|
| 125 |
|
---|
| 126 | <sect3><title>Client Configutation</title>
|
---|
| 127 |
|
---|
[f5f7f9d] | 128 | <para><filename>/etc/fstab</filename> contains the directories that are to be
|
---|
| 129 | mounted on the client. Alternately the partitions can be mounted by using the
|
---|
| 130 | <command>mount</command> command with the proper options. To mount the
|
---|
| 131 | <filename>/home</filename> partition, add the following to the
|
---|
| 132 | <filename>/etc/fstab</filename>:</para>
|
---|
[d47e7ea9] | 133 |
|
---|
| 134 | <screen><userinput><server-name>:/home /home nfs rw 0 0</userinput></screen>
|
---|
| 135 |
|
---|
| 136 | <para>Install the <filename>/etc/rc.d/init.d/nfs-client</filename>
|
---|
| 137 | init script included in the
|
---|
| 138 | <xref linkend="intro-important-bootscripts"/> package to
|
---|
| 139 | start the client services at boot.</para>
|
---|
| 140 |
|
---|
| 141 | <screen><userinput><command>make install-nfs-client</command></userinput></screen>
|
---|
| 142 |
|
---|
| 143 | </sect3>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2>
|
---|
| 148 | <title>Contents</title>
|
---|
| 149 |
|
---|
| 150 | <para>The nfs-utils package contains
|
---|
| 151 | <command>getiversion</command>,
|
---|
| 152 | <command>getkversion</command>,
|
---|
| 153 | <command>locktest</command>,
|
---|
| 154 | <command>nlmtest</command>,
|
---|
| 155 | <command>rpcdebug</command>,
|
---|
| 156 | <command>rpcgen</command>,
|
---|
| 157 | <command>exportfs</command>,
|
---|
| 158 | <command>lockd</command>,
|
---|
| 159 | <command>mountd</command>,
|
---|
| 160 | <command>nfsd</command>,
|
---|
| 161 | <command>nfsstat</command>,
|
---|
| 162 | <command>nhfsstone</command>,
|
---|
| 163 | <command>rquotad</command>,
|
---|
| 164 | <command>showmount</command>,
|
---|
| 165 | <command>statd</command> </para>
|
---|
| 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2><title>Description</title>
|
---|
| 170 |
|
---|
| 171 | <sect3><title>getiversion</title><para>No description available.</para></sect3>
|
---|
| 172 | <sect3><title>getkversion</title><para>No description available.</para></sect3>
|
---|
| 173 | <sect3><title>locktest</title><para>No description available.</para></sect3>
|
---|
| 174 | <sect3><title>nlmtest</title><para>No description available.</para></sect3>
|
---|
| 175 | <sect3><title>rpcdebug</title><para>No description available.</para></sect3>
|
---|
| 176 | <sect3><title>rpcgen</title><para>No description available.</para></sect3>
|
---|
| 177 | <sect3><title>exportfs</title><para><command>exportfs</command>
|
---|
| 178 | maintains a list of <acronym>NFS</acronym> exported directories.</para></sect3>
|
---|
| 179 | <sect3><title>lockd</title><para><command>lockd</command>
|
---|
| 180 | is the <acronym>NFS</acronym> lock manager.</para></sect3>
|
---|
| 181 | <sect3><title>mountd</title><para><command>mountd</command>
|
---|
[f5f7f9d] | 182 | is the <acronym>NFS</acronym> mount daemon which checks
|
---|
| 183 | client-permissions.</para></sect3>
|
---|
[d47e7ea9] | 184 | <sect3><title>nfsd</title><para><command>nfsd</command>
|
---|
| 185 | is the user-space daemon of the <acronym>NFS</acronym> service.</para></sect3>
|
---|
| 186 | <sect3><title>nfsstat</title><para><command>nfsstat</command>
|
---|
| 187 | prints <acronym>NFS</acronym> statistics.</para></sect3>
|
---|
| 188 | <sect3><title>nhfsstone</title><para><command>nhfsstone</command>
|
---|
| 189 | is the <acronym>NFS</acronym> benchmark program.</para></sect3>
|
---|
| 190 | <sect3><title>rquotad</title><para><command>rquotad</command>
|
---|
| 191 | is the remote quota server communicating with the
|
---|
| 192 | <command>quota</command> client.</para></sect3>
|
---|
| 193 | <sect3><title>showmount</title><para><command>showmount</command>
|
---|
| 194 | shows mount information for an <acronym>NFS</acronym> server.</para></sect3>
|
---|
| 195 | <sect3><title>statd</title><para><command>statd</command>
|
---|
| 196 | is the <acronym>NFS</acronym> status monitor which implements the
|
---|
| 197 | <acronym>NSM</acronym> (Network Status Monitor) <acronym>RPC</acronym> protocol.
|
---|
| 198 | </para></sect3>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
[176b211] | 201 |
|
---|
| 202 | </sect1>
|
---|
| 203 |
|
---|