Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Enhanced AutoFS Administrator's Guide: HP-UX 11i v1 > Chapter 4 Troubleshooting AutoFS

AutoFS Logging

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

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:

  1. Log on as root to the NFS client.

  2. 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
  3. 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.

  4. 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
  5. 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.
  6. 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.

  7. 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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2004 Hewlett-Packard Development Company, L.P.