JPS63133305A - Error recovery controlling system for magnetic tape file - Google Patents

Error recovery controlling system for magnetic tape file

Info

Publication number
JPS63133305A
JPS63133305A JP28025386A JP28025386A JPS63133305A JP S63133305 A JPS63133305 A JP S63133305A JP 28025386 A JP28025386 A JP 28025386A JP 28025386 A JP28025386 A JP 28025386A JP S63133305 A JPS63133305 A JP S63133305A
Authority
JP
Japan
Prior art keywords
data block
magnetic tape
storage area
contents
tape file
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
JP28025386A
Other languages
Japanese (ja)
Inventor
Akihiro Suzuki
鈴木 明廣
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 JP28025386A priority Critical patent/JPS63133305A/en
Publication of JPS63133305A publication Critical patent/JPS63133305A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To exactly execute an error recovery control by repositioning a magnetic head, when an error is generated in the course of write, and thereafter, comparing the contents of a data block immediately before, with a data block which has been written normally in the end, in a saving storage area. CONSTITUTION:When a data block is written normally to a magnetic tape file, the contents of a prescribed position of the data block which has been written normally are saved in a saving storage area of a storage means 2 in a main storage device 5. Subsequently, when an error is generated in the course of write, a magnetic head is repositioned, and thereafter, the contents of a prescribed position in the data block immediately before the present head position, and the contents of the same prescribed position in the data block which has been saved in the means 2 and has been written normally in the end are compared by a comparing means 3. Only when a result of comparison shows coincidence, retrying by a write means 4 is executed. In such a way, an error recovery control can be executed exactly.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、電子計算機システムで使用されている磁気テ
ープファイルの書込みエラー発生時におけるエラー回復
の制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control system for error recovery when a write error occurs in a magnetic tape file used in a computer system.

〔従来の技術〕[Conventional technology]

−mに、磁気テープファイルへのデータ書込み時には、
一つのデータブロックを書込む毎にその書込みが正常に
完了したか否かが判断され、もし書込みエラーが発生す
れば、オペレーティング・システムによりそのデータブ
ロックの書込み直前の磁気テープファイルの位置に磁気
ヘッドがくるように再位置付けを行ない、エラー回復再
試行を行なう。
-m, when writing data to a magnetic tape file,
Each time a data block is written, it is determined whether the writing was completed normally or not. If a writing error occurs, the operating system moves the magnetic head to the position in the magnetic tape file immediately before writing that data block. Reposition the target so that it appears and retry error recovery.

従来、磁気テープファイル書込み中に発生するエラーの
回復に必要な磁気テープファイルの上記位置付けは、デ
ータブロックを1ブロック逆方向へ読み飛ばすことで行
なっていた。
Conventionally, the above-mentioned positioning of a magnetic tape file, which is necessary for recovering from an error that occurs during writing to a magnetic tape file, has been performed by skipping one data block in the backward direction.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、上述した従来の方式では、読み飛ばされるブロ
ックの内容を読み出せないため、位置付けの正当性を確
認できなかった。
However, in the conventional method described above, the contents of the skipped block cannot be read, so the validity of the positioning cannot be confirmed.

従って、エラーを生じたデータブロック部分の磁気テー
プの磁化状態が不良である等の理由で、磁気テープ装置
によってエラーを生じたデータブロックがデータブロッ
クと確認されずに更に直前の正常なデータブロックを読
み飛ばしたり、データブロックの中央に位置付けられる
ことがあり、このため再試行の書込み成功後であっても
、正常に書かれていたデータブロックが喪失したり、不
正なデータブロックが残留したりする欠点があった。
Therefore, if the magnetic tape in the part of the data block where the error occurred is in a bad state of magnetization, the data block where the error occurred is not recognized as a data block by the magnetic tape device, and the immediately preceding normal data block is It may be skipped or positioned in the center of a data block, resulting in a successfully written data block being lost or an invalid data block remaining even after a successful retry write. There were drawbacks.

