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

To Stop AutoFS Logging
To stop AutoFS logging, stop AutoFS and restart it after removing the -v option from
AUTOMOUNTD_OPTIONS.
AutoFS tracing
AutoFS supports the following Trace levels:
Detailed (level 3)
Includes traces of all the AutoFS requests and replies, mount attempts, timeouts, and unmount
attempts. You can start level 3 tracing while AutoFS is running.
Basic (level 1)
Includes traces of all the AutoFS requests and replies. You must restart AutoFS to start level 1
tracing.
To Start and Stop AutoFS Detailed Tracing
To start and stop the AutoFS tracing Level 3, follow these steps:
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
Troubleshooting AutoFS 77