 |
» |
|
|
 |
AutoFS logs messages through /usr/sbin/syslogd. By default, syslogd writes messages to the /var/adm/syslog/syslog.log file. For more information, see the syslogd (1M) man page. Starting
AutoFS Logging |  |
To start AutoFS logging, perform the following steps: Log on as root to the NFS client. Issue the following command to get 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 |
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 all the
users using the mounted directory. Warn the users to cd out of the directory, and kill
the 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 |
To kill AutoFS, issue the following command: /sbin/init.d/nfs.client stop |
 |  |  |  |  | WARNING! Do not kill the automountd daemon
with the kill command because
it does not die gracefully. Moreover, it does not unmount AutoFS
mount points before it dies. Use the nfs.client
stop script to make sure automountd dies
cleanly. |  |  |  |  |
Add -v to the AUTOMOUNTD_OPTIONS variable in the /etc/rc.config.d/nfsconf file, as shown in the following example: AUTOMOUNTD_OPTIONS = “-v” This change enables AutoFS logging. To start AutoFS, issue the following command: /sbin/init.d/nfs.client start
Stopping
AutoFS Logging |  |
To stop AutoFS logging, kill AutoFS and restart it (as described
in the preceding section) by removing “-v” option from the AUTOMOUNTD_OPTIONS variable.
|