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
NFS Services Administrator’s Guide: HP-UX 11i version 3 > Chapter 3 Configuring and Administering AutoFS

Restarting AutoFS

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

AutoFS rarely needs to be restarted. In case you do need to restart it, follow these steps:

  1. To find a list of all the automounted directories on the client, run the following scripts:

    for FS in $(grep autofs /etc/mnttab | awk ‘{print $2}’)
    do 
      grep ‘nfs’ /etc/mnttab | awk ‘{print $2}’ | grep ^${FS} 
    done
  2. To determine whether each automounted directory returned by the grep command is currently in use, enter the following command:

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

  3. Warn any users to exit the directory, and terminate any processes that are using the directory, or wait until the processes terminate. To terminate all the processes that are using the mounted directory, enter the following command:

    /usr/sbin/fuser -ck local_mount_point
  4. To stop AutoFS, enter the following command:

    /sbin/init.d/autofs stop
    IMPORTANT: Do not stop the automountd daemon with the kill command. It does not unmount AutoFS mount-points before it terminates. Use the autofs stop command instead.
  5. To ensure that AutoFS is no longer active, enter the ps command:

    /usr/bin/ps -ef | grep automount

    If the ps command indicates that AutoFS is still active, ensure that all users have exited the automounted directories and then try again. Do not restart AutoFS until all the automount processes are terminated.

  6. To start AutoFS, enter the following command:

    /sbin/init.d/autofs start
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.