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

AutoFS Configuration Changes

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

This section describes the various methods to configure your AutoFS environment.

Configuring AutoFS Using the nfsconf File

You can use the /etc/rc.config.d/nfsconf file to configure your AutoFS environment. The /etc/rc.config.d/nfsconf file is the NFS configuration file. This file consists of the following sets of variables or parameters:

  1. Core Configuration Variables

  2. Remote Lock Manager Configuration Variables

  3. NFS Client and Server Configuration Variables

  4. AutoFS Configuration Variables

Table 3-3 lists the AutoFS configuration variables that you can use to configure your AutoFS environment.

Table 3-3 AutoFS Configuration Variables

Variable NameDescription
AUTOFSSpecifies if the system uses AutoFS. Set the value to 1 to specify that this system uses AutoFS. Set the value to 0 to specify that this system does not use AutoFS. The default value of AutoFS is 1.
NOTE: If you set the value of AUTOFS to 1, the NFS_CORE core configuration variable must also be set to 1.
AUTOMOUNT_OPTIONSSpecifies a set of options to be passed to the automount command when it is run. The default value is “ ” .
NOTE: The specified options take effect only if the automount command is run from the AutoFS startup script.
AUTOMOUNTD_OPTIONSSpecifies a set of options to be passed to the automountd daemon when it is started. The default value is “ ” .
NOTE: The specified options take effect only if the automountd daemon is run from the AutoFS startup script.
AUTO_MASTERSpecifies the name of the AutoFS master map. The default value is /etc/auto_master.
NOTE: The AUTO_MASTER option can only be used with the /etc/rc.config.d/nfsconf file.

 

When AutoFS starts up, and if the AUTOMOUNT_OPTIONS variable specifies a master map file with the -f filename option, AutoFS searches for a file by that name on the local host. It can also use the Name Service Switch (NSS) to determine which name services are in use. In addition, it determines the master maps that are available from those name services.

If the AUTOMOUNT_OPTIONS variable does not specify the -f filename option, AutoFS consults the NSS configuration, to determine where to search for the AutoFS master map.

For more information on configuring the NSS, see nsswitch.conf (4) and automount(1M) .

To configure AutoFS using the /etc/rc.config.d/nfsconf file, follow these steps:

  1. Log in as superuser.

  2. Edit the /etc/rc.config.d/nfsconf file. For instance, to change the default time for which a filesystem remains mounted when not in use, modify the AUTOMOUNT_OPTIONS variable, as follows:

    AUTOMOUNT_OPTIONS="-t 720"
  3. Enter the following command to start AutoFS.

    /sbin/init.d/autofs start

Configuring AutoFS Using the/etc/default/autofs File

You can also use the /etc/default/autofs file to configure your AutoFS environment. The /etc/default/autofs file contains parameters for the automountd daemon and the automount command.

Initially, the parameters in the /etc/default/autofs file are commented. You must uncomment the parameter to make the value for that parameter take effect. Changes made to the /etc/default/autofs file can be overridden if you modify the AutoFS values from the command line.

When AutoFS starts up, and if the AUTOMOUNT_OPTIONS variable specifies a master map file with the -f filename option, AutoFS searches for a file by that name on the local host. It can also use the Name Service Switch (NSS) to determine which name services are in use. In addition, it determines the master maps that are available from those name services.

If the AUTOMOUNT_OPTIONS variable does not specify the -f filename option, AutoFS consults the NSS configuration, to determine where to search for the AutoFS master map.

For more information on configuring the NSS, see nsswitch.conf (4) and automount(1M) .

To configure AutoFS using the /etc/default/autofs file, follow these steps:

  1. Log in as superuser.

  2. Edit the /etc/default/autofs file. For instance, to change the default time for which a filesystem remains mounted when not in use, modify the AUTOMOUNT_TIMEOUT variable, as follows:

    AUTOMOUNT_TIMEOUT=720

    For the list of parameters supported in the /etc/default/autofs file, see autofs(1M).

NOTE: Values modified using the /etc/defualt/autofs are updated when the command or daemon is started. This update is made irrespective of the way the command or daemon is started, Autofs startup script or command-line.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.