Enhanced AutoFS Administrator's Guide
Troubleshooting AutoFS
AutoFS Logging
Chapter 4 65
AutoFS Logging
AutoFS logs messages through /usr/sbin/syslogd. By default,
syslogd writes messages to the /var/adm/syslog/syslog.log file.
For more information, see the syslogd (1M) man page.
Starting AutoFS Logging
To start AutoFS logging, perform the following steps:
1. Log on as root to the NFS client.
2. Issue the following command to get a list of all the automounted
directories on the client:
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, 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 all the users
using the mounted directory.
4. Warn the users to cd out of the directory, and kill the 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
5. To kill AutoFS, issue the following command:
/sbin/init.d/nfs.client stop