NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 270
The mount options are the same ones used for standard NFS-mounted
directories. See “To Change the Default Mount Options” on page 46 for a
list of mount options. The bg option cannot be used for an automounted
directory. The mount options configured in the direct map override the
ones in the master map if there is a conflict.
You can configure all your direct automounts in the same map. Many
people use the file name /etc/auto_direct for their direct map.
If the direct map name in the automounter master map contains a slash
(/), the automounter assumes it is a local file. If it does not contain a
slash, the automounter uses the Name Service Switch to determine
whether it is a file, an NIS map, or an NIS+ table. See “Configuring the
Name Service Switch” on page 267.
If you plan to use NIS or NIS+ to manage your automounter maps, you
can have only one direct map in your configuration. If you plan to use
NIS to manage your automounter maps, and your file system does not
allow file names longer than 14 characters, keep the map name to 10
characters or fewer.
Before you can mount a remote directory on your system, the remote
system where the directory is located must be configured as an NFS
server and must export the directory.
After you configure the directories you want automounted, you must
enable the automounter. See “To Enable the NFS Automounter” on
page 89. If the automounter is already running when you add a direct
mount to your configuration, you must restart the automounter before
your changes will take effect. See “To Restart the Automounter” on
page 92.
Automounted directories stay mounted until they are left idle for five
minutes. The five minute default can be changed by adding the
-tl duration option to the AUTO_OPTIONS variable in the
/etc/rc.config.d/nfsconf file.
If you change the mount options, the remote server name, or the remote
directory name for an existing direct mount while the automounter is
running, the changes you made will take effect the next time the
directory is mounted. However, if you change the local directory name in
the direct map, or if you change the master map, these changes will not
take effect until you restart the automounter. See “To Restart the
Automounter” on page 92.