NFS Services Administrator's Guide (B.11.31.02) January 2008
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. Enter the following command to obtain 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
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:
/usr/sbin/fuser -ck local_mount_point
6. Enter the following command to stop AutoFS:
/sbin/init.d/autofs stop
CAUTION: Do not kill the automountddaemon with thekill command. It does not
unmount AutoFS mount-points before it dies.
7. Enter the following command to start AutoFS with tracing enabled:
/sbin/init.d/autofs start
To Stop AutoFS Basic Tracing
To stop AutoFS tracing, kill AutoFS and restart it only after removing -T from
AUTOMOUNTD_OPTIONS.
AutoFS Tracing Output
Following is a sample tracing output of the mounting and unmounting of a filesystem.
Troubleshooting AutoFS 83