JPH06139650A - Circulation use type magnetic tape device - Google Patents

Circulation use type magnetic tape device

Info

Publication number
JPH06139650A
JPH06139650A JP4290622A JP29062292A JPH06139650A JP H06139650 A JPH06139650 A JP H06139650A JP 4290622 A JP4290622 A JP 4290622A JP 29062292 A JP29062292 A JP 29062292A JP H06139650 A JPH06139650 A JP H06139650A
Authority
JP
Japan
Prior art keywords
magnetic tape
generation
file
head
data
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.)
Granted
Application number
JP4290622A
Other languages
Japanese (ja)
Other versions
JP3089860B2 (en
Inventor
Yasunori Kitamoto
安範 北本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP04290622A priority Critical patent/JP3089860B2/en
Publication of JPH06139650A publication Critical patent/JPH06139650A/en
Application granted granted Critical
Publication of JP3089860B2 publication Critical patent/JP3089860B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To realize the backup of generation with one or plural magnetic tapes by improving the utilizing efficiency of the magnetic tape related to a circulation use type magnetic tape device. CONSTITUTION:A look-ahead head 1 is provided on the magnetic tape device, and MAP information 2 containing the judgment data on propriety using the magnetic tape circulately is recorded on the leader position of the magnetic tape previously. When the lowermost hold generation is warranted based on the MAP information 2 read by the look-ahead head and previously inputted parameter information 3, next generation data is started to be written. When the end (EOT) of volume is detected, and the tape is returned to the leader position, the superscription of the succeeding data of a next generation file is preformed from the leader position of the file of the magnetic tape by recognizing the end position of the invalidatable file by the write end position of next generation remaining data based on the MAP information 2 read again by the look-ahead head. Then, when the end position of the file is detected by the look-ahead head on the way, it is judged that relevant superscription is impossible, and the device enters error processing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータの磁気テ
ープ装置に関し、特に、循環使用型の磁気テープ装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic tape device for a computer, and more particularly to a reusable magnetic tape device.

【0002】近年のコンピュータシステムでは、磁気デ
ィスクの高速化,大容量化に伴い、磁気テープの利用価
値が低下している。然しながら、その記憶容量が大容量
であることに鑑み、磁気テープの使用形態として、自動
ハンドリング化が進んで、データのバックアップとして
利用されることが多くなっている。
In computer systems of recent years, the utility value of magnetic tapes has declined as the speed and capacity of magnetic disks have increased. However, in view of its large storage capacity, the magnetic tape is being used more and more automatically as a usage pattern, and is often used as a backup of data.

【0003】ところが、テープにデータセット (ファイ
ル) が複数記憶されていて、書換のためにデータを上書
きした時、通常、元の内容を消して書き込む形態をとる
ため、どこまでが消去され、どこからのデータは、元の
儘で、正常であるかの保証がないことから、それ以降の
データセット (ファイル) は、通常、呼び出せなくな
る。
However, when a plurality of data sets (files) are stored on the tape and the data is overwritten for rewriting, the original contents are usually erased and written, so that the erased area and the erased area Since the data is in its original form and there is no guarantee that it will be normal, subsequent datasets (files) will normally not be accessible.

【0004】この使用上の制約は、使い勝手が悪いばか
りか、テープの使用効率を減少させる主因となってい
る。従って、使用効率のよい磁気テープ装置が要求され
る所以である。
This restriction on use is not only inconvenient to use but also a main cause of reducing the use efficiency of the tape. This is why a magnetic tape device with high usage efficiency is required.

【0005】[0005]

【従来の技術】図4は、従来の磁気テープ装置の構成例
を示した図であり、図4(a) は、従来の磁気ヘッドの構
成例を示し、図4(b1),(b2) は、従来の磁気テープの構
成例を示している。
2. Description of the Related Art FIG. 4 is a diagram showing a configuration example of a conventional magnetic tape device, FIG. 4 (a) shows a configuration example of a conventional magnetic head, and FIGS. Shows a configuration example of a conventional magnetic tape.

【0006】従来の磁気テープ装置においては、磁気テ
ープへのデータの書込みは、図4(b1)に示したように、
テープマーク (△印で示す) で囲まれたデータを1ファ
イルと見なして行われ、ボリューム上の最後のファイル
に連続のテープマーク〔通常は2個〕を付ける。ファイ
ルの追加はこの位置より行い、最後のファイルを除いて
上書きを許していない。
In the conventional magnetic tape device, as shown in FIG. 4 (b1), data is written on the magnetic tape.
The data enclosed by tape marks (marked with a triangle) is regarded as one file, and the last file on the volume is given continuous tape marks (usually two). Files are added from this position, and overwriting is not allowed except for the last file.

【0007】これは、図4(a) に示す通り、書き込みの
時に、消去ヘッドによりテープに書かれた元のデータを
消去してから、書き込みヘッドにより書き込みを行い、
次の読込みヘッドで、該書き込まれたデータのチェック
を行うため、元のデータの内容が保証できないことによ
る。即ち、元の内容には関与しない書き込み制御を行っ
ており、どこまで、消去して、どこから、元の正しいデ
ータが保存されているかが認識できず、残りのデータ
を、例えば、管理に容易なファイル単位に保証していな
いことによる。{図4(b2)参照}
As shown in FIG. 4 (a), this is because at the time of writing, the erasing head erases the original data written on the tape, and then the writing head writes the data.
This is because the content of the original data cannot be guaranteed because the next read head checks the written data. In other words, the write control that is not related to the original content is performed, and it is not possible to recognize how far the erase is performed and where the correct original data is stored, and the remaining data is stored in a file that is easy to manage, for example. This is because the unit is not guaranteed. {Refer to Fig. 4 (b2)}

【0008】[0008]

【発明が解決しようとする課題】従って、図4(b1)に示
されているように、複数のファイル (第1世代と第2世
代)を記録してある状態で、図4(b2)に示されているよ
うに、不要になったファイル(例えば、第1世代のファ
イル)の領域を使って、新規ファイル(第3世代のファ
イル)を書き込むと、それ以降のファイルは無効として
いた。 この為、ファイルのバックアップにおいて、1
ファイル, 又は、複数ファイルを、継続的に世代管理使
用とすると、複数本の磁気テープボリュームが必要にな
り、1世代を保存するために1ボリュームを使う必要が
でてしまうといった問題点を生じていた。
Therefore, as shown in FIG. 4 (b1), a plurality of files (first generation and second generation) are recorded in FIG. 4 (b2). As shown, when a new file (third generation file) is written using the area of an unnecessary file (for example, first generation file), the subsequent files are invalid. Therefore, when backing up files,
When files or multiple files are continuously used for generation management, multiple magnetic tape volumes are required, and one volume must be used to store one generation. It was

【0009】本発明は上記従来の欠点に鑑み、磁気テー
プの使用効率を向上させ、世代バックアップを1つ又は
複数の磁気テープで実現することができる磁気テープ装
置を提供することを目的とするものである。
In view of the above-mentioned conventional drawbacks, it is an object of the present invention to provide a magnetic tape device capable of improving the use efficiency of the magnetic tape and realizing generation backup with one or a plurality of magnetic tapes. Is.

【0010】[0010]

【課題を解決するための手段】図1は、本発明の原理説
明図であり、図1(a) は、磁気ヘッドの構成例を示し、
図1(b1),(b2) は磁気テープの使用例を示している。上
記の問題点は、下記の如くに構成した磁気テープ装置に
よって解決される。
FIG. 1 is a diagram for explaining the principle of the present invention, and FIG. 1 (a) shows a structural example of a magnetic head.
FIGS. 1 (b1) and 1 (b2) show examples of using a magnetic tape. The above problems are solved by the magnetic tape device configured as described below.

【0011】磁気テープ装置に、先読みヘッド 1を設け
ると共に、磁気テープの先頭位置に、ファイル位置,格
納件数,レコード長,ブロック長,タイムスタンプ,継
続ボリュームラベルといった、該磁気テープの循環使用
の可否の判定データを含むMAP情報を記録してお
き、データの書き込み時に、上記先読みヘッド 1で読み
込んだMAP情報と、予め、入力されているパラメー
タ情報とに基づいて、最低保有世代が保証できること
が認識されると、次世代のデータの書き込みを開始し、
ボリュームの終端(EOT)を検出し、該磁気テープの
先頭位置に戻ったとき、再度先読みヘッド 1で読み込ん
だ、上記MAP情報に基づいて、上記次世代の残りの
データの書き込み終了位置が、無効にしてもよい前世代
のファイルの終端位置(テープマーク位置)より前にあ
ることを認識して、該磁気テープのファイルの先頭位置
から、該次世代の残りのデータによる上書きを行い、上
記次世代の残りのデータによる上書きの途中で、上記先
読みヘッド 1により、ファイル終端位置(テープマーク
位置)を検出したときには、該上書きが不可能と判断し
てエラー処理に入るように構成する。
The magnetic tape device is provided with a read-ahead head 1 and whether or not the magnetic tape can be circulated at the head position of the magnetic tape such as file position, number of records, record length, block length, time stamp, and continuous volume label. It is recognized that the minimum possession generation can be guaranteed based on the MAP information including the determination data of No. 1 is recorded and the MAP information read by the prefetch head 1 and the parameter information that is input in advance when writing the data. Then, start writing the next generation data,
When the end (EOT) of the volume is detected and the head position of the magnetic tape is returned to, the write end position of the remaining data of the next generation is invalid based on the MAP information read by the prefetch head 1 again. Recognizing that it is before the end position (tape mark position) of the file of the previous generation that may be set, the data is overwritten with the remaining data of the next generation from the beginning position of the file of the magnetic tape, When the read-ahead head 1 detects the file end position (tape mark position) in the middle of overwriting with the remaining data of the generation, it is determined that the overwriting is impossible and an error process is performed.

【0012】[0012]

【作用】図1は、本発明の原理説明図であり、図1(a)
には、本発明の磁気テープ装置の磁気ヘッドの構成例を
示しており、本発明においては、図示されているように
磁気テープが走行する場合において、消去ヘッドの右
側、即ち、磁気テープ上において、最も、早いテープ走
行上の位置に、先読みヘッド 1を追加し、元のデータ内
容を先読みができるようにしてある。
Operation: FIG. 1 is a diagram for explaining the principle of the present invention.
Shows an example of the configuration of the magnetic head of the magnetic tape device of the present invention. In the present invention, when the magnetic tape runs as shown in the figure, on the right side of the erasing head, that is, on the magnetic tape. , The pre-read head 1 is added at the fastest position on the tape running so that the original data contents can be pre-read.

【0013】又、図1(b1),(b2) に示されているよう
に、従来から設けられているボリュームラベルの次
に、本発明においては、磁気テープの循環使用の可否の
判定を行うのに必要な、ファイル位置(正常ファイル,
ダミーファイルの識別フラグも含む),格納件数(全レ
コード数),レコード長,ブロック長,タイムスタン
プ,継続ボリュームラベルを記録するMAP情報域を
備えている。
Further, as shown in FIGS. 1 (b1) and 1 (b2), next to the conventionally provided volume label, in the present invention, it is determined whether or not the magnetic tape can be circulated. File position (normal file,
It also has a MAP information area for recording the dummy file identification flag), the number of records (total number of records), record length, block length, time stamp, and continuous volume label.

【0014】本原理説明図で示した例においては、1フ
ァイルの世代バックアップを例にとり、上記MAP情報
以降の循環領域が、使用前と、使用後でどのように使
用されるかを示している。
In the example shown in this principle explanatory diagram, generation backup of one file is taken as an example to show how the circular area after the MAP information is used before and after use. .

【0015】即ち、図1(b1),(b2) に示した如く、3世
代目のファイルを格納しようとした時に、物理上のボリ
ュームエンド〔終端:EOT〕に達した時、磁気テーブは巻
き戻され、循環使用領域の先頭に戻り、前に記録れてい
た1世代目のファイルを無効とするかどうか、該バック
アップの処理起動時に、予め、操作者によって与えられ
たパラメータと、上記先読みヘッドで先読みしたMA
P情報によって判断する。
That is, as shown in FIGS. 1 (b1) and (b2), the magnetic tape is wound when the physical volume end (end: EOT) is reached when the third generation file is to be stored. Returned to the head of the circular use area, whether or not to invalidate the previously recorded first generation file, the parameters previously given by the operator at the time of starting the backup process, and the prefetch head MA pre-read in
Judgment based on P information.

【0016】具体的には、該パラメータには、最低保
有世代数が入力されているので、現在の、該先読みヘッ
ド 1で先読みしたMAP情報から、現状のファイルの
数を認識し、図1(b) の例では、例えば、第1世代と第
2世代の2つの世代か存在しているので、第3世代を書
き込み、第1世代を無効にしてもよいことを認識するこ
とができる。
Specifically, since the minimum number of held generations is input to the parameter, the current number of files is recognized from the current MAP information prefetched by the prefetch head 1, and the number of files shown in FIG. In the example of b), for example, since there are two generations, the first generation and the second generation, it can be recognized that the third generation may be written and the first generation may be invalidated.

