JP2004095072A - Control method for magnetic tape library and magnetic tape library device - Google Patents

Control method for magnetic tape library and magnetic tape library device Download PDF

Info

Publication number
JP2004095072A
JP2004095072A JP2002255174A JP2002255174A JP2004095072A JP 2004095072 A JP2004095072 A JP 2004095072A JP 2002255174 A JP2002255174 A JP 2002255174A JP 2002255174 A JP2002255174 A JP 2002255174A JP 2004095072 A JP2004095072 A JP 2004095072A
Authority
JP
Japan
Prior art keywords
magnetic tape
identification information
drive
stored
mount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002255174A
Other languages
Japanese (ja)
Inventor
Hajime Nonaka
野中 肇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2002255174A priority Critical patent/JP2004095072A/en
Publication of JP2004095072A publication Critical patent/JP2004095072A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Automatic Tape Cassette Changers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control method and a device for a magnetic tape library which can discriminate appropriately the existence of a magnetic tape specified by a mount command and the legitimacy a tape without loading a magnetic tape and which can discriminate appropriately the existence and the legitimacy of a magnetic tape even when a library is shared by a plurality of high order devices. <P>SOLUTION: This device is provided with a magnetic tape information storing table 8 storing existence of a magnetic tape and discrimination information (volume label) of the magnetic tape corresponding to each of magnetic tape storing cells S1∼Sn and magnetic tape drives D1∼Dm. A waiting time of a host computer 1 required for carrying and mounting a magnetic tape and program searching is removed and high speed backup processing is realized by transmitting the existence of a magnetic tape and discrimination information of the magnetic tape specified by a mount command referring to data previously stored in a magnetic tape information storing table 8 to a host computer 1. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、磁気テープライブラリの制御方法および磁気テープライブラリ装置の改良に関する。
【0002】
【従来の技術】
通常、磁気テープの最初のデータブロックには必ず其の磁気テープの識別情報となるラベル(VOL)が書き込まれており、磁気テープへのデータのバックアップ、または磁気テープからのデータのリストアを行うようなソフトウェアは、最初にこのラベルを読みとって其の磁気テープの正当性のチェックを行う。
【0003】
従って、磁気テープを格納する多数の磁気テープ格納セルと、磁気テープの読み書きを行う磁気テープドライブ、および、磁気テープ格納セルと磁気テープドライブとの間で磁気テープを搬送するアクセッサを備えた磁気テープライブラリ装置によってデータのバックアップを実施する際には、ソフトウェアは以下の処理を磁気テープライブラリ装置に対して順に命令することになる。
【0004】
図4を用いてバックアップ処理の動作について説明すると、磁気テープを磁気テープドライブへ搬送して(ステップA101)、磁気テープドライブが磁気テープからラベル(VOL)を読み取り、マウントされている媒体の正当性を確認した後(ステップA102)、バックアップデータの書き込みを開始する(ステップA103)。
【0005】
このうち、図4のステップA101では、磁気テープライブラリ装置内のアクセッサが磁気テープの格納されている磁気テープ格納セルから磁気テープの読み取りを行う磁気テープドライブまで磁気テープを搬送する動作が行われ、更に、図4のステップA102では、磁気テープドライブが磁気テープをロードして先頭のラベルを磁気ヘッドに位置づけするまでの動作が行われるため、マウントされている媒体の正当性を確認できるようになるまでに十数秒〜数十秒かかるのが一般的である。其のため、バックアップ処理の開始も其の分遅れることになる。
【0006】
近年、例えば、特許文献1に示されるように、低速な磁気テープに比べて高速な記憶装置(ハードディスク等)を磁気テープライブラリ装置内に設け、上位装置となるホストコンピュータからのデータを、高速記憶装置を仮想的な磁気テープとみなして格納する技術がある。これによると、磁気テープのマウントやラベルの読み込みをハードディスクへのアクセスで代替できるため、前述のステップA101,A102の処理にかかる時間を大幅に短縮することができる。
【0007】
また、特許文献2では、ホストコンピュータ等で構成される上位装置の不揮発性メモリ内に磁気テープ格納セルのセルアドレスと磁気テープのラベル(識別情報)とを対応させて記憶するボリューム情報テーブルを配備し、上位装置側からラベルを指定することによって、所望する磁気テープを容易に選択できるようにしたライブラリシステムが提案されている。
【0008】
【特許文献1】
特開2000−20247号公報
【特許文献2】
特開平8−87388号公報(段落番号0018−0020,図1)
【0009】
【発明が解決しようとする課題】
ところが、これらの従来技術には以下のような問題点があった。
【0010】
特許文献1に記載された発明は高速記憶装置内に仮想的に磁気テープのデータを展開し、ホストコンピュータがこのデータを直接読み書きすることで高速な処理を行うことができるというものである。ただし、一般にこの種の仮想テープ装置においては、格納されている全ての磁気テープの総和の容量に比べ、高価なハードディスクの容量は少ない。其のため、ハードディスク上の仮想的な磁気テープのデータは予め定められたアルゴリズムに基づいて、例えば、一定時間経過した段階で破棄されるのが普通である。
【0011】
このため、バックアップ先の磁気テープのラベルを含めたデータが予めハードディスク内に展開されていない場合には、このハードディスクに対して磁気テープのマウント処理を行い、磁気テープからデータを読み込んでハードディスクへ展開する必要がある。つまり、前記と同様に磁気テープをロードする動作が必要であり、ハードディスクに展開されているデータの正当性を確認できるまでに十数秒〜数十秒の時間がかかってしまう場合があるという問題点がある。
【0012】
また、磁気テープは主にバックアップを使用目的とすることが多く、其の際、磁気テープ内に既に書き込まれている古いバックアップデータに重複して新しいバックアップデータを上書きするのが普通である。ところが、仮想テープ装置では、読み込んだ磁気テープに古いバックアップデータが含まれている場合、上書きされるべき古いバックアップデータ、つまり、展開する必要のないデータもハードディスクへ展開されるという無意味な処理が行われるという問題点がある。
【0013】
一方、特許文献2に記載された発明は、上位装置とライブラリシステムとが一対一で対応することを前提としており、複数の上位装置でボリューム情報テーブルを共有するようにはなっていないので、複数の上位装置で1つの磁気テープライブラリ装置を共有することが難しいといった問題がある。
【0014】
また、仮に、この磁気テープライブラリ装置を他の上位装置で操作したような場合には、ボリューム情報テーブルに記憶されている磁気テープ格納セルのセルアドレスと磁気テープのラベル(識別情報)との対応関係が変化している可能性もあるので、何れにしても、ライブラリシステム内で磁気テープをマウントする際には、この磁気テープの正当性を確認する必要があり、前記と同様、磁気テープドライブが磁気テープをロードして先頭のラベルへ磁気ヘッドを位置づけるまでの所要時間に相当する十数秒〜数十秒の時間が正当性の確認のために必要である。
【0015】
【発明の目的】
そこで、本発明の目的は、前記従来馬術の欠点を解消し、磁気テープをロードしなくてもマウントコマンドで指定された磁気テープの存在の有無や当該磁気テープの正当性を瞬時のうちに判定することができ、しかも、複数の上位装置によって磁気テープライブラリを共有したような場合であっても、指定された磁気テープの存在の有無や正当性を適切に判定することのできる磁気テープライブラリの制御方法および磁気テープライブラリ装置を提供することにある。
【0016】
【課題を解決するための手段】
本発明の磁気テープライブラリの制御方法は、磁気テープを格納する複数の磁気テープ格納セルと、磁気テープに対してデータの読み書きを行う磁気テープドライブと、磁気テープ格納セルと磁気テープドライブとの間で磁気テープを搬送するアクセッサとを備えた磁気テープライブラリの制御方法であり、前記目的を達成するため、特に、
磁気テープ格納セルおよび磁気テープドライブの各々に対応して磁気テープの存在の有無と磁気テープの識別情報を記憶する不揮発性の磁気テープ情報記憶テーブルを設け、
磁気テープライブラリが上位装置からのマウントコマンドを受けた段階で、このマウントコマンドで指定された磁気テープの存在が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、
該磁気テープの存在が記憶されていれば、上位装置に対して即座にマウント完了信号を出力すると共にアクセッサを駆動して指定された磁気テープを磁気テープドライブにマウントする処理を開始する一方、
該磁気テープの存在が記憶されていなければ、上位装置に対して即座にマウントエラー信号を出力することを特徴とした構成を有する。
【0017】
このような構成を適用すれば、磁気テープを磁気テープドライブにマウントしてロードしなくても、上位装置からのマウントコマンドを受けた段階で不揮発性の磁気テープ情報記憶テーブルの情報を参照することにより、即座にマウント完了信号やマウントエラー信号を出力することができる。
マウントコマンドで指定された磁気テープの存在が確認された場合には、アクセッサを駆動して指定された磁気テープを磁気テープドライブに搬送してマウントする処理が開始されることになるが、マウント完了信号は、アクセッサへの駆動指令と同時または其の前後で出力することができるので、上位装置は、磁気テープの搬送やマウントおよび頭出しに必要とされる十数秒〜数十秒の時間を待つことなく、マウント完了信号を直ちに認識することができる。
上位装置が磁気テープライブラリに対して磁気テープの識別情報転送要求を出力するためには、このマウント完了信号の返信を待つ必要があるが、前述した通り、マウント完了信号の返信は物理的なマウントの完了を待たずに即座に行われるため、上位装置は、直ちに磁気テープライブラリに識別情報転送要求を出力して磁気テープの正当性の確認処理を開始することができる。
【0018】
更に、マウント完了信号の出力後に上位装置から入力される識別情報転送要求を受けた段階で、マウントの対象とされている磁気テープに対応する識別情報が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、
識別情報が記憶されていれば、上位装置に対して即座に当該識別情報を出力する一方、
識別情報が記憶されていなければ、指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、磁気テープドライブを介して該磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させると共に上位装置に対して当該識別情報を出力するように構成する。
【0019】
前記と同様、磁気テープを磁気テープドライブにマウントしてロードしなくても、上位装置からの識別情報転送要求を受けた段階で不揮発性の磁気テープ情報記憶テーブルの情報を参照することにより、即座にマウントの対象とされている磁気テープの識別情報を出力することができる。
従って、マウントコマンドで指定された磁気テープが適正な磁気テープ格納セルあるいは磁気テープドライブに存在した場合においては、上位装置は、磁気テープの搬送やマウントおよび頭出しに必要とされる十数秒〜数十秒の時間を待つことなく、マウントコマンドで指定した磁気テープの存在の有無や当該磁気テープの正当性を瞬時のうちに判定することができる。
一方、磁気テープ格納セルに新たに磁気テープを投入したような場合では、この磁気テープの識別情報が磁気テープ情報記憶テーブルに記憶されていない場合もある。このような場合は、磁気テープを磁気テープドライブにマウントする処理が完了するのを待って、磁気テープドライブを介して磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させると共に上位装置に対して当該識別情報を出力する。
このように、磁気テープライブラリ側の処理で磁気テープ格納セルおよび磁気テープドライブの各々に対応させて磁気テープの存在の有無と磁気テープの識別情報の新たな書き込み処理を行うようにしているので、複数の上位装置で1つの磁気テープライブラリを共有するような場合であっても、磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することができる。
【0020】
また、磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて、磁気テープ情報記憶テーブルにおける磁気テープの存在の有無と磁気テープの識別情報の書き替えを行うように構成することも可能である。
【0021】
磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて磁気テープ格納セルおよび磁気テープドライブの各々に対応する磁気テープの存在の有無と磁気テープの識別情報の書き替えを行うことにより、磁気テープ情報記憶テーブルのレコード内のデータ移動による簡単な処理操作で、磁気テープ情報記憶テーブルの情報を常に最新の状態に保持することができる。
このように、磁気テープライブラリ側の処理で磁気テープ格納セルおよび磁気テープドライブの各々に対応させて磁気テープの存在の有無と磁気テープの識別情報の更新処理を行うようにしているので、複数の上位装置で1つの磁気テープライブラリを共有するような場合であっても、磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することができる。
【0022】
以上に述べた通り、従来は時系列に沿って直列的に実行されていた磁気テープのマウント処理と磁気テープの識別情報の確認処理とが並列的に行われることにより、データのバックアップ処理の開始までに必要とされる所要時間が短縮されることになるが、磁気テープの物理的なマウント処理に必要とされる所要時間は識別情報の確認処理に必要とされる所要時間に比べて遥かに長い。
【0023】
従って、磁気テープの物理的なマウント処理の完了を待たずに、上位装置から入力されるバックアップデータの一時記憶を開始し、指定された磁気テープが実際に磁気テープドライブにマウントされてから、一時記憶のバックアップデータを指定された磁気テープに書き込むようにすることで、バックアップ処理に必要とされる所要時間を大幅に短縮することができる。
【0024】
本発明の磁気テープライブラリ装置は、磁気テープを格納する複数の磁気テープ格納セルと、磁気テープに対してデータの読み書きを行う磁気テープドライブと、磁気テープ格納セルと磁気テープドライブとの間で磁気テープを搬送するアクセッサとを備えた磁気テープライブラリ装置であり、前記目的を達成するため、特に、
磁気テープ格納セルおよび磁気テープドライブの各々に対応して磁気テープの存在の有無と磁気テープの識別情報を記憶する不揮発性の磁気テープ情報記憶テーブルと、
磁気テープライブラリが上位装置からのマウントコマンドを受けた段階で、マウントコマンドで指定された磁気テープの存在が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、該磁気テープの存在が記憶されていれば、上位装置に対して即座にマウント完了信号を出力すると共にアクセッサを駆動して指定された磁気テープを磁気テープドライブにマウントする処理を開始する一方、該磁気テープの存在が記憶されていなければ、上位装置に対して即座にマウントエラー信号を出力するマウント処理手段とを備えたことを特徴とする構成を有する。
【0025】
このような構成を適用すれば、磁気テープを磁気テープドライブにマウントしてロードしなくても、上位装置からのマウントコマンドを受けた段階でマウント処理手段が不揮発性の磁気テープ情報記憶テーブル(不揮発性メモリ)の情報を参照することにより、即座にマウント完了信号やマウントエラー信号を出力することができる。
物理的なマウントの完了を待たずにマウント完了信号の返信が即座に行われるため、上位装置は、直ちに磁気テープライブラリ装置に識別情報転送要求を出力して磁気テープの正当性の確認処理を開始することができる。
磁気テープ情報記憶テーブルは不揮発性メモリ、また、マウント処理手段はCPUと其の制御プログラムによって構成することが可能である。
【0026】
更に、前述の磁気テープ情報記憶テーブルおよびマウント処理手段に加え、上位装置から入力される識別情報転送要求を受けてマウントの対象とされている磁気テープに対応する識別情報が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、識別情報が記憶されていれば、上位装置に対して即座に当該識別情報を出力する一方、識別情報が記憶されていなければ、指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、磁気テープドライブを介して該磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させると共に上位装置に対して当該識別情報を出力するラベル処理手段を併設した構成としてもよい。
【0027】
磁気テープを磁気テープドライブにマウントしてロードしなくても、上位装置からの識別情報転送要求を受けた段階でラベル処理手段が不揮発性の磁気テープ情報記憶テーブルの情報を参照することにより、即座にマウントの対象とされている磁気テープの識別情報を出力することができるため、マウントコマンドで指定された磁気テープが適正な磁気テープ格納セルあるいは磁気テープドライブに存在した場合においては、上位装置は、磁気テープの搬送やマウントおよび頭出しに必要とされる十数秒〜数十秒の時間を待つことなく、マウントコマンドで指定した磁気テープの存在の有無や当該磁気テープの正当性を瞬時のうちに判定することができる。
一方、磁気テープの識別情報が磁気テープ情報記憶テーブルに記憶されていない場合には、磁気テープを磁気テープドライブにマウントする処理が完了するのを待って、ラベル処理手段が磁気テープドライブを介して磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させると共に上位装置に対して当該識別情報を出力する。このように、磁気テープライブラリ側の処理で磁気テープ格納セルおよび磁気テープドライブの各々に対応させて磁気テープの存在の有無と磁気テープの識別情報の新たな書き込み処理を行うようにしているので、複数の上位装置で1つの磁気テープライブラリを共有するような場合であっても、磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することができる。
【0028】
また、マウント処理手段には、磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて、磁気テープ情報記憶テーブルにおける磁気テープの存在の有無と磁気テープの識別情報の書き替えを行う情報テーブル自動更新機能を配備することも可能である。
【0029】
磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて磁気テープ格納セルおよび磁気テープドライブの各々に対応する磁気テープの存在の有無と磁気テープの識別情報の書き替えを行うことにより、磁気テープ情報記憶テーブルのレコード内のデータ移動による簡単な処理操作で、磁気テープ情報記憶テーブルの情報を常に最新の状態に保持することができ、複数の上位装置で1つの磁気テープライブラリを共有するような場合であっても、磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することができる。
【0030】
更に、識別情報の出力後に上位装置から入力されるバックアップデータを一時記憶するバックアップデータバッファ領域と、指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、該一時記憶されたバックアップデータを磁気テープドライブを介して指定された磁気テープに非同期で書き込むライブラリ制御手段とを併設することが望ましい。
【0031】
磁気テープの物理的なマウント処理の完了を待たずに上位装置から入力されるバックアップデータをバックアップデータバッファ領域に一時記憶し、指定された磁気テープが実際に磁気テープドライブにマウントされてからバックアップデータバッファ領域のバックアップデータを指定された磁気テープに書き込むことにより、バックアップ処理に必要とされる所要時間を大幅に短縮することができる。
【0032】
【発明の実施の形態】
以下、図面を参照して本発明の実施形態について詳細に説明する。図1は本発明による磁気テープライブラリの制御方法を適用した一実施形態の磁気テープライブラリ装置2と該磁気テープライブラリ装置2の上位装置となるホストコンピュータ1の構成について示した機能ブロック図である。
【0033】
ホストコンピュータ1は磁気テープライブラリ装置2と接続されており、磁気テープライブラリ装置2に対してコマンドの発行、コマンドの応答の受信を行うものである。
【0034】
磁気テープライブラリ装置2は、コマンド処理手段3,マウント処理手段4,ラベル処理手段5,データ転送制御手段6,磁気テープ情報記憶テーブル8,バックアップデータバッファ領域9,ライブラリ制御手段7,複数の磁気テープ格納セルS1〜Snを備えたテープ格納ユニット10,アクセッサ11、ならびに、幾つかの磁気テープドライブD1〜Dmからなる磁気テープドライブ群12によって構成される。
【0035】
このうち、コマンド処理手段3,マウント処理手段4,ラベル処理手段5,データ転送制御手段6は、磁気テープライブラリ装置2内に配備されたCPUと其の制御プログラムおよび各種のドライバ回路等によって構成される。
【0036】
コマンド処理手段3は、ホストコンピュータ1からのコマンドを受信し、コマンドに応じてマウント処理手段4、ラベル処理手段5、データ転送制御手段6に処理を委託するものである。
【0037】
マウント処理手段4は、ホストコンピュータ1からのコマンドのうちマウントコマンドを処理するものであり、磁気テープ情報記憶テーブル8の情報をもとに移動すべき磁気テープ、つまり、マウントコマンドで指定された磁気テープの存在の有無を判断する機能を持つ。
【0038】
ラベル処理手段5は、ホストコンピュータ1からのコマンドのうち識別情報転送要求を処理するものであり、磁気テープ情報記憶テーブル8の中から該当する磁気テープの識別情報をホストコンピュータ1へ通知する機能を持つ。
【0039】
データ転送制御手段6は、ホストコンピュータ1からのコマンドのうち書き込みコマンドを処理するものであり、バックアップデータバッファ領域9にデータを一時的に待避させる機能を持つ。
【0040】
不揮発性メモリからなる磁気テープ情報記憶テーブル8は、磁気テープライブラリ装置2内に存在する磁気テープドライブD1〜Dmおよび磁気テープ格納セルS1〜Snの各々に対応させて、磁気テープの存在の有無を記憶し、更に、何れかの磁気テープドライブD1〜Dmおよび磁気テープ格納セルS1〜Snに磁気テープが存在している場合においては、当該磁気テープの識別情報を併せて記憶する。
【0041】
ライブラリ制御手段7は、アクセッサ11を制御して磁気テープ格納ユニット10の各磁気テープ格納セルS1〜Snと磁気テープドライブ群12の各磁気テープドライブD1〜Dmとの間で磁気テープを搬送し、バックアップデータバッファ領域9内のデータを磁気テープへ書き込むよう磁気テープドライブを制御する機能を持つ。
【0042】
磁気テープ格納ユニット10の磁気テープ格納セルS1〜Snの内の幾つかには磁気テープが格納されており、アクセッサ11が自由に取り出したり格納したりすることができる。
【0043】
アクセッサ11は、ライブラリ制御手段7からの命令を受けて磁気テープを搬送する機能を持つ。
【0044】
磁気テープドライブ群12の各磁気テープドライブD1〜Dmは、ライブラリ制御手段7からの命令を受けて、バックアップデータバッファ領域9内のデータを磁気テープへ書き込む機能を持つ。
【0045】
ここで、磁気テープと磁気テープの識別情報について簡単に説明する。一般的に磁気テープは、JIS C6245「情報交換用磁気テープのラベルとファイル構成」で規定されるフォーマットに従ってデータが記録されている。
【0046】
図2に示すように、JIS C6245によれば、磁気テープ内のデータは磁気テープ開始位置(BOT)から順に、ボリューム見出しラベル(VOL)、複数のファイル、2つのテープマーク(TM)で構成されている。ボリューム見出しラベル(VOL)には磁気テープに関する情報が記録されており、このボリューム見出しラベル(VOL)を読み取ることで複数の磁気テープを識別して管理することができる。
【0047】
テープマーク(TM)はデータの区切り等を明示するために書き込まれるコードで、このコードを2つ連続して書き込むことでボリュームの終端が規定される。
【0048】
ファイルの各々は夫々第1ファイル見出しラベル(HDR1),第2ファイル見出しラベル(HDR2),テープマーク(TM),複数のデータ,テープマーク(TM),第1ファイル終わりラベル(EOF1),第2ファイル終わりラベル(EOF2)で構成されている。
【0049】
第1ファイル見出しラベル(HDR1)と第2ファイル見出しラベル(HDR2)にはファイルの識別情報や作成日時等のファイルに関する情報が記録されており、続くブロックからデータが始まることを示している。
【0050】
各データにはファイルの実データが記録され、其のデータの内容はバックアップ動作等を行うソフトウェアに依存する。
【0051】
第1ファイル終わりラベル(EOF1)と第2ファイル終わりラベル(EOF2)は、ファイルの終端であることを示している。
【0052】
以降、この形式の中で磁気テープの識別に必要とされる識別情報を記録しているボリューム見出しラベル(VOL)の部分をボリュームラベルと呼ぶことにする。このボリュームラベルが本実施形態における実質的な識別情報である。
【0053】
図3を用いて磁気テープ情報記憶テーブル8について詳細に説明する。磁気テープ情報記憶テーブル8は複数のレコードから構成され、其のレコード数はライブラリ装置2に備わっている磁気テープドライブの数(m)とテープ格納ユニット10に配備された磁気テープ格納セルの数(n)の合計(m+n)に等しい。
【0054】
それぞれのレコードは、ドライブ番号またはセル番号を記憶するフィールドと、ボリュームラベルを記憶するフィールド、および、テープの有無を示すフラグの値を記憶するフィールドを備える。
【0055】
セル番号は磁気テープの格納されている磁気テープ格納セルを示す値、また、ドライブ番号は磁気テープのマウントされている磁気テープドライブを示す値である。
【0056】
更に、ボリュームラベルを記憶するフィールドには、其の磁気テープ格納セルあるいは磁気テープドライブに格納されている磁気テープのボリュームラベルが記憶され、ボリュームラベルが未記憶の場合には空白が記憶される。
【0057】
テープの有無を示すフラグの値は磁気テープが格納されている状態で“○”、また、磁気テープが格納されていなければ“×”が記憶される。
【0058】
次に、図4乃至図6を参照して、本実施形態における磁気テープライブラリ装置2の全体の処理動作、特に、マウント処理手段4とラベル処理手段5の機能について、データのバックアップ処理を一例として詳細に説明する。
【0059】
データのバックアップ処理は、図4に示される通り、ホストコンピュータ1から送信されるマウントコマンドで指定された磁気テープをテープ格納ユニット10の磁気テープ格納セルから磁気テープドライブ群12の磁気テープドライブまで搬送するマウント処理(ステップA101)と、磁気テープのボリュームラベルの読み取りとボリュームラベルの確認に関する処理(ステップA102)、および、磁気テープへのバックアップデータの書き込み処理(ステップA103)によって構成される。
【0060】
図4のステップA101の処理は、ホストコンピュータ1からのマウントコマンドを受けたマウント処理手段4によって図5に示すようにして実行される。
【0061】
ホストコンピュータ1から送信されるマウントコマンドをコマンド処理手段3を介して確認したマウント処理手段4は、まず、マウントコマンドで指定されたセル番号に基いて磁気テープ情報記憶テーブル8を検索し、このセル番号に対応するレコードのフラグ記憶フィールドに“○”が記憶されているのか“×”が記憶されているのか、つまり、指定されたセル番号の磁気テープ格納セルに磁気テープが格納されているのかいないのかを判定する(ステップA201)。
【0062】
指定されたセル番号の磁気テープ格納セルに磁気テープが格納されていない場合、つまり、ステップA201の判定結果が偽となった場合においては、この磁気テープ格納セルから磁気テープを取り出してマウントすることは不可能であるので、マウント処理手段4は、即座にホストコンピュータ1に対してマウントエラー信号を送信する(ステップA205)。
【0063】
一方、指定されたセル番号の磁気テープ格納セルに磁気テープが格納されていた場合、つまり、ステップA201の判定結果が真となった場合においては、少なくとも、この磁気テープ格納セルから磁気テープを取り出してマウントすること自体は可能であるので、マウント処理手段4は、まず、磁気テープ情報記憶テーブル8の該当レコードの情報、つまり、指定されたセル番号に対応したレコードのボリュームラベル記憶フィールドに記憶されているボリュームラベルの値と其のフラグ記憶フィールドに記憶されれている“○”の値を、磁気テープのマウント先として指定されている磁気テープドライブのドライブ番号に対応するレコードのボリュームラベル記憶フィールドと其のフラグ記憶フィールドに移動させて、磁気テープ情報記憶テーブル8の情報を上書きして更新する(ステップA202)。つまり、実質的にはステップA202の処理が本実施形態における情報テーブル自動更新機能である。
【0064】
この段階で、データの移動元である指定されたセル番号に対応したレコードのボリュームラベル記憶フィールドには空白が設定され、また、其のフラグ記憶フィールドには“×”が設定される。
【0065】
次いで、マウント処理手段4は、ライブラリ制御手段7にアクセッサ駆動指令を出力してアクセッサ11による磁気テープの搬送とマウントおよび頭出しに関する処理を開始させ(ステップA203)、即座に、ホストコンピュータ1に対してマウント完了信号を送信する(ステップA204)。
【0066】
以上に述べた通り、ホストコンピュータ1に対するマウント完了信号の送信とアクセッサ11による磁気テープの搬送の開始は実質的に同時であり、アクセッサ11による磁気テープの搬送やマウントの完了を待ってからマウント完了信号が送信されるわけではない。
図5の各ステップの処理は何れも待機処理やループ処理を必要としないものであり、実際には、CPUの1処理周期の範囲内で全ての処理を実行することが可能であるから、ステップA202,ステップA203,ステップA204の実行順位をどのように入れ替えようとも何ら問題はない。つまり、マウント完了信号の送信とアクセッサ11による磁気テープの搬送処理の開始は、同時であっても、あるいは、相前後して開始されても一向に差し支えない。
【0067】
ここでは、ホストコンピュータ1から送信されるマウントコマンドによってセル番号が指定されることを前提として説明したが、ホストコンピュータ1から直接的に識別情報を指定した場合でも、マウント処理手段4が識別情報に基いて磁気テープ情報記憶テーブル8を参照することにより、指定の磁気テープを格納した磁気テープ格納セルを特定することが可能である。
【0068】
また、図4のステップA102の処理は、ホストコンピュータ1からの識別情報転送要求を受けたラベル処理手段5によって図6に示すようにして実行される。
【0069】
ラベル処理手段5は、まず、磁気テープのマウント先として指定されている磁気テープドライブのドライブ番号に対応するレコードのボリュームラベル記憶フィールド(ステップA202の処理で更新済み)にボリュームラベルが記憶されているか否かを判定する(ステップA301)。
【0070】
ステップA301の判定結果が真となってボリュームラベルの記憶が確認された場合には、ラベル処理手段5は、磁気テープの搬送とマウントおよび頭出しに関する処理の完了を待つことなく、磁気テープのマウント先として指定されている磁気テープドライブのドライブ番号に対応するレコードのボリュームラベル記憶フィールドに記憶されているボリュームラベルを即座にホストコンピュータ1へ送信する(ステップA302)。
【0071】
一方、ステップA301の判定結果が偽となって、磁気テープのマウント先として指定された磁気テープドライブのドライブ番号に対応するレコードのボリュームラベル記憶フィールドにボリュームラベルが記憶されていないことが明らかとなった場合には、この磁気テープを磁気テープライブラリ装置2に投入してから間がなく、現時点では未だ磁気テープ情報記憶テーブル8に当該磁気テープのボリュームラベルが記憶されていないことを意味する。
【0072】
従って、この場合、ラベル処理手段5は、磁気テープの搬送とマウントおよび頭出しに関する処理の完了を待ってから(ステップA303)、磁気テープドライブを介して当該磁気テープ上のボリュームラベルを読み取り、このボリュームラベルを、磁気テープのマウント先として指定された磁気テープドライブのドライブ番号に対応するレコードのボリュームラベル記憶フィールドに記憶し(ステップA304)、前記と同様、このボリュームラベルをホストコンピュータ1へ送信する(ステップA302)。
【0073】
また、磁気テープドライブから磁気テープ格納セルに磁気テープが戻される場合には、前述したステップS202の処理とは逆に、磁気テープ情報記憶テーブル8の該当レコードの情報、つまり、その時点で使用されていた磁気テープドライブのドライブ番号に対応したレコードのボリュームラベル記憶フィールドに記憶されていたボリュームラベルの値と其のフラグ記憶フィールドに記憶されれている“○”の値が、磁気テープの格納先として指定されたセル番号に対応するレコードのボリュームラベル記憶フィールドと其のフラグ記憶フィールドに移動されて、磁気テープ情報記憶テーブル8の情報が更新されることになる。
【0074】
このように、磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期して、磁気テープ情報記憶テーブル8に記憶された各セルおよびドライブおける磁気テープの存在の有無と磁気テープのボリュームラベルの書き替えが行われる結果、一旦磁気テープドライブにマウントされた磁気テープ、つまり、磁気テープ情報記憶テーブル8にボリュームラベルが記憶された磁気テープを再び磁気テープドライブにマウントする場合においては、実際の物理的なマウント作業が完了していなくても、磁気テープ情報記憶テーブル8の内容を参照するだけで、各セルおよびドライブおける磁気テープの存在の有無を即座に判定することができ、更に、磁気テープが存在している場合には、そのボリュームラベル(識別情報)についても即座に確認することができる。
【0075】
更に、図7〜図9に実例を挙げてマウント処理手段4とラベル処理手段5の実際の動作について説明する。
【0076】
この例では、図7に示されるように、8個の磁気テープ格納セル(セル番号1〜セル番号8)と、2個の磁気テープドライブ(ドライブ番号1〜ドライブ番号2)を実装した磁気テープライブラリ装置2において、初期状態で、3巻の磁気テープ(磁気テープ1〜磁気テープ3)が夫々セル番号1,セル番号3,セル番号5のセルに格納されているものとする。
【0077】
従って、磁気テープ情報記憶テーブル8のドライブ番号1,2とセル番号2,4,6〜8に対応したレコードのボリュームラベル記憶フィールドは空白、また、其のフラグ記憶フィールドには“×”が記憶される一方、セル番号1,3,5に対応したレコードのボリュームラベル記憶フィールドには、夫々、磁気テープ1,2,3に対応したボリュームラベル1,2,3が記憶されると共に、其のフラグ記憶フィールドに“×”が記憶されていることになる。
【0078】
ここでは、一例として、この状態から磁気テープ3にバックアップ処理を行う場合について考える。
【0079】
まず、ホストコンピュータ1は、磁気テープライブラリ装置2に対し、磁気テープ3を磁気テープ格納セル5から取り出して磁気テープドライブ1へマウントするようマウントコマンドを発行する。
【0080】
そして、このマウントコマンドを受けたマウント処理手段4は、磁気テープ情報記憶テーブル8のセル番号5に対応するレコードのフラグ記憶フィールドに“○”が記憶されているのか“×”が記憶されているのかを判定する(ステップA201)。
【0081】
この場合は該当するフラグ記憶フィールドに“○”が記憶されているので、マウント処理手段4は、図8に示されるように、指定されたセル番号5に対応するレコードのボリュームラベル記憶フィールドに記憶されているボリュームラベル3の値と其のフラグ記憶フィールドに記憶されれている“○”の値を、磁気テープ3のマウント先として指定されている磁気テープドライブのドライブ番号1に対応したレコードのボリュームラベル記憶フィールドと其のフラグ記憶フィールドに移動させて磁気テープ情報記憶テーブル8の情報を上書きして更新し(ステップA202)、併せて、データの移動元である指定されたセル番号5に対応したレコードのボリュームラベル記憶フィールドに空白を設定すると共に、其のフラグ記憶フィールドに“×”を設定する。
【0082】
同時に、これと相前後して、マウント処理手段4は、ライブラリ制御手段7にアクセッサ駆動指令を出力し、セル番号5の磁気テープ格納セルからの磁気テープ3の取り出しと搬送およびドライブ番号1の磁気テープドライブに対する磁気テープ3のマウントおよび頭出しに関する処理を開始させ(ステップA203)、即座に、ホストコンピュータ1に対してマウント完了信号を送信する(ステップA204)。
【0083】
そして、このマウント完了信号を受けたホストコンピュータ1が磁気テープライブラリ装置2に対して識別情報転送要求を送信すると、ホストコンピュータ1からの識別情報転送要求を受けたラベル処理手段5は、磁気テープのマウント先として指定されている磁気テープドライブのドライブ番号1に対応するレコードのボリュームラベル記憶フィールド(ステップA202の処理で更新済み)にボリュームラベルが記憶されているか否かを判定する(ステップA301)。
【0084】
この場合、図9に示される通り、ドライブ番号1に対応するレコードのボリュームラベル記憶フィールドにボリュームラベルが記憶されているので、ラベル処理手段5は、磁気テープ3に関連したマウント処理の完了を待たずに、ドライブ番号1に対応するレコードのボリュームラベル記憶フィールドに記憶されてボリュームラベル3を即座にホストコンピュータ1に送信することになる(ステップA302)。
【0085】
このボリュームラベルを受信したホストコンピュータ1は、ボリュームラベル3の確認を行った後、直ちにバックアップデータの書き込みを開始するが、この段階では未だドライブ番号1の磁気テープドライブに対する磁気テープ3の物理的なマウントは完了していないので、このバックアップデータは一旦バックアップデータバッファ領域9に書き込まれ、磁気テープドライブに対する磁気テープ3の物理的なマウントが完了した段階で、ライブラリ制御手段7側の制御により、バックアップデータバッファ領域9内のデータが非同期的に磁気テープ3に書き込まれることになる。
【0086】
磁気テープ3を磁気テープライブラリ装置2に投入した直後などで、ボリュームラベル3が磁気テープ情報記憶テーブル8に記憶されていない場合、つまり、図7においてセル番号5に対応したレコードのボリュームラベル記憶フィールドが空白で、かつ、其のフラグ記憶フィールドに“○”が記憶されていた場合についても、マウントコマンドに対するマウント処理手段4の処理は前述の説明と同様である。但し、ラベル処理手段5が識別情報転送要求を受けた際、磁気テープ情報記憶テーブル8のドライブ番号1に対応したレコードのボリュームラベル記憶フィールドにはボリュームラベルが記憶されていないので、ステップA301の判定結果は偽となり、ラベル処理手段5は、磁気テープドライブに対する磁気テープ3の物理的なマウントの完了を待ってから(ステップA303)、ドライブ番号1の磁気テープドライブを介して磁気テープ3からボリュームラベルを読み取り、其のボリュームラベル3を磁気テープ情報記憶テーブル8のドライブ番号1に対応したレコードのボリュームラベル記憶フィールドに記憶させてから(ステップA304)、このボリュームラベル3をホストコンピュータ1に送信することになる(ステップA302)。
【0087】
また、本実施形態ではJIS C6245におけるボリュームラベルをテーブルとして管理することを想定しているが、JIS C6245に従わずに、ソフトウェアが独自の磁気テープのフォーマットを規定しているケースがある。其のような場合でも、ソフトウェアは磁気テープを識別するための識別情報となるデータを磁気テープの先頭に書き、ホストコンピュータ1が磁気テープを識別するために識別情報転送要求に相当するコマンドを発行して正当性をチェックするのが一般的である。従って、図3におけるボリュームラベルの代替として其のような磁気テープ先頭ブロックを登録しておくことで同等の効果をあげることができる。
【0088】
【発明の効果】
本発明による磁気テープライブラリの制御方法および磁気テープライブラリ装置は、磁気テープ格納セルおよび磁気テープドライブの各々に対応して磁気テープの存在の有無と磁気テープの識別情報を記憶する磁気テープ情報記憶テーブルを設け、磁気テープライブラリが上位装置からのマウントコマンドを受けた段階で当該マウントコマンドで指定された磁気テープの存在が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、磁気テープの存在が磁気テープ情報記憶テーブルに記憶されていれば上位装置に対して即座にマウント完了信号を出力してアクセッサの駆動による磁気テープのマウント処理を開始する一方、磁気テープの存在が磁気テープ情報記憶テーブルに記憶されていない場合には上位装置に対して即座にマウントエラー信号を出力するようにしたので、磁気テープを磁気テープドライブに一々マウントしてデータをロードしなくても、上位装置からのマウントコマンドを受けた段階で即座にマウント完了信号やマウントエラー信号を上位装置に送信することができる。
従って、上位装置は、これまで磁気テープの搬送やマウントおよび頭出し等に必要とされていた十数秒〜数十秒の時間を待つことなく、バックアップの際に必要とされるマウント完了信号を直ちに認識して磁気テープライブラリに対して磁気テープの識別情報転送要求を出力して磁気テープの正当性の確認処理を開始することができるようになる。
【0089】
更に、マウント完了信号の出力後に上位装置から入力される識別情報転送要求を受けた段階で、マウントの対象とされている磁気テープに対応する識別情報が磁気テープ情報記憶テーブルに記憶されているか否かを判定し、識別情報が記憶されている場合には上位装置に対して即座に当該識別情報を出力する一方、識別情報が記憶されていない場合には、指定された磁気テープを磁気テープドライブにマウントする処理の完了を待ってから磁気テープドライブを介して当該磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させると共に上位装置に対して送信するようにしているので、磁気テープを磁気テープドライブにマウントしてデータをロードしなくても、上位装置からの識別情報転送要求を受けた段階で、即座にマウントの対象とされている磁気テープの識別情報を上位装置に送信することができる。
従って、マウントコマンドで指定された磁気テープが適正な磁気テープ格納セルあるいは磁気テープドライブに存在した場合においては、上位装置は、これまで磁気テープの搬送やマウントおよび頭出しに必要とされていた十数秒〜数十秒の時間を待つことなく、マウントコマンドで指定した磁気テープの存在の有無に加えて当該磁気テープの正当性を瞬時のうちに判定し、バックアップのためのデータの書き込み処理を直ちに開始することができる。
しかも、磁気テープ格納セルに新たに磁気テープを投入した直後のように磁気テープの識別情報が磁気テープ情報記憶テーブルに記憶されていない場合においては、磁気テープが磁気テープドライブに物理的にマウントされるのを待って磁気テープドライブを介して磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて磁気テープ情報記憶テーブルに記憶させることで、磁気テープライブラリ側の内部処理で磁気テープ格納セルおよび磁気テープドライブの各々に対応させて磁気テープの存在の有無と磁気テープの識別情報の新たな書き込みを行うようにしているので、複数の上位装置で1つの磁気テープライブラリを共有するような場合であっても、磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することができる。
【0090】
また、磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて磁気テープ情報記憶テーブルにおける磁気テープの存在の有無と磁気テープの識別情報の書き替えを行う情報テーブル自動更新機能を備えているので、磁気テープ情報記憶テーブルのレコード内のデータ移動による簡単な処理操作で磁気テープ情報記憶テーブルの情報を常に最新の状態に保持することができ、複数の上位装置に対して磁気テープ情報記憶テーブルの内容を常に適切な状態に保持することが可能である。
【0091】
更に、磁気テープの物理的なマウント処理の完了を待たずに、上位装置から入力されるバックアップデータの一時記憶を開始し、指定された磁気テープが実際に磁気テープドライブにマウントされてから一時記憶のバックアップデータを指定された磁気テープに書き込むようにしているので、磁気テープのマウント処理と並行してデータのバックアップ処理を実施することが可能となり、データのバックアップに必要とされる全体的な所要時間を大幅に短縮することができるようになった。
【図面の簡単な説明】
【図1】一実施形態の磁気テープライブラリ装置および上位装置としてのホストコンピュータの構成について示した機能ブロック図である。
【図2】磁気テープにおけるデータ記憶構造について示した概念図である。
【図3】磁気テープ情報記憶テーブルの論理的な構造について示した概念図である。
【図4】バックアップ処理の概略について示したフローチャートである。
【図5】マウント処理手段が実行する処理について示したフローチャートである。
【図6】ラベル処理手段が実行する処理について示したフローチャートである。
【図7】磁気テープライブラリ装置における磁気テープの格納状態と磁気テープ情報記憶テーブル内のデータとの対応関係について一例を挙げて示した概念図である(データの更新前の状況)。
【図8】磁気テープライブラリ装置における磁気テープの格納状態と磁気テープ情報記憶テーブル内のデータとの対応関係について一例を挙げて示した概念図である(データの更新過程の状況)。
【図9】磁気テープライブラリ装置における磁気テープの格納状態と磁気テープ情報記憶テーブル内のデータとの対応関係について一例を挙げて示した概念図である(データの更新完了時点の状況)。
【符号の説明】
1 ホストコンピュータ(上位装置)
2 磁気テープライブラリ装置
3 コマンド処理手段
4 マウント処理手段
5 ラベル処理手段
6 データ転送制御手段
7 ライブラリ制御手段
8 磁気テープ情報記憶テーブル
9 バックアップデータバッファ領域
10 テープ格納ユニット
11 アクセッサ
12 磁気テープドライブ群
S1〜Sn 磁気テープ格納セル
D1〜Dm 磁気テープドライブ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a control method of a magnetic tape library and an improvement of a magnetic tape library device.
[0002]
[Prior art]
Usually, a label (VOL) serving as identification information of the magnetic tape is always written in the first data block of the magnetic tape, so that data is backed up to the magnetic tape or data is restored from the magnetic tape. First, the software reads this label and checks the validity of the magnetic tape.
[0003]
Therefore, a magnetic tape having a large number of magnetic tape storage cells for storing magnetic tape, a magnetic tape drive for reading and writing magnetic tape, and an accessor for conveying the magnetic tape between the magnetic tape storage cell and the magnetic tape drive When data backup is performed by the library device, the software sequentially instructs the following processes to the magnetic tape library device.
[0004]
The operation of the backup process will be described with reference to FIG. 4. The magnetic tape is transported to the magnetic tape drive (step A101), the magnetic tape drive reads the label (VOL) from the magnetic tape, and checks the validity of the mounted medium. Is confirmed (step A102), writing of backup data is started (step A103).
[0005]
Of these, in step A101 of FIG. 4, an operation is performed in which the accessor in the magnetic tape library device conveys the magnetic tape from the magnetic tape storage cell storing the magnetic tape to the magnetic tape drive that reads the magnetic tape. Further, in step A102 in FIG. 4, the operation from the loading of the magnetic tape by the magnetic tape drive to the positioning of the first label on the magnetic head is performed, so that the validity of the mounted medium can be confirmed. It generally takes ten to several seconds to several tens of seconds. Therefore, the start of the backup process is delayed by that amount.
[0006]
In recent years, for example, as shown in Patent Document 1, a high-speed storage device (such as a hard disk) is provided in a magnetic tape library device as compared with a low-speed magnetic tape, and data from a host computer as a host device is stored at a high speed. There is a technique for storing an apparatus as a virtual magnetic tape. According to this, since the mounting of the magnetic tape and the reading of the label can be replaced with the access to the hard disk, the time required for the processing of the above-described steps A101 and A102 can be greatly reduced.
[0007]
Further, in Patent Literature 2, a volume information table that stores cell addresses of magnetic tape storage cells and labels (identification information) of magnetic tapes in a non-volatile memory of a higher-level device including a host computer is provided. A library system has been proposed in which a higher-level device can easily select a desired magnetic tape by designating a label.
[0008]
[Patent Document 1]
JP 2000-20247 A
[Patent Document 2]
JP-A-8-87388 (Paragraph No. 0018-0020, FIG. 1)
[0009]
[Problems to be solved by the invention]
However, these conventional techniques have the following problems.
[0010]
The invention described in Japanese Patent Application Laid-Open No. H11-163873 virtually expands data on a magnetic tape in a high-speed storage device, and a host computer can perform high-speed processing by directly reading and writing this data. However, in this type of virtual tape device, the capacity of an expensive hard disk is generally smaller than the total capacity of all the stored magnetic tapes. For this reason, the data on the virtual magnetic tape on the hard disk is usually discarded based on a predetermined algorithm, for example, after a certain time has elapsed.
[0011]
For this reason, if the data including the label of the magnetic tape at the backup destination has not been expanded in the hard disk in advance, mount the magnetic tape on this hard disk, read the data from the magnetic tape, and expand it on the hard disk There is a need to. That is, the operation of loading the magnetic tape is required as described above, and it may take ten to several tens of seconds before the validity of the data loaded on the hard disk can be confirmed. There is.
[0012]
In addition, magnetic tapes are mainly used for backup purposes, and at that time, new backup data is usually overwritten with old backup data already written in the magnetic tape. However, in a virtual tape device, if the read magnetic tape contains old backup data, there is a pointless process in which old backup data to be overwritten, that is, data that does not need to be expanded, is also expanded to the hard disk. There is a problem that it is performed.
[0013]
On the other hand, the invention described in Patent Document 2 is based on the premise that a host device and a library system correspond one-to-one, and the volume information table is not shared by a plurality of host devices. There is a problem that it is difficult to share one magnetic tape library device with the host device of the above.
[0014]
Also, if the magnetic tape library device is operated by another host device, the correspondence between the cell address of the magnetic tape storage cell stored in the volume information table and the label (identification information) of the magnetic tape is assumed. In any case, when mounting the magnetic tape in the library system, it is necessary to confirm the validity of the magnetic tape because the relationship may have changed. However, it takes ten to several seconds to several tens of seconds corresponding to the time required to load the magnetic tape and position the magnetic head on the leading label in order to confirm the validity.
[0015]
[Object of the invention]
Therefore, an object of the present invention is to solve the drawbacks of the conventional equestrian art, and to instantly determine the presence or absence of the magnetic tape specified by the mount command and the validity of the magnetic tape without loading the magnetic tape. Even if the magnetic tape library is shared by a plurality of higher-level devices, a magnetic tape library capable of appropriately determining the presence or absence and validity of the specified magnetic tape can be determined. A control method and a magnetic tape library device are provided.
[0016]
[Means for Solving the Problems]
A method of controlling a magnetic tape library according to the present invention includes a plurality of magnetic tape storage cells for storing a magnetic tape, a magnetic tape drive for reading and writing data from and to a magnetic tape, and a method for controlling a magnetic tape storage cell and a magnetic tape drive. A method of controlling a magnetic tape library including an accessor that conveys a magnetic tape, and in order to achieve the above object, in particular,
A non-volatile magnetic tape information storage table for storing presence / absence of a magnetic tape and identification information of the magnetic tape corresponding to each of the magnetic tape storage cell and the magnetic tape drive is provided,
At the stage when the magnetic tape library receives the mount command from the higher-level device, it is determined whether or not the presence of the magnetic tape specified by the mount command is stored in the magnetic tape information storage table,
If the presence of the magnetic tape is stored, a mount completion signal is immediately output to the host device, and the process of driving the accessor to mount the specified magnetic tape on the magnetic tape drive is started.
If the presence of the magnetic tape is not stored, a mount error signal is immediately output to the host device.
[0017]
With this configuration, the information in the non-volatile magnetic tape information storage table can be referred to when a mount command is received from a higher-level device without mounting and loading the magnetic tape in the magnetic tape drive. Thus, a mount completion signal and a mount error signal can be output immediately.
If the existence of the magnetic tape specified by the mount command is confirmed, the process of driving the accessor to transport the specified magnetic tape to the magnetic tape drive and mount it will start, but the mounting is completed. Since the signal can be output at the same time as or before and after the drive command to the accessor, the host device waits for ten to several tens of seconds required for transporting, mounting and cueing of the magnetic tape. Without this, the mount completion signal can be immediately recognized.
In order for the host device to output a magnetic tape identification information transfer request to the magnetic tape library, it is necessary to wait for the return of this mount completion signal. Is immediately performed without waiting for the completion of the process, the host device can immediately output the identification information transfer request to the magnetic tape library and start the process of checking the validity of the magnetic tape.
[0018]
Further, at the stage of receiving the identification information transfer request input from the higher-level device after the output of the mount completion signal, whether or not the identification information corresponding to the magnetic tape to be mounted is stored in the magnetic tape information storage table Judge
If the identification information is stored, the identification information is immediately output to the host device,
If the identification information is not stored, the identification information is read from the magnetic tape via the magnetic tape drive after the completion of the process of mounting the specified magnetic tape on the magnetic tape drive, and the identification information is stored in the magnetic tape drive. The magnetic tape information storage table is stored in correspondence with the drive, and the identification information is output to the host device.
[0019]
As described above, even if the magnetic tape is not mounted on the magnetic tape drive and loaded, by referring to the information in the non-volatile magnetic tape information storage table at the time of receiving the identification information transfer request from the higher-level device, it is possible to immediately Can output the identification information of the magnetic tape to be mounted.
Therefore, when the magnetic tape specified by the mount command is present in the proper magnetic tape storage cell or magnetic tape drive, the host device needs to perform several tens of seconds to several seconds required for transporting, mounting, and cueing the magnetic tape. The presence or absence of the magnetic tape specified by the mount command and the validity of the magnetic tape can be instantaneously determined without waiting for ten seconds.
On the other hand, when a new magnetic tape is inserted into the magnetic tape storage cell, the identification information of the magnetic tape may not be stored in the magnetic tape information storage table. In such a case, after the process of mounting the magnetic tape on the magnetic tape drive is completed, the identification information is read from the magnetic tape via the magnetic tape drive, and the identification information is associated with the magnetic tape drive. The identification information is stored in the magnetic tape information storage table and output to the host device.
As described above, in the process on the magnetic tape library side, the presence or absence of the magnetic tape and the new write process of the identification information of the magnetic tape are performed in correspondence with each of the magnetic tape storage cell and the magnetic tape drive. Even when a single magnetic tape library is shared by a plurality of higher-level devices, the contents of the magnetic tape information storage table can always be kept in an appropriate state.
[0020]
In addition, the configuration may be such that the presence or absence of a magnetic tape in the magnetic tape information storage table and the identification information of the magnetic tape are rewritten in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. It is possible.
[0021]
The presence / absence of a magnetic tape corresponding to each of the magnetic tape storage cell and the magnetic tape drive and the rewriting of the identification information of the magnetic tape are performed in synchronization with the transfer of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. The information in the magnetic tape information storage table can always be kept up to date by a simple processing operation by moving data in the record of the magnetic tape information storage table.
As described above, in the processing of the magnetic tape library, the presence / absence of the magnetic tape and the updating processing of the identification information of the magnetic tape are performed in correspondence with each of the magnetic tape storage cell and the magnetic tape drive. Even in the case where one magnetic tape library is shared by the host device, the contents of the magnetic tape information storage table can always be kept in an appropriate state.
[0022]
As described above, the magnetic tape mount processing and the magnetic tape identification information confirmation processing, which were conventionally performed serially in chronological order, are now performed in parallel, thereby starting the data backup processing. However, the time required for physically mounting the magnetic tape is much shorter than the time required for confirming the identification information. long.
[0023]
Therefore, the temporary storage of the backup data input from the higher-level device is started without waiting for the physical mounting of the magnetic tape to be completed, and the temporary storage is started after the specified magnetic tape is actually mounted on the magnetic tape drive. By writing the stored backup data to a specified magnetic tape, the time required for the backup process can be significantly reduced.
[0024]
A magnetic tape library device according to the present invention includes a plurality of magnetic tape storage cells for storing magnetic tapes, a magnetic tape drive for reading and writing data from and to a magnetic tape, and a magnetic tape storage cell and a magnetic tape drive. A magnetic tape library device including an accessor for transporting a tape, and in order to achieve the above object, in particular,
A non-volatile magnetic tape information storage table that stores presence / absence of a magnetic tape and identification information of the magnetic tape corresponding to each of the magnetic tape storage cell and the magnetic tape drive;
At the stage when the magnetic tape library receives the mount command from the host device, it is determined whether or not the presence of the magnetic tape specified by the mount command is stored in the magnetic tape information storage table, and the presence of the magnetic tape is stored. If it is, the mount completion signal is immediately output to the host device and the accessor is driven to start the process of mounting the specified magnetic tape on the magnetic tape drive, while the presence of the magnetic tape is stored. If not, a mount processing means for immediately outputting a mount error signal to the host device is provided.
[0025]
By applying such a configuration, the mount processing means can execute the non-volatile magnetic tape information storage table (non-volatile) when a mount command is received from a higher-level device without mounting and loading the magnetic tape in the magnetic tape drive. By referring to the information in the memory, a mount completion signal and a mount error signal can be output immediately.
Since the mount completion signal is immediately returned without waiting for the completion of the physical mount, the host device immediately outputs an identification information transfer request to the magnetic tape library device and starts the process of confirming the validity of the magnetic tape. can do.
The magnetic tape information storage table can be constituted by a non-volatile memory, and the mount processing means can be constituted by a CPU and its control program.
[0026]
Further, in addition to the above-described magnetic tape information storage table and the mount processing means, the identification information corresponding to the magnetic tape to be mounted in response to the identification information transfer request input from the host device is stored in the magnetic tape information storage table. It is determined whether or not the identification information is stored. If the identification information is stored, the identification information is immediately output to the host device. Waiting for the completion of the process of mounting on the tape drive, reading the identification information from the magnetic tape via the magnetic tape drive, storing the identification information in the magnetic tape information storage table corresponding to the magnetic tape drive, and May be provided with a label processing means for outputting the identification information.
[0027]
Even if the magnetic tape is not mounted on the magnetic tape drive and loaded, the label processing means refers to the information in the non-volatile magnetic tape information storage table at the time of receiving the identification information transfer request from the higher-level device. Since the identification information of the magnetic tape to be mounted can be output to the host device, if the magnetic tape specified by the mount command is present in an appropriate magnetic tape storage cell or magnetic tape drive, the host device The presence or absence of the magnetic tape specified in the mount command and the validity of the magnetic tape can be instantaneously determined without waiting for the time of several tens seconds to several tens seconds required for transporting, mounting and cueing of the magnetic tape. Can be determined.
On the other hand, when the identification information of the magnetic tape is not stored in the magnetic tape information storage table, the label processing unit waits until the process of mounting the magnetic tape on the magnetic tape drive is completed, and The identification information is read from the magnetic tape, the identification information is stored in the magnetic tape information storage table in correspondence with the magnetic tape drive, and the identification information is output to the host device. As described above, in the process on the magnetic tape library side, the presence or absence of the magnetic tape and the new write process of the identification information of the magnetic tape are performed in correspondence with each of the magnetic tape storage cell and the magnetic tape drive. Even when a single magnetic tape library is shared by a plurality of higher-level devices, the contents of the magnetic tape information storage table can always be kept in an appropriate state.
[0028]
The mount processing means rewrites the presence / absence of the magnetic tape and the magnetic tape identification information in the magnetic tape information storage table in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. It is also possible to provide an information table automatic update function.
[0029]
The presence / absence of a magnetic tape corresponding to each of the magnetic tape storage cell and the magnetic tape drive and the rewriting of the identification information of the magnetic tape are performed in synchronization with the transfer of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. The information in the magnetic tape information storage table can always be kept up-to-date with a simple processing operation by moving data in the record of the magnetic tape information storage table, and a single magnetic tape library is shared by a plurality of higher-level devices. Even in such a case, the contents of the magnetic tape information storage table can always be held in an appropriate state.
[0030]
Further, a backup data buffer area for temporarily storing backup data input from a higher-level device after the output of the identification information, and waiting for completion of a process of mounting a specified magnetic tape on a magnetic tape drive, wait for completion of the temporarily stored backup data. It is desirable to provide a library control unit that asynchronously writes data to a designated magnetic tape via a magnetic tape drive.
[0031]
The backup data input from the host device is temporarily stored in the backup data buffer area without waiting for the completion of the physical mounting process of the magnetic tape, and the backup data is stored after the specified magnetic tape is actually mounted on the magnetic tape drive. By writing the backup data in the buffer area to the specified magnetic tape, the time required for the backup process can be significantly reduced.
[0032]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a functional block diagram showing the configuration of a magnetic tape library device 2 according to an embodiment to which a control method of a magnetic tape library according to the present invention is applied, and a host computer 1 which is a host device of the magnetic tape library device 2.
[0033]
The host computer 1 is connected to the magnetic tape library device 2 and issues commands to the magnetic tape library device 2 and receives command responses.
[0034]
The magnetic tape library device 2 includes a command processing unit 3, a mount processing unit 4, a label processing unit 5, a data transfer control unit 6, a magnetic tape information storage table 8, a backup data buffer area 9, a library control unit 7, a plurality of magnetic tapes. The tape storage unit 10 includes storage cells S1 to Sn, an accessor 11, and a magnetic tape drive group 12 including several magnetic tape drives D1 to Dm.
[0035]
Among them, the command processing means 3, the mounting processing means 4, the label processing means 5, and the data transfer control means 6 are constituted by a CPU provided in the magnetic tape library device 2, its control program, various driver circuits and the like. You.
[0036]
The command processing unit 3 receives a command from the host computer 1 and entrusts processing to the mount processing unit 4, the label processing unit 5, and the data transfer control unit 6 according to the command.
[0037]
The mount processing means 4 processes the mount command among the commands from the host computer 1, and moves the magnetic tape based on the information in the magnetic tape information storage table 8, that is, the magnetic tape specified by the mount command. It has a function to determine the presence or absence of a tape.
[0038]
The label processing unit 5 processes an identification information transfer request among commands from the host computer 1 and has a function of notifying the host computer 1 of identification information of a corresponding magnetic tape from the magnetic tape information storage table 8. Have.
[0039]
The data transfer control means 6 processes a write command among commands from the host computer 1 and has a function of temporarily saving data in the backup data buffer area 9.
[0040]
The magnetic tape information storage table 8 composed of a non-volatile memory stores the presence or absence of a magnetic tape in correspondence with each of the magnetic tape drives D1 to Dm and the magnetic tape storage cells S1 to Sn existing in the magnetic tape library device 2. If a magnetic tape exists in any of the magnetic tape drives D1 to Dm and the magnetic tape storage cells S1 to Sn, the identification information of the magnetic tape is also stored.
[0041]
The library control means 7 controls the accessor 11 to convey the magnetic tape between each of the magnetic tape storage cells S1 to Sn of the magnetic tape storage unit 10 and each of the magnetic tape drives D1 to Dm of the magnetic tape drive group 12, It has a function of controlling the magnetic tape drive to write the data in the backup data buffer area 9 to the magnetic tape.
[0042]
Some of the magnetic tape storage cells S1 to Sn of the magnetic tape storage unit 10 store magnetic tapes, and the accessor 11 can freely take out and store them.
[0043]
The accessor 11 has a function of receiving a command from the library control means 7 and transporting the magnetic tape.
[0044]
Each of the magnetic tape drives D1 to Dm of the magnetic tape drive group 12 has a function of receiving data from the library control means 7 and writing data in the backup data buffer area 9 to a magnetic tape.
[0045]
Here, the magnetic tape and the identification information of the magnetic tape will be briefly described. In general, data is recorded on a magnetic tape in accordance with a format defined in JIS C6245 “Labels and File Configuration of Magnetic Tape for Information Exchange”.
[0046]
As shown in FIG. 2, according to JIS C6245, data in a magnetic tape is composed of a volume heading label (VOL), a plurality of files, and two tape marks (TM) in order from a magnetic tape start position (BOT). ing. The volume heading label (VOL) records information on a magnetic tape. By reading the volume heading label (VOL), a plurality of magnetic tapes can be identified and managed.
[0047]
The tape mark (TM) is a code written to clearly indicate a data delimiter or the like, and the end of the volume is defined by writing two consecutive codes.
[0048]
Each of the files has a first file header label (HDR1), a second file header label (HDR2), a tape mark (TM), a plurality of data, a tape mark (TM), a first file end label (EOF1), a second It consists of an end-of-file label (EOF2).
[0049]
The first file heading label (HDR1) and the second file heading label (HDR2) record information on the file such as file identification information and creation date and time, indicating that data starts from the following block.
[0050]
The actual data of the file is recorded in each data, and the contents of the data depend on software for performing a backup operation or the like.
[0051]
The first end-of-file label (EOF1) and the second end-of-file label (EOF2) indicate the end of the file.
[0052]
Hereinafter, the part of the volume heading label (VOL) that records the identification information required for identifying the magnetic tape in this format will be referred to as a volume label. This volume label is the substantial identification information in the present embodiment.
[0053]
The magnetic tape information storage table 8 will be described in detail with reference to FIG. The magnetic tape information storage table 8 is composed of a plurality of records. The number of records is the number of magnetic tape drives (m) provided in the library device 2 and the number of magnetic tape storage cells provided in the tape storage unit 10 (m). n) equal to the sum (m + n).
[0054]
Each record has a field for storing a drive number or a cell number, a field for storing a volume label, and a field for storing a flag value indicating the presence or absence of a tape.
[0055]
The cell number is a value indicating the magnetic tape storage cell storing the magnetic tape, and the drive number is a value indicating the magnetic tape drive on which the magnetic tape is mounted.
[0056]
Further, the field for storing the volume label stores the volume label of the magnetic tape stored in the magnetic tape storage cell or the magnetic tape drive. If the volume label is not stored, a blank is stored.
[0057]
The value of the flag indicating the presence or absence of a tape is stored as “○” when a magnetic tape is stored, and “x” when no magnetic tape is stored.
[0058]
Next, with reference to FIGS. 4 to 6, data backup processing will be described as an example of the entire processing operation of the magnetic tape library device 2 in the present embodiment, particularly, the functions of the mount processing unit 4 and the label processing unit 5. This will be described in detail.
[0059]
In the data backup process, as shown in FIG. 4, the magnetic tape specified by the mount command transmitted from the host computer 1 is transported from the magnetic tape storage cell of the tape storage unit 10 to the magnetic tape drive of the magnetic tape drive group 12. The process includes a mounting process (step A101), a process related to reading a volume label of a magnetic tape and confirming the volume label (step A102), and a process of writing backup data to a magnetic tape (step A103).
[0060]
The processing of step A101 in FIG. 4 is executed by the mount processing unit 4 which has received the mount command from the host computer 1, as shown in FIG.
[0061]
The mount processing means 4, which has confirmed the mount command transmitted from the host computer 1 via the command processing means 3, first searches the magnetic tape information storage table 8 based on the cell number specified by the mount command, and Whether "O" or "X" is stored in the flag storage field of the record corresponding to the number, that is, whether the magnetic tape is stored in the magnetic tape storage cell of the designated cell number It is determined whether or not there is (Step A201).
[0062]
When the magnetic tape is not stored in the magnetic tape storage cell of the designated cell number, that is, when the determination result of step A201 is false, the magnetic tape is taken out from this magnetic tape storage cell and mounted. Is impossible, the mount processing means 4 immediately transmits a mount error signal to the host computer 1 (step A205).
[0063]
On the other hand, if the magnetic tape is stored in the magnetic tape storage cell of the designated cell number, that is, if the result of the determination in step A201 is true, at least the magnetic tape is removed from this magnetic tape storage cell. The mount processing means 4 first stores the information of the record in the magnetic tape information storage table 8, that is, the volume label storage field of the record corresponding to the specified cell number. The volume label value of the record corresponding to the drive number of the magnetic tape drive designated as the mount destination of the magnetic tape, using the value of the volume label and the value of "O" stored in the flag storage field for that volume label And move it to the flag storage field to record the magnetic tape information. To update overwrites the information of the table 8 (step A202). That is, the process of step A202 is substantially the information table automatic update function in the present embodiment.
[0064]
At this stage, a blank is set in the volume label storage field of the record corresponding to the specified cell number from which the data is to be transferred, and “x” is set in the flag storage field.
[0065]
Next, the mount processing means 4 outputs an accessor drive command to the library control means 7 to start the processing relating to the transport, mounting and cueing of the magnetic tape by the accessor 11 (step A203). Then, a mount completion signal is transmitted (step A204).
[0066]
As described above, the transmission of the mount completion signal to the host computer 1 and the start of the transport of the magnetic tape by the accessor 11 are substantially simultaneous. No signal is sent.
The processing in each step in FIG. 5 does not require any standby processing or loop processing, and in fact, all processing can be executed within one processing cycle of the CPU. There is no problem in changing the execution order of A202, step A203, and step A204. In other words, the transmission of the mount completion signal and the start of the magnetic tape transport process by the accessor 11 may be performed at the same time, or may be started simultaneously.
[0067]
Here, the description has been made on the assumption that the cell number is specified by the mount command transmitted from the host computer 1. However, even when the identification information is directly specified from the host computer 1, the mount processing unit 4 transmits the identification information to the identification information. By referring to the magnetic tape information storage table 8 on the basis, it is possible to specify the magnetic tape storage cell storing the specified magnetic tape.
[0068]
4 is executed by the label processing unit 5 that has received the identification information transfer request from the host computer 1 as shown in FIG.
[0069]
The label processing unit 5 first determines whether the volume label is stored in the volume label storage field (updated in the process of step A202) of the record corresponding to the drive number of the magnetic tape drive specified as the magnetic tape mount destination. It is determined whether or not it is (step A301).
[0070]
If the result of the determination in step A301 is true and the storage of the volume label is confirmed, the label processing means 5 mounts the magnetic tape without waiting for the completion of the processing relating to the transport, mounting and cueing of the magnetic tape. The volume label stored in the volume label storage field of the record corresponding to the drive number of the previously specified magnetic tape drive is immediately transmitted to the host computer 1 (step A302).
[0071]
On the other hand, the determination result of step A301 becomes false, and it becomes clear that the volume label is not stored in the volume label storage field of the record corresponding to the drive number of the magnetic tape drive specified as the magnetic tape mount destination. In this case, it means that the magnetic tape has not been stored in the magnetic tape information storage table 8 shortly after the magnetic tape has been inserted into the magnetic tape library device 2 at this time.
[0072]
Therefore, in this case, the label processing means 5 waits for the completion of the processing relating to the transport, mounting, and cueing of the magnetic tape (step A303), and then reads the volume label on the magnetic tape via the magnetic tape drive. The volume label is stored in the volume label storage field of the record corresponding to the drive number of the magnetic tape drive designated as the magnetic tape mount destination (step A304), and this volume label is transmitted to the host computer 1 as described above. (Step A302).
[0073]
When the magnetic tape is returned from the magnetic tape drive to the magnetic tape storage cell, the information of the corresponding record in the magnetic tape information storage table 8, that is, The value of the volume label stored in the volume label storage field of the record corresponding to the drive number of the magnetic tape drive and the value of "O" stored in the flag storage field are the storage destination of the magnetic tape. The record is moved to the volume label storage field and its flag storage field of the record corresponding to the cell number designated as, and the information in the magnetic tape information storage table 8 is updated.
[0074]
Thus, in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive, the presence / absence of the magnetic tape in each cell and drive stored in the magnetic tape information storage table 8 and the volume label of the magnetic tape As a result, the magnetic tape once mounted on the magnetic tape drive, that is, the magnetic tape in which the volume label is stored in the magnetic tape information storage table 8 is mounted on the magnetic tape drive again, Even if the physical mounting operation has not been completed, the presence or absence of a magnetic tape in each cell and drive can be immediately determined by merely referring to the contents of the magnetic tape information storage table 8. If a tape exists, the volume label (identification information) You can have can be confirmed immediately.
[0075]
Further, actual operations of the mount processing means 4 and the label processing means 5 will be described with reference to FIGS.
[0076]
In this example, as shown in FIG. 7, a magnetic tape mounted with eight magnetic tape storage cells (cell number 1 to cell number 8) and two magnetic tape drives (drive number 1 to drive number 2) In the library device 2, it is assumed that three magnetic tapes (magnetic tape 1 to magnetic tape 3) are stored in cells of cell number 1, cell number 3, and cell number 5, respectively, in the initial state.
[0077]
Therefore, the volume label storage fields of the records corresponding to the drive numbers 1 and 2 and the cell numbers 2, 4, 6 to 8 in the magnetic tape information storage table 8 are blank, and “X” is stored in the flag storage fields. On the other hand, the volume labels 1, 2, and 3 corresponding to the magnetic tapes 1, 2, and 3 are stored in the volume label storage fields of the records corresponding to the cell numbers 1, 3, and 5, respectively. “×” is stored in the flag storage field.
[0078]
Here, as an example, a case where backup processing is performed on the magnetic tape 3 from this state will be considered.
[0079]
First, the host computer 1 issues a mount command to the magnetic tape library device 2 to take out the magnetic tape 3 from the magnetic tape storage cell 5 and mount it on the magnetic tape drive 1.
[0080]
Then, upon receiving the mount command, the mount processing unit 4 stores “O” or “X” in the flag storage field of the record corresponding to the cell number 5 in the magnetic tape information storage table 8. Is determined (step A201).
[0081]
In this case, since “○” is stored in the corresponding flag storage field, the mount processing means 4 stores the data in the volume label storage field of the record corresponding to the specified cell number 5 as shown in FIG. The value of the volume label 3 and the value of “○” stored in the flag storage field thereof are replaced with the value of the record corresponding to the drive number 1 of the magnetic tape drive designated as the mount destination of the magnetic tape 3. The data is moved to the volume label storage field and its flag storage field to overwrite and update the information in the magnetic tape information storage table 8 (step A202), and also corresponds to the specified cell number 5, which is the data transfer source. Set a blank in the volume label storage field of the specified record, and set its flag storage field × setting ".
[0082]
At about the same time, the mount processing means 4 outputs an accessor drive command to the library control means 7 to take out and transport the magnetic tape 3 from the magnetic tape storage cell of cell number 5 and to mount the magnetic tape of drive number 1. A process related to mounting and cueing of the magnetic tape 3 with respect to the tape drive is started (step A203), and a mount completion signal is immediately transmitted to the host computer 1 (step A204).
[0083]
When the host computer 1 that has received the mount completion signal transmits an identification information transfer request to the magnetic tape library device 2, the label processing unit 5 that has received the identification information transfer request from the host computer 1 reads the magnetic tape. It is determined whether or not the volume label is stored in the volume label storage field (updated in the process of step A202) of the record corresponding to the drive number 1 of the magnetic tape drive specified as the mount destination (step A301).
[0084]
In this case, as shown in FIG. 9, since the volume label is stored in the volume label storage field of the record corresponding to the drive number 1, the label processing means 5 waits for the completion of the mount processing related to the magnetic tape 3. Instead, the volume label 3 stored in the volume label storage field of the record corresponding to the drive number 1 is immediately transmitted to the host computer 1 (step A302).
[0085]
After confirming the volume label 3, the host computer 1 that has received the volume label immediately starts writing backup data. At this stage, the physical state of the magnetic tape 3 with respect to the magnetic tape drive with the drive number 1 is still at this stage. Since the mounting has not been completed, the backup data is temporarily written to the backup data buffer area 9 and, when the physical mounting of the magnetic tape 3 on the magnetic tape drive is completed, the backup is performed by the control of the library control means 7. The data in the data buffer area 9 is asynchronously written to the magnetic tape 3.
[0086]
When the volume label 3 is not stored in the magnetic tape information storage table 8 immediately after the magnetic tape 3 is inserted into the magnetic tape library device 2, for example, the volume label storage field of the record corresponding to the cell number 5 in FIG. Is blank, and "O" is stored in the flag storage field, the processing of the mount processing means 4 for the mount command is the same as described above. However, when the label processing unit 5 receives the identification information transfer request, since the volume label is not stored in the volume label storage field of the record corresponding to the drive number 1 in the magnetic tape information storage table 8, the determination in step A301 is made. The result is false, and the label processing unit 5 waits for completion of physical mounting of the magnetic tape 3 on the magnetic tape drive (step A303), and then sends the volume label from the magnetic tape 3 via the magnetic tape drive of drive number 1. Is read, and the volume label 3 is stored in the volume label storage field of the record corresponding to the drive number 1 in the magnetic tape information storage table 8 (step A304), and the volume label 3 is transmitted to the host computer 1. (Step A30) ).
[0087]
In this embodiment, it is assumed that the volume label in JIS C6245 is managed as a table. However, there are cases where software defines its own magnetic tape format without following JIS C6245. Even in such a case, the software writes data as identification information for identifying the magnetic tape at the beginning of the magnetic tape, and the host computer 1 issues a command corresponding to an identification information transfer request to identify the magnetic tape. It is common to check for legitimacy. Therefore, the same effect can be obtained by registering such a magnetic tape head block as an alternative to the volume label in FIG.
[0088]
【The invention's effect】
A magnetic tape library control method and a magnetic tape library device according to the present invention provide a magnetic tape information storage table for storing presence / absence of a magnetic tape and magnetic tape identification information corresponding to each of a magnetic tape storage cell and a magnetic tape drive. At the stage when the magnetic tape library receives the mount command from the higher-level device, determines whether or not the presence of the magnetic tape specified by the mount command is stored in the magnetic tape information storage table. Is stored in the magnetic tape information storage table, a mount completion signal is immediately output to the host device to start mounting the magnetic tape by driving the accessor, while the presence of the magnetic tape is If it is not stored in the Since an error signal is output, a mount completion signal or mount error signal can be sent immediately when a mount command is received from a higher-level device, without having to mount a magnetic tape on a magnetic tape drive one by one and load data. It can be transmitted to the host device.
Therefore, the host device immediately sends the mount completion signal required for backup without waiting for the time of several tens seconds to several tens of seconds, which has been required for transporting, mounting, and cueing the magnetic tape. Upon recognition, a request to transfer magnetic tape identification information is output to the magnetic tape library, and the process of confirming the validity of the magnetic tape can be started.
[0089]
Further, at the stage of receiving the identification information transfer request input from the higher-level device after the output of the mount completion signal, whether or not the identification information corresponding to the magnetic tape to be mounted is stored in the magnetic tape information storage table If the identification information is stored, the identification information is output immediately to the host device. If the identification information is not stored, the specified magnetic tape is inserted into the magnetic tape drive. Waiting for the completion of the mounting process on the magnetic tape drive, read the identification information from the magnetic tape via the magnetic tape drive, store the identification information in the magnetic tape information storage table corresponding to the magnetic tape drive, and So that it is not necessary to mount the magnetic tape on the magnetic tape drive and load the data. At the stage of receiving the put these identification information transfer request, it is possible to transmit the identification information of the magnetic tape immediately there is a mounted target to the host device.
Therefore, when the magnetic tape specified by the mount command is present in an appropriate magnetic tape storage cell or magnetic tape drive, the host device has been required to transport, mount, and cue the magnetic tape. Without waiting for a few seconds to several tens of seconds, in addition to the presence or absence of the magnetic tape specified by the mount command, the validity of the magnetic tape is immediately determined, and the data writing process for backup is immediately performed. You can start.
Moreover, when the magnetic tape identification information is not stored in the magnetic tape information storage table, such as immediately after a new magnetic tape is inserted into the magnetic tape storage cell, the magnetic tape is physically mounted on the magnetic tape drive. Waiting for the magnetic tape drive to read the identification information from the magnetic tape via the magnetic tape drive and storing the identification information in the magnetic tape information storage table in correspondence with the magnetic tape drive, A single magnetic tape library is shared by a plurality of higher-level devices because the presence / absence of a magnetic tape and new writing of magnetic tape identification information are performed for each of the magnetic tape storage cell and the magnetic tape drive. The contents of the magnetic tape information storage table always in an appropriate state It can be held.
[0090]
It also has an information table automatic update function that rewrites the presence or absence of a magnetic tape in the magnetic tape information storage table and rewrites the identification information of the magnetic tape in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. The information in the magnetic tape information storage table can always be kept up-to-date by a simple processing operation by moving data in the record of the magnetic tape information storage table, and the magnetic tape information It is possible to always keep the contents of the storage table in an appropriate state.
[0091]
Further, without waiting for the completion of the physical mounting process of the magnetic tape, the temporary storage of the backup data input from the upper device is started, and the temporary storage is performed after the specified magnetic tape is actually mounted on the magnetic tape drive. Since the backup data is written to the specified magnetic tape, the data backup processing can be performed in parallel with the magnetic tape mounting processing, and the overall requirements required for data backup The time can be greatly reduced.
[Brief description of the drawings]
FIG. 1 is a functional block diagram illustrating a configuration of a magnetic tape library device and a host computer as a host device according to an embodiment.
FIG. 2 is a conceptual diagram showing a data storage structure in a magnetic tape.
FIG. 3 is a conceptual diagram showing a logical structure of a magnetic tape information storage table.
FIG. 4 is a flowchart showing an outline of a backup process.
FIG. 5 is a flowchart illustrating a process executed by a mount processing unit.
FIG. 6 is a flowchart illustrating a process executed by a label processing unit.
FIG. 7 is a conceptual diagram illustrating an example of a correspondence relationship between a storage state of a magnetic tape and data in a magnetic tape information storage table in a magnetic tape library device (a state before data is updated).
FIG. 8 is a conceptual diagram showing an example of a correspondence relationship between a storage state of a magnetic tape in a magnetic tape library device and data in a magnetic tape information storage table (a state of a data update process).
FIG. 9 is a conceptual diagram showing an example of a correspondence relationship between a storage state of a magnetic tape and data in a magnetic tape information storage table in a magnetic tape library device (a state at the time of completion of data update).
[Explanation of symbols]
1 host computer (upper device)
2 Magnetic tape library device
3 Command processing means
4 Mount processing means
5 Label processing means
6 Data transfer control means
7 Library control means
8 Magnetic tape information storage table
9 Backup data buffer area
10 Tape storage unit
11 Accessor
12 Magnetic tape drive group
S1-Sn Magnetic Tape Storage Cell
D1-Dm Magnetic tape drive

