NFS Services Administrator's Guide

Troubleshooting NFS Services
Logging and Tracing of NFS Services
Chapter 5 189
Logging and Tracing of NFS Services
This section tells you how to start the following tools:
AutoFS Logging
•AutoFS Tracing
Logging for the Other NFS Services
Logging With nettl and netfmt
Tracing With nettl and netfmt
AutoFS Logging
AutoFS logs messages through /usr/sbin/syslogd. By default,
syslogd writes messages to the file /var/adm/syslog/syslog.log. See
the syslogd (1M) manpage for more information.
To Start AutoFS Logging
1. Log in as root to the NFS client.
2. Enter 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, 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.
4. 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