【0017】該判断で、無効にしてはいけない場合と
か、無効にしても良いが、該書き込みで、磁気テープの
終端(EOT) を検出して、該磁気テープの先頭の位置に戻
り、残りの書き込みデータ長と、該無効にしてもよい第
1世代のテープマーク位置{この位置は、例えば、上記
MAP情報の格納件数(全レコード数)とレコード長
から、理論的なテープマーク位置を予測することができ
る}とを比較して、残りデータ長≧第1世代のテープマ
ーク位置迄のデータ長であると認識され、該第3世代の
書き込みが不可能と判断された場合は、該バックアップ
の処理を中断し、オペレータに通知する。
In the judgment, it should not be invalidated, or it may be invalidated, but in the writing, the end (EOT) of the magnetic tape is detected, the magnetic tape is returned to the head position, and the remaining A theoretical tape mark position is predicted from the write data length and the first-generation tape mark position that may be invalidated (this position is, for example, the number of stored MAP information items (total number of records) and the record length). If it is determined that the remaining data length ≧ the data length up to the tape mark position of the first generation and writing of the third generation is impossible, the backup of the backup is performed. The process is interrupted and the operator is notified.

【0018】該事前の判定により、一応、理論的なテー
プマーク位置から、該第3世代の書き込みが可能と認識
されて、実際に書き込みを行っている途中において、上
記先読みヘッド 1によって、次のテープマーク位置を検
出して、残りのデータを書き込み続けることができない
と判断された場合{これは、磁気テープ上に、アクセス
不可能な領域があると、通常、例えば、3インチ程度、
障害箇所として使用不可域の指示をしているので、理論
的に書き込み可能であっても、実際の書き込みが不可能
な場合がある。}も、該バックアップの処理を中断し、
オペレータに通知する。
According to the preliminary judgment, it is recognized that the third generation writing is possible from the theoretical tape mark position, and during the actual writing, the pre-read head 1 makes the following When the tape mark position is detected and it is determined that the remaining data cannot be continuously written (This is because if there is an inaccessible area on the magnetic tape, normally, for example, about 3 inches,
Since the unusable area is instructed as the failure point, there are cases where the actual writing is impossible even though the writing is theoretically possible. } Also interrupts the backup process,
Notify the operator.

