NFS Services Administrator Guide (5900-3045, March 2013)
For instance, the NFS server, Basil, exports the /export directory. If you are a user on any of
the AutoFS clients, you can use maps to access the /export directory from the NFS server, Basil.
AutoFS clients can access the exported filesystem using any one of the following map types:
• Direct Map
• Indirect Map
• Special Map
The AutoFS client, Sage, uses a direct map to access the /export directory. Sage includes an
entry similar to the following in its map:
/export Basil:/export
Sage mounts the /export directory on the export mount-point.
The AFS1 client uses an indirect map to access the /export directory. The AFS1 client includes
an entry similar to the following in its map:
/usr / server:/
/export Basil:/export
The AFS1 client mounts the /export directory on the /usr/export mount-point.
The AFS2 client uses a special map to automount the /export directory. The AFS2 client includes
an entry similar to the following in its map:
/net -host -nosuid, soft
The AFS2 client mounts the /export directory at the /net/Basil/export location.
Features
This section discusses the features that AutoFS supports on systems running HP-UX 11i v3.
On-Demand Mounting
In HP-UX 11i v3, the filesystems being accessed are mounted automatically. The AutoFS file system
provides a mechanism for automatically mounting NFS file systems on demand and for automatically
unmounting these file systems after a predetermined period of inactivity.
NOTE: The AutoFS mount points must not be hierarchically related. Automount does not allow
an AutoFS mount point to be created within another AutoFS mount.
Consider the following scenario where the AutoFS master map, /etc/auto_master, and the
direct map, /etc/auto_direct, are on the NFS client, sage. Following are the contents of the
master map, the /etc/auto_master file, which contains a single direct map entry:
# /etc/auto_master file
# local mount-point map name mount options
/- /etc/auto_direct
Following are the contents of the direct map, /etc/auto_direct, which contains the local
mount-points on the client and the directory on the server:
# /etc/auto_direct file
# local mount-point mount options remote server:directory
/auto/project/specs/reqmnts -nosuid thyme:/export/projects/specs/reqmnts
/auto/project/specs/design -nosuid thyme:/export/projects/specs/design
The /auto/project/specs/reqmnts or /auto/project/specs/design subdirectory is
mounted only when it is accessed.
For example, a user on the NFS client, sage, enters the following command:
cd /auto/project/specs/reqmnts
Only the /auto/project/specs/reqmnts subdirectory is mounted.
50 Configuring and Administering AutoFS