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