NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering AutoFS
Chapter 2 103
Figure 2-13 shows the difference between direct mounts and indirect
mounts on an NFS client.
Figure 2-13 The Difference Between Direct Mounts and Indirect Mounts
To Mount a Remote Directory Using a Direct
Automounter Map
1. If you are using local files for your automounter maps, use an editor
to open or create a direct map in the /etc directory. The direct map
is commonly called /etc/auto_direct. Add a line to the direct map
with the following syntax:
local_directory [mount_options] server:remote_directory
If you are using NIS to manage your automounter maps, add the line
to the direct 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 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]
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:
mounts in a direct map
/
mounts in an indirect map
/
= automounted directory