By default, the Backup System prompts the operator to mount a tape before opening the tape device file. However, the MOUNT parameter provides a mechanism to load a tape through an automated backup device. The MOUNT parameter takes an absolute path name as an argument:
MOUNT/pathname
The specified file contains the executable routine to load the tape.
The following information is passed from the Backup System to the executable routine:
· The tape device path name.
· The tape operation, which is selected by issuing one of the corresponding bak commands. The set of tape operations follows:
- dump
- labeltape
- readlabel
- restore
- restoredb
- savedb
- scantape
· The number of times the tape has been requested. If an error occurs when the tape device is opened, this value is incremented by one and the executable routine is called again.
· The tape name. If no tape name is specified, none is passed to the executable routine.
· The dump ID. This is a unique identification code assigned by the Backup System. If no dump ID is specified, none is passed to the executable routine.
Notes: If you do not specify the MOUNT parameter, the Backup System prompts the operator to mount the first tape.
You can use the AUTOQUERY parameter to prevent the Backup System from prompting the operator to mount the first tape. The topic entitled The AUTOQUERY Parameter discusses this parameter.
If the executable routine returns an exit code of 0, the backup process continues. An exit code of 1 aborts the backup process. Any other exit code causes the backup process to prompt the operator for the correct tape.
To abort the MOUNT parameter routine, type an a (for abort) in the Tape Coordinator monitoring window. The process then aborts the executable routine and prompts the operator to mount the correct tape.