用途
borrowdevコマンドは、テープ・ドライブを流用する場合に使用します。
バックアップまたはリストア・ジョブが支援をリクエストしている場合に、borrowdevコマンドを使用します。入力リクエストにはrpyjobコマンドで応答できますが、この技術は複数のコマンドに対しては煩雑になります。obtoolでは各コマンドの後にプロンプトが発行されるためです。borrowdevコマンドは、リクエスト・ジョブによって行われたテープ・デバイス予約を一時的に上書きし、任意のテープ・ライブラリ用コマンドまたはテープ・ドライブ用コマンドを実行できるようにします。テープ・ドライブを解放する際にはreturndevコマンドを使用し、ジョブを再開する際にはcatxcrまたはrpyjobコマンドを使用します。
前提条件
borrowdevコマンドを使用するには、デバイスの管理およびデバイスの状態変更(manage devices and change device state)権を備えている必要があります。
構文
borrowdev::=
borrowdev drive-name...
意味
流用するテープ・ドライブの名前を指定します。
例
例2-5 ハングしているバックアップの記録の表示
この例では、バックアップ・ジョブadmin/6は停止しています。catxcrコマンドの実行により、Oracle Secure Backupがバックアップに使用可能なテープを見つけられないでいることが表示されています。
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
:
例2-6 テープ・ドライブの流用
[Enter]キーを押してobtoolプロンプトに戻ると仮定します。この例では、テープ・ライブラリのスロット2に新しいテープを挿入して、テープ・ドライブを流用し、スロット2内のボリュームをテープ・ドライブにロードしてから、returndevコマンドでテープ・ドライブを解放します。
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を入力してバックアップを再開しています。
ob> catxcr admin/6.1 admin/6.1: 2008/04/11.18:36:44 ______________________________________________________________________ admin/6.1: 2008/04/11.18:36:44 admin/6.1: 2008/04/11.18:36:44 Transcript for job admin/6.1 running on brhost2 . . . admin/6.1: Backup started on Mon Apr 11 2008 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