【0019】上記の各条件が検出されなくて、該第1世
代を無効にして良い場合は、第3世代目の続きを記録
し、終了後に空き領域を1ファイルと見なすためのダミ
ーファイルのヘッダーを記録する。
When the above conditions are not detected and the first generation can be invalidated, the continuation of the third generation is recorded and the header of the dummy file for considering the empty area as one file after the end. To record.

【0020】テープが巻き戻って、上記MAP情報の
先頭に位置づけられた時点で、本発明のMAP情報を
更新する。従って、磁気テープバックアップ等で使用す
る時、使用効率が格段によくなる。又、世代バックアッ
プを、例えば、一つの磁気テープで容易に実現すること
ができる等の効果がある。
When the tape is rewound and positioned at the head of the MAP information, the MAP information of the present invention is updated. Therefore, when used for magnetic tape backup or the like, the use efficiency is significantly improved. Further, there is an effect that generation backup can be easily realized with one magnetic tape, for example.

【0021】[0021]

【実施例】以下本発明の実施例を図面によって詳述す
る。前述の図1は、本発明の原理説明図であり、図2,
図3は、本発明の一実施例を流れ図で示した図である。
Embodiments of the present invention will be described in detail below with reference to the drawings. The above-mentioned FIG. 1 is a diagram for explaining the principle of the present invention.
FIG. 3 is a flow chart showing an embodiment of the present invention.

