NFS Services Administrator's Guide (B.11.31.04) March 2009

Adding these map entries does not automatically mount them. The listed remote
directories are mounted only when referenced. For example, the following entry from
a direct map mounts the source code and the data files for a project whenever anyone
requests access to both of them:
/our_project /source -ro basil:/opt/proj1/src \
/datafiles thyme:/opt/proj1/samples/data
The following is another example from an indirect map.
chap2 -nosuid /text thyme:/our_book/chap2 \
/graphics basil:/our_book/artwork/chap2 \
/old thyme:/our_book/oldfiles/chap2
The nosuid mount option applies to all three automounted directories. For more
information on the nosuid mount option, see automount(1M).
Configuring Replicated Servers for an AutoFS Directory
This section describes how to configure multiple replicated servers for an AutoFS
directory.
Modify the entry that mounts the remote directory to list multiple servers in the
appropriate map, as follows:
If the remote directories have the same name on every server, use a syntax such
as the following from an indirect map:
man -ro broccoli,cabbage,cauliflower:/usr/share/man
You can assign a weighting factor to the servers by specifying a number in
parentheses after each server name. If the server has a lower weighting number
specified, it is likely to be selected. Servers that have no weight factor specified
have a default weight of zero and are most likely to be selected.
man -ro broccoli(1),cabbage(2),cauliflower(3):/usr/share/man
However, server proximity is more important than the weighting factor you assign.
A server on the same network segment as the client is more likely to be selected,
than a server on another network segment, regardless of the weight you assign.
The weighting factor is taken into account only when deciding between servers
with the same network proximity.
If the remote directory has a different name on different servers, use a syntax such
as the following from a direct map:
/nfs/proj2/schedule -ro \
broccoli:/export/proj2/schedule, \
cauliflower:/proj2/FY07/schedule
Advanced AutoFS Administration 95