本発明は従来の上記事情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する上記欠点
を解消することを可能とした磁気テープファイルの新規
なエラー回復制御方式を提供することにある。
The present invention has been made in view of the above-mentioned conventional circumstances, and
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a new error recovery control system for magnetic tape files which makes it possible to overcome the above-mentioned drawbacks inherent in the prior art.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的を達成するために、本発明に係る磁気テープフ
ァイルのエラー回復制御方式は、オペレーティング・シ
ステムにより書込みエラー時の磁気テープファイルに対
する磁気ヘッドの再位置付けを行なう電子計算機システ
ムにおける磁気テープファイルのエラー回復制御方式に
おいて、 退避記憶領域と、 磁気テープファイルへのデータブロックの書込みが正常
に行なわれたときに該正常書込みされたデータブロック
内の所定位置にある内容を前記退避記憶領域へ退避する
退避手段と、 前記オペレーティング・システムによる再位置付は後に
起動され、現在のヘッド位置の直前のデータブロック内
の所定位置の内容と、前記退避記憶領域内に退避されて
いる内容とを比較する比較手段と、 該比較手段の比較結果が一致を表しているときのみ書込
みの再試行を行なう書込手段とから構成されている。
In order to achieve the above object, a magnetic tape file error recovery control method according to the present invention provides a magnetic tape file error recovery control method in a computer system in which an operating system repositions a magnetic head with respect to a magnetic tape file at the time of a write error. The recovery control method includes: an evacuation storage area; and an evacuation that, when a data block is successfully written to a magnetic tape file, saves the contents at a predetermined position in the normally written data block to the evacuation storage area. means for comparing the contents of a predetermined position in the data block immediately preceding the current head position with the contents saved in the save storage area, the repositioning by the operating system being activated later; and a writing means for retrying writing only when the comparison result of the comparing means indicates a match.

〔作用〕[Effect]

磁気テープファイルへデータブロックが正常に書き込ま
れると、退避手段によりその正常に書き込まれたデータ
ブロックの所定の位置の内容が退避記憶領域へ退避され
る。
When a data block is normally written to the magnetic tape file, the contents of a predetermined position of the normally written data block are saved to the save storage area by the save means.

正常書込みされたデータブロックの次のデータブロック
の書込み中にエラーが発生すると、従来と同様にオペレ
ーティング・システムにより磁気ヘッドはエラーを生じ
たデータブロックを1ブロツク逆方向へ読み飛ばすこと
で再位置付けされる。
If an error occurs while writing the next data block after a successfully written data block, the operating system repositions the magnetic head by skipping the data block in which the error occurred one block in the opposite direction, as in the past. Ru.

この再位置付けされた後、比較手段によって、現在のヘ
ッド位置の直前のデータブロック内の所定位置の内容と
、退避記憶領域内に退避されていた最後に正常書込みさ
れたデータブロック内の同一所定位置の内容とが比較さ
れる。
After this repositioning, the comparison means compares the content at a predetermined position in the data block immediately before the current head position with the same predetermined position in the last successfully written data block that was saved in the save storage area. The contents of

従って、オペレーティング・システムによる再位置付け
が正しければ、比較手段では比較一致が検出され、もし
その再位置付は時に更に直前の正常なデータブロックま
で読み飛ばされていたり、データブロックの中央に位置
付けられていた場合等不正な再位置付けが行なわれてい
ると、比較手段では一致を検出できない、このため、書
込手段は、比較手段が一致を表しているときにのみ書込
みの再試行を行なう。
Therefore, if the repositioning by the operating system is correct, the comparison means will detect a comparison match; If an incorrect repositioning has been performed, such as when a match has been made, the comparing means will not be able to detect a match, and therefore the writing means will retry writing only when the comparing means indicates a match.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

第1図を参照すると、本発明の実施例は、磁気テープ装
置ごとに割り当てられた退避記憶領域を含む記憶手段2
と、磁気テープファイルへのデータブロックの書込みが
正常に終了したときにのみこの正常終了したデータブロ
ックの所定位置にある所定長例えば1バイトの内容を記
憶手段2内のその磁気テープ装置に割当てられた退避記
憶領域へ退避する退避手段1と、オペレーティング・シ
ステムによって起動され、現在の磁気ヘッド位置の直前
のデータブロック内の所定位置にあるバイトの内容と記
憶手段2内のその磁気テープ装置に割り当てられた退避
記憶領域内に退避されているバイトの内容とを比較する
比較手段3と、比較手段3の比較結果が一致を表してい
るときにのみ書込みの再試行を行なう書込手段4とから
構成されている。なお、第1図では記憶手段2は主記憶
装置5の一部を割り当てている。
Referring to FIG. 1, the embodiment of the present invention has storage means 2 including a backup storage area allocated for each magnetic tape device.
Then, only when writing of the data block to the magnetic tape file is successfully completed, the content of a predetermined length, for example, 1 byte, at a predetermined position of the normally completed data block is allocated to the magnetic tape device in the storage means 2. A saving means 1 is activated by the operating system to save the content of the byte at a predetermined position in the data block immediately before the current magnetic head position and is allocated to the magnetic tape device in the storage means 2. a comparison means 3 that compares the contents of the bytes saved in the saved storage area, and a writing means 4 that re-attempts writing only when the comparison result of the comparison means 3 indicates a match. It is configured. In FIG. 1, a part of the main storage device 5 is allocated to the storage means 2.