【0022】本発明においては、磁気テープ装置に、先
読みヘッド 1を設けると共に、磁気テープの先頭位置
に、ファイル位置,格納件数,レコード長,ブロック
長,タイムスタンプ,継続ボリュームラベルといった、
該磁気テープの循環使用の可否の判定データを含むMA
P情報を記録しておく手段が、本発明を実施するのに
必要な手段である。尚、全図を通して同じ符号は同じ対
象物を示している。
In the present invention, the magnetic tape device is provided with the read-ahead head 1, and at the head position of the magnetic tape, the file position, the number of stored items, the record length, the block length, the time stamp, the continuous volume label, etc.
MA including data for judging whether or not the magnetic tape can be reused
The means for recording P information is the means necessary for carrying out the present invention. The same reference numerals indicate the same objects throughout the drawings.

【0023】以下、図1を参照しながら、図2によっ
て、本発明の磁気テープ装置の構成と動作を説明する。
本実施例では、1ファイルの世代のバックアップを例に
して説明するが、これに限定されるものではないことは
いう迄もないことである。
The structure and operation of the magnetic tape device according to the present invention will be described below with reference to FIG. 2 while referring to FIG.
In the present embodiment, the backup of the generation of one file will be described as an example, but it goes without saying that the present invention is not limited to this.

【0024】先ず、本発明の磁気テープ装置には、図1
(a) に示されているように、消去ヘッドの右側に、先読
みヘッド 1を設ける。但し、磁気テープの走行方向は、
図示されている如くに、右から左とする。従って、磁気
テープの走行時、一番始めに、該先読みヘッドが付勢さ
れ、磁気テープの内容の先読みができる。
First, in the magnetic tape device of the present invention, as shown in FIG.
A read-ahead head 1 is provided to the right of the erase head as shown in (a). However, the running direction of the magnetic tape is
From right to left as shown. Therefore, when the magnetic tape is running, the read-ahead head is first urged to read the contents of the magnetic tape.

