Mounts automatic mount points.
/usr/sbin/automount [ -m ] [-n ] [ -T ] [ -v ] [ -D name=value ] [ -f MasterFile ] [ -M MountDirectory ] [ -tl Duration ] [ -tm Interval ] [ -tw Interval ] Directory ..$. MapName ... [ -MountOption [ ,MountOption ] ... ]
The automount command is used as an administration tool for AutoFS. It installs AutoFS mount points and associates an automount map with each mount point. The AutoFS file system monitors attempts to access directories within it and notifies the automountd daemon. The daemon uses the map to locate a file system, which it then mounts at the point of reference within the AutoFS file system.
If the file system is not accessed within an appropriate interval (five minutes by default), the automountd daemon unmounts the file system.
The filename that contains the command line map information is /tmp/autofs_cmdline.
If the automountd daemon has not been started the automount command attempts to start it via SRC.
Updates to an map are transparent to the users because name-to-location binding is dynamic. This process eliminates the need to pre-mount shared file systems for applications containing hard-coded references to files.
See "How to Manage NIS automount Maps" in AIX Version 4.3 System Management Guide: Communications and Networks for more information about formatting map entries, multiple mounts, special maps, and the auto_master/auto.master NIS configuration map file.
The -MountOptions argument is a list of mount options. The list is preceded by a - (minus sign), and each option is separated by a comma. If this argument is supplied, the options usually become the default mount options for all entries in the map.
Notes:The automount daemon is single-threaded. Any request delayed by a slow or unresponsive NFS server delays all subsequent automatic mount requests until the initial request completes. Programs that read the /etc/mtab file and then touch files that reside under automatic mount points introduce further entries to the file. Automatically mounted file systems are mounted with the mount command's -t type option set equal to ignore. These file systems do not appear in the output of either the mount command or the df command.
Environment variables, specific only to the automount daemon, can be used in an automount map. When the daemon encounters an automount variable, the environment expands to account for the new variable. Environment variables are valid only for the automounter's environment, not for the operating system's environment.
References can be protected from affixed characters by enclosing the variable name in { } (curly braces).
Note: Some NFS servers support mount options not supported by the AIX: grpid, noauto, remount, quota, noquota, posix, nocto, and noac. By default, the AIX version of the automount daemon ignores these listed options. To reverse the effect of this default, use the AUTOMOUNT_BAD_OPTS shell environment variable.
The automount daemon normally consults the auto.master NIS configuration map for a list of initial Directory-to-MapName pairs, and sets up automatic mounts for them in addition to those given on the command line. If there are duplications, the command-line parameters take precedence.
Note: This map contains the automount daemon parameter. The automount daemon does not look for an auto.master file on the local host.
See "How to Manage NIS automount Maps" in AIX Version 4.3 System Management Guide: Communications and Networks for more information about configuring the auto.master NIS map file.
-D envar=Value | Assigns a value to the indicated automount command environment variable. Supported for both implementations. See Note. |
-f MasterFile | Reads the named local file, rather than the master NIS map file, for initialization. Supported for both implementations. See Note. |
-m | Suppresses initialization of directory-mapname pairs listed in the master NIS database. Ignored in the AutoFS (AIX 4.3.1 and later) implementations. |
-M MountDirectory | Ignored in the AutoFS (AIX 4.3.1 and later) implementations. |
-n | Ignored in the AutoFS (AIX 4.3.1 and later) implementations. |
-T | Traces automount activity for diagnostic purposes, displaying it on standard output. Supported for both implementations. See Note. |
-t Duration | Specify a duration, in seconds, that a file system is to remain mounted when notin use. The default is 5 minutes. Supported only in the AutoFS (AIX 4.3.1 and later) implementations. |
-tl Duration | Specifies a duration, in seconds, that a lookup name remains cached when not in use. The default is 5 minutes. Supported for both implementations. See Note. |
-tm Interval | Specifies an interval in seconds, between attempts to mount a file system. The default is 30 seconds. Supported for both implementations. See Note. |
-tw Interval | Specifies an interval, in seconds, between attempts to unmount file systems that have exceeded their cached times. The default is 60 seconds. Supported for both implementations. See Note. |
-v | Displays on standard output verbose status and warning messages. Supported for both implementations. See Note. |
Note: Some of the flags available for the automount command in previous versions are not supported in versions 4.3.1 and later. The automount command is a new implementation in 4.3.1 to support AutoFS. Some of these flags in the AIX 4.3.1 version of the automount command are accepted, but have no other purpose other than to maintain compatibility between the new AutoFS implementation of automatic mounting and the pre-AutoFS implementation.The -tl, -tm, -tw, -D, and -f flags are supported for compatibility reasons, these flags are not supported in other vendor's current automount command implementations.
If you require full support of obsoleted arguments in AIX 4.3.1 and later you may still run the pre-AutoFS automount daemon by calling the automount command with the COMPAT_AUTOMOUNT environment value set to TRUE.
/tmp_mount | Contains the directory under which file systems are dynamically mounted. |
auto_master or auto.master | Contains the NIS configuration map for the automount daemon. |
The df command, mount command.
How to Manage NIS automount Maps in AIX Version 4.3 System Management Guide: Communications and Networks discusses map formatting, multiple mounts, special maps, and the auto.master NIS configuration map file.
Network File System (NFS) Overview for System Management in AIX Version 4.3 System Management Guide: Communications and Networks.