NFS Services Administrator's Guide (B1031-90072, March 2011)

Starting with the AutoFS mount at /org, the evaluation of this path dynamically creates additional
AutoFS mounts at /org/eng and /org/eng/projects. No action is required for the changes
to take effect on the user's system because the AutoFS mounts are created only when required.
You need to run the automount command only when you make changes to the master map or
to a direct map.
Modifying or Removing an Automounted Directory from a Map
To modify or remove an automounted directory from a map, follow these steps:
1. Enter the following command to determine whether the directory is currently in use:
/usr/sbin/fuser -cu local_mount_point
This command lists the process IDs and user names of everyone using the mounted directory.
2. Warn all users to exit the directory. Terminate processes that are using the directory, or wait
until the processes terminate. Enter the following command to kill all the processes that are
using the mounted directory:
/usr/sbin/fuser -ck local_mount_point
3. Use an editor to modify the direct or indirect map.
4. If you removed all the entries in the direct or indirect map, remove that map’s entry in the
master map.
5. If you made any changes to the master map, or if you added or modified a local mount-point
in a direct map, enter the following command to force AutoFS to reread its maps:
/usr/sbin/automount
CAUTION: You must maintain filesystems managed by AutoFS, by using the automountd and
automount utilities. Manually mounting and unmounting file systems managed by AutoFS can
cause disruptive or unpredictable results, including but not limited to commands hanging or not
returning expected results. Applications can also fail because of their dependencies on these
mounted filesystems.
Verifying the AutoFS Configuration
This section describes how to verify the AutoFS configuration.
To verify the configuration, follow these steps:
1. Enter the following command to change the current working directory to an automounted
directory:
/usr/bin/cd local_directory
where:
local_directory is the configured mount-point in the AutoFS map.
2. Enter the following command to verify that the contents of the remote directory are mounted
under the local mount-point:
/usr/bin/ls
If the directory is configured in an indirect map, entering the ls command from the parent directory
displays potential mount-points (browsability). Changing to a subdirectory configured in the indirect
map or entering the command, ls subdirectory, mounts the subdirectory.
The following example shows an indirect map configuration:
# /etc/auto_master file
# local mount-point map name mount options
/nfs/desktop /etc/auto_desktop
Modifying or Removing an Automounted Directory from a Map 73