【0025】次に、図1(b1),(b2) に示されているよう
に、本発明の磁気テープ装置で使用される磁気テープに
おいては、通常のボリュームラベルの次に、磁気テー
プの循環使用の可否の判定を行うのに必要な、ファイル
位置(正常ファイル,ダミーファイルの識別フラグも含
む),格納件数(全レコード数),レコード長,ブロッ
ク長,タイムスタンプ,継続ボリュームラベルを記録す
るMAP情報域を備えている。
Next, as shown in FIGS. 1 (b1) and (b2), in the magnetic tape used in the magnetic tape device of the present invention, the magnetic tape is circulated after the usual volume label. Record the file position (including normal file and dummy file identification flags), number of records (total number of records), record length, block length, time stamp, and continuous volume label that are required to determine whether or not the file can be used. It has a MAP information area.

【0026】先ず、操作者より、パラメータ{図3参
照}として、例えば、ボリューム通番, リード, ライト
区分, ファイル名, 世代番号, 格納件数 (全レコード
数),最低保有世代数等が入力された後、磁気テープの磁
気テープ装置へのマウントが行われると、上記本発明の
先読みヘッド 1によって、MAP情報が先読みされ
る。{図2の処理ステップ 100,101,102参照} このとき、該先読みされたMAP情報と、予め、入力
されているパラメータ情報とに基づいて、最低保有世
代数が確保できるか否か、即ち、第1世代と第2世代の
2世代のファイルが確保できるか否かを判断する。
First, the operator inputs, for example, a volume serial number, read, write category, file name, generation number, number of stored items (total number of records), minimum number of held generations, etc. as parameters {see FIG. 3}. Thereafter, when the magnetic tape is mounted on the magnetic tape device, the MAP information is preread by the prefetch head 1 of the present invention. {Refer to the processing steps 100, 101, 102 of FIG. 2} At this time, based on the pre-read MAP information and the parameter information input in advance, whether the minimum retained generation number can be secured, that is, the first generation It is determined whether or not the second generation file of the second generation can be secured.

【0027】具体的には、該パラメータには、最低保
有世代数が入力されているので、現在の、該先読みヘッ
ド 1で先読みしたMAP情報から、現状のファイルの
数を認識する。
Specifically, since the minimum possession generation number is input to the parameter, the current number of files is recognized from the current MAP information prefetched by the prefetch head 1.

