NFS Services Administrator's Guide

Configuring and Administering NFS
Configuring and Administering the NFS Automounter
Chapter 292
3. If you made any of the following changes, you need to restart the
automounter before your changes will take effect:
any changes to the master map
changes to the local directory name in a direct map
See “To Restart the Automounter” on page 92.
To Restart the Automounter
1. Issue the following command to get a list of all the automounted
directories on the client:
/usr/bin/grep tmp_mnt /etc/mnttab
2. For every automounted directory listed by the grep command, issue
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.
3. Warn any users to cd out of the directory, and kill any processes that
are using the directory, or wait until the processes terminate. You
can issue the following command to kill all the processes using the
mounted directory:
/usr/sbin/fuser -ck local_mount_point
4. Issue the following commands to kill the automounter (PID is the
process ID returned by the ps command):
ps -ef | grep automount
kill -SIGTERM PID
CAUTION Do not kill the automounter with -SIGKILL (-9). The SIGKILL signal
can cause any currently automounted directories to become
inaccessible until you reboot your system.
5. Type the ps command to make sure the automounter is no longer
active:
/usr/bin/ps -ef | grep automount