source: general/sysutils/autofs-systemd.xml@ cad6614

systemd-13485
Last change on this file since cad6614 was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

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

  • Property mode set to 100644
File size: 11.2 KB
RevLine 
[7ef22cff]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" [
[7ef22cff]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[d17b13d]6
[6172f21]7 <!ENTITY autofs-download-http "http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
[47be189b]8 <!ENTITY autofs-download-ftp "ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-&autofs-version;.tar.xz">
[ac38e9dc]9 <!ENTITY autofs-md5sum "889c9d2f0e76f08ae0ff0d206f119098">
[3e072580]10 <!ENTITY autofs-size "284 KB">
[ac38e9dc]11 <!ENTITY autofs-buildsize "11 MB">
[5e7ffd30]12 <!ENTITY autofs-time "0.1 SBU">
[7ef22cff]13]>
14
[32d0e29]15<sect1 id="autofs" xreflabel="Autofs-&autofs-version;">
[d3ad3271]16 <?dbhtml filename="autofs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[6d15c62]23 <title>autofs-&autofs-version;</title>
[d3ad3271]24
25 <indexterm zone="autofs">
26 <primary sortas="a-Autofs">Autofs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Autofs</title>
31
[d17b13d]32 <para>
33 <application>Autofs</application> controls the operation of the automount
34 daemons. The automount daemons automatically mount filesystems when they
35 are accessed and unmount them after a period of inactivity. This is done
36 based on a set of pre-configured maps.
37 </para>
[47be189b]38
[ac38e9dc]39 &lfs77_checked;
[d3ad3271]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>Download (HTTP): <ulink url="&autofs-download-http;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download (FTP): <ulink url="&autofs-download-ftp;"/></para>
48 </listitem>
49 <listitem>
50 <para>Download MD5 sum: &autofs-md5sum;</para>
51 </listitem>
52 <listitem>
53 <para>Download size: &autofs-size;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated disk space required: &autofs-buildsize;</para>
57 </listitem>
58 <listitem>
59 <para>Estimated build time: &autofs-time;</para>
60 </listitem>
61 </itemizedlist>
[fd7e0ed6]62
[81066706]63 <bridgehead renderas="sect3">Autofs Dependencies</bridgehead>
[50d1a60]64
[d17b13d]65 <bridgehead renderas="sect4">Optional</bridgehead>
66 <para role="optional">
67 <xref linkend="libtirpc"/>,
68 <xref linkend="nfs-utils"/>,
69 <xref linkend="libxml2"/>,
70 <xref linkend="mitkrb"/>,
71 <xref linkend="openldap"/> (client only), and
72 <xref linkend="cyrus-sasl"/>
73 </para>
[50d1a60]74
[3597eb6]75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/autofs"/></para>
77
[d3ad3271]78 </sect2>
79
80 <sect2 role="kernel" id="autofs-kernel">
81 <title>Kernel Configuration</title>
82
83 <indexterm zone="autofs autofs-kernel">
84 <primary sortas="d-Automounter">Automounter</primary>
85 </indexterm>
86
[d17b13d]87 <para>
88 Verify that automounter kernel support has been enabled:
89 </para>
90
91<screen><literal>File systems ---&gt;
[ac38e9dc]92 &lt;*/M&gt; Kernel automounter version 4 support (also supports v3) [CONFIG_AUTOFS4_FS]</literal></screen>
[d17b13d]93
94 <para>
95 Optionally, enable the following options in the kernel configuration:
96 </para>
[d3ad3271]97
[d17b13d]98<screen><literal>File systems ---&gt;
[ac38e9dc]99 [*] Network File Systems ---&gt; [CONFIG_NETWORK_FILESYSTEMS]
100 &lt;*/M&gt; NFS client support [CONFIG_NFS_FS]
101 &lt;*/M&gt; CIFS support (advanced network filesystem, SMBFS successor) [CONFIG_CIFS]</literal></screen>
[d612b9f]102
[d3ad3271]103 <para>Recompile and install the new kernel, if necessary.</para>
[7ef22cff]104
[d3ad3271]105 </sect2>
[0290a023]106
[d3ad3271]107 <sect2 role="installation">
[d612b9f]108
[d3ad3271]109 <title>Installation of Autofs</title>
110
[32d0e29]111 <para>Install <application>Autofs</application> by running the following
[d3ad3271]112 commands:</para>
[d17b13d]113
[ac38e9dc]114<screen><userinput>./configure --prefix=/ \
[459c449]115 --with-systemd \
[73b53eb]116 --without-openldap \
117 --mandir=/usr/share/man &amp;&amp;
[d3ad3271]118make</userinput></screen>
119
[d4bf650a]120 <para>This package does not come with a test suite.</para>
121
[d3ad3271]122 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
123
[47be189b]124<screen role="root"><userinput>make install</userinput></screen>
[d3ad3271]125
126 </sect2>
[d17b13d]127
[d3ad3271]128 <sect2 role="commands">
129 <title>Command Explanations</title>
130
[3e072580]131 <para>
[ac38e9dc]132 <parameter>--with-systemd</parameter>: This switch enables installation of
133 the bundled systemd units.
[3e072580]134 </para>
135
[d17b13d]136 <para>
[ac38e9dc]137 <parameter>--without-openldap</parameter>: This switch disables openldap if
138 found. If openldap is desired, omit this switch. Note that openldap
139 support in autofs requires <xref linkend="mitkrb"/>.
[d17b13d]140 </para>
[d260aaf4]141
[73b53eb]142 <para>
[ac38e9dc]143 <option>--with-libtirpc</option>: This switch enables libtirpc support if
144 available.
[73b53eb]145 </para>
146
[d3ad3271]147 </sect2>
[d17b13d]148
[d3ad3271]149 <sect2 role="configuration">
150 <title>Configuring Autofs</title>
[7ef22cff]151
[d3ad3271]152 <sect3 id="autofs-config">
153 <title>Config Files</title>
[7ef22cff]154
[d3ad3271]155 <para><filename>/etc/sysconfig/autofs.conf</filename>,
156 <filename>/etc/auto.master</filename>,
157 <filename>/etc/auto.misc</filename>, and
158 <filename>/etc/auto.net</filename></para>
[7ef22cff]159
[d3ad3271]160 <indexterm zone="autofs autofs-config" >
161 <primary sortas="e-etc-sysconfig-autofs.conf">/etc/sysconfig/autofs.conf</primary>
162 </indexterm>
[7ef22cff]163
[d3ad3271]164 <indexterm zone="autofs autofs-config">
165 <primary sortas="e-etc-auto.master">/etc/auto.master</primary>
166 </indexterm>
[7ef22cff]167
[d3ad3271]168 <indexterm zone="autofs autofs-config">
169 <primary sortas="e-etc-auto.misc">/etc/auto.misc</primary>
170 </indexterm>
[7ef22cff]171
[d3ad3271]172 <indexterm zone="autofs autofs-config">
173 <primary sortas="e-etc-auto.net">/etc/auto.net</primary>
174 </indexterm>
[7ef22cff]175
[d3ad3271]176 </sect3>
[7ef22cff]177
[d3ad3271]178 <sect3>
179 <title>Configuration Information</title>
[7ef22cff]180
[d3ad3271]181 <para>The installation process creates <filename>auto.master</filename>,
[d4bf650a]182 <filename>auto.misc</filename>, <filename>auto.smb</filename>, and
[32d0e29]183 <filename>auto.net</filename>. Replace the
[69243a9]184 <filename>auto.master</filename> file with the following commands
185 as the <systemitem class="username">root</systemitem> user:</para>
[d3ad3271]186
187<screen role="root"><userinput>mv /etc/auto.master /etc/auto.master.bak &amp;&amp;
188cat &gt; /etc/auto.master &lt;&lt; "EOF"
189<literal># Begin /etc/auto.master
[7ef22cff]190
[9415459]191/media/auto /etc/auto.misc --ghost
192#/home /etc/auto.home
[7ef22cff]193
[d3ad3271]194# End /etc/auto.master</literal>
195EOF</userinput></screen>
196
[9415459]197 <para>This file creates a new media directory, <filename>/media/auto</filename>
198 that will overlay any existing directory of the same name. In this example,
199 the file, <filename>/etc/auto.misc</filename>, has a line:</para>
200
201<screen>cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom</screen>
202
203 <para>that will mount a cdrom as <filename>/media/auto/cd</filename> if
204 that directory is accessed. The <option>--ghost</option> option tells
[32d0e29]205 the automounter to create <quote>ghost</quote> versions (i.e. empty
206 directories) of all the mount points listed in the configuration file
207 regardless whether any of the file systems are actually mounted or not.
208 This is very convenient and highly recommended, because it will show you
209 the available auto-mountable file systems as existing directories, even
210 when their file systems aren't currently mounted. Without the
211 <option>--ghost</option> option, you'll have to remember the names of the
212 directories. As soon as you try to access one of them, the directory will
213 be created and the file system will be mounted. When the file system gets
214 unmounted again, the directory is destroyed too, unless the
215 <option>--ghost</option> option was given.</para>
[9415459]216
[d3ad3271]217 <note>
[9415459]218 <para>An alternative method would be to specify another automount
[32d0e29]219 location such as <filename
[ac38e9dc]220 class="directory">/var/lib/auto/cdrom</filename> and create a
221 symbolic link from <filename class="directory">/media/cdrom</filename>
[32d0e29]222 to the automount location.</para>
[d612b9f]223 </note>
[d3ad3271]224
[9415459]225 <para>The <filename>auto.misc</filename> file must be configured to your
[d3ad3271]226 working hardware. The loaded configuration file should load your cdrom
227 if <filename>/dev/cdrom</filename> is active or it can be edited to
[9415459]228 match your device setup. Examples for floppies are available in the file
[d3ad3271]229 and easily activated. Documentation for this file is available using the
230 <command>man 5 autofs</command> command.</para>
231
[9415459]232 <para>In the second line, if enabled, a user's home directory would be
233 mounted via NFS upon login. The <filename>/etc/home.auto</filename>
234 would need to exist and have an entry similar to:</para>
235
236<screen>joe example.org:/export/home/joe</screen>
237
238 <para>where the directory <filename>/export/home/joe</filename> is
239 exported via NFS from the system example.org. NFS shares
240 are covered on the next page.</para>
241
[32d0e29]242 <para>This package could also be used to mount SMB shares, however that
243 feature is not configured in these instructions. For additional
244 configuration information, see the man pages for auto.master(5). There
[9415459]245 are also web resources such as this <ulink
[f22f1ef3]246 url='http://wiki.gentoo.org/wiki/Autofs'>AUTOFS
[32d0e29]247 HOWTO</ulink> available.</para>
[9415459]248
[d3ad3271]249 </sect3>
[32d0e29]250
[d3ad3271]251 <sect3 id="autofs-init">
[96733af]252 <title>Systemd Units</title>
[d3ad3271]253
[96733af]254 <para>
255 To start the <application>Autofs</application> at boot,
256 enable the previously installed systemd unit by
257 running the following command as the
258 <systemitem class="username">root</systemitem> user:
259 </para>
[d3ad3271]260
261 <indexterm zone="autofs autofs-init">
262 <primary sortas="f-autofs-init">autofs</primary>
263 </indexterm>
264
[459c449]265<screen role="root"><userinput>systemctl enable autofs</userinput></screen>
[d3ad3271]266
[459c449]267 <note>
268 <para>
[96733af]269 You can also specify <envar>OPTIONS</envar> variable in the
270 <filename>/etc/sysconfig/autofs</filename> file with any additional
[459c449]271 parameters that you might want to pass to the automount daemon.
272 </para>
273 </note>
[d3ad3271]274
275 </sect3>
[32d0e29]276
[d3ad3271]277 </sect2>
278
279 <sect2 role="content">
280 <title>Contents</title>
281
282 <segmentedlist>
283 <segtitle>Installed Program</segtitle>
284 <segtitle>Installed Libraries</segtitle>
285 <segtitle>Installed Directories</segtitle>
286
287 <seglistitem>
288 <seg>automount</seg>
[ac38e9dc]289 <seg>
290 lookup_dir.so, lookup_file.so, lookup_files.so, lookup_hosts.so,
291 lookup_ldap.so, lookup_multi.so, lookup_nis.so, lookup_nisplus.so,
292 lookup_program.so, lookup_userhome.so, lookup_yp.so, mount_afs.so,
293 mount_autofs.so, mount_bind.so, mount_changer.so, mount_ext2.so,
294 mount_ext3.so, mount_ext4.so, mount_generic.so, mount_nfs.so,
295 mount_nfs4.so, parse_amd.so, and parse_sun.so
296 </seg>
[47be189b]297 <seg>/lib/autofs</seg>
[d3ad3271]298 </seglistitem>
299 </segmentedlist>
300
301 <variablelist>
302 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
303 <?dbfo list-presentation="list"?>
304 <?dbhtml list-presentation="table"?>
305
306 <varlistentry id="automount">
307 <term><command>automount</command></term>
308 <listitem>
[e0d33ef]309 <para>is the daemon that performs the mounting when a request is
[d3ad3271]310 made for the device.</para>
311 <indexterm zone="autofs automount">
312 <primary sortas="b-automount">automount</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 </variablelist>
318
319 </sect2>
[7ef22cff]320
321</sect1>
Note: See TracBrowser for help on using the repository browser.