NFS Services Administrator's Guide (B.11.31.03) August 2008
When AutoFS receives a request to mount a filesystem, it calls the automountd daemon,
which mounts the requested filesystem. AutoFS mounts the filesystems at the configured
mount-points.
The automountd daemon is independent of the automount command. This separation
enables you to add, delete, or modify the AutoFS map information, without stopping
and restarting the automountd daemon. You can modify the set of mount-points by
modifying the AutoFS maps and by running the automount command to read them
and update the mount table.
If an automounted filesystem remains idle for a specified period of time (the default
is 10 minutes), AutoFS unmounts it. To change the duration, in seconds, for which a
file system is to remain mounted when not in use, use the -t option of the automount
command. For more information on the different options supported by automount,
see automount(1M) and automountd(1M).
CAUTION: Any filesystems that are being managed by AutoFS should never be
manually mounted or unmounted. Even if the mount or unmount operation appears
to complete successfully, the resulting change of state to the AutoFS managed filesystem
can lead to disruptive or unpredictable results, including but not limited to: commands
hanging or not returning expected results, and applications failing due to their
dependencies on those mounted filesystems. A reboot may be necessary to resolve
these issues.
Maps Overview
Maps define the mount-points that AutoFS will mount. Maps are available either locally
or through a distributed network Name Service, such as NIS or LDAP. AutoFS supports
different types of maps.
Table 3-1 lists the different types of maps supported by AutoFS.
Table 3-1 Types of AutoFS Maps
DescriptionType of Map
A master list of maps, which associates a directory with a map. The
automount command reads the master map at system startup to create the
initial set of AutoFS mounts.
Master Map
A direct map is an entry in the AutoFS master map. In a direct map, there
exists a direct association between the mount-point on a client and a directory
on the server.
Direct Map
An indirect map is an entry in the AutoFS master map. In an indirect map,
there exists an association between keys representing mount-points on the
client and directories on the server. A key is a representation of the first field
of a map entry.
Indirect Map
Maps Overview 69