[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 1

automount Daemon

Purpose

Mounts automatic mount points.

Syntax

/usr/sbin/automount-v ] [  -t Duration ] [  -i Interval ]

Description

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.

Maps

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 5L Version 5.2 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:

  1. Mount options provided in a map entry override the -MountOptions argument.
  2. The mount command's bg background mount option is not recognized by the automount daemon.

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

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 operating system: grpid, noauto, remount, quota, noquota, posix, nocto, and noac. By default, this version of the automount daemon ignores these listed options. To reverse the effect of this default, use the AUTOMOUNT_BAD_OPTS shell environment variable.

Configuration

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 5L Version 5.2 System Management Guide: Communications and Networks for more information about configuring the auto.master NIS map file.

Flags

-t Duration Specify a duration, in seconds, that a Autofs unmount thread sleeps before it starts to work again.
-i Interval Specifies an interval, in seconds, hat an Autofs directory (automounted directory) lives.
-v Displays on standard output verbose status and warning messages. Supported for both implementations.

Files

/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.

Related Information

The df command, mount command.

How to Manage NIS automount Maps in AIX 5L Version 5.2 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 5L Version 5.2 System Management Guide: Communications and Networks.

List of NFS Commands.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]