16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Examples<br />

Files<br />

new zFS or HFS file system. Typically, one allocation error value and<br />

reason code is displayed for the last allocation error, if there was one. If a<br />

zFS file system could not be created, you will see message text or error<br />

and reason codes (or both) for each automount-managed directory where<br />

the zFS file system was to be created.<br />

–q Displays the current automount policy. –q is mutually exclusive with –a.<br />

–s Checks the syntax of the configuration file. No automount is performed.<br />

1. The following example shows how automatic unmount can be avoided for a<br />

directory:<br />

name wjs<br />

duration nolimit<br />

Keywords that are not specified on a specific entry are inherited from the<br />

generic entry, if present. If the generic entry is not present, or if keys are not<br />

specified, the defaults are used. If the filesystem key cannot be resolved, the<br />

entry is considered invalid.<br />

2. The following is an example of a /etc/auto.master file that is used to specify /u<br />

as automount-managed and the specifications for that directory in /etc/u.map:<br />

/u /etc/u.map<br />

automount uses these files:<br />

/etc/auto.master<br />

Specifies a list of directories to be configured, along with their MapName<br />

files.<br />

Each line in this file contains two pathnames separated by at least one<br />

space: the directory name to be managed and the pathname of the<br />

MapName file. Both of these pathnames should be absolute.<br />

The pathname of the managed directory is used as a file system name<br />

prefixed with *AMD. This restricts the length of the pathname of a managed<br />

directory to 40 characters. If pathnames need to be longer, you can use<br />

symbolic links to resolve all or part of the pathname.<br />

Blank lines and lines beginning with the characters /* are considered<br />

comments and are ignored. Line comments are not tolerated<br />

MapName<br />

The MapName file contains the mapping between a subdirectory of a<br />

directory managed by automount and the mount parameters.<br />

The file is organized as a set of specifications. Each specification contains<br />

one or more lines. Each line is of the form keyword argument. Each<br />

specification must begin with the keyword name.<br />

Blank lines and lines beginning with the characters /* are considered<br />

comments and are ignored. Line comments are not tolerated<br />

A generic entry can be specified as the first specification by using the name<br />

of *. The generic specification provides defaults for subsequent specific<br />

specifications. When the automounter tries to resolve a lookup request, it<br />

attempts to find a specific entry. If a specific entry does not exist for the<br />

name being looked up, it attempts to use the generic entry.<br />

The following is an example of a generic entry:<br />

automount<br />

Chapter 2. Shell command descriptions 27

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

Saved successfully!

Ooh no, something went wrong!