24.05.2014 Views

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

AIX Version 4.3 Differences Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The automount command is called at system startup time from /etc/rc.tcpip. It<br />

loads the autofs kernel extension if it is not already loaded and reads the master<br />

map information from the file /etc/auto_master. The automount command then<br />

passes the information it read from the master map to the autofs kernel<br />

extension. It then starts the automountd daemon and terminates.<br />

The autofs kernel extension reads the information passed to it from the<br />

automount command and maintains an internal table of the autofs mounts. These<br />

autofs mounts are not automatically mounted at startup time. They are points<br />

under which file systems can be mounted in the future.<br />

When a client attempts to access a file system that is not presently mounted, the<br />

autofs kernel extension intercepts the request and gets the automountd to mount<br />

the requested directory. The automountd daemon locates the directory, mounts it<br />

within autofs, and replies. On receiving the reply, autofs allows the waiting<br />

request to proceed. Subsequent references to the mount are redirected by the<br />

autofs. No further participation is required by automountd.<br />

With this implementation of automatic mounting, the automountd daemon is<br />

completely independent from the automount command. Because of this<br />

separation, it is possible to add, delete, or change map information without first<br />

having to stop and start the automountd daemon process. Once the file system is<br />

mounted, further access does not require any action from automountd.<br />

7.14.2.2 AutoFS Maps<br />

AutoFS uses files referred to as maps for administration of network files. The map<br />

files contain information about filesystems and the names of the hosts on the<br />

network where the filesystems reside. Maps can be available locally or through a<br />

network name service like NIS. AutoFS uses three types of maps:<br />

• Master maps<br />

• Direct maps<br />

• Indirect maps<br />

7.14.2.3 Master Maps<br />

The auto_master map associates a directory with a map. It is a master list<br />

specifying all the maps that autofs should know about.<br />

Each line in the master map /etc/auto_master has the following syntax:<br />

mount-point map-name [ mount-options ]<br />

Mount-point<br />

mount-point is the full (absolute) path name of a directory. If the directory does<br />

not exist, autofs creates it if possible. If the directory exists and is not empty,<br />

mounting on it hides its contents. In this case, autofs issues a warning message.<br />

Map-name<br />

map-name is the map autofs uses to find directions to locations, or mount<br />

information. If the name is preceded by a slash (/), autofs interprets the name as<br />

a local file. Otherwise, autofs searches for the mount information using the<br />

search specified in the name service switch configuration file.<br />

188 <strong>AIX</strong> <strong>Version</strong> <strong>4.3</strong> <strong>Differences</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!