【0028】図1(b1)の例では、例えば、第1世代と第
2世代の2つの世代か存在しているので、第3世代を書
き込み、第1世代を無効にしてもよいことを、事前に、
即ち、該第3世代の実際の書き込み処理の前に認識する
ことができる。但し、書き込みエラー等が発生すると、
該判定も絶対的なものといえなくなる。{図3の処理ス
テップ 103参照} 該判断で、前世代のファイルを無効にしてはいけない場
合{図3の処理ステップ 103参照}とか、無効にしても
良い{即ち、上書きをしても良い}が、次世代の残りの
書き込みデータ長と、該無効にしてもよい第1世代のテ
ープマーク位置{この位置は、前述のように、例えば、
上記MAP情報の格納件数(全レコード数)とレコー
ド長から、理論的なテープマーク位置を予測することが
できる}とを比較して、残りデータ長≧第1世代のテー
プマーク位置迄のデータ長であると認識され、該第3世
代の書き込みが不可能と判断された場合{図3の処理ス
テップ 103,104,105参照}は、該バックアップの処理を
中断し、オペレータに通知する。{図3の処理ステップ
114参照} 上記の判断で、次世代の書き込みが可能と認識され、図
1(b1)に示した如く、第3世代の書き込みを、第2世代
のファイルのテープマーク位置(△印で示す)の後から
開始し、物理上のボリュームエンド(終端:EOT)に
達すると、磁気テープは巻き戻され、先頭位置に戻り、
上記第3世代の残りの書き込みデータ長と、該無効にし
てもよい第1世代のテープマーク位置{この位置は、前
述のように、例えば、上記MAP情報の格納件数(全
レコード数)とレコード長から、理論的なテープマーク
位置を予測することができる}とを比較して、一応、理
論的な第1世代のテープマーク位置から、該第3世代の
書き込みが可能と認識されて、実際に書き込みを行って
いる途中において、上記先読みヘッド 1によって、次の
テープマーク位置を検出して、残りのデータを書き込み
続けることができないと判断された場合{前述のよう
に、磁気テープ装置の運用状態においては、アクセス不
可なレコードが存在すると、例えば、3インチ程度、書
き込み不可域として指示しているので、理論通り書き込
みができるとは限らないことによる}も、該バックアッ
プの処理を中断し、オペレータに通知する。{図3の処
理ステップ 103,104,105,106,111,114参照} 上記の次世代の書き込みが不可であるという条件が検出
されなくて、該第1世代の全ファイルを無効にして良い
場合は、第3世代目の続きを記録し続け、書き込みの終
了後に空き領域を1ファイルと見なすためのダミーファ
イルのヘッダーを記録する。{図3の処理ステップ 112
参照} 再度、磁気テープが巻き戻って、上記MAP情報の先
頭に位置づけられた時点で、本発明のMAP情報を更
新する。例えば、継続ボリュームラベル等の付加、ダミ
ーファイルの位置等の書き込み等を行う。{図3の処理
ステップ 113参照} このように、最低保有世代のファイルを保証するために
は、書込み時に先読みが必要となることから、本発明に
おいては、前述の先読みヘッドを設けている。
In the example of FIG. 1 (b1), for example, since there are two generations, the first generation and the second generation, it is possible to write the third generation and invalidate the first generation. Beforehand,
That is, it can be recognized before the actual writing process of the third generation. However, if a write error occurs,
The judgment cannot be said to be absolute. {Refer to processing step 103 in FIG. 3} In the judgment, if the previous generation file should not be invalidated {refer to processing step 103 in FIG. 3}, or may be invalidated (that is, may be overwritten). However, the remaining write data length of the next generation and the first generation tape mark position that may be invalidated (this position is, for example, as described above,
The theoretical number of tape marks can be predicted from the number of stored MAP information items (total number of records) and the record length}, and the remaining data length ≧ the data length up to the tape mark position of the first generation If it is determined that the third generation writing is impossible (see processing steps 103, 104 and 105 in FIG. 3), the backup processing is interrupted and the operator is notified. {Processing steps in FIG. 3
Refer to 114} In the above judgment, it is recognized that the next generation writing is possible, and as shown in FIG. 1 (b1), the third generation writing is performed, and the tape mark position of the second generation file (indicated by a triangle). When the physical volume end (end: EOT) is reached, the magnetic tape is rewound and returns to the beginning position.
The remaining write data length of the third generation, and the first generation tape mark position that may be invalidated (this position is, for example, as described above, the number of stored MAP information items (total number of records) and records) The theoretical tape mark position can be predicted from the length}, and it is recognized that the third generation writing is possible from the theoretical first generation tape mark position. If the pre-read head 1 detects the position of the next tape mark and determines that the remaining data cannot be written in the middle of writing to the disk (as described above, operation of the magnetic tape device In the state, if there is an inaccessible record, for example, about 3 inches is instructed as a non-writable area, so writing is not always possible according to theory. Possibly} also suspends processing of the backup, and notifies the operator. {Refer to processing steps 103, 104, 105, 106, 111, 114 in FIG. 3} If the condition that the next-generation writing is not possible is not detected and all the files of the first generation can be invalidated, the continuation of the third generation is recorded. Then, after the writing is completed, the header of the dummy file for recording the empty area as one file is recorded. {Processing step 112 of FIG.
Reference} When the magnetic tape is rewound and positioned at the head of the MAP information, the MAP information of the present invention is updated. For example, a continuous volume label and the like are added, and the dummy file position and the like are written. {Refer to processing step 113 in FIG. 3} As described above, in order to guarantee the file of the minimum possession generation, the read-ahead is required at the time of writing. Therefore, the above-described read-ahead head is provided in the present invention.

【0029】次に、リード動作の場合、上記のようにし
て、ファイル (上記の例では、第3世代のファイル)が
分断されていると、例えば、以下にようなリード方法を
とり、高速化を行う。
Next, in the case of the read operation, if the file (the third generation file in the above example) is divided as described above, for example, the following read method is used to increase the speed. I do.

