NFS Services Administrator's Guide (B.11.31.03) August 2008
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:
/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 automountd daemon with the kill 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.
Mount Event Tracing Output
The general format of a mount event trace is: MOUNT REQUEST: <time stamp>
<mount information> <other tracing> ... <other tracing>
MOUNT REPLY: <status>=mount statusThe <mount information> trace has
the following format (all on one line) :
name=<key>[<subdirectory>] <map>= map name <opts>=mount options
<path>=mount path <other tracing>
106 Configuring and Administering AutoFS