NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering AutoFS
Chapter 2 107
To Mount a Remote Directory Using an Indirect
Automounter Map
1. If you are using local files for your automounter maps, use an editor
to open or create an indirect map in the /etc directory. Add a line
with the following syntax to the indirect map:
local_subdirectory [mount_options] server:remote_directory
If you are using NIS to manage your automounter maps, add the line
to an indirect map on the NIS master server.
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]
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
4. If you modified the automounter master map, issue the following
command on each host that will use the map, to force AutoFS to read
the modified master map:
/usr/sbin/automount
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.