HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

a
automount(1M) automount(1M)
The automounter maps, including the auto_master map, may be distributed by NIS, NIS+, or LDAP (only
available with Enhanced AutoFS). The Name Service Switch configuration file,
/etc/nsswitch.conf
,
determines where the
automount command will look for the maps.
Options
-f master-file Specify a local master file for initialization.
When the -f option is used and the master file specified is not found, then
automount
defaults to /etc/auto_master
and then to the NIS auto_master map.
-t duration Specify a duration, in seconds, that a file system is to remain mounted when not in use.
The default is 300 (5 minutes), or, for Enhanced AutoFS, 600 (10 minutes).
-v Verbose mode. Notify of
autofs mounts, unmounts or other non-essential information.
Messages are written to standard error.
Map Entry Format
A simple map entry (mapping) takes the form:
key [
-mount-options] location...
where key is the full pathname of the directory to mount when used in a direct map, or the simple name of
a subdirectory in an indirect map. mount-options is a comma-separated list of mount options, and location
specifies a file system from which the directory may be mounted. In the case of a simple NFS mount, loca-
tion takes the form:
host
:pathname
host is the name of the host from which to mount the file system (it may be omitted if the pathname refers
to a local device on which the filesystem resides) and pathname is the pathname of the directory to mount.
Default mount options can be assigned to an entire map when specified as an optional third field in the
master map. These options apply only to map entries that have no mount options.
Replicated Filesystems
Multiple location fields can be specified for replicated NFS filesystems, in which case
automount chooses
a server, with preference given to a server on the local subnet or net.
If each location in the list shares the same pathname then a single location may be used with a comma-
separated list of hostnames:
hostname
,hostname... :pathname
The multiple location feature for NFS mounts allows the automountd daemon to choose the most
appropriate server at mount time. While such a mount is in effect, the daemon does not monitor the status
of the server. If the server crashes, automountd will not select an alternative server from the list.
Requests for a server may be weighted, with the weighting factor appended to the server name as an
integer in parentheses. Servers without a weighting default to a value of zero (most likely to be selected).
Progressively higher values decrease the chance of being selected. In the example,
man -ro alpha,bravo,charlie(1),delta(4):/usr/share/man
hosts alpha and bravo have the highest priority; host delta has the lowest priority.
NOTE:
Server proximity takes priority in the selection process. In the example above, if the server delta is
on the same network segment as the client, but the others are on different network segments, then
delta will be selected; the weighting value is ignored. The weighting has effect only when selecting
between servers with the same network proximity.
In cases where each server has a different export point, you can still apply the weighting. For example:
man -ro alpha:/usr/man bravo,charlie(1):/usr/share/man \
delta(3):/export/man
A mapping can be continued across input lines by escaping the newline with a backslash (\). Comments
begin with a number sign (#) and end at the subsequent newline.
Section 1M90 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005