【0030】通常、該ファイルが分断されている場合、
後続のデータが磁気テープの先頭に位置し、本来前に位
置しているデータが、該磁気テープの後に書き込まれて
いるので、該分断れたファイルのデータを読み込む時に
は、磁気テープの先頭にある続きデータを、先に、図示
されていないワークファイルにため込み、該磁気テープ
の最後に位置している分断ファイルの前のファイルを読
み込んだ後に、上記ワークファイルのデータを読み込
み、該分断されているファイルを接続して、本来の分断
前の状態にする。{図3の処理ステップ 106,107,108,1
09,110参照} このように、本発明においては、先読みヘッド 1と、磁
気テープ上に、該磁気テープを循環使用することができ
るか否かを判定するためのMAP情報とを設けて、該
バックアップの処理起動時に、予め、操作者によって与
えられた上記パラメータと、上記先読みヘッド 1で先
読みしたMAP情報とによって、事前に、次の世代の
ファイルの書き込みが可能か否かを判定し、不可能であ
ると認識された場合には、操作者に通知するエラー処理
に入り、該ファイルの循環書き込みが可能で、前の世代
のファイルの次の位置に、今世代のファイルの書き込み
を始め、ボリュームの終端(EOT) を検出した時、該磁気
テープの先端に戻って、その続きの書き込みを始める前
に、該先読みヘッドで、上記MAP情報の先読みを行
い、該先端の潰してもよい世代のファイルのテープマー
ク位置を予測して、今書き込もうとしている次世代のフ
ァイルデータの書き込みが可能であるならば、該次世代
の書き込みを行い、実際に書き込みを行っている途中
で、テープマークを検出した場合には、該書き込みの失
敗ということで、操作者に通知するようにしたところに
特徴がある。
Usually, when the file is divided,
Subsequent data is located at the head of the magnetic tape, and data originally located at the front is written after the magnetic tape. Therefore, when reading the data of the divided file, it is at the head of the magnetic tape. Sequential data is first stored in a work file (not shown), the file before the divided file located at the end of the magnetic tape is read, then the data of the work file is read, and the data is divided. Connect the existing files to the original undivided state. {Processing steps 106, 107, 108, 1 in FIG. 3
As described above, in the present invention, the read-ahead head 1 and the MAP information for determining whether or not the magnetic tape can be reused are provided on the magnetic tape, and the backup When the process is started, it is determined in advance whether or not the next generation file can be written by the above parameters given by the operator in advance and the MAP information prefetched by the prefetch head 1. If it is recognized that there is an error process to notify the operator, circular writing of the file is possible, writing of the current generation file is started at the position next to the file of the previous generation, and the volume When the end (EOT) is detected, before returning to the front end of the magnetic tape and starting the subsequent writing, the pre-read head pre-reads the MAP information and crushes the front end. If it is possible to predict the tape mark position of a good generation file and write the next-generation file data that is about to be written, perform the next-generation writing, and during the actual writing. The feature is that when the tape mark is detected, the operator is notified that the writing has failed.

【0031】[0031]

【発明の効果】以上、詳細に説明したように、本発明の
磁気テープ装置によれば、磁気テープを循環して使用で
きるので、磁気テープをバックアップ等で使用する時、
使用効率が格段に良くなる。又、世代バックアップを1
つまたは複数の磁気テープで容易に実現できる。
As described above in detail, according to the magnetic tape device of the present invention, since the magnetic tape can be circulated and used, when the magnetic tape is used for backup or the like,
Use efficiency is significantly improved. Also, 1 generation backup
This can easily be achieved with one or more magnetic tapes.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理説明図FIG. 1 is an explanatory view of the principle of the present invention.

【図2】本発明の一実施例を流れ図で示した図(その
1)
FIG. 2 is a flowchart showing an embodiment of the present invention (No. 1).

【図3】本発明の一実施例を流れ図で示した図(その
2)
FIG. 3 is a diagram (No. 2) showing a flow chart of one embodiment of the present invention.

【図4】従来の磁気テープ装置の構成例を示した図FIG. 4 is a diagram showing a configuration example of a conventional magnetic tape device.

【符号の説明】[Explanation of symbols]

1 先読みヘッド ボリュームラベル MAP情報 △ テープマーク 100 〜114 処理ステップ 1 Read-ahead head Volume label MAP information △ Tape mark 100-114 Processing steps

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】磁気テープ装置に、先読みヘッド(1) を設
けると共に、磁気テープの先頭位置に、該磁気テープの
循環使用の可否の判定データを含むMAP情報 () を
記録しておき、 データの書き込み時に、上記先読みヘッド(1) で読み込
んだMAP情報 ()と、予め、入力されているパラメ
ータ情報 () とに基づいて、最低保有世代が保証でき
ることが認識されると、次世代のデータの書き込みを開
始し、ボリュームの終端(EOT)を検出し、該磁気テ
ープの先頭の位置に戻ったとき、再度先読みヘッド(1)
で読み込んだ、上記MAP情報 () に基づいて、上記
次世代の残りのデータの書き込み終了位置が、無効にし
てもよい前世代ファイルの終端位置より前にあることを
認識して、該磁気テープのファイルの先頭位置から、該
次世代のデータの残りデータの上書きによる書き込みを
行い、 上記次世代の残りのデータの上書きの途中で、上記先読
みヘッド(1) により、ファイル終端位置を検出したとき
には、該上書きが不可能と判断してエラー処理に入るよ
うに構成したことを特徴とする循環使用型の磁気テープ
装置。
1. A magnetic tape device is provided with a read-ahead head (1), and MAP information () including data for judging whether or not the magnetic tape can be reused is recorded at the head position of the magnetic tape, and the data is recorded. At the time of writing, when it is recognized that the minimum possession generation can be guaranteed based on the MAP information () read by the prefetch head (1) and the parameter information () input in advance, next-generation data Writing is started, the end (EOT) of the volume is detected, and when the head position of the magnetic tape is returned to, the read-ahead head (1) is read again.
The magnetic tape is recognized based on the MAP information () read in step 1) that the write end position of the remaining data of the next generation is before the end position of the previous generation file that may be invalidated. When the end point of the file is detected by the prefetch head (1) during the overwrite of the remaining data of the next generation, writing is performed by overwriting the remaining data of the next generation of data from the beginning position of the file A magnetic tape device of a reusable type, characterized in that it is determined that the overwriting is impossible and an error process is started.
JP04290622A 1992-10-29 1992-10-29 Recirculating magnetic tape unit Expired - Fee Related JP3089860B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04290622A JP3089860B2 (en) 1992-10-29 1992-10-29 Recirculating magnetic tape unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04290622A JP3089860B2 (en) 1992-10-29 1992-10-29 Recirculating magnetic tape unit

