NFS Services Administrator's Guide (B.11.31.03) August 2008

15.43.234.210 255.255.248.0
AutoFS uses the /etc/netmasks file to determine that the masked value for the subnet
of basil and the network number is the same (15. 42. 232. 0). This shows that the client
is on the same network as basil. AutoFS then mounts /nfs/mount from basil on
the local subnet.
Notes on Configuring Replicated Servers
Directories with multiple servers must be mounted as read-only to ensure that the
versions remain the same on all servers.
The server selected for the mount is the one with the highest preference, based on a
sorting order. The sorting order used gives highest preference to servers on the same
local subnet. Servers on the local network are given the second strongest preference.
As a result, if you configure multiple servers on both sides of a gateway, a server on
the same side of the gateway as the NFS client is always preferred. For multiple servers
outside the local network, and with no weighting factors assigned, the server with the
lowest response time is used for the mount.
Multiple servers provide users with reliable access to a mounted directory. If one server
is down, the directory can be mounted from another. Moreover, multiple servers provide
some load balancing across the network; a server that is not busy responds more quickly
to an AutoFS poll than one that is heavily loaded. The directory is mounted from the
server that is not busy.
If the list of multiple servers contains a combination of servers that includes all versions
of the NFS protocol, then AutoFS selects a subset of servers with the highest NFS
protocol version configured. For example, a list contains a number of servers configured
with the NFSv4 protocol, and a few servers configured with the NFSv2 protocol. AutoFS
will use the subnet of servers configured with the NFSv4 protocol, unless a server
configured with the NFSv2 protocol is closer.
Including a Map in Another Map
If you want your map to refer to an external map, you can do so by including the
external map in your map. The entries in the external map are read as if they are part
of your map.
To include the contents of an AutoFS map in another AutoFS map, add a plus (+) sign
before the map name, as in the following example:
# /etc/auto_home file
# local mount-point mount options remote server:directory
basil -nosuid basil:/export/home/basil
+auto_new
Assume that the /etc/auto_home map is listed in the master map with the following
line:
/home /etc/auto_home
Advanced AutoFS Administration 99