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)
NAME
automount - automatically mount NFS file systems. This manpage contains two versions of automount .
See "Remarks" below in SYNOPSIS.
SYNOPSIS
automount [-nTv][-D name = value ][-f master-file ][-M mount-directory][-tl duration]
[-tm interval ][-tw interval ][directory map [-mount-options ] ] ...
Remarks
This manpage contains two versions of automount. The autofs version is presented first, followed by the
previous automounter version.
The /usr/sbin/automount script checks the AUTOFS variable in
/etc/rc.config.d/nfsconf. If the AUTOFS variable is set to one, then
/usr/lib/netsvc/fs/autofs/automount is executed. The first half of this manpage represents
the autofs automount.
If the AUTOFS variable is set to 0 (zero) or does not exist in /etc/rc.config.d/nfsconf, then the
automount daemon is executed in /usr/lib/netsvc/fs/automount/automount
. The second
half of this manpage represents the older automount.
In future releases, only the autofs version of
automount will be supported.
DESCRIPTION
automount is a daemon that automatically and transparently mounts NFS file systems as needed. It
monitors attempts to access directories that are associated with an automount map, along with any
directories or files that reside under them. When a file is to be accessed, the daemon mounts the appropri-
ate NFS file system. Maps can be assigned to a directory by using an entry in a direct
automount map,
or by specifying an indirect map on the command line.
automount interacts with the kernel in a manner closely resembling an NFS server:
• automount uses the map to locate an appropriate NFS file server, exported file system, and
mount options.
• It then mounts the file system in a temporary location, and replaces the file system entry for the
directory or subdirectory with a symbolic link to the temporary location.
• If the file system is not accessed within an appropriate interval (five minutes by default), the dae-
mon unmounts the file system and removes the symbolic link.
• If the specified directory has not already been created, the daemon creates it, and then removes it
upon exiting.
Since name-to-location binding is dynamic, updates to an
automount map are transparent to the user.
This obviates the need to mount shared file systems prior to running applications that contain internally
hard-coded references to files.
If the dummy directory (
/-) is specified, automount treats the map argument that follows as the name
of a direct map. In a direct map, each entry associates the full path name of a mount point with a remote
file system to mount.
If the directory argument is a path name, the map argument points to an indirect map. An indirect map,
contains a list of the subdirectories contained within the indicated directory. With an indirect map, it is
these subdirectories that are mounted automatically.
A map can be a file or a NIS/NIS+ map; if a file, the map argument must be a full path name.
The
-mount-options argument, when supplied, is a comma-separated list of options to the
mount com-
mand (see mount(1M)) preceded by a
-. However, any conflicting mount options specified in the indicated
map take precedence.
Options
automount recognizes the following options:
-m Option not supported.
-n Disable dynamic mounts. With this option, references through the automount dae-
mon succeed only when the target filesystem has been previously mounted. This can
Section 1M−−92 − 1 − HP-UX Release 11i: December 2000
___
___