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