NFS Services Administrator's Guide (762805-001, March 2014)
The following example shows an indirect map configuration:
# /etc/auto_master file
# local mount-point map name mount options
/nfs/desktop /etc/auto_desktop
# /etc/auto_desktop file
# local mount-point mount options remote server:directory
draw -nosuid thyme:/export/apps/draw
write -nosuid basil:/export/write
Enter the following commands:
cd /nfs/desktop
ls
The ls command displays the following output:
draw write
The draw and write subdirectories are the potential mount-points (browsability), but are not
currently mounted. However, if you enter the following commands, both draw and write
subdirectories are mounted:
cd /nfs/desktop/write
cd /nfs/desktop/draw
If AutoFS does not mount the configured directories, see “Troubleshooting NFS services” (page 95).
Disabling AutoFS
This section describes how to disable AutoFS.
To disable AutoFS, follow these steps:
1. To run the AutoFS shutdown script, enter the following command:
/sbin/init.d/autofs stop
2. In the /etc/rc.config.d/nfsconf file, set the value of AUTOFS variable to 0, as follows:
AUTOFS=0
IMPORTANT: Do not disable AutoFS by terminating the automountd daemon with the kill
command. It does not unmount AutoFS mount-points before it terminates. Use the autofs stop
command instead.
Restarting AutoFS
AutoFS rarely needs to be restarted. In case you do need to restart it, follow these steps:
1. To find a list of all the automounted directories on the client, run the following script:
for FS in $(grep autofs /etc/mnttab | awk ‘{print $2}’)
do
grep ‘nfs’ /etc/mnttab | awk ‘{print $2}’ | grep ^${FS}
done
2. To determine whether each automounted directory returned by the grep command is currently
in use, enter the following command:
/usr/sbin/fuser -cu local_mount_point
This command lists the process IDs and user names of all the users who are using the mounted
directory.
3. Warn any users to exit the directory, and terminate any processes that are using the directory,
or wait until the processes terminate. To terminate all the processes that are using the mounted
directory, enter the following command:
Disabling AutoFS 75