NFS Services Administrator's Guide (762805-001, March 2014)

/usr/sbin/fuser -ck local_mount_point
4. To stop AutoFS, enter the following command:
/sbin/init.d/autofs stop
IMPORTANT: Do not stop the automountd daemon with the kill command. It does not
unmount AutoFS mount-points before it terminates. Use the autofs stop command instead.
5. To ensure that AutoFS is no longer active, enter the ps command:
/usr/bin/ps -ef | grep automount
If the ps command indicates that AutoFS is still active, ensure that all users have exited the
automounted directories and then try again. Do not restart AutoFS until all the automount
processes are terminated.
6. To start AutoFS, enter the following command:
/sbin/init.d/autofs start
Troubleshooting AutoFS
This section describes the tools and procedures for troubleshooting AutoFS.
AutoFS logging
AutoFS logs messages through /usr/sbin/syslogd. By default, syslogd writes messages to
the file /var/adm/syslog/syslog.log. For more information on the syslog daemon, see
syslogd(1M).
To Start AutoFS Logging
To start AutoFS Logging, follow these steps:
1. Log in as superuser to the NFS client.
2. 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
3. For every automounted directory listed by the grep command, 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 all the users who are using the mounted
directory.
4. Warn users to exit the directory, and kill any processes that are using the directory, or wait
until the processes terminate. Enter the following command to kill all the processes using the
mounted directory:
/usr/sbin/fuser -ck local_mount_point
5. Enter the following command to stop AutoFS:
/sbin/init.d/autofs stop
6. Add -v to AUTOMOUNTD_OPTIONS variable in the /etc/rc.config.d/nfsconf file, as
follows:
AUTOMOUNTD_OPTIONS = -v
This change enables AutoFS logging.
7. Enter the following commands to start AutoFS:
/sbin/init.d/autofs start
76 Configuring and administering AutoFS