NFS Services Administrator's Guide (B.11.31.04) March 2009

1. Log in as superuser to the NFS client.
2. Enter the following commands:
ps -ef | grep automountd
kill -SIGUSR2 PID
where:
PID Process ID returned by the ps command.
Level 3 tracing is appended to the /var/adm/automount.log file.
NOTE: The command, kill -SIGUSR2 PID, works only if tracing is not already on.
To stop level 3 tracing, enter the same commands listed above to send the SIGUSR2
signal to automountd. The SIGUSR2 signal is a toggle that turns tracing on or off
depending on its current state.
If basic (level 1) tracing is turned on when you send the SIGUSR2 signal to automountd,
the SIGUSR2 signal turns tracing off.
To Start AutoFS Basic Tracing
To start AutoFS tracing Level 1, follow these steps:
1. Log in as superuser to the NFS client.
2. Add -T to the AUTOMOUNTD_OPTIONS variable in the
/etc/rc.config.d/nfsconf file, as follows:
AUTOMOUNTD_OPTIONS=-T
This change appends AutoFS basic tracing messages into the
/var/adm/automount.log file.
3. 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
4. For each 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 users who are using the
mounted directory.
5. Warn users to exit the directory, and kill processes that are using the directory, or
wait until all the processes terminate. Enter the following command to kill all the
processes using the mounted directory:
Troubleshooting AutoFS 103