NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 69
If you are using NIS+ to manage your automounter maps, issue the
following command to add an entry to the NIS+ direct map table
(commonly called auto_direct.org_dir):
nistbladm -a key=local_directory” value=mount_options \
server:remote_directory” auto_direct.org_dir
2. If you are using local files for your automounter maps, use an editor
to open or create the automounter master map in the /etc directory.
The master map should be called /etc/auto_master. If you are
using NIS, open the master map on the NIS master server.
If the direct map you just modified is not listed in the automounter
master map, add the following line to the master map:
/- direct_map_name [mount_options]
If you are using NIS+ to manage your automounter maps, issue the
following command to add an entry for the auto_direct map to the
auto_master map:
nistbladm -a key=”/-” value=”direct_map_name mount_options
\
auto_master.org_dir
3. If you are using NIS to manage your automounter maps, issue the
following commands on the NIS master server to rebuild the maps
and push them to the slave servers:
cd /var/yp
/usr/ccs/bin/make auto.master auto.direct
The local directory you configure as the mount point should be empty or
non-existent. The automounter will create any non-existent directories
between the root directory and the configured mount point. If the local
directory you configure is not empty, any local files or directories in it will
be hidden and inaccessible while the remote directory is mounted over it.
CAUTION Do not automount a remote directory on a local directory that is a
symbolic link.