第2図は第1図に示した退避手段1の処理例を示す流れ
図である。第2図を参照すると、退避手段1は、装置状
態バイト入力処理11.装置状態バイト判定処理12.
データブロック内所定位置バイト続出処理13.および
退避記憶$I域書込処理14を行なうように構成されて
いる。
FIG. 2 is a flow chart showing a processing example of the saving means 1 shown in FIG. Referring to FIG. 2, the saving means 1 performs device status byte input processing 11. Device status byte determination processing 12.
Successive byte succession processing at a predetermined position within a data block 13. and save storage $I area write processing 14.

第3図は第1図に示した比較手段3の処理例を示す流れ
図である。第3図を参照すると比較手段3は逆方向読飛
処理31.順方向続出処理32.データブロック内所定
位置バイト続出処理33.退避記憶領域内バイト続出処
理34.バイト比較処理35゜および比較結果出力処理
36を行なうように構成される。
FIG. 3 is a flowchart showing a processing example of the comparing means 3 shown in FIG. Referring to FIG. 3, the comparison means 3 performs the backward reading skip processing 31. Forward successive processing 32. Successive byte succession processing at predetermined positions within data block 33. Continuation of bytes in the save storage area 34. It is configured to perform byte comparison processing 35° and comparison result output processing 36.

第4図は、第1図に示した書込手段4の処理例を示す流
れ図である。第4図を参照すると、書込手段4は、比較
結果入力処理41.比較結果判定処理42.および書込
再試行処理43を行なうように構成される。
FIG. 4 is a flowchart showing an example of processing by the writing means 4 shown in FIG. Referring to FIG. 4, the writing means 4 performs a comparison result input process 41. Comparison result determination process 42. and write retry processing 43.

第5図は、第1図に示す記憶手段2の構成例を示し、主
記憶装置5上のある領域に設定された記憶手段2は、磁
気テープ装置#1〜#Nの番号により索引される記憶頭
載E1〜ENを各々退避記憶領域として持つよう構成さ
れている。
FIG. 5 shows an example of the configuration of the storage means 2 shown in FIG. It is configured to have each of the storage head E1 to EN as a save storage area.

次に、本実施例の動作を図面を参照して詳細に説明する
Next, the operation of this embodiment will be explained in detail with reference to the drawings.

まず退避手段1は、装置状態バイト入力処理11により
書込み命令を終了した磁気テープ装置#jから装置状態
バイトを続出し、装置状態バイト判定処理12により、
この装置状態バイトのビット構成が今回のデータブロッ
クDI−+が正常に書き込まれたことを示すものか否か
を判定し、正常に書き込まれたことを示すピント構成で
あるときは、データブロック内所定位置バイト続出処理
13により主記憶上の書込み対象となったデータブロッ
クDI−1内の所定位置にあるバイ)Bt−+を続出し
、退避記憶領域書込処理!4により記憶手段2内の該磁
気テープ装置#jの装置番号で索引される退避記憶領域
へ書込む、また、異常に書き込まれたことを示すビット
構成であるときは、処理13.14はスキップする。
First, the saving means 1 sequentially outputs the device status byte from the magnetic tape device #j for which the write command has been completed through the device status byte input process 11, and then through the device status byte determination process 12.
It is determined whether or not the bit configuration of this device status byte indicates that the current data block DI-+ has been written normally. Byte Bt-+ at a predetermined position in the data block DI-1 that is the write target on the main memory is successively written by the predetermined position byte successive processing 13, and the save storage area write processing is performed! 4, the data is written to the evacuation storage area indexed by the device number of the magnetic tape device #j in the storage means 2, and if the bit configuration indicates that the data was written abnormally, steps 13 and 14 are skipped. do.

次に、磁気テープファイルへの次のデータブロックD!
で書込みエラーが発生したとすると、従来と同様にオペ
レーティング・システムが該磁気テープファイルの位置
付は処理を行なった後、オペレーティング・システムに
よって比較手段3が起動される。比較手段3は起動され
ると、第3図に示すように逆方向読飛処理31により直
前の1データブロツクを逆方向へ読飛ばす、第6図を参
照すると、エラーを生じたデータブロックDムが同図の
61の位置にあり、直前の正常書込み完了したデータブ
ロックDI−1が同図の63の位置にある場合、磁気ヘ
ッドは同図の64の位置にオペレーティング・システム
により再位置付けされ、上記逆方向読飛処理31の処理
の結果、同図の62の位置にくる。
Then the next data block D! to the magnetic tape file!
If a write error occurs, the operating system processes the location of the magnetic tape file, as in the conventional case, and then the operating system activates the comparing means 3. When the comparing means 3 is activated, it skips the previous one data block in the backward direction by the backward skipping process 31 as shown in FIG. 3. Referring to FIG. is at position 61 in the same figure, and if the data block DI-1, which has just been successfully written, is at position 63 in the same figure, the magnetic head is repositioned by the operating system to position 64 in the figure, As a result of the above-mentioned backward reading skip processing 31, the position 62 in the figure is reached.

