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)
(automounter)
be used to prevent NFS servers from cross-mounting each other.
-T Trace. Expand each NFS call and log it in /var/adm/automount.log file.
-v Verbose. Log status messages to the system log file (see syslogd(1M)).
-D envar = value
Assign value to the indicated automount (environment) variable envar.
-f master-file Read the local master_file before reading auto_master map.
-M mount-directory
Mount temporary file systems in the named directory instead of in /tmp_mnt.
-tl duration Specify a duration (in seconds) that a file system is to remain mounted when not in
use. The default is 5 minutes.
-tm interval Specify an interval (in seconds) between attempts to mount a filesystem. The default
is 30 seconds.
-tw interval Specify an interval (in seconds) between attempts to unmount filesystems that have
exceeded their cached times. The default is 1 minute.
Map Entry Format
A simple map entry (mapping) takes the form:
directory [-mount-options ]
location ...
where directory is the full path name of the directory to mount, when used in a direct map, or the
basename of a subdirectory in an indirect map. mount-options is a comma-separated list of
mount
options, and location specifies a remote filesystem from which the directory may be mounted. In the simple
case, location takes the form:
host:pathname
Multiple location fields can be specified, in which case automount pings all servers in the list and then
selects the first host that responds to serve that mount point.
If location is specified in the form:
host
:path:subdir
host is the name of the host from which to mount the file system, path is the path name of the directory to
mount, and subdir, when supplied, is the name of a subdirectory to which the symbolic link is made. This
can be used to prevent duplicate mounts when multiple directories in the same remote file system might be
accessed. Assume a map for
/home resembling:
mike hpserver1:/home/hpserver1:mike
dianna hpserver1:/home/hpserver1:dianna
Attempting to access a file in /home/mike causes automount to mount
hpserver1:/home/hpserver1 and creates a symbolic link called /home/mike to the mike sub-
directory in the temporarily-mounted filesystem. A subsequent file access request in /home/dianna
results in automount simply creating a symbolic link that points to the dianna subdirectory because
/home/hpserver1 is already mounted. Given the map:
mike hpserver1:/home/hpserver1/mike
dianna hpserver1:/home/hpserver1/dianna
automount
would have to mount the filesystem twice.
A mapping can be continued across input lines by escaping the newline character with a backslash (\).
Comments begin with a # and end at the subsequent newline character.
Directory Pattern Matching
The & character is expanded to the value of the directory field for the entry in which it occurs. Given an
entry of the form:
mike hpserver1:/home/hpserver1:&
the & expands to mike.
The * character, when supplied as the directory field, is recognized as the catch-all entry. Such an entry
resolves to any entry not previously matched. For example, if the following entry appeared in the indirect
HP-UX Release 11i: December 2000 2 Section 1M93
___
___