NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 5192
for FS in $(grep autofs /etc/mnttab | awk ‘{print $2}’)
do
grep ‘nfs’ /etc/mnttab | awk ‘{print $2}’ | grep ^${FS}
done
4. 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 everyone
using the mounted directory.
5. 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 enter the following command to kill all the processes using the
mounted directory:
/usr/sbin/fuser -ck
local_mount_point
6. Enter the following command to kill the AutoFS:
/sbin/init.d/autofs stop
CAUTION Do not kill the automountd daemon with the kill command. It does
not unmount AutoFS mount points before it dies. Use the
nfs.client stop script to ensure that automountd dies.
7. Enter the following command to start AutoFS with tracing enabled:
/abin/init.d/autofs start
To Stop AutoFS Basic Tracing
To stop AutoFS tracing, kill AutoFS and restart it only with removing -T
from AUTOMOUNTD_OPTIONS.
AutoFS Tracing Output
The most interesting events to the users are the tracing output when
mounting and unmounting of file systems occur.