次に、比較手段3は順方向続出処理32により、順方向
に1データブロツクを読出して、データブロック内所定
位置バイト続出処理33により、順方向続出処理32に
よって読出されたデータブロックD、−1内の所定位置
にあるバイトSt−+を続出し、記憶領域内バイト続出
処理34により、記憶手段2内の該磁気テープ装置番号
で索引される退避記憶領域のバイトBr−+を続出し、
バイト比較処理35によって上記データブロック内所定
位置バイト続出処理33で読出されたバイトB1−1 
と記憶領域内バイト読出処理34で読出されたバイトB
+−+ とを比較し、比較結果出力処理36により比較
結果を出力する。
Next, the comparing means 3 reads one data block in the forward direction by a forward successive process 32, and performs a byte successive process 33 at a predetermined position within the data block to read out the data block D, -1 by the forward successive process 32. Bytes St-+ at a predetermined position in the storage means 2 are successively stored, and bytes Br-+ in the save storage area indexed by the magnetic tape device number in the storage means 2 are successively stored by a byte succession process 34 in the storage area.
Byte B1-1 read out by the byte comparison process 35 at a predetermined position within the data block byte succession process 33
and byte B read in the storage area byte read processing 34.
+−+ and outputs the comparison result by comparison result output processing 36.

次に書込手段4は、比較結果入力処理41により上記比
較手段3の比較結果出力処理の出力を入力し゛、比較結
果が一致を表すものか不一致を表すものかを判定し、一
致を表すものであるときは、書込再試行処理43により
書込み命令の再試行を行なう。また、不一致を表すもの
であるときは、書込再試行処理43を行なわず、例えば
プログラム異常終了メツセージ等をコンソールに出力す
る。
Next, the writing means 4 inputs the output of the comparison result output processing of the comparison means 3 through a comparison result input processing 41, determines whether the comparison result represents a match or a mismatch, and determines whether the comparison result represents a match or a match. If so, the write command is retried by write retry processing 43. If it indicates a mismatch, the write retry process 43 is not performed and, for example, a program abnormal termination message is output to the console.

第6図を参照すると、位置63にあるデータブロックD
、−1は、位置62に位置決めされた磁気ヘッドの順方
向の相対移動によつて前記比較手段3の順方向続出処理
32で読出され、この読出しが完了すると、磁気ヘッド
は同図の64の位置にくる。そして、このとき、データ
ブロックDI−1内の所定位置のパイ)B+−+ と退
避記憶領域内に退避されているバイトBト、の内容が一
致していれば、データブロックDi−+ は正常に書き
込まれた最後のデータブロックであるので、磁気ヘッド
の同図64に示す位置付けは正しいことを示している。
Referring to FIG. 6, data block D at location 63
. come into position. At this time, if the contents of the byte B+-+ at the predetermined position in the data block DI-1 match the contents of the byte B+-+ saved in the save storage area, the data block Di-+ is normal. This indicates that the position of the magnetic head shown in FIG. 64 is correct.

なお、以上の実施例は複数の磁気テープ装置の磁気テー
プファイルのエラー回復制御について本発明を適用した
ものであるが、単一の磁気テープ装置を具備する電子計
算機システムに対しても勿論適用可能であり、その場合
には退避記憶領域は一つで良い。
Although the above embodiments apply the present invention to error recovery control of magnetic tape files in a plurality of magnetic tape devices, it is of course applicable to a computer system equipped with a single magnetic tape device. In that case, only one evacuation storage area is required.

