|Article:HOWTO43743|||||Created: 2011-03-07|||||Updated: 2011-03-07|||||Article URL http://www.symantec.com/docs/HOWTO43743|
This command initiates a mount request for a tape volume on a removable media device. The information that you specify with this command identifies and registers the specified file as a logical identifier for the mount request with Media Manager. It also manages access to the volume.
Media Manager automatically mounts the media if it is in a robotic drive. Otherwise, an operator mount request appears in the Device Monitor window. tpreq does not complete normally in the case of a mount request for a robotic drive, if operator intervention is required. These requests also appear in the Device Monitor window.
On UNIX and Linux systems, when a tpreq command is initiated, a call is made to the script drive_mount_notify immediately after the media is successfully placed in a pre-selected drive. This script allows user special handling to occur now. Control is then returned to tpreq to resume processing. The script is only called from the tpreq command for the drives that are in robots and is not valid for stand-alone drives. This script resides in the /usr/openv/volmgr/bin/goodies directory. To use this script, activate it and copy it into the /usr/openv/volmgr/bin directory; usage information is documented within the script.
- -m media_id
- -a accessmode
Specifies the access mode of the volume. Valid access modes are w and r. If the access mode is w (write), the media must be mounted with write enabled. The default is r (read), which means the media may be write protected.
- -d density
4mm for 4-mm cartridge, 8mm for 8-mm cartridge, 8mm2 for 8-mm cartridge 2, 8mm3 for 8-mm cartridge 3, dlt for DLT cartridge, dlt2 for DLT cartridge 2, dlt3 for DLT cartridge 3, dtf for DTF cartridge, hcart for 1/2-inch cartridge, hcart2 for 1/2 Inch cartridge 2, hcart3 for 1/2 Inch cartridge 3, qscsi for 1/4-inch cartridge.
The half-inch cartridge densities (hcart, hcart2, and hcart3) can be used to distinguish between any supported half-inch drive types. However, tape requests can only be assigned to drives of the associated media type. For example, it assigns a tape request with density hcart2 that specifies a media ID with media type HCART2 to an hcart2 drive. Likewise, it assigns a tape request with density hcart that specifies a media ID with media type HCART to an hcart drive. The same rules apply to the DLT densities (dlt, dlt2, and dlt3) and the 8MM densities (8mm, 8mm2, and 8mm3).
- -p poolname
- -priority number
- -f filename
The file name can be a single name or a complete path. If you specify only a file name, the file is created in the current working directory. If you specify a path, the file is created in the directory that is named in the path. filename cannot be an existing file.
If the tpreq command is successful, Media Manager creates a file with the name that you specified. This file contains the name of the tape device where the media is mounted. Do not delete this file. Use the tpunmount command to remove it.
The following command creates a file named tape1 in the current working directory. It links the file to the drive that contains the volume that has media ID of JLR01. The access mode for the tape file is set to write, and a 1/4-inch cartridge drive is assigned.
# tpreq -f tape1 -m jlr01 -a w -d qscsi
This command creates a file named tape1 in the current working directory. It links the file to the drive that contains the volume that has media ID of JLR01. The access mode for the tape file is set to write, and a 1/4-inch cartridge drive is assigned.
Article URL http://www.symantec.com/docs/HOWTO43743