NFS Services Administrator's Guide (B.11.31.02) January 2008
To Start AutoFS Logging
To start AutoFS Logging, follow these steps:
1. Log in as superuser to the NFS client.
2. 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
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 all the users who are using the
mounted directory.
4. Warn users to exit the directory, and kill any processes that are using the directory, or wait
until the processes terminate. Enter the following command to kill all the processes using
the mounted directory:
/usr/sbin/fuser -ck local_mount_point
5. Enter the following command to stop AutoFS:
/sbin/init.d/autofs stop
6. Add-v to AUTOMOUNTD_OPTIONS variable in the /etc/rc.config.d/nfsconffile, as
follows:
AUTOMOUNTD_OPTIONS = “-v”
This change enables AutoFS logging.
7. Enter the following commands to start AutoFS:
/sbin/init.d/autofs start
To Stop AutoFS Logging
To stop AutoFS logging, stop AutoFS and restart it after removing “-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 automoutd
kill -SIGUSR2 PID
where:
PID Process ID returned by the ps command.
Level 3 tracing is appended to the /var/adm/automount.log file.
82 Configuring and Administering AutoFS