Claims (8)

磁気テープを格納する複数の磁気テープ格納セルと、磁気テープに対してデータの読み書きを行う磁気テープドライブと、前記磁気テープ格納セルと前記磁気テープドライブとの間で磁気テープを搬送するアクセッサとを備えた磁気テープライブラリの制御方法であって、
前記磁気テープ格納セルおよび磁気テープドライブの各々に対応して磁気テープの存在の有無と磁気テープの識別情報を記憶する不揮発性の磁気テープ情報記憶テーブルを設け、
前記磁気テープライブラリが上位装置からのマウントコマンドを受けた段階で、前記マウントコマンドで指定された磁気テープの存在が前記磁気テープ情報記憶テーブルに記憶されているか否かを判定し、
該磁気テープの存在が記憶されていれば、前記上位装置に対して即座にマウント完了信号を出力すると共に前記アクセッサを駆動して前記指定された磁気テープを磁気テープドライブにマウントする処理を開始する一方、
該磁気テープの存在が記憶されていなければ、前記上位装置に対して即座にマウントエラー信号を出力することを特徴とした磁気テープライブラリの制御方法。
A plurality of magnetic tape storage cells for storing a magnetic tape, a magnetic tape drive for reading and writing data from and to a magnetic tape, and an accessor for conveying a magnetic tape between the magnetic tape storage cell and the magnetic tape drive. A method for controlling a magnetic tape library comprising:
A non-volatile magnetic tape information storage table for storing presence / absence of a magnetic tape and magnetic tape identification information corresponding to each of the magnetic tape storage cell and the magnetic tape drive is provided,
At the stage where the magnetic tape library receives a mount command from a higher-level device, it is determined whether or not the presence of the magnetic tape specified by the mount command is stored in the magnetic tape information storage table,
If the presence of the magnetic tape is stored, a mount completion signal is immediately output to the host device, and the accessor is driven to start processing for mounting the specified magnetic tape on the magnetic tape drive. on the other hand,
A method for controlling a magnetic tape library, comprising: immediately outputting a mount error signal to the host device if the presence of the magnetic tape is not stored.
前記マウント完了信号の出力後に前記上位装置から入力される識別情報転送要求を受けた段階で、マウントの対象とされている磁気テープに対応する識別情報が前記磁気テープ情報記憶テーブルに記憶されているか否かを判定し、
識別情報が記憶されていれば、前記上位装置に対して即座に当該識別情報を出力する一方、
識別情報が記憶されていなければ、前記指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、磁気テープドライブを介して該磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて前記磁気テープ情報記憶テーブルに記憶させると共に前記上位装置に対して当該識別情報を出力することを特徴とした請求項1記載の磁気テープライブラリの制御方法。
Whether the identification information corresponding to the magnetic tape to be mounted is stored in the magnetic tape information storage table when the identification information transfer request input from the higher-level device is received after the output of the mount completion signal Judge whether or not
If the identification information is stored, the identification information is immediately output to the host device,
If the identification information is not stored, the identification information is read from the magnetic tape via the magnetic tape drive after the completion of the process of mounting the specified magnetic tape on the magnetic tape drive, and the identification information is stored in the magnetic tape drive. 2. The method according to claim 1, wherein the identification information is output to the host device while being stored in the magnetic tape information storage table in correspondence with a tape drive.
前記磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて、前記磁気テープ情報記憶テーブルにおける磁気テープの存在の有無と磁気テープの識別情報の書き替えを行うことを特徴とした請求項1または請求項2記載の磁気テープライブラリの制御方法。The presence / absence of a magnetic tape in the magnetic tape information storage table and rewriting of magnetic tape identification information are performed in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. 3. The method for controlling a magnetic tape library according to claim 1 or 2. 前記識別情報の出力後に前記上位装置から入力されるバックアップデータを一時記憶し、前記指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、該一時記憶されたバックアップデータを前記磁気テープドライブを介して前記指定された磁気テープに書き込むことを特徴とした請求項2記載の磁気テープライブラリの制御方法。After the output of the identification information, the backup data input from the higher-level device is temporarily stored, and after the process of mounting the specified magnetic tape on the magnetic tape drive is completed, the temporarily stored backup data is transferred to the magnetic tape drive. 3. The control method for a magnetic tape library according to claim 2, wherein writing is performed on the specified magnetic tape via a tape drive. 磁気テープを格納する複数の磁気テープ格納セルと、磁気テープに対してデータの読み書きを行う磁気テープドライブと、前記磁気テープ格納セルと前記磁気テープドライブとの間で磁気テープを搬送するアクセッサとを備えた磁気テープライブラリ装置であって、
前記磁気テープ格納セルおよび磁気テープドライブの各々に対応して磁気テープの存在の有無と磁気テープの識別情報を記憶する不揮発性の磁気テープ情報記憶テーブルと、
前記磁気テープライブラリが上位装置からのマウントコマンドを受けた段階で、前記マウントコマンドで指定された磁気テープの存在が前記磁気テープ情報記憶テーブルに記憶されているか否かを判定し、該磁気テープの存在が記憶されていれば、前記上位装置に対して即座にマウント完了信号を出力すると共に前記アクセッサを駆動して前記指定された磁気テープを磁気テープドライブにマウントする処理を開始する一方、該磁気テープの存在が記憶されていなければ、前記上位装置に対して即座にマウントエラー信号を出力するマウント処理手段とを備えたことを特徴とする磁気テープライブラリ装置。
A plurality of magnetic tape storage cells for storing a magnetic tape, a magnetic tape drive for reading and writing data from and to a magnetic tape, and an accessor for conveying a magnetic tape between the magnetic tape storage cell and the magnetic tape drive. A magnetic tape library device comprising:
A non-volatile magnetic tape information storage table that stores presence / absence of a magnetic tape and identification information of the magnetic tape corresponding to each of the magnetic tape storage cell and the magnetic tape drive;
At the stage when the magnetic tape library receives a mount command from a higher-level device, it is determined whether or not the presence of the magnetic tape specified by the mount command is stored in the magnetic tape information storage table. If the presence is stored, a mount completion signal is immediately output to the host device, and the accessor is driven to start the process of mounting the specified magnetic tape on the magnetic tape drive. A magnetic tape library device comprising: mount processing means for immediately outputting a mount error signal to the host device if the presence of the tape is not stored.
前記上位装置から入力される識別情報転送要求を受けて、マウントの対象とされている磁気テープに対応する識別情報が前記磁気テープ情報記憶テーブルに記憶されているか否かを判定し、識別情報が記憶されていれば、前記上位装置に対して即座に当該識別情報を出力する一方、識別情報が記憶されていなければ、前記指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、磁気テープドライブを介して該磁気テープから識別情報を読み込み、この識別情報を該磁気テープドライブに対応させて前記磁気テープ情報記憶テーブルに記憶させると共に前記上位装置に対して当該識別情報を出力するラベル処理手段を併設したことを特徴とする請求項5記載の磁気テープライブラリ装置。In response to the identification information transfer request input from the higher-level device, it is determined whether or not the identification information corresponding to the magnetic tape to be mounted is stored in the magnetic tape information storage table. If the identification information is stored, the identification information is immediately output to the host device. If the identification information is not stored, the process waits for completion of the process of mounting the specified magnetic tape on the magnetic tape drive. Reading the identification information from the magnetic tape via a magnetic tape drive, storing the identification information in the magnetic tape information storage table in correspondence with the magnetic tape drive, and outputting the identification information to the host device. 6. The magnetic tape library device according to claim 5, further comprising a label processing unit. 前記マウント処理手段が、前記磁気テープ格納セルおよび磁気テープドライブ間における磁気テープの搬送に同期させて、前記磁気テープ情報記憶テーブルにおける磁気テープの存在の有無と磁気テープの識別情報の書き替えを行う情報テーブル自動更新機能を備えていることを特徴とした請求項5または請求項6記載の磁気テープライブラリ装置。The mount processing means rewrites the presence or absence of a magnetic tape and rewrites identification information of the magnetic tape in the magnetic tape information storage table in synchronization with the transport of the magnetic tape between the magnetic tape storage cell and the magnetic tape drive. 7. The magnetic tape library device according to claim 5, further comprising an information table automatic updating function. 前記識別情報の出力後に前記上位装置から入力されるバックアップデータを一時記憶するバックアップデータバッファ領域と、前記指定された磁気テープを磁気テープドライブにマウントする処理の完了を待って、該一時記憶されたバックアップデータを前記磁気テープドライブを介して前記指定された磁気テープに非同期で書き込むライブラリ制御手段とを併設したことを特徴とした請求項6記載の磁気テープライブラリ装置。A backup data buffer area for temporarily storing backup data input from the higher-level device after the output of the identification information, and a process for mounting the specified magnetic tape on a magnetic tape drive is completed. 7. The magnetic tape library apparatus according to claim 6, further comprising: library control means for asynchronously writing backup data to the designated magnetic tape via the magnetic tape drive.
JP2002255174A 2002-08-30 2002-08-30 Control method for magnetic tape library and magnetic tape library device Pending JP2004095072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002255174A JP2004095072A (en) 2002-08-30 2002-08-30 Control method for magnetic tape library and magnetic tape library device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002255174A JP2004095072A (en) 2002-08-30 2002-08-30 Control method for magnetic tape library and magnetic tape library device

