Use the unmountdev
command to unmount tape volumes manually. When a tape is unmounted, the tape is no longer in a mode in which Oracle Secure Backup can read or write to it. You can use the mountdev command to mount an unmounted tape.
The unmountdev
command is particularly useful when the tape drive is not set to automount
, which is the recommended, default configuration setting. In special situations the unmountdev
and mountdev commands provide additional control over your tape drive.
See Also:
"Device Commands" for related commandsYou must have the right to manage devices and change device state to use the unmountdev
command.
unm•ountdev [ --unload/-u | --norewind/-R ] devicename ...
Unloads a volume from the tape drive.
Specifies that the tape should not be rewound when Oracle Secure Backup finishes writing to it.
Specifies the device from which you want to unmount a volume. Refer to "devicename" for the rules governing device names.
Example 2-154 unmounts an automounted tape drive called tape1
.
Example 2-154 Unmounting 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> unmountdev --norewind tape1 ob> lsdev --mount tape1 drive tape1 in service unmounted