Use the exportvol command to move one or more volumes to the import/export mechanism for removal from the library. Typically, you export volumes in bulk. This command is supported only for libraries that have import/export slots.
See Also:
"Library Commands" for related commandsYou must have the right to manage devices and change device state to use the exportvol command.
exp•ortvol [ --library/-L libraryname | --drive/-D drivename ] { vol-range | se-range }
Specifies the name of the library from which you want to export volumes. If a library is specified, then there are no limitations placed on the storage elements to be exported. If there are an insufficient number of vacant import/export elements to fulfill the request, then obtool reports that the command could not be fully executed.
If you do not specify --library or --drive, then Oracle Secure Backup uses the value of the library or drive variable. Oracle Secure Backup issues a warning if it can obtain neither the library nor drive setting.
Specifies the name of a tape drive in the library from which you want to export volumes. If a drive is specified, then all of the elements must belong to the use list of the drive.
If you do not specify --library or --drive, then Oracle Secure Backup uses the value of the library or drive variable. Oracle Secure Backup issues a warning if it can obtain neither the library nor drive setting.
Specifies the volumes to be exported. Refer to "vol-range" for a description of the vol-range placeholder.
Specifies the storage elements containing the volumes to be exported. Refer to "se-range" for a description of the se-range placeholder.
Example 2-35 exports volume VOL000003. Note that the sample output has been reformatted to fit on the page.
Example 2-35 Exporting a Volume
ob> lsvol --drive tape2 --long
Inventory of library lib2:
in mte: vacant
* in 1: volume VOL000003, barcode DEV423, oid 111, 47711360 kb
remaining
* in 2: vacant
* in 3: vacant
* in 4: vacant
in iee1: vacant
in iee2: vacant
in iee3: vacant
in dte: vacant
*: in use list
ob> exportvol --library lib2 --volume VOL000003
ob> lsvol --drive tape2 --long
Inventory of library lib2:
in mte: vacant
* in 1: vacant
* in 2: vacant
* in 3: vacant
* in 4: vacant
in iee1: volume VOL000003, barcode DEV423, oid 111, 47711360 kb
remaining, last se 1
in iee2: vacant
in iee3: vacant
in dte: vacant
*: in use list