用途
borrowdevコマンドは、ドライブを流用する場合に使用します。
バックアップまたはリストア・ジョブが支援をリクエストしている場合に、borrowdevコマンドを使用します。入力リクエストにはrpyjobコマンドで応答できますが、この技術は複数のコマンドに対しては煩雑になります。obtoolでは各コマンドの後に新しいプロンプトが発行されるためです。borrowdevコマンドは、リクエスト・ジョブによって行われたデバイス予約を一時的に上書きし、任意のライブラリ用コマンドまたはドライブ用コマンドを実行できるようにします。ドライブを解放する際にはreturndevコマンドを使用し、ジョブを再開する際にはcatxcrまたはrpyjobコマンドを使用します。
前提条件
borrowdevコマンドを使用するには、デバイスの管理およびデバイスの状態変更(manage devices and change device state)権を備えている必要があります。
構文
borrowdev::=
bor•rowdev drive-name ...
意味
流用するドライブの名前を指定します。
例
例2-5では、バックアップ・ジョブadmin/6は一時停止になっています。catxcrコマンドの実行により、Oracle Secure Backupがバックアップに使用可能なテープを見つけられないでいることが表示されています。
例2-5 ハングしているバックアップの記録の表示
End of tape has been reached. Please wait while I rewind and unload the tape. The Volume ID of the
next tape to be written is VOL000007. The tape has been unloaded.
obtar: couldn't perform auto-swap - can't find usable volume in library (OB device mgr)
Enter a command from the following list:
load <n> .. load the tape from element <n> into the drive
unload <n> .. unload the tape from the drive into element <n>
help .. display other commands to modify drive's database
go .. to use the tape you selected
quit .. to give up and abort this backup or restore
:
[Enter]キーを押してobtoolプロンプトに戻ると仮定します。例2-6では、ライブラリのスロット2に新しいテープを挿入して、テープ・ドライブを流用し、スロット2内のボリュームをドライブにロードしてから、returndevコマンドでドライブを解放します。
例2-6 テープ・ドライブの流用
ob> lsvol --long
Inventory of library lib1:
in mte: vacant
in 1: volume VOL000006, barcode ADE201, oid 116, full
in 2: vacant
in 3: vacant
in 4: vacant
in dte: vacant
ob> insertvol unlabeled 2
ob> borrowdev tape1
ob> loadvol 2
ob> returndev tape1
例2-7では、ジョブに対してcatxcrコマンドを実行し、プロンプトでgoを入力してバックアップを再開しています。
例2-7 デバイス流用後のジョブの再開
ob> catxcr admin/6.1
admin/6.1: 2005/04/11.18:36:44 ______________________________________________________________________
admin/6.1: 2005/04/11.18:36:44
admin/6.1: 2005/04/11.18:36:44 Transcript for job admin/6.1 running on brhost2
.
.
.
admin/6.1: Backup started on Mon Apr 11 2005 at 18:36:44
admin/6.1: Volume label:
admin/6.1: Enter a command from the following list:
admin/6.1: load <n> .. load the tape from element <n> into the drive
admin/6.1: unload <n> .. unload the tape from the drive into element <n>
admin/6.1: help .. display other commands to modify drive's database
admin/6.1: go .. to use the tape you selected
admin/6.1: quit .. to give up and abort this backup or restore
admin/6.1: :
admin/6.1: : go