NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 2 65
For example, if server sage exports /opt and /apps, and a user on your
NFS client types the following command,
cd /net/sage/opt/frame
the subdirectory /sage is created under /net, and /opt and /apps are
mounted under /sage. Figure 2-4 shows the automounted file structure
after the user’s command.
Figure 2-4 Automounted Directories from -hosts Map—One Server
If server thyme exports the directory /exports/proj1, and a user types
the following command,
more /net/thyme/exports/proj1/readme
the subdirectory /thyme is created under /net, and /exports/proj1 is
mounted under /thyme. Figure 2-5 shows the automounted directory
structure after the second user’s command.
Figure 2-5 Automounted Directories from -hosts Map—Two Servers
The -hosts map is an indirect map. It uses the hosts database (the
/etc/hosts file, the NIS hosts map, the NIS+ hosts table, or BIND
[DNS]) to find a host on the network.
/net
/sage
/opt /apps
/net
/sage
/opt /apps
/thyme
/exports
/proj1