Publications (1)

Publication Number Publication Date
JP2004095072A true JP2004095072A (en) 2004-03-25

Family

ID=32060761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002255174A Pending JP2004095072A (en) 2002-08-30 2002-08-30 Control method for magnetic tape library and magnetic tape library device

Country Status (1)

Country Link
JP (1) JP2004095072A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011146105A (en) * 2010-01-15 2011-07-28 Internatl Business Mach Corp <Ibm> Device and method for controlling writing data
US11768604B2 (en) 2021-11-15 2023-09-26 International Business Machines Corporation Reducing time to locate and read files within a tape medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011146105A (en) * 2010-01-15 2011-07-28 Internatl Business Mach Corp <Ibm> Device and method for controlling writing data
US8599511B2 (en) 2010-01-15 2013-12-03 International Business Machines Corporation Apparatus for controlling writing data and method for the same
US11768604B2 (en) 2021-11-15 2023-09-26 International Business Machines Corporation Reducing time to locate and read files within a tape medium

Similar Documents

Publication Publication Date Title
US6557073B1 (en) Storage apparatus having a virtual storage area
US7085900B2 (en) Backup technique for data stored on multiple storage devices
US5327535A (en) Magnetic recording control apparatus
JPH0743676B2 (en) Back-up data dump control method and device
JP2570003B2 (en) Magnetic tape controller
US6073221A (en) Synchronization of shared data stores through use of non-empty track copy procedure
CN101201725B (en) Tape recording apparatus and data write-control method
JP2004095072A (en) Control method for magnetic tape library and magnetic tape library device
JP2002074903A (en) Magnetic recording and reproducing device and magnetic recording and reproducing method
US6112261A (en) Data transferring system reading and temporarily storing a record until a length of the record is different from a defined record length parameter value
JP2972365B2 (en) Access control method for magnetic tape storage
JP3121387B2 (en) Magnetic tape control device
JPH0793101A (en) Data backup device
JPS622335A (en) Back-up processing system for file device
JP2000040057A (en) Computer system, buffer controller and transferring method
JP2892429B2 (en) I / O controller
JP2932568B2 (en) Data communication device
JP3087329B2 (en) Article identification device
US20090296267A1 (en) Apparatus and method for writing data onto tape medium
JP3808539B2 (en) External storage controller in storage system
JPS62237538A (en) File management system
JP2797991B2 (en) Data retrieval system and data retrieval device for cartridge magnetic tape
JP2000112669A (en) File controller
JPH0997137A (en) Magnetic disk controller
JPH03196236A (en) Data recording system in on-line system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040427

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051114

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060111

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060207