JPH04285783A - Management method for magnetic tape storage devices - Google Patents
Management method for magnetic tape storage devicesInfo
- Publication number
- JPH04285783A JPH04285783A JP5093491A JP5093491A JPH04285783A JP H04285783 A JPH04285783 A JP H04285783A JP 5093491 A JP5093491 A JP 5093491A JP 5093491 A JP5093491 A JP 5093491A JP H04285783 A JPH04285783 A JP H04285783A
- Authority
- JP
- Japan
- Prior art keywords
- management information
- magnetic tape
- management
- recorded
- storage device
- 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
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、磁気テープ自体に記録
した管理情報を装置内に読込んでアクセスを管理する磁
気テープ記憶装置の管理方式に関する。磁気テープに媒
体及びデータファイルに関する管理情報を記録し、この
管理情報に基づき媒体単位にアクセスを管理する場合、
磁気テープに記録した管理情報が正常に読めなくなると
アクセス管理が不可能となり、この点の改善が望まれる
。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a management method for a magnetic tape storage device that manages access by reading management information recorded on the magnetic tape itself into the device. When recording management information regarding media and data files on magnetic tape and managing access on a media-by-media basis based on this management information,
If the management information recorded on the magnetic tape cannot be read properly, access control becomes impossible, and improvements in this respect are desired.
【0002】0002
【従来の技術】従来の磁気テープ記憶装置にあっては、
磁気テープの媒体異常の有無や記録されたデータファイ
ルに関する情報は一切記録されていなかった。そこで本
願発明者等にあっては、磁気テープの状態に応じた適切
なアクセス管理を行うため、磁気テープのユーザ領域と
は異なる領域、例えば磁気テープ先頭のユーザ領域の手
前となる部分にコントロールブロックを設けて磁気テー
プの管理情報を記録し、磁気テープのロード時に管理情
報を読込んで装置内のメモリに展開し、ホストからのア
クセスコマンドに対し磁気テープの管理情報に従った適
切なアクセス管理を行うようにした方式を提案している
。[Prior Art] In a conventional magnetic tape storage device,
No information was recorded regarding the presence or absence of any media abnormalities on the magnetic tape or the recorded data files. Therefore, in order to perform appropriate access management according to the state of the magnetic tape, the inventors of the present application have placed a control block in an area different from the user area of the magnetic tape, for example, in the area before the user area at the beginning of the magnetic tape. is set up to record the management information of the magnetic tape, read the management information when loading the magnetic tape, deploy it to the device's internal memory, and perform appropriate access management according to the management information of the magnetic tape in response to access commands from the host. We are proposing a method to do this.
【0003】0003
【発明が解決しようとする課題】しかしながら、このよ
うな磁気テープに記録した管理情報を利用したアクセス
管理方式にあっては、管理情報を磁気テープの先頭部分
などの一箇所にまとめて記録しており、アクセス回数の
多い先頭部分が劣化すると、コントロールブロックに書
かれた管理情報が読めなくなってしまい、媒体管理やフ
ァイルのアクセス管理が正常に出来なくなってしまう問
題があった。[Problem to be Solved by the Invention] However, in such an access control method that uses management information recorded on a magnetic tape, the management information is recorded all at one place, such as at the beginning of the magnetic tape. Therefore, if the leading part, which is accessed frequently, deteriorates, the management information written in the control block becomes unreadable, causing a problem in which media management and file access management cannot be performed normally.
【0004】本発明は、このような従来の問題点に鑑み
てなされたもので、媒体の劣化等による管理情報が失わ
れても正常な媒体やファイルの管理ができるようした磁
気テープ記憶装置の管理方式を提供することを目的とす
る。The present invention has been made in view of these conventional problems, and provides a magnetic tape storage device that allows normal management of media and files even if management information is lost due to deterioration of the media. The purpose is to provide a management method.
【0005】[0005]
【課題を解決するための手段】図1は本発明の原理説明
図である。まず本発明は、磁気テープ1上に媒体に関す
る管理情報を記録し、磁気テープ1の装着時に管理情報
を読込んで装置内に展開し、この管理情報に基づき媒体
単位にアクセスを管理する磁気テープ記憶装置の管理方
式を対象とする。[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. First, the present invention is a magnetic tape storage device that records management information regarding the medium on the magnetic tape 1, reads the management information when the magnetic tape 1 is loaded, expands it within the device, and manages access for each medium based on this management information. Targets device management methods.
【0006】このような磁気テープ記憶装置の管理方式
につき本発明にあっては、管理情報を磁気テープ1の複
数箇所A,A2,A3に記録する管理情報記録手段2と
、磁気テープ1上の予め定めた特定位置Aに記録された
管理情報を読出して装置内のメモリに展開し、特定位置
Aの管理情報が正常に読込めなかった場合には、他の位
置A2,A3の管理情報を読出す管理情報読出手段3と
を設けたことを特徴とする。Regarding the management system of such a magnetic tape storage device, the present invention includes a management information recording means 2 for recording management information in a plurality of locations A, A2, and A3 on the magnetic tape 1; The management information recorded in a predetermined specific location A is read out and developed into the memory in the device. If the management information in the specific location A cannot be read normally, the management information in other locations A2 and A3 is read out. The present invention is characterized in that it is provided with management information reading means 3 for reading out management information.
【0007】ここで管理情報記録手段2は、管理情報を
磁気テープに記録する際に、管理情報が更新されたこと
を示すフラグ情報Lを記録し、また管理情報読出手段3
は磁気テープ1から管理情報を読出した際に、フラグ情
報から更新の有無を判別し、更新されていることが確認
された時にはアクセス禁止等の対応する処理を行う。更
に管理情報記録手段2は、磁気テープ1の先頭の物理的
なテープ開始位置(物理BOT)とユーザデータ領域の
論理的な開始位置(論理BOT)との間の第1位置(コ
ントロールブロック)Aに管理情報を記録し、ユーザ領
域については、データファイルの書込終了位置に続く第
2位置A2に管理情報を記録すると共に、磁気テープの
物理的なテープ最終位置(物理EOT)の手前の第3位
置A3に管理情報を記録する。[0007] Here, the management information recording means 2 records flag information L indicating that the management information has been updated when recording the management information on the magnetic tape, and also records the flag information L indicating that the management information has been updated.
When the management information is read from the magnetic tape 1, it is determined from the flag information whether or not it has been updated, and if it is confirmed that it has been updated, it performs corresponding processing such as prohibiting access. Furthermore, the management information recording means 2 records a first position (control block) A between the physical tape start position (physical BOT) at the head of the magnetic tape 1 and the logical start position (logical BOT) of the user data area. For the user area, management information is recorded in the second position A2 following the write end position of the data file, and in the second position A2 before the physical tape final position (physical EOT) of the magnetic tape. 3. Record management information in position A3.
【0008】また管理情報記録手段2は、データファイ
ルの書込終了位置に続く第2位置A2に管理情報を記録
した状態で、新たなデータ書込を行う際には、第2位置
A2の管理情報に重ねて新たなデータファイルを書込ん
だ後に、新たなデータファイルの最終位置に続く第2位
置A2´に管理情報を記録する。更に管理情報記録手段
2は、上位装置からアンロードコマンドを受けた際に、
装置内に展開している管理情報を既に磁気テープに記録
されている複数の管理情報に重ね書きして更新する。[0008] Furthermore, the management information recording means 2 records the management information at the second position A2 following the writing end position of the data file, and when writing new data, the management information at the second position A2 is recorded. After writing a new data file overlapping the information, management information is recorded at a second position A2' following the final position of the new data file. Furthermore, when the management information recording means 2 receives an unload command from the host device,
The management information developed in the device is updated by overwriting a plurality of pieces of management information already recorded on the magnetic tape.
【0009】一方、磁気テープ1に記録する管理情報と
して、磁気テープ自体の媒体管理情報及び磁気テープに
記録されたユーザデータのファイル管理情報を作成して
記録する。具体的には、媒体管理情報として、媒体番号
、媒体異常の有無、及び媒体の使用回数を記録し、また
、ファイル管理情報として、データファイルの物理的な
位置情報(テープマークを示す物理ブロックID)と論
理的な位置情報(テープマークを示す論理ブロックID
)との対応関係を記録する。On the other hand, as management information to be recorded on the magnetic tape 1, medium management information for the magnetic tape itself and file management information for user data recorded on the magnetic tape are created and recorded. Specifically, as media management information, the media number, presence or absence of media abnormality, and number of times the media has been used are recorded, and as file management information, physical location information of the data file (physical block ID indicating the tape mark) is recorded. ) and logical position information (logical block ID indicating tape mark)
) is recorded.
【0010】0010
【作用】このような構成を備えた本発明の磁気テープ記
憶装置の管理方式によれれば、磁気テープの複数箇所に
同じ管理情報を記録しているため、例えば常時使用され
る磁気テープ先頭のコントロールブロックが劣化して正
常に管理情報が読出せなくなっても、ユーザ領域の最後
のデータファルの後更にはテープ終端側に記録している
管理情報を正常に読込むことができ、管理情報が磁気テ
ープから失われて管理不能となってしまうことを確実に
防止できる。[Operation] According to the management method of the magnetic tape storage device of the present invention having such a configuration, since the same management information is recorded in multiple locations on the magnetic tape, for example, the management information at the beginning of the magnetic tape that is constantly used is Even if the control block deteriorates and the management information cannot be read normally, the management information recorded after the last data file in the user area and even at the end of the tape can be read normally. It is possible to reliably prevent data from being lost from the magnetic tape and becoming unmanageable.
【0011】[0011]
【実施例】図2は本発明の管理方式が適用される磁気テ
ープ記憶装置の一実施例を示した実施例構成図である。
図2において、本発明の磁気テープ記憶装置は磁気テー
プ記憶制御装置10と磁気テープドライブ装置12に大
別される。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a block diagram showing an embodiment of a magnetic tape storage device to which the management system of the present invention is applied. In FIG. 2, the magnetic tape storage device of the present invention is roughly divided into a magnetic tape storage control device 10 and a magnetic tape drive device 12.
【0012】磁気テープドライブ装置12にはドライブ
コントローラ32とドライブ34が設けられ、磁気テー
プ記憶制御装置10からのコマンドにより磁気テープに
対するローディング、書込み、読出し動作、更にアンロ
ーディングを行う。磁気テープ記憶制御装置10はホス
トコンピュータより受け取ったコマンド及びデータを解
析して処理し、磁気テープドライブ装置12を制御する
。The magnetic tape drive device 12 is provided with a drive controller 32 and a drive 34, and performs loading, writing, reading, and unloading operations on the magnetic tape according to commands from the magnetic tape storage control device 10. The magnetic tape storage control device 10 analyzes and processes commands and data received from the host computer, and controls the magnetic tape drive device 12.
【0013】磁気テープ記憶制御装置10にはマイクロ
プロセッサ(MPU)14が設けられ、制御装置全体を
集中的にコントロールしている。ホストコンピュータと
のやり取りはホストインタフェース16が行い、磁気テ
ープドライブ装置12とのやり取りはドライブインタフ
ェース18が行う。データバッファ20は磁気テープの
書込みまたは読出しに伴うデータ転送の際に使用され、
データバッファ20のデータ転送はDMAコントローラ
22が直接管理する。The magnetic tape storage control device 10 is provided with a microprocessor (MPU) 14, which centrally controls the entire control device. The host interface 16 performs communication with the host computer, and the drive interface 18 performs communication with the magnetic tape drive device 12. The data buffer 20 is used for data transfer associated with writing or reading magnetic tape.
Data transfer of the data buffer 20 is directly managed by the DMA controller 22.
【0014】26はディップスイッチであり、ハードウ
ェア版数を4バイトで表わし、工場出荷時に設定されて
いる。更に、28はコントロールバス、30はDMAバ
スである。図3は本発明で用いる磁気テープのフォーマ
ット説明図である。図3において、磁気テープ1は送出
しリール36と巻取りリール38を備えたカセットケー
スに収納されており、装置にセットすることで磁気テー
プ1をケースから引き出してヘッドに接触させるローデ
ィングが行われる。この磁気テープ1は下側に展開して
示すフォーマット構成を有する。Reference numeral 26 denotes a dip switch, which represents the hardware version number in 4 bytes, and is set at the time of factory shipment. Furthermore, 28 is a control bus, and 30 is a DMA bus. FIG. 3 is an explanatory diagram of the format of the magnetic tape used in the present invention. In FIG. 3, the magnetic tape 1 is housed in a cassette case equipped with a delivery reel 36 and a take-up reel 38, and by setting it in the device, the magnetic tape 1 is pulled out of the case and loaded into contact with the head. . This magnetic tape 1 has a format configuration shown expanded on the bottom.
【0015】まず磁気テープ1の先頭の物理BOTから
論理BOTの間にはユーザデータとは異なる形式の記録
領域としてコントロールブロック40が設けられ、コン
トロールブロック40に磁気テープ1に関する媒体管理
情報と磁気テープに記録されたユーザデータのファイル
管理情報を含む管理情報Aが記録されている。この管理
情報Aの詳細は磁気テープの媒体管理情報としては、(
1)媒体の番号
(2)媒体異常の有無を示す情報
(3)使用回数
が少なくとも記録されている。First, a control block 40 is provided between the physical BOT at the beginning of the magnetic tape 1 and the logical BOT as a recording area in a format different from that for user data. Management information A including file management information of user data recorded in is recorded. The details of this management information A are as follows: (
1) The number of the medium (2) Information indicating whether there is an abnormality in the medium (3) At least the number of times it has been used is recorded.
【0016】また、ユーザデータのファイル管理情報と
しては、例えば1つのデータファイルを1単位としてフ
ァイル毎に記録されるテープマークの物理的位置を示す
物理ブロックIDと、ホスト側からのファイルアクセス
に使用されるテープマークの論理ブロックIDの対応関
係が記録される。ここで、ユーザデータとしての1つの
データファルは通常複数のデータブロックで構成されて
おり、各データブロックの磁気テープ上における物理的
位置は磁気テープ1の記憶領域と平行に記録された制御
トラック46により知ることができる。[0016]Furthermore, as the file management information for user data, for example, a physical block ID indicating the physical position of a tape mark recorded for each file with one data file as one unit, and a physical block ID used for file access from the host side. The correspondence relationship between the logical block IDs of the tape marks to be recorded is recorded. Here, one data file as user data is usually composed of a plurality of data blocks, and the physical position of each data block on the magnetic tape is a control track 46 recorded in parallel with the storage area of the magnetic tape 1. You can know by
【0017】即ち制御トラック46には物理BOTより
所定距離毎に1つずつ増加する値が記録されており、こ
の制御トラック46を読むことでユーザデータ、即ちデ
ータファイルを構成する各データブロックの物理的位置
を認識することができる。更に、1つのデータファイル
の最終位置を示すためデータファイルの最後にテープマ
ーク48を記録しており、従ってテープマーク48の物
理的な位置、即ち物理ブロックIDとテープマークの論
理的な位置、即ち論理ブロックIDの対応関係が判れば
、ホスト側から指示された論理ブロックIDに対応する
テープマークの物理ブロックIDを使用してヘッドに磁
気テープを直接位置付けることができる。That is, the control track 46 records a value that increases by one every predetermined distance from the physical BOT, and by reading this control track 46, the user data, that is, the physical information of each data block constituting the data file is recorded. Able to recognize target position. Furthermore, a tape mark 48 is recorded at the end of a data file to indicate the final position of one data file, and therefore the physical position of the tape mark 48, that is, the physical block ID, and the logical position of the tape mark, that is, Once the correspondence between the logical block IDs is known, the magnetic tape can be directly positioned on the head using the physical block ID of the tape mark that corresponds to the logical block ID instructed by the host.
【0018】更に本発明にあっては、磁気テープ1の先
頭のコントロールブロック40に管理情報Aを記録する
と同時に、現在書き込まれているユーザデータの後ろに
別途コントロールブロック42を設け、このコントロー
ルブロック42にも先頭のコントロールブロック40と
同じ管理情報A2を記録する。更に磁気テープ1の最終
位置となる物理EOTの手前にコントロールブロック4
4を設け、このコントロールブロック44についても先
頭のコントロールブロック40に記録した管理情報Aと
同じ管理情報A3を記録している。Furthermore, in the present invention, at the same time as the management information A is recorded in the control block 40 at the beginning of the magnetic tape 1, a separate control block 42 is provided after the currently written user data, and this control block 42 The same management information A2 as the first control block 40 is also recorded in the first control block 40. Furthermore, a control block 4 is installed before the physical EOT, which is the final position of the magnetic tape 1.
4, and the same management information A3 as the management information A recorded in the first control block 40 is also recorded in this control block 44.
【0019】更に、3箇所のコントロールブロック40
,42,44の中には、磁気テープ1の装着時又はデー
タ書込み直後に1にセットされ、磁気テープ1をアンロ
ードする際に0にリセットされる管理情報A,A2,A
3が更新されたか否かを示す更新フラグLを記録するよ
うにしている。即ち、電源遮断等により磁気テープ1の
アンロードが行われた場合には装置内のメモリ、即ちコ
ントロールストレージ24に展開していた更新済みの管
理情報の磁気テープ1に対する記録による更新ができず
、この場合には更新を示す更新フラグLが1にセットさ
れたままとなる。Furthermore, three control blocks 40
, 42, and 44 include management information A, A2, and A that are set to 1 when the magnetic tape 1 is loaded or immediately after data is written, and are reset to 0 when the magnetic tape 1 is unloaded.
An update flag L indicating whether or not 3 has been updated is recorded. That is, when the magnetic tape 1 is unloaded due to a power cut, etc., the updated management information developed in the internal memory of the device, that is, the control storage 24, cannot be updated by recording on the magnetic tape 1. In this case, the update flag L indicating update remains set to 1.
【0020】従って次のロード時に磁気テープ1から管
理情報を読み込んだ際に更新フラグLをチェックし、更
新フラグLが1にセットされていれば前回のアンロード
時に正常な管理情報の更新が行われなかったことが判り
、更新されなかった管理情報によるアクセスを例えば禁
止する等の適切な措置をとることができる。また、先頭
の管理情報Aの更新フラグLを磁気テープの装着時(ロ
ード時)に1にセットし、残りの管理情報A2,A3は
ユーザデータの書込み直後に1となるように管理情報と
共に記録し、テープアンロードに伴う巻戻し時に全て0
に戻すことで、更新中か最終更新したかの区別ができる
。Therefore, when the management information is read from the magnetic tape 1 during the next load, the update flag L is checked, and if the update flag L is set to 1, the management information was correctly updated during the previous unload. It is possible to take appropriate measures, such as prohibiting access using management information that has not been updated. Also, the update flag L of the first management information A is set to 1 when the magnetic tape is installed (loaded), and the remaining management information A2 and A3 are recorded together with the management information so that it becomes 1 immediately after writing the user data. However, all 0 when rewinding due to tape unloading.
By reverting to , you can distinguish whether the update is in progress or the last update.
【0021】勿論、データブロック40,42及び44
に更新フラグLを記録せずに管理情報A,A2,A3を
記録するだけでも本発明の管理方式は成立する。図4は
本発明の管理方式におけるユーザデータの最初の書込み
を示した説明図である。図4において、先頭のコントロ
ールブロック40に続いてユーザデータ1が書き込まれ
ると、制御装置内のコントロールストレージ24に展開
している管理情報に対し新たに追加したユーザデータの
ファイル管理情報を追加し、この管理情報をユーザデー
タ1の書込み終了位置の直後のコントロールブロック4
2として記録する。Of course, data blocks 40, 42 and 44
The management method of the present invention can also be achieved by simply recording the management information A, A2, and A3 without recording the update flag L in the files. FIG. 4 is an explanatory diagram showing the first writing of user data in the management system of the present invention. In FIG. 4, when user data 1 is written following the first control block 40, file management information of the newly added user data is added to the management information developed in the control storage 24 in the control device, This management information is stored in the control block 4 immediately after the writing end position of user data 1.
Record as 2.
【0022】図5は図4の最初のユーザデータの書込み
に続いて2番目のユーザデータの書込みを示した説明図
である。図5において、2番目のユーザデータ2の書込
みは図4に示したユーザデータ1に続くコントロールブ
ロック42の管理情報に重ねて書き込まれることとなり
、このユーザデータ2の書込みによりユーザデータ1の
直後にあったデータブロック42の管理情報は失われる
。FIG. 5 is an explanatory diagram showing the writing of the second user data following the writing of the first user data in FIG. In FIG. 5, the second user data 2 is written over the management information of the control block 42 following the user data 1 shown in FIG. The management information of the existing data block 42 is lost.
【0023】ユーザデータ2の書込みが済むと制御装置
内のコントロールストレージ24に展開している管理情
報の中に新たに書き込んだユーザデータ2に関するファ
イル管理情報を追加し、ユーザデータ2の直後のデータ
ブロック42´として管理情報A2´を書き込む。図4
及び図5において、先頭のコントロールブロック40の
管理情報の更新は、後の説明で明らかにするように基本
的にはアンロード時に記録更新されるものであるが、例
えば磁気テープの巻き戻しによりテープ先頭位置に位置
付けされることがあるが、その際に制御装置内のコント
ロールストレージ24の管理情報を記録して更新してお
くようにしてもよい。When the writing of the user data 2 is completed, file management information regarding the newly written user data 2 is added to the management information developed in the control storage 24 in the control device, and the data immediately after the user data 2 is Management information A2' is written as block 42'. Figure 4
In FIG. 5, the management information in the first control block 40 is basically updated at the time of unloading, as will be explained later. Although it may be positioned at the top position, the management information in the control storage 24 in the control device may be recorded and updated at that time.
【0024】更に図4,図5において、更新フラグLは
制御装置内のコントロールストレージ24の管理情報を
書き込んで更新した際にL=1にセットし、テープ排出
時のアンロード時における記録更新でL=0に戻し、次
のロード時に更新フラグLがL=0であれば正常に更新
が済んでいることが判り、L=1で正常に更新ができて
いないことが判るようにしている。Furthermore, in FIGS. 4 and 5, the update flag L is set to L=1 when the management information of the control storage 24 in the control device is written and updated, and the update flag L is set to L=1 when the management information of the control storage 24 in the control device is written and updated. If the update flag L is L=0 at the next load, it is known that the update has been completed normally, and when L=1, it is known that the update has not been completed normally.
【0025】図6は磁気テープをロードしたときの管理
情報の読取り処理を示した説明図であり、磁気テープ先
頭のコントロールブロックに媒体異常が起きた場合を例
にとっている。図6において、磁気テープ1を装置にセ
ットしてロード動作を行うと、磁気テープ1の先頭のコ
ントロールブロック40の制御装置内のコントロールス
トレージ24に対する読込みが行われる。FIG. 6 is an explanatory diagram showing the management information reading process when a magnetic tape is loaded, taking as an example a case where a medium abnormality occurs in the control block at the beginning of the magnetic tape. In FIG. 6, when the magnetic tape 1 is set in the device and a loading operation is performed, the control block 40 at the beginning of the magnetic tape 1 is read into the control storage 24 in the control device.
【0026】しかしながらコントロールブロック40に
摩耗や劣化等による媒体異常があり、管理情報Aが失わ
れていたとする。この場合には磁気テープ1を更に進ま
せてコントロールブロック42を読み取ることにより、
制御装置内のコントロールストレージ24に格納されて
いる媒体異常を起こしている先頭のコントロールブロッ
ク40からの読出情報を次のコントロールブロック42
から正常に読み出された管理情報に書き替え、この正常
な管理情報に従って必要な処理を行うようになる。However, assume that there is a medium abnormality in the control block 40 due to wear or deterioration, and the management information A is lost. In this case, by further advancing the magnetic tape 1 and reading the control block 42,
The read information from the first control block 40 that has caused a medium abnormality, which is stored in the control storage 24 in the control device, is transferred to the next control block 42.
The management information is rewritten to the management information that has been read normally, and the necessary processing is performed according to this normal management information.
【0027】図7は本発明の管理方式において、ホスト
コンピュータよりライトコマンドを受けたときの制御処
理を示したフローチャートである。図7において、まず
ホストコンピュータからのロードコマンドを受けてステ
ップS1でテープ装着を行う。ステップS1のテープ装
着の処理は図8にサブルーチンとして示す。FIG. 7 is a flowchart showing control processing when a write command is received from a host computer in the management system of the present invention. In FIG. 7, first, a load command is received from the host computer, and the tape is loaded in step S1. The tape mounting process in step S1 is shown as a subroutine in FIG.
【0028】図8において、ステップS1でロード動作
によりテープ装着を行うと、次のステップS2で磁気テ
ープ1の先頭のコントロールブロック40から管理情報
を読み取って装置内のコントロールストレージ24に展
開する。もし管理情報を媒体のキズ等の何らかの原因に
より読むことができない場合、管理情報は失われている
ものと判断し、ステップS4でテープを先送りし、ステ
ップS5で次の管理情報を記録しているコントロールブ
ロックを判別し、ステップS2からの処理を繰り返す。In FIG. 8, when the tape is loaded by a loading operation in step S1, management information is read from the control block 40 at the beginning of the magnetic tape 1 in the next step S2, and is developed in the control storage 24 in the apparatus. If the management information cannot be read due to some reason such as scratches on the medium, it is determined that the management information has been lost, the tape is advanced in step S4, and the next management information is recorded in step S5. The control block is determined and the processing from step S2 is repeated.
【0029】ステップS3で管理情報を読むことができ
れば管理情報は正常なものと判断し、ステップS6でコ
ントロールストレージ24に管理情報を記憶し、ここで
(読めたコントロールブロックについての)更新フラグ
LはL=2にセットされる。そしてステップS7で最初
のユーザデータ1までテープを巻き戻し、図7の処理に
リターンする。If the management information can be read in step S3, it is determined that the management information is normal, and in step S6 the management information is stored in the control storage 24, where the update flag L (for the control block that can be read) is Set L=2. Then, in step S7, the tape is rewound to the first user data 1, and the process returns to the process of FIG.
【0030】図7のステップS2にあっては、ソフトウ
ェア、即ちホストコンピュータからのライトコマンド及
びライトデータを受け取り、ステップS3でデータ書込
みを行う。ステップS4でデータ書込みの終了が判別さ
れるとステップS5に進み、コントロールストレージ2
4に展開している管理情報に新たに書き込んだユーザデ
ータに関するファイル管理情報を追加して新たな管理情
報を作成更新し、ステップS6で新たに書き込んだユー
ザデータの直後のコントロールブロックとして管理情報
を書き込み、また磁気テープの最終のコントロールブロ
ック44及び先頭のコントロールブロック40について
はアンロード時に管理情報の書込みによる更新を行う。In step S2 of FIG. 7, a write command and write data are received from the software, ie, the host computer, and data is written in step S3. When it is determined in step S4 that data writing has ended, the process advances to step S5, where the control storage 2
Create and update new management information by adding file management information regarding the newly written user data to the management information expanded in step S6, and write the management information as a control block immediately after the newly written user data in step S6. In addition, the last control block 44 and the first control block 40 of the magnetic tape are updated by writing management information at the time of unloading.
【0031】このステップS6における磁気テープの管
理情報の更新で更新フラグLはL=1にセットされるこ
とになる。続いてステップS7で新たに書き込んだ管理
情報の前にテープを巻き戻し、ステップS8でライトコ
マンドの継続の有無をチェックし、ライトコマンドが継
続していればステップS2からの処理を繰り返す。By updating the magnetic tape management information in step S6, the update flag L is set to L=1. Next, in step S7, the tape is rewound before the newly written management information, and in step S8, it is checked whether or not the write command continues. If the write command continues, the process from step S2 is repeated.
【0032】ステップS8でライトコマンドの継続が断
たれたことが判別されるとステップS9に進み、アンロ
ードコマンドを待ってステップS10のテープ排出処理
に進む。ステップS10のテープ排出処理は図9に示さ
れる。図9において、まず磁気テープを先頭のコントロ
ールブロック40の管理情報Aへのテープ巻戻しを開始
する。If it is determined in step S8 that the continuation of the write command has been interrupted, the process proceeds to step S9, waits for an unload command, and then proceeds to tape ejection processing in step S10. The tape ejection process in step S10 is shown in FIG. In FIG. 9, first, tape rewinding of the magnetic tape to the management information A of the control block 40 at the beginning is started.
【0033】このテープ巻戻し中にステップS2で管理
情報の位置か否かをチェックしており、管理情報の位置
であることが判別されるとステップS3に進み、先頭の
管理情報Aか否かチェックし、先頭の管理情報Aでなけ
ればユーザデータの直後に存在する管理情報A2または
磁気テープの終端に存在する管理情報A3であることか
らステップS4に進んで、これらの管理情報A2,A3
の更新をテープ巻戻しを行いながら実行する。During this tape rewinding, it is checked in step S2 whether or not the position is the management information, and if it is determined that it is the position of the management information, the process advances to step S3, and whether or not it is the top management information A is checked. If it is not the first management information A, it is management information A2 that exists immediately after the user data or management information A3 that exists at the end of the magnetic tape, so the process advances to step S4 and these management information A2 and A3 are checked.
update while rewinding the tape.
【0034】ステップS3で先頭の管理情報Aであるこ
とが判別されると、ステップS5で最終管理情報として
管理情報Aの更新を行い、ステップS6でテープ排出を
行う。また、ステップS4及びステップS5の管理情報
の更新については同時に更新フラグLをそれまでのL=
1からL=0に書き替える。When it is determined in step S3 that the management information A is the first one, the management information A is updated as the final management information in step S5, and the tape is ejected in step S6. Also, regarding the update of the management information in steps S4 and S5, the update flag L is set at the same time as L=
Rewrite from 1 to L=0.
【0035】以上のテープ排出処理が終了するとステッ
プS7に戻り、一連のライトコマンドに対する処理を終
了する。図10はホストコンピュータからリードコマン
ドを受けたときの処理動作を示す。図10のリードコマ
ンドに対する処理動作にあっては、ステップS1のテー
プ装着における管理情報の読出しは図8のテープ装着の
サブルーチンに示したとおりであり、またステップS6
でアンロードコマンドを受けたときのステップS7のテ
ープ排出における管理情報の更新も図9のサブルーチン
に示したとおりである。When the above tape ejection process is completed, the process returns to step S7, and the process for the series of write commands is completed. FIG. 10 shows the processing operation when a read command is received from the host computer. In the processing operation for the read command in FIG. 10, the reading of the management information in the tape loading in step S1 is as shown in the tape loading subroutine in FIG.
The updating of the management information in tape ejection in step S7 when the unload command is received is also as shown in the subroutine of FIG.
【0036】ステップS2〜ステップS5はリードコマ
ンド固有の処理であり、ステップS2で磁気テープから
データを読み取り、ステップS3でソフトウェア、即ち
ホストコンピュータにリードデータを送り、ステップS
4でデータ読取り終了を判別するとステップS5でリー
ドコマンドの継続の有無をチェックし、継続が終了すれ
ばステップS6でアンロードコマンドを待ってステップ
S7のテープ排出処理に進む。Steps S2 to S5 are processes unique to the read command, in which data is read from the magnetic tape in step S2, read data is sent to the software, that is, the host computer, in step S3, and step S
When it is determined in step 4 that data reading has ended, it is checked in step S5 whether or not the read command continues.If the continuation is completed, an unload command is waited for in step S6, and the process proceeds to tape ejection processing in step S7.
【0037】[0037]
【発明の効果】以上説明してきたように本発明によれば
、磁気テープ上の一部に記録された媒体及びファイルに
関する管理情報が磁気テープの劣化等により失われても
他の箇所に書かれた管理情報により確実に管理情報を再
現でき、磁気テープに記録された管理情報に基づくアク
セスの信頼性を向上できる。Effects of the Invention As explained above, according to the present invention, even if management information regarding media and files recorded on a part of a magnetic tape is lost due to deterioration of the magnetic tape, it can be written to another location. The management information can be reliably reproduced using the management information recorded on the magnetic tape, and the reliability of access based on the management information recorded on the magnetic tape can be improved.
【0038】更に、磁気テープの管理情報を更新する前
に電源遮断等により磁気テープがアンロードされた場合
には、次のロード時に更新フラグを見ることで管理情報
が正常に更新されなかったことを知り、適切な対応策を
とることができる。Furthermore, if the magnetic tape is unloaded due to a power cut, etc. before the management information of the magnetic tape is updated, the update flag can be checked at the next loading to confirm that the management information was not updated normally. be aware of this and take appropriate countermeasures.
【図1】本発明の原理説明図[Fig. 1] Diagram explaining the principle of the present invention
【図2】本発明の実施例構成図[Figure 2] Configuration diagram of an embodiment of the present invention
【図3】本発明の磁気テープのフォーマット説明図[Fig. 3] Diagram explaining the format of the magnetic tape of the present invention
【図
4】本発明の最初のユーザデータの書込み動作の説明図FIG. 4 is an explanatory diagram of the first user data write operation of the present invention.
【図5】本発明の2番目のユーザデータの書込み動作の
説明図FIG. 5 is an explanatory diagram of the second user data write operation of the present invention.
【図6】本発明の管理情報の読出動作の説明図FIG. 6 is an explanatory diagram of the management information read operation of the present invention.
【図7】
本発明の書込動作を示したフローチャート[Figure 7]
Flowchart showing write operation of the present invention
【図8】図7
のテープ装着処理を示したフローチャート[Figure 8] Figure 7
Flowchart showing the tape loading process of
【図9】図7
のテープ排出処理を示したフローチャート[Figure 9] Figure 7
Flowchart showing the tape ejection process of
【図10】本
発明の読出動作を示したフローチャートFIG. 10 is a flowchart showing the read operation of the present invention.
1:磁気テープ
2:管理情報記録手段
3:管理情報読出手段
10:磁気テープ記憶制御装置
12:磁気テープドライブ装置
14:マイクロプロセッサ(MPU)
16:ホストインタフェース
18:ドライブインタフェース
20:データバッファ
22:DMAコントローラ
24:コントロールストレージ
26:ディップスイッチ
28:コントロールバス
30:DMAバス
32:ドライブコントローラ
34:ドライブ
36:送出しリール
38:巻取りリール
40,42,44:コントロールブロック46:制御ト
ラック1: Magnetic tape 2: Management information recording means 3: Management information reading means 10: Magnetic tape storage control device 12: Magnetic tape drive device 14: Microprocessor (MPU) 16: Host interface 18: Drive interface 20: Data buffer 22: DMA controller 24: Control storage 26: DIP switch 28: Control bus 30: DMA bus 32: Drive controller 34: Drive 36: Sending reel 38: Take-up reel 40, 42, 44: Control block 46: Control track
Claims (8)
報を記録し、磁気テープ(1)の装着時に前記管理情報
を読込んで装置内に展開し、該管理情報に基づき媒体単
位にアクセスを管理する磁気テープ記憶装置の管理方式
に於いて、前記管理情報を磁気テープ(1)の複数箇所
(A,A2,A3)に記録する管理情報記録手段(2)
と;磁気テープ(1)上の予め定めた特定位置(A)に
記録された管理情報を読出して装置内のメモリに展開し
、該特定位置(A)の管理情報が正常に読込めなかった
場合には、他の位置(A2,A3)の管理情報を読込む
管理情報読出手段(3)と;を備えたことを特徴とする
磁気テープ記憶装置の管理方式。1. Management information regarding the medium is recorded on a magnetic tape (1), and when the magnetic tape (1) is loaded, the management information is read and developed in the device, and access is made for each medium based on the management information. In a management method for a magnetic tape storage device to be managed, a management information recording means (2) for recording the management information at a plurality of locations (A, A2, A3) on a magnetic tape (1);
The management information recorded at a predetermined specific position (A) on the magnetic tape (1) is read and expanded to the memory in the device, and the management information at the specific position (A) cannot be read normally. A management method for a magnetic tape storage device, comprising: a management information reading means (3) for reading management information at other positions (A2, A3).
方式に於いて、前記管理情報記録手段(2)は、管理情
報を磁気テープに記録する際に、管理情報が更新された
ことを示すフラグ情報(L)を記録し、前記管理情報読
出手段(3)は磁気テープ(1)から管理情報を読出し
た際に、前記フラグ情報から更新の有無を判別して対応
する処理を行うことを特徴とする磁気テープ記憶装置の
管理方式。2. In the management method for a magnetic tape storage device according to claim 1, the management information recording means (2) is configured to record the management information on the magnetic tape when the management information is recorded on the magnetic tape. When the management information reading means (3) reads the management information from the magnetic tape (1), the management information reading means (3) determines whether or not there is an update from the flag information and performs corresponding processing. A management method for magnetic tape storage devices characterized by:
方式に於いて、前記管理情報記録手段(2)は、磁気テ
ープ(1)の先頭の物理的なテープ開始位置(物理BO
T)とユーザデータ領域の論理的な開始位置(論理BO
T)との間の第1位置(A)に前記管理情報を記録し、
ユーザ領域については、データファイルの書込終了位置
に続く第2位置(A2)に前記管理情報を記録すると共
に、磁気テープの物理的なテープ最終位置(物理EOT
)の手前の第3位置(A3)に前記管理情報を記録する
ことを特徴とする磁気テープ記憶装置の管理方式。3. In the management system for a magnetic tape storage device according to claim 1, the management information recording means (2) records a physical tape start position (physical BO) at the beginning of the magnetic tape (1).
T) and the logical start position of the user data area (logical BO
recording the management information in a first position (A) between T);
Regarding the user area, the management information is recorded in the second position (A2) following the write end position of the data file, and the physical tape final position (physical EOT) of the magnetic tape is recorded.
) A management method for a magnetic tape storage device, characterized in that the management information is recorded in a third position (A3) in front of the magnetic tape storage device.
方式に於いて、前記管理情報記録手段(2)は、データ
ファイルの書込終了位置に続く第2位置(A2)に前記
管理情報を記録した状態で、新たなデータ書込を行う際
には、該第2位置(A2)の管理情報に重ねて新たなデ
ータファイルを書込んだ後に、該新たなデータファイル
の最終位置に続く第2位置(A2´)に前記管理情報を
記録することを特徴とする磁気テープ記憶装置の管理方
式。4. In the management method for a magnetic tape storage device according to claim 3, the management information recording means (2) stores the management information in a second position (A2) following the write end position of the data file. When writing new data in a state where . A management method for a magnetic tape storage device, characterized in that the management information is recorded in a second position (A2').
方式に於いて、前記管理情報記録手段(2)は、上位装
置からアンロードコマンドを受けた際に、装置内のメモ
リに展開している管理情報を既に磁気テープ(1)に記
録されている複数位置(A,A2,A3)の管理情報に
重ね書きして更新することを特徴とする磁気テープ記憶
装置の管理方式。5. In the management method for a magnetic tape storage device according to claim 1, when the management information recording means (2) receives an unload command from a host device, the management information recording means expands the information into the memory within the device. A management method for a magnetic tape storage device, characterized in that management information at a plurality of positions (A, A2, A3) already recorded on a magnetic tape (1) is overwritten and updated with management information.
方式に於いて、前記磁気テープ(1)に記録する管理情
報として、磁気テープ自体の媒体管理情報及び磁気テー
プ(1)に書込まれたユーザデータのデータファイル管
理情報を作成して記録することを特徴とする磁気テープ
記憶装置の管理方式。6. In the management method for a magnetic tape storage device according to claim 1, the management information recorded on the magnetic tape (1) includes medium management information of the magnetic tape itself and information written on the magnetic tape (1). 1. A management method for a magnetic tape storage device, characterized in that data file management information for stored user data is created and recorded.
方式に於いて、前記磁気テープ(1)に媒体管理情報と
して、媒体番号、媒体異常の有無、及び媒体の使用回数
を記録することを特徴とする磁気テープ記憶装置の管理
方式。7. A management method for a magnetic tape storage device according to claim 5, wherein a medium number, presence or absence of medium abnormality, and number of times the medium is used are recorded on the magnetic tape (1) as medium management information. A management method for magnetic tape storage devices characterized by:
方式に於いて、前記磁気テープ(1)にファイル管理情
報として、データファイルの物理的な位置情報と論理的
な位置情報との対応関係を記録することを特徴とする磁
気テープ記憶装置の管理方式。8. A management method for a magnetic tape storage device according to claim 5, wherein the magnetic tape (1) includes, as file management information, a correspondence between physical position information and logical position information of a data file. A management method for a magnetic tape storage device characterized by recording relationships.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5093491A JPH04285783A (en) | 1991-03-15 | 1991-03-15 | Management method for magnetic tape storage devices |
EP19920302137 EP0509637A3 (en) | 1991-03-15 | 1992-03-12 | Magnetic tape storage apparatus |
US07/851,413 US5384673A (en) | 1991-03-15 | 1992-03-13 | Magnetic-tape storage apparatus |
US08/318,353 US5525902A (en) | 1991-03-15 | 1994-10-05 | Magnetic tape storage apparatus writing status information to magnetic tape indicating a tape abnormality |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5093491A JPH04285783A (en) | 1991-03-15 | 1991-03-15 | Management method for magnetic tape storage devices |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04285783A true JPH04285783A (en) | 1992-10-09 |
Family
ID=12872651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5093491A Pending JPH04285783A (en) | 1991-03-15 | 1991-03-15 | Management method for magnetic tape storage devices |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04285783A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000014742A1 (en) * | 1998-09-03 | 2000-03-16 | Sony Corporation | Recording device and method, reproducing device and method, and recording medium |
US6788487B2 (en) | 2000-12-20 | 2004-09-07 | Nec Corporation | Magnetic tape apparatus and magnetic tape accessing method |
WO2004112032A1 (en) * | 2003-06-11 | 2004-12-23 | Sony Corporation | Information processing device and method, recording medium, and program |
JP2006107720A (en) * | 2004-10-02 | 2006-04-20 | Hewlett-Packard Development Co Lp | Data storage apparatus data storing method |
-
1991
- 1991-03-15 JP JP5093491A patent/JPH04285783A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000014742A1 (en) * | 1998-09-03 | 2000-03-16 | Sony Corporation | Recording device and method, reproducing device and method, and recording medium |
US6525894B1 (en) | 1998-09-03 | 2003-02-25 | Sony Corporation | Tape drive apparatus and method for mounting a volume from a tape medium |
US6788487B2 (en) | 2000-12-20 | 2004-09-07 | Nec Corporation | Magnetic tape apparatus and magnetic tape accessing method |
WO2004112032A1 (en) * | 2003-06-11 | 2004-12-23 | Sony Corporation | Information processing device and method, recording medium, and program |
JP2006107720A (en) * | 2004-10-02 | 2006-04-20 | Hewlett-Packard Development Co Lp | Data storage apparatus data storing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5388016A (en) | Magnetic tape data management method and apparatus | |
JP3870215B1 (en) | Data writing / reading control method for tape recorder | |
KR100603156B1 (en) | Recording and playback device using tape cassette | |
JP3483138B2 (en) | Magnetic tape drive and its recording method | |
JPH04285783A (en) | Management method for magnetic tape storage devices | |
US5428755A (en) | Method for automatically modifying program in a flash memory of a magnetic tape unit | |
JP2002074903A (en) | Magnetic recording and reproducing device and magnetic recording and reproducing method | |
US5319503A (en) | Method and apparatus for writing successive streams of data on a magnetic medium by writing a cancel mark indicating the cancellation of a previously-written file mark | |
JPH0876989A (en) | Program driven electronic device and program rewriting method | |
JP4173146B2 (en) | Method for erasing data from magnetic tape storage media | |
JP3089860B2 (en) | Recirculating magnetic tape unit | |
JP2006107720A (en) | Data storage apparatus data storing method | |
JP2972365B2 (en) | Access control method for magnetic tape storage | |
US8489785B2 (en) | Apparatus and method for writing data onto tape medium | |
JP2625744B2 (en) | Magnetic tape unit | |
JPH10112164A (en) | Magnetic tape recording / reproducing device | |
JPH10133867A (en) | Data reproducing device and data recording medium | |
JPS63269361A (en) | Magnetic tape device | |
JP2673466B2 (en) | Data processing device | |
JPH02126453A (en) | Data recording and reproducing device | |
JP3334696B2 (en) | Magnetic tape recorder | |
JP2002216457A (en) | Tape cassette with memory, and recorder/player | |
JPH05173724A (en) | Magnetic tape storage | |
JPH1049928A (en) | Data recording/reproducing device | |
JPH0833803B2 (en) | Storage controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19990803 |