(発明の効果〕 以上説明したように、本発明によれば、磁気テープファ
イルの書込みエラーの回復再試行のための位置付けの正
当性が、位置付けられたヘッドの直前に書かれているデ
ータブロックが正常に書き込まれた最後のデータブロッ
クであることをそのデータに予め順序番号等の位置情報
を含ませることなく、特定の位置のある大きさの内容を
参照して確認ができるので、任意の形式の磁気テープフ
ァイルについてデータブロックの喪失や不正データブロ
ックの残留を防止することができる効果が得られる。
(Effects of the Invention) As described above, according to the present invention, the validity of positioning for retrying recovery from a write error in a magnetic tape file is determined by the data block written immediately before the positioned head. You can confirm that it is the last data block written normally by referring to the contents of a certain size at a specific position without including positional information such as a sequence number in advance in the data, so it can be written in any format. This has the effect of preventing the loss of data blocks and the remaining of invalid data blocks in magnetic tape files.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のブロック図、第2図は退避手
段1の処理例の流れ図、第3図は比較手段3の処理例の
流れ図、第4図は書込手段4の処理例の流れ図、第5図
は記憶手段2の構成例を示す図及び、第6図は本発明の
実施例の動作説明図である。 図において、1・・・退避手段、2・・・記憶手段、3
・・・比較手段、4・・・書込手段、5・・・主記憶装
置。
1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart of an example of processing by saving means 1, FIG. 3 is a flowchart of an example of processing by comparison means 3, and FIG. 4 is an example of processing by writing means 4. 5 is a diagram showing an example of the configuration of the storage means 2, and FIG. 6 is an explanatory diagram of the operation of the embodiment of the present invention. In the figure, 1... saving means, 2... storage means, 3
. . . comparison means, 4 . . writing means, 5 . . . main storage device.

Claims (1)

【特許請求の範囲】 オペレーティング・システムにより書込みエラー時の磁
気テープファイルに対する磁気ヘッドの再位置付けを行
なう電子計算機システムにおける磁気テープファイルの
エラー回復制御方式において、 退避記憶領域と、 磁気テープファイルへのデータブロックの書込みが正常
に行なわれたときに該正常書込みされたデータブロック
内の所定位置にある内容を前記退避記憶領域へ退避する
退避手段と、 前記オペレーティング・システムによる再位置付け後に
起動され、現在のヘッド位置の直前のデータブロック内
の所定位置の内容と、前記退避記憶領域内に退避されて
いる内容とを比較する比較手段と、 該比較手段の比較結果が一致を表しているときのみ書込
みの再試行を行なう書込手段とから構成されていること
を特徴とする磁気テープファイルのエラー回復制御方式
[Scope of Claim] An error recovery control method for a magnetic tape file in a computer system in which an operating system repositions a magnetic head with respect to a magnetic tape file in the event of a write error, comprising: an evacuation storage area and data to the magnetic tape file. a saving means for saving the contents at a predetermined position in the normally written data block to the saving storage area when writing of the block is normally performed; Comparing means for comparing the content at a predetermined position in the data block immediately before the head position with the content saved in the save storage area, and writing only when the comparison result of the comparing means indicates a match. An error recovery control method for a magnetic tape file, comprising a writing means for performing a retry.
JP28025386A 1986-11-22 1986-11-22 Error recovery controlling system for magnetic tape file Pending JPS63133305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28025386A JPS63133305A (en) 1986-11-22 1986-11-22 Error recovery controlling system for magnetic tape file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28025386A JPS63133305A (en) 1986-11-22 1986-11-22 Error recovery controlling system for magnetic tape file

Publications (1)

Publication Number Publication Date
JPS63133305A true JPS63133305A (en) 1988-06-06

Family

ID=17622424

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28025386A Pending JPS63133305A (en) 1986-11-22 1986-11-22 Error recovery controlling system for magnetic tape file

Country Status (1)

Country Link
JP (1) JPS63133305A (en)

Similar Documents

Publication Publication Date Title
JPS63133305A (en) Error recovery controlling system for magnetic tape file
JPS6390074A (en) Disk device control system
JPH02254677A (en) Magnetic tape controller
JP2562473B2 (en) Data writing control method for magnetic tape subsystem
JPS5944694B2 (en) Magnetic tape control method
JPH0440794B2 (en)
JPS58114152A (en) Back up device for magnetic disc
JPS61296461A (en) Message guarantee system between on-line jobs
JPS5940309A (en) Memory controller
JP2745618B2 (en) Head repositioning method
JPH04128917A (en) Read retrying circuit
JPS62192826A (en) File writing system
JPS6050672A (en) Read control system of rotary memory
JPS6254347A (en) Processing system for fault of file
JPH02166674A (en) System for checking block sequence number of magnetic tape
JP2743705B2 (en) Retry control method for disk controller
JPS61175739A (en) File restoration system
JPH04290115A (en) Retrying method for disk controller
JPH02188835A (en) Checking system for file write data
JPS5896326A (en) Input and output control method
JPH01122073A (en) Control system for magnetic disk device
JPS61114315A (en) Tape input system for numerical controller
JPH0235546A (en) Control system for writing to auxiliary storage device
JPH05341921A (en) Disk array device
JPS58178457A (en) File control system