| United States-English |
|
|
|
![]() |
HP-UX 11i December 2002 Release Notes: HP-UX Servers and Workstations > Chapter 11 New and Changed Disk
and File Management FeaturesMounting and Unmounting NFS File Systems Automatically Using AutoFS |
|
HP-UX 11i provides a daemon that mounts and unmounts NFS file systems automatically. This feature is known as AutoFS. AutoFS coexists with automount and performs the same functions as automount, but has a new, more reliable design. Additionally, AutoFS supports the NFS PV3 protocol whereas the automounter does not. The automount command has been replaced with a shell script that will either invoke the old automount daemon or the new AutoFS automount command, depending on the variable AUTOFS in /etc/rc.config.d/nfsconf.
The old automount executable is located at: /usr/lib/netsvc/fs/automount/automount The new AutoFS executables are located at: /usr/lib/netsvc/fs/autofs/automountd /usr/lib/netsvc/fs/autofs/automount When AutoFS is executed, a process used by its kernel code for kernel thread support is also started. The autofs_proc process cannot be killed, except by a shutdown of the system. From an operational standpoint, AutoFS functions comparably to the old automounter and returns the same values. From the system administrator's standpoint, however, AutoFS is started, stopped, and updated differently than its predecessor. The nfs.client start-script automatically starts and stops the correct daemons depending on the value of AUTOFS in /etc/rc.config.d/nfsconf.
Any user-written scripts that expect the automount command to remain running as a daemon will have to be updated either to not expect this behavior or to check explicitly that automountd is running. AutoFS can no longer be shut down by killing the automount process; instead, you must shut it down by executing the following command: /sbin/init.d/nfs.client stop This will unmount all mounted AutoFS filesystems and then kill the automountd process. To stop AutoFS without using the /sbin/init.d/nfs.client script, you must enter the following: /usr/sbin/umountall -F autofs kill automounted_pid The automount -n, -M, and -tw options are not supported in AutoFS. The -m and -tm options are also not supported, but their behavior can be configured in different ways:
Another difference between automounter and AutoFS is that AutoFS no longer uses symbolic links to access the mount points. Applications that depend on this explicit behavior will no longer work as expected. The existing 11.0 automounter can be re-enabled, if desired, by setting the AUTOFS variable to 0 or by removing the AUTOFS variable from /etc/rc.config.d/nfsconf. In this configuration, automounter will not mount file systems via the NFS version 3 protocol. For more information on how to migrate to AutoFS, see Chapter 2 in the Installing and Administering NFS Services manual. To enable AutoFS, you must add or set the AUTOFS variable to 1 in /etc/rc.config.d/nfsconf. Here is an example of this change:
A new manpage, automountd(1M), describes the AutoFS automount daemon. The automountd(1M) manpage has been modified to describe both the old automount daemon and the new AutoFS command. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||