Levels
Two levels of automounter tracing are available:
-
Detailed (level 3): Includes traces of all automounter requests and replies, mount attempts, timeouts, and unmount attempts. You can start level 3 tracing while the automounter is running.
-
Basic (level 1): Includes traces of all automounter requests and replies. You must restart the automounter to start level 1 tracing.
To start and stop automounter detailed tracing
- Log in as root to the NFS client.
- Issue the following commands:
# ps -ef | grep 'automount'
# kill -SIGUSR2 <PID>
Level 3 tracing is appended to the file /var/adm/automount.log
. To stop level 3 tracing, issue the same commands listed above to send the SIGUSR2
signal to the automounter. The SIGUSR2
signal is a toggle that turns tracing on or off depending on its current state. If you have basic (level 1) tracing turned on when you send the SIGUSR2
signal to the automounter, the SIGUSR2
signal turns tracing off.
To start and stop automounter basic tracing
- Log in as root to the NFS client.
- Add
2> tracefile
to theAUTO_OPTIONS
variable in the/etc/rc.config.d/nfsconf
file, as in the following example:
AUTO_OPTIONS="-f $AUTO_MASTER 2> /var/adm/automount.log"
This change redirects standard error to the file /var/adm/automount.log
. Automounter basic trace output is sent to standard error.
- Issue the following command to get a list of all the automounted directories on the client:
# /usr/bin/grep tmp_mnt /etc/mnttab
- For every automounted directory listed by the grep command, issue 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.
- 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 issue the following command to kill all the processes using the mounted directory:
# /usr/sbin/fuser -ck local_mount_point
- Issue the following commands to kill the automounter (PID is the process ID returned by the ps command):
# ps -ef | grep automount
# kill -SIGTERM PID
Do not kill the automounter with
-SIGKILL
(-9).
- Issue the following command to start the automounter with tracing enabled:
# /usr/sbin/automount <options> -T
options is the list of options configured in the AUTO_OPTIONS variable in the /etc/rc.config.d/nfsconf
file. You can also source the /etc/rc.config.d/nfsconf
file, and then enter the automount command as follows:
# /usr/sbin/automount $AUTO_OPTIONS -T
To stop automounter logging, kill the automounter and restart it, start it without the -T
option.
Leave a comment