NFS Services Administrator's Guide
Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 73
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 indirect map you just modified is not listed in the automounter
master map, add the following line to the master map:
local_parent_directory indirect_map_name [mount_options]
If you are using NIS+ to manage your automounter maps, issue the
following command to add an entry for the indirect map to the
auto_master map:
nistbladm -a key=”local_parent_directory”
value=”indirect_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 indirect_mapname
The local_subdirectory specified in the indirect map is the deepest
subdirectory in the local directory pathname. For example, if you were
mounting a remote directory on /nfs/apps/draw, the
local_subdirectory specified in the indirect map would be draw.
The local_parent_directory specified in the master map is all but the
deepest subdirectory in the local directory pathname. For example, if you
were mounting a remote directory on /nfs/apps/draw, the
local_parent_directory specified in the master map would be
/nfs/apps.
The local_parent_directory and local_subdirectory should not
exist; the automounter will create them when it mounts the remote
directory. If the local_parent_directory or local_subdirectory
contains files or directories, they will be hidden beneath the remote
directory when it is mounted.
CAUTION The local_subdirectory and local_parent_directory must not be
symbolic links.