Oracle® Secure Backup Reference Release 10.1 Part Number B14236-03 |
|
|
View PDF |
Purpose
Use the mountdev
command to mount a tape volume that was previously loaded into a tape drive. When a volume is mounted in a drive, the Oracle Secure Backup scheduler is notified that the mounted volume is available for use. You can set the mode of use for the volume with the mountdev
options.
You can use this command if the tape drive is not set to automount
, which is the recommended, default setting. In special situations the mountdev
and unmountdev commands provide additional control over your tape drive.
See Also:
"Device Commands" for related commandsPrerequisites
You must have the right to manage devices and change device state to use the mountdev
command.
Syntax
mountdev::=
mou•ntdev { --read/-r | --write/-w | --overwrite/-o }
[ --unmount/-u | --norewind/-R ] devicename ...
Semantics
Identifies the mount mode as read. In this mode, Oracle Secure Backup mounts the volume for reading only.
Identifies the mount mode as write. In this mode, Oracle Secure Backup mounts the volume so that it can append any new backups to the end of the volume.
Identifies the mount mode as overwrite. In this mode, Oracle Secure Backup mounts a volume on the device and positions it at the beginning of the tape so that the existing contents of the volume are overwritten. If you use this option, then you are granting permission to overwrite a volume even though its volume expiration policy may not deem it eligible to be overwritten. Specify this option only in situations that warrant or require overwriting unexpired volumes.
Unmounts the currently mounted tape before executing the mount request. If a tape is mounted in the drive, and you do not first unmount the tape by specifying --unmount
, then the mountdev
command fails.
Specifies that the tape should not be rewound when Oracle Secure Backup finishes writing to it. This option enables Oracle Secure Backup to remain in position to write the next backup image.
Specifies the device on which you want to mount a volume. Refer to "devicename" for the rules governing device names.
Example
Example 2-98 manually unmounts a tape volume from drive tape1
, which is automounted, and then manually mounts a tape in write mode. Note that the sample lsdev output has been reformatted to fit on the page.
Example 2-98 Manually Mounting a Tape Volume
ob> lsdev --long tape1 tape1: Device type: tape Model: [none] Serial number: [none] In service: yes Library: lib1 DTE: 1 Automount: yes Error rate: 8 Query frequency: 3145679KB (-1073791796 bytes) (from driver) Debug mode: no Blocking factor: (default) Max blocking factor: (default) Current tape: 1 Use list: all Drive usage: 14 seconds Cleaning required: no UUID: b7c3a1a8-74d0-1027-aac5-000cf1d9be50 Attachment 1: Host: brhost3 Raw device: /dev/tape1 ob> mountdev --unmount --write tape1 ob> lsdev --mount tape1 drive tape1 in service write rbtar VOL000003 ADE203