Publications (2)

Publication Number Publication Date
JPH06139650A true JPH06139650A (en) 1994-05-20
JP3089860B2 JP3089860B2 (en) 2000-09-18

Family

ID=17758378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04290622A Expired - Fee Related JP3089860B2 (en) 1992-10-29 1992-10-29 Recirculating magnetic tape unit

Country Status (1)

Country Link
JP (1) JP3089860B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008052849A (en) * 2006-08-25 2008-03-06 Seiko Epson Corp Disk processor, and method of controlling it
WO2011161997A1 (en) * 2010-06-25 2011-12-29 インターナショナル・ビジネス・マシーンズ・コーポレーション Tape storage device and writing method for same
JP2016009510A (en) * 2014-06-24 2016-01-18 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Techniques for reducing time required for erasing recorded data by utilizing read head and write head
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008052849A (en) * 2006-08-25 2008-03-06 Seiko Epson Corp Disk processor, and method of controlling it
US9471255B2 (en) 2010-06-25 2016-10-18 International Business Machines Corporation Tape storage device and writing method therefor
WO2011161997A1 (en) * 2010-06-25 2011-12-29 インターナショナル・ビジネス・マシーンズ・コーポレーション Tape storage device and writing method for same
GB2496773A (en) * 2010-06-25 2013-05-22 Ibm Tape storage device and writing method for same
JP5506926B2 (en) * 2010-06-25 2014-05-28 インターナショナル・ビジネス・マシーンズ・コーポレーション Tape storage device and writing method thereof
US8972654B2 (en) 2010-06-25 2015-03-03 International Business Machines Corporation Tape storage device and writing method therefor
US9218130B2 (en) 2010-06-25 2015-12-22 International Business Machines Corporation Tape storage device and writing method therefor
JP2016009510A (en) * 2014-06-24 2016-01-18 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Techniques for reducing time required for erasing recorded data by utilizing read head and write head
US9330708B2 (en) 2014-06-24 2016-05-03 International Business Machines Corporation Erasing recorded data by utilizing read head and write head
US9536558B2 (en) 2014-06-24 2017-01-03 International Business Machines Corporation Erasing recorded data by utilizing read head and write head
US9858158B2 (en) 2014-09-29 2018-01-02 International Business Machines Corporation File system for rolling back data on tape
US9886355B2 (en) 2014-09-29 2018-02-06 International Business Machines Corporation File system for rolling back data on tape
US10417100B2 (en) 2014-09-29 2019-09-17 International Business Machines Corporation File system for rolling back data on tape

Also Published As

Publication number Publication date
JP3089860B2 (en) 2000-09-18

Similar Documents

Publication Publication Date Title
JP2798327B2 (en) Method of controlling a data processing device
JP3485938B2 (en) Nonvolatile semiconductor memory device
US6778346B2 (en) Recording and reproducing apparatus and file managing method using the same
US20060047894A1 (en) Data recording apparatus, and data recording control method and program
US7143232B2 (en) Method, system, and program for maintaining a directory for data written to a storage medium
JPH06139650A (en) Circulation use type magnetic tape device
US7006416B1 (en) Record medium with mechanism of secrecy protection
US20040093360A1 (en) System and method for transferring data between recording devices
JPS60175254A (en) Dead copy preventing method for software recording medium
US7768733B2 (en) Method for erasing data from magnetic tape storage media
JPH0721070A (en) Signal processor
JPH03222158A (en) Additionally writing method for data
JP3121387B2 (en) Magnetic tape control device
JP2668938B2 (en) Data backup device for write-once optical disks
JPH09198846A (en) Magneto-optical recording device
JPH0157423B2 (en)
JPH0341324Y2 (en)
JP2684803B2 (en) Information recording / reproducing device
JPH07320473A (en) System for controlling number of use times of tape-like recording medium
JP2699804B2 (en) Program recording and playback device
JPH03147571A (en) Magneto-optical disk recorder
JPS62134737A (en) Data preventive securing system for magnetic tape file
JP2001297538A (en) Digital data storage device
JPH09251757A (en) Data recording method
JPH04329424A (en) Information processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000620

LAPS Cancellation because of no payment of annual fees