HP-UX Reference (11i v1 00/12) - 1M System Administration Commands A-M (vol 3)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
a
automount(1M) automount(1M)
(autofs)
Entries in both direct and indirect maps can be modified at any time. The new information is used when
automountd next uses the map entry to do a mount.
New entries added to a master map or direct map will not be useful until the automount command is run
to install them as new autofs mount points. New entries added to an indirect map may be used immedi-
ately.
An autofs directory associated with an indirect map shows only currently-mounted entries. This is a deli-
berate policy to avoid inadvertent mounting of every entry in a map via an ls -l of the directory.
Included Maps
The contents of another map can be included within a map with an entry of the form:
+mapname
If mapname begins with a slash then it is assumed to be the pathname of a local file. Otherwise the loca-
tion of the map is determined by the policy of the name service switch according to the entry for the auto-
mounter in /etc/nsswitch.conf, such as
automount: nis files
If the name service is files then the name is assumed to be that of a local file in
/etc. If the key being
searched for is not found in the included map, the search continues with the next entry.
Special Maps
There are two special maps available:
-hosts and -null. The -hosts map is used with the
/net
directory and assumes that the map key is the hostname of an NFS server. The automountd daemon
dynamically constructs a map entry from the server’s list of exported filesystems. For instance, a reference
to
/net/hermes/usr would initiate an automatic mount of all exported file systems from
hermes that
are mountable by the client. References to a directory under
/net/hermes will refer to the correspond-
ing directory relative to hermes root.
The -hosts map must mount all of the exported NFS filesystems from a server. If frequent access to just
a single filesystem is required, it is more efficient to access the filesystem with a map entry that is tailored
to mount just the filesystem of interest.
The -null map, when indicated on the command line, cancels a previous map for the directory indicated.
This is most useful in the /etc/auto_master
map for cancelling entries that would otherwise be inher-
ited from the
+auto_master include entry. To be effective, the -null entries must be inserted before
the included map entry.
Executable Maps
Local maps that have the execute bit set in their file permissions will be executed by the automounter and
provided with a key to be looked up as an argument. The executable map is expected to return the content
of an automounter map entry on its
stdout or no output if the entry cannot be determined.
Configuration and the auto_master Map
When initiated without arguments, automount consults the master map for a list of autofs mount
points and their maps. It mounts any autofs mounts that are not already mounted, and unmounts
autofs mounts that have been removed from the master map or direct map.
The master map is assumed to be called auto_master and its location is determined by the name service
switch policy. Normally the master map is located initially as a local file, /etc/auto_master
.
Network Information Service (NIS) and Yellow Pages (YP)
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality
of the two remains the same.
EXIT STATUS
automount returns:
0 successful
1 failure
3 map not found
Section 1M−−90 − 4 − HP-UX Release 11i: December 2000
___
___