JPH04344922A - Duplex file generating system - Google Patents

Duplex file generating system

Info

Publication number
JPH04344922A
JPH04344922A JP3117785A JP11778591A JPH04344922A JP H04344922 A JPH04344922 A JP H04344922A JP 3117785 A JP3117785 A JP 3117785A JP 11778591 A JP11778591 A JP 11778591A JP H04344922 A JPH04344922 A JP H04344922A
Authority
JP
Japan
Prior art keywords
magnetic tape
file
state
magnetic
state change
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.)
Withdrawn
Application number
JP3117785A
Other languages
Japanese (ja)
Inventor
Tomoyuki Takai
高井 智之
Yuzo Ono
小野 裕三
Hidemasa Kimura
木村 英正
Fumiyasu Ishita
位下 史恭
Mitsuo Yamamoto
光男 山本
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
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems 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, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP3117785A priority Critical patent/JPH04344922A/en
Publication of JPH04344922A publication Critical patent/JPH04344922A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To always generate doubly the same file by updating the file every time the constitution of a magnetic tape is changed in a duplex file generating system to output the same data in parallel to two magnetic tapes. CONSTITUTION:A magnetic tape state change detecting means 4 detects that the change of a state occurs in one side of the magnetic tapes 3a, 3b loaded in two sets of magnetic tape devices 2a, 2b to execute simultaneous output to a controller 1. Next, a magnetic tape position control means 5 stops the magnetic tape of the other side at the ending position of a data block just before the change of the state when the state change of the magnetic tape 3a, 3b is detected. Next, a file processing means 6 executes output processing to the magnetic tape 3a, 3b, and simultaneously, it executes processing to terminate the file of the magnetic tape when the magnetic tape state change detecting means 4 detects the state change of the magnetic tape 3a, 3b, and in addition, the magnetic tape position control means 5 stops the magnetic tape in which no state change occurs at the ending position of the data block just before the state change.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は同一データを2つの磁気
テープに並列に出力する二重化ファイル作成方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a duplex file creation method for outputting the same data onto two magnetic tapes in parallel.

【0002】公衆通信網に使用される交換機などにおい
ては、通信処理中に大量に発生する課金データなどを逐
次磁気テープに出力する処理が行われる。特に、課金デ
ータは利用者の通話料金に関係する重要なものであり、
信頼性が要求されるため、発生したデータをリアルタイ
ムで逐次2つの磁気テープに並列に出力する二重出力方
式がとられている。
[0002] In exchanges used in public communication networks, a process is performed in which a large amount of billing data, etc. generated during communication processing is sequentially output onto magnetic tape. In particular, billing data is important as it relates to the user's call charges.
Because reliability is required, a dual output method is used in which generated data is sequentially output in parallel to two magnetic tapes in real time.

【0003】上記によって作成された2組の磁気テープ
ファイルは加入者ごとの料金算出等を行うオフライン処
理に使用されるが、その際、必要に応じて二重化ファイ
ルの照合なども行われる。
[0003] The two sets of magnetic tape files created in the above manner are used for off-line processing for calculating fees for each subscriber, and at that time, matching of duplicated files is also performed as necessary.

【0004】しかし、二重化ファイル作成過程において
障害その他の理由により、一方の磁気テープが記録でき
なくなったり、他の磁気テープ装置に切替えられたり、
或いは途中から二重化されたような場合、状態に変化を
生じなかった磁気テープ側で記録を継続させるため、途
中で状態に変化を生じた方の磁気テープとファイル内容
が異なるものとなっている。これに伴って、ファイル番
号も別個に付与され、記録されたデータを漏れなく、か
つ重複することなく処理するための作業やファイル管理
も煩雑となっている。
However, during the duplex file creation process, due to a failure or other reason, one of the magnetic tapes may become unable to record, or it may be switched to another magnetic tape device.
Alternatively, if duplication occurs midway through, recording continues on the magnetic tape whose state has not changed, so the file content is different from that of the magnetic tape whose state has changed midway. Along with this, file numbers are also assigned separately, and the work and file management for processing recorded data without omission or duplication have become complicated.

【0005】このため、常に同一ファイル番号をもつフ
ァイルが二重生成される二重化ファイル作成方式が求め
られている。
[0005] Therefore, there is a need for a duplex file creation method in which files with the same file number are always created twice.

【0006】[0006]

【従来の技術】図7乃至図9は従来技術の二重化ファイ
ル作成方法を示す図である。図7乃至図9はいずれも制
御装置の制御によりデータを2台の磁気テープ装置に装
着された磁気テープに出力する場合のファイル内容を示
した図であるが、制御装置及び磁気テープ装置は図示省
略されている。
2. Description of the Related Art FIGS. 7 to 9 are diagrams showing a conventional method for creating a duplex file. 7 to 9 are diagrams showing file contents when data is output to magnetic tapes attached to two magnetic tape devices under the control of a control device, but the control device and magnetic tape device are not shown. Omitted.

【0007】全図を通じ、磁気テープの番号をMT××
A,MT××B及びMT××C、ヘッダ・ラベルをHD
R、ファイル終結ラベルをEOFで示している。HDR
とEOFの間にはさまれた1かたまりのデータ群が1つ
のファイルとなる。また、データはブロック単位で書き
込みと読み出しが行われるが、図中、データブロック(
以下、単にブロックと記す)をB、ブロック番号を1,
M,M+1,N等のように数字と記号で示す。なお、H
DRを書くことをファイルオープン、EOFを書くこと
をファイルクローズと記す。
[0007] Throughout the drawings, the magnetic tape number is MTXX
A, MTXXB and MTXXC, header label to HD
R, end-of-file label is indicated by EOF. HDR
A group of data sandwiched between and EOF becomes one file. Also, data is written and read in blocks, but the data block (
(hereinafter simply referred to as block) is B, block number is 1,
It is indicated by numbers and symbols such as M, M+1, N, etc. In addition, H
Writing DR is called file open, and writing EOF is called file close.

【0008】二重出力は実際には全く同時に行われるも
のではなく、制御装置が2つの磁気テープに交互に書き
込む形で行われる。以下、すべてAを付したMTに1つ
のブロックの書き込みが行われたのちにBを付したMT
に同一ブロックが書き込まれるものとして説明する。ま
た、MT××CはMT××BまたはMT××Aの代替用
として使用される磁気テープであるとする。
[0008] Dual output is not actually done at the same time, but is done in such a way that the controller writes to the two magnetic tapes alternately. Below, one block is written to all MTs marked with A, and then to MTs marked with B.
The following explanation assumes that the same block is written to. Further, it is assumed that MTXXC is a magnetic tape used as a substitute for MTXXB or MTXXA.

【0009】従来技術の二重化ファイル作成方法におい
てはファイルのクローズは書き込みを行っている磁気テ
ープ自体がエンドテープを検出した場合などに限られ、
二重出力中の他方の磁気テープの要因には依存しないよ
うになっている。このため、二重化ファイルでも2つの
磁気テープファイルに記録されているデータ内容は異な
るものとなり、ファイル番号も別個に付与している。ま
た、この磁気テープファイルを用いて処理を行うために
、以下のような措置が必要となっている。 (1)出力処理において、データを書き込む際に各ブロ
ックに通番を付与し、ファイルをクローズしたときにそ
のファイルの先頭ブロックの通番と最終ブロックの通番
をプリントアウトして各ファイルに含まれるブロックの
範囲を保守運用担当者に通知する。 (2)保守運用担当者は出力されたファイルをオフライ
ン処理する際に、プリントアウトされたブロック範囲を
基にデータ処理対象とする磁気テープとその中のブロッ
ク範囲を割り出し、必要な指示情報を投入して処理を行
う。
[0009] In the conventional duplex file creation method, the file is closed only when the magnetic tape itself that is writing detects the end tape.
It is designed not to depend on the factors of the other magnetic tape during dual output. Therefore, even in a duplex file, the data contents recorded in the two magnetic tape files are different, and file numbers are also assigned separately. Furthermore, in order to perform processing using this magnetic tape file, the following measures are required. (1) In output processing, assign a serial number to each block when writing data, and when the file is closed, print out the serial number of the first block and the serial number of the last block of the file, and print out the serial number of the first block and the serial number of the last block of the file. Notify the maintenance and operations personnel of the scope. (2) When processing the output file offline, the maintenance and operation staff determines the magnetic tape to be processed and the block range within it based on the printed block range, and enters the necessary instruction information. and process it.

【0010】以下、図7乃至図9により従来技術の二重
化作成方法と使用方法を説明する。図7の(1) は当
初2つの磁気テープMT11AとMT11Bにデータが
二重出力されていたが、MT11Bにブロック番号M+
1(以下、B=M+1のように記す)を書き込む際に、
MT11Bを装着している磁気テープ装置または磁気テ
ープMT11B自体に障害が発生し、以後、MT11A
のみに出力を行う一重出力に移行した場合のファイル内
容を示す。
[0010] Hereinafter, a method of creating duplication and a method of using it according to the prior art will be explained with reference to FIGS. 7 to 9. In (1) of Figure 7, data was initially output twice to two magnetic tapes MT11A and MT11B, but block number M+ was output to MT11B.
When writing 1 (hereinafter written as B=M+1),
If a failure occurs in the magnetic tape device in which MT11B is installed or in the magnetic tape MT11B itself, the MT11A
This shows the file contents when switching to single output, which outputs only to

【0011】この場合、MT11BはB=M+1及びE
OFが書き込めないままファイルが終結するが、MT1
1Aはそのまま書き込みを続け、例えばB=Nまで書き
込んだときにテープの終了を示すエンドテープ(図示省
略)を検出するとファイルをクローズする。従って、M
T11AのファイルとMT11Bのファイルは記録内容
が異なる。従来技術ではこのように二重出力の個々の磁
気テープは同一内容とならないことを前提とするため、
ファイル番号は磁気テープごとに異なる番号を付与する
こととしている。このファイル番号はファイルオープン
の際に付与され、HDR内に記録される。この例ではフ
ァイル番号はMT11Aのファイルが110(以下、F
=110のようにと記す)、MT11BがF=111と
異なる番号が付与されている。
[0011] In this case, MT11B has B=M+1 and E
The file ends without being able to write to OF, but MT1
1A continues writing, and when it detects an end tape (not shown) indicating the end of the tape when it has written until, for example, B=N, it closes the file. Therefore, M
The recorded contents of the T11A file and the MT11B file are different. In the conventional technology, it is assumed that the individual magnetic tapes of dual output do not have the same content.
A different file number is assigned to each magnetic tape. This file number is assigned when the file is opened and recorded in the HDR. In this example, the file number for MT11A is 110 (hereinafter referred to as F
MT11B is given a different number from F=111.

【0012】ファイルをクローズしたとき、前記したよ
うにファイル内に記録されているブロック番号の通番を
プリントアウトするが、図7の(1) の例では当然2
つのファイルF=110及びF=111内に記録されて
いるブロック通番の範囲は異なったものとなる。
When a file is closed, the serial number of the block number recorded in the file is printed out as described above, but in the example of (1) in FIG. 7, it is of course 2.
The ranges of block serial numbers recorded in the two files F=110 and F=111 are different.

【0013】図7の(2) は何らかの理由でMT12
Aのみで一重出力を行っている状態から、MT12Bが
動作可能となり、二重出力に移行した例である。この場
合も2つのファイルF=120とF=121の記録内容
は異なることとなる。
(2) in FIG. 7 is for some reason MT12
This is an example in which MT12B becomes operational and shifts from a state in which only A is performing single output to double output. In this case as well, the recorded contents of the two files F=120 and F=121 will be different.

【0014】図8は二重出力中に1つの磁気テープMT
13Bが磁気テープ装置または磁気テープ自体の障害ま
たはエンドテープの検出など他の理由で他の磁気テープ
に切替えられた例を図示したものである。この例は一重
出力に移行せずにMT13Aの書き込みを中断し、代替
磁気テープMT13Cがオープンされた時点で二重出力
を再開している。しかし、この場合も作成される3つの
ファイル、F=130,F=131及びF=132の内
容は全部異なったものとなる。
FIG. 8 shows one magnetic tape MT during dual output.
13B illustrates an example in which the magnetic tape 13B is switched to another magnetic tape due to a failure in the magnetic tape device or the magnetic tape itself, or for other reasons such as detection of an end tape. In this example, writing of MT13A is interrupted without shifting to single output, and double output is resumed when alternative magnetic tape MT13C is opened. However, in this case as well, the contents of the three files created, F=130, F=131, and F=132, are all different.

【0015】以上のように、従来技術の二重化ファイル
作成方法では出力過程において一方の磁気テープに状態
の変化が生ずると異なった記録内容のファイルが作成さ
れ、二重化ファイルが1対1の対応関係でなくなる。こ
のため、これらのファイルを使用してオフライン処理や
照合を行う場合には、プリントアウトされたファイル内
のブロック通番から処理対象のブロックを割り出す作業
が必要となり、またファイル管理も煩雑となる。
As described above, in the duplex file creation method of the prior art, if a change in the state occurs on one magnetic tape during the output process, a file with different recorded contents is created, and the duplex files are not in a one-to-one correspondence. It disappears. Therefore, when performing offline processing or verification using these files, it is necessary to determine the block to be processed from the block serial number in the printed file, and file management becomes complicated.

【0016】このファイル使用上の煩雑さを図9により
説明する。図9は一重出力と二重出力が交互に行われ、
しかも一重出力の部分が異なる磁気テープに跨がってい
る例である。図9では3つのファイルが作成されている
が、全データが漏れなく、かつ重複しないようにするた
めに、どのファイルからどのブロック範囲を取り出して
組合せればよいか、割り出し作業が必要となる。
The complexity of using this file will be explained with reference to FIG. In Figure 9, single output and double output are performed alternately,
Furthermore, this is an example in which the single output portion spans different magnetic tapes. In FIG. 9, three files have been created, but in order to ensure that all data is not omitted and duplicated, it is necessary to determine which block ranges from which files should be extracted and combined.

【0017】図9の例ではこのブロック組合せに複数が
存在するが、例えばMT14AのB=1〜Kのブロック
、MT14B中のB=K+1〜Lのブロック及びMT1
4CのB=L+1〜Nのブロックを処理すれば全データ
が漏れなく、かつ重複することがない(図中に太線で示
す)。しかし、この組合せを得るためには、プリントア
ウト記録から確認できる各ファイルのブロック通番、B
=1〜K,B=J+1〜M,B=L+1〜Nの3つを用
いて各ブロック通番の大小関係を確認しながら割り出す
こととなり、人手による煩雑な作業が必要となる。
In the example of FIG. 9, there are a plurality of block combinations; for example, the blocks of B=1 to K in MT14A, the blocks of B=K+1 to L in MT14B, and the blocks of B=K+1 to L in MT14B.
If blocks B=L+1 to N of 4C are processed, all data will not be omitted and there will be no duplication (indicated by thick lines in the figure). However, in order to obtain this combination, the block serial number of each file that can be confirmed from the printout record, B
=1 to K, B=J+1 to M, and B=L+1 to N are used to determine the block serial number while checking the magnitude relationship of each block serial number, which requires complicated manual work.

【0018】また、図8のように二重出力の一方の磁気
テープが切替わった場合、二重化されたデータを比較す
るのに対象とするデータを開始ブロック(ブロック通番
B=1)と終了ブロック(B=M)という2つのパラメ
ータで指定する必要があるため、ファイル管理及びオフ
ライン処理ともに複雑となる。
Furthermore, when one of the magnetic tapes in the dual output is switched as shown in FIG. Since it is necessary to specify two parameters (B=M), both file management and offline processing become complicated.

【0019】[0019]

【発明が解決しようとする課題】従来技術の二重化ファ
イル作成方式では、ファイル作成過程において一方の磁
気テープに状態の変化が生ずると異なった記録内容のフ
ァイルが作成されるため、ファイルの処理やファイル管
理が煩雑になるという欠点があった。
[Problem to be Solved by the Invention] In the conventional duplex file creation method, if a change in the state of one magnetic tape occurs during the file creation process, a file with different recorded contents is created, so file processing and file The drawback was that management was complicated.

【0020】本発明は、2つの磁気テープの構成が変わ
る度にファイルを更新させることにより常に同一ファイ
ルを二重生成させることを目的とする。
An object of the present invention is to always generate duplicates of the same file by updating the file every time the configurations of two magnetic tapes change.

【0021】[0021]

【課題を解決するための手段】図1は二重化ファイルを
作成する処理を行う制御装置、2a〜2nは磁気テープ
装置、3a〜3nは磁気テープ、4乃至6は該制御装置
1内に備えられる手段であり、4は複数の磁気テープ装
置2a〜2n内で同時出力を行う2台の磁気テープ装置
2a,2bにそれぞれ装着された磁気テープ3a,3b
の一方の状態に変化が生じたことを検出する磁気テープ
状態変化検出手段、5は前記磁気テープ状態変化検出手
段4が一方の磁気テープの状態の変化を検出したときに
、他方の磁気テープ3aを状態が変化したデータブロッ
クの直前のデータブロックの終了位置に停止せしめる磁
気テープ位置制御手段、6は前記磁気テープ位置制御手
段5が磁気テープの状態に変化を生じなかった磁気テー
プ3aを状態変化直前のデータブロックの終了位置に停
止させたときに、該磁気テープ3aのファイルを終結さ
せる処理を行うファイル処理手段である。
[Means for Solving the Problems] FIG. 1 shows a control device that performs a process of creating a duplex file, 2a to 2n are magnetic tape devices, 3a to 3n are magnetic tapes, and 4 to 6 are provided in the control device 1. Means 4 denotes magnetic tapes 3a and 3b mounted on two magnetic tape devices 2a and 2b, respectively, which perform simultaneous output in a plurality of magnetic tape devices 2a to 2n.
A magnetic tape state change detecting means 5 detects a change in the state of one of the magnetic tapes, and a magnetic tape state change detecting means 5 detects when the magnetic tape state change detecting means 4 detects a change in the state of one of the magnetic tapes. Magnetic tape position control means 6 stops the magnetic tape 3a at the end position of the data block immediately before the data block whose state has changed; and 6, the magnetic tape position control means 5 stops the magnetic tape 3a whose state has not changed. This is a file processing means that terminates the file on the magnetic tape 3a when the magnetic tape 3a is stopped at the end position of the immediately preceding data block.

【0022】[0022]

【作用】図1において、複数の磁気テープ装置2a〜2
nのうちの2台の磁気テープ装置2a,2bにそれぞれ
装着した磁気テープ(MT)3a,3bを用いて二重化
ファイルを作成する場合、一方の磁気テープ、例えば磁
気テープ3bに障害が発生し記録が不可能となるなどの
状態変化が生ずると、磁気テープ状態変化検出手段4が
これを検出して磁気テープ位置制御手段5及びファイル
処理手段6に通知する。
[Operation] In FIG. 1, a plurality of magnetic tape devices 2a to 2
When creating a duplex file using magnetic tapes (MT) 3a and 3b respectively attached to two magnetic tape devices 2a and 2b of n, a failure occurs in one of the magnetic tapes, for example, magnetic tape 3b, and recording is interrupted. When a change in state occurs, such as becoming impossible, the magnetic tape state change detection means 4 detects this and notifies the magnetic tape position control means 5 and the file processing means 6.

【0023】磁気テープ位置制御手段5は磁気テープ状
態変化検出手段4より状態変化を検出した通知を受ける
と、状態が変化しなかった方の磁気テープ、即ち、磁気
テープ3aを状態が変化したデータブロックの直前のデ
ータブロックの終了位置に停止せしめる制御を行う。こ
れによって、磁気テープ3aは二重出力が正常に行われ
た最後のデータブロックの末尾の位置に停止する。
When the magnetic tape position control means 5 receives a notification from the magnetic tape state change detection means 4 that a state change has been detected, the magnetic tape position control means 5 transfers the data whose state has changed to the magnetic tape whose state has not changed, that is, the magnetic tape 3a. Control is performed to stop the block at the end position of the data block immediately before the block. As a result, the magnetic tape 3a stops at the end position of the last data block in which double output was normally performed.

【0024】ファイル処理手段6は磁気テープ状態変化
検出手段4より状態変化を検出した通知を受けて二重出
力を停止したのち、磁気テープ位置制御手段5より状態
が変化しなかった方の磁気テープ3aの位置制御が終了
した通知を受け、該磁気テープ3aのファイルを終結さ
せる処理を行う。
The file processing means 6 receives a notification from the magnetic tape state change detection means 4 that a state change has been detected and stops double output, and then the magnetic tape position control means 5 selects the magnetic tape whose state has not changed. Upon receiving the notification that the position control of the magnetic tape 3a has been completed, processing is performed to terminate the file on the magnetic tape 3a.

【0025】同様に、一重出力から二重出力に移行する
場合も、一重出力されていた磁気テープのファイルは二
重出力開始時点で終結される。即ち、図1では二重出力
を行う2つの磁気テープの一方の状態が変化すると、他
方の磁気テープのファイルも終結させるため、二つのフ
ァイルは同時にファイルが更新され、常に同一ファイル
が二重生成されることとなる。
Similarly, when shifting from single output to double output, the magnetic tape file that was single output is terminated at the start of double output. In other words, in Figure 1, when the status of one of the two magnetic tapes that performs double output changes, the file on the other magnetic tape is also terminated, so the two files are updated at the same time, and the same file is always generated twice. It will be done.

【0026】[0026]

【実施例】図2乃至図4は本発明の実施例の二重化ファ
イル作成方法、図5及び図6は本発明の実施例のフロー
図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIGS. 2 to 4 are flowcharts of a duplex file creation method according to an embodiment of the present invention, and FIGS. 5 and 6 are flowcharts of the embodiment of the present invention.

【0027】図2乃至図6は図1の構成を前提として二
重化ファイル作成方法及びフローの一実施例を図示した
ものである。全図を通じ、同一対象部分には同一記号を
用いる。また、図2乃至図4中の記号及び記法の意味と
二重化ファイルの書き込み順序は図7乃至図9に示した
従来技術の場合と同一であるので説明を省略し、以下、
図1を併用して説明する。
FIGS. 2 to 6 illustrate an embodiment of a duplex file creation method and flow based on the configuration shown in FIG. 1. The same symbols are used for the same parts throughout the figures. Furthermore, since the meanings of the symbols and notations in FIGS. 2 to 4 and the writing order of the duplexed files are the same as in the case of the prior art shown in FIGS. 7 to 9, the explanation will be omitted, and the following will be
This will be explained using FIG. 1 as well.

【0028】図2の(1) は当初2つの磁気テープM
T01A,MT01Bにデータを二重出力していたが、
MT01BにB=M+1のブロックを書き込む際に、M
T01Bを装着している磁気テープ装置または磁気テー
プ自体に障害が発生したため、以後二重出力を放棄し、
MT01Aのみによる一重出力に移行する場合のファイ
ル構成例を示している。
(1) in FIG. 2 initially shows two magnetic tapes M.
Data was being output twice to T01A and MT01B,
When writing a block of B=M+1 to MT01B, M
Due to a failure in the magnetic tape device or the magnetic tape itself that installed T01B, we will abandon dual output from now on.
An example of the file structure when shifting to single output using only MT01A is shown.

【0029】従来技術におけると同様、MT01AがB
=M+1のブロックを書き込んだのちにMT01Bに同
一ブロックの書き込みが行われるが、この場合はMT0
1BはB=M+1及びEOFが書き込めないままファイ
ルを終結し、MT01AはB=M+1のブロックの書き
込みが終了した位置に停止した状態となっている。
As in the prior art, MT01A is
After writing the block =M+1, the same block is written to MT01B, but in this case, MT0
1B ends the file without being able to write B=M+1 and EOF, and MT01A is stopped at the position where writing of block B=M+1 is completed.

【0030】MT01Bが書き込みが行えない状態にな
ると、図1の磁気テープ状態変化検出手段4が状態の変
化を検出し、磁気テープ位置制御手段5及びファイル処
理手段6に通知する。
When MT01B is in a state where writing cannot be performed, the magnetic tape state change detection means 4 of FIG. 1 detects the change in state and notifies the magnetic tape position control means 5 and the file processing means 6.

【0031】磁気テープ位置制御手段5は磁気テープ状
態変化検出手段4よりMT01Bの状態変化を検出した
通知を受けると、状態が変化しなかった方の磁気テープ
MT01Aを状態が変化したブロックの直前のブロック
B=Mの終了位置まで巻き戻して停止させる。即ち、磁
気テープ3aは二重出力が正常に行われた最後のブロッ
クB=Mの末尾の位置に停止する。
When the magnetic tape position control means 5 receives a notification from the magnetic tape state change detection means 4 that a change in the state of MT01B has been detected, the magnetic tape position control means 5 moves the magnetic tape MT01A whose state has not changed to the block immediately before the block whose state has changed. Rewind to the end position of block B=M and stop. That is, the magnetic tape 3a stops at the end position of the last block B=M where double output was normally performed.

【0032】ファイル処理手段6は磁気テープ状態変化
検出手段4より状態変化を検出した通知を受けたときに
二重出力を停止し、磁気テープ位置制御手段5よりMT
01Aの位置制御が終了した通知を受けるとMT01A
にEOFを書き込んでファイルを終結させる。この方法
では、MT01AとMT01Bに書き込まれるブロック
の範囲は全く同一となるため、二重出力の開始時、即ち
、HDR書き込みの際に二つの磁気テープMT01Aと
MT01Bには同一ファイル番号のF=010を付与す
る。
When the file processing means 6 receives a notification that a state change has been detected from the magnetic tape state change detection means 4, it stops double output, and the file processing means 6 stops the double output from the magnetic tape position control means 5.
Upon receiving notification that position control of 01A has ended, MT01A
Write EOF to Terminate the file. In this method, the range of blocks written to MT01A and MT01B is exactly the same, so at the start of double output, that is, at the time of HDR writing, the two magnetic tapes MT01A and MT01B have the same file number F = 01. Grant.

【0033】MT01AはF=010のファイルをクロ
ーズしたのち改めてファイルをオープンし、HDRを書
き込み、ブロックB=M+1より一重出力で書き込みを
始める。このとき、ファイル番号は更新され、例えばF
=011となる。
MT01A closes the file F=010, opens the file again, writes HDR, and starts writing from block B=M+1 with single output. At this time, the file number is updated, for example F
=011.

【0034】即ち、図2(1) ではファイル番号が同
一であれば書き込まれているブロックも同一であるため
、ファイルをクローズしたときにはブロック通番をプリ
ントアウトせずにファイル番号のみを出力する。
That is, in FIG. 2(1), if the file numbers are the same, the blocks written are also the same, so when the file is closed, only the file number is output without printing out the block serial number.

【0035】次に図2の(2) について説明する。図
2の(2) は、MT02Aのみで一重出力していると
きにMT02Bへの出力が可能となり二重化に移行する
例で、MT02AがB=Mを書き込み中、または書き込
み終了したときにMT02Bが出力用磁気テープとして
登録されたときのファイルの状態を示している。
Next, (2) in FIG. 2 will be explained. (2) in Figure 2 is an example in which output to MT02B becomes possible and transitions to duplexing when only MT02A is performing single output, and MT02B outputs while MT02A is writing B=M or when writing has finished. This shows the status of the file when it is registered as a magnetic tape.

【0036】MT02Bが出力用磁気テープとして登録
されると図1の磁気テープ状態変化検出手段4が状態の
変化を検出するので、MT02AはB=Mの書き込みを
終了したときにファイル処理手段6によってクローズ(
EOF書き込み)され、次のB=M+1を書き込む前に
2つの磁気テープMT02A及びMT02BにHDRが
書き込まれる。ここで磁気テープMT02Aはファイル
がF=020からF=021に更新され、新たに二重出
力の対象となったMT02Bにも同じファイル番号F=
021が付与され、新しいファイルがオープンする。
When MT02B is registered as an output magnetic tape, the magnetic tape state change detection means 4 shown in FIG. Close (
EOF writing), and HDR is written to the two magnetic tapes MT02A and MT02B before writing the next B=M+1. Here, the file of the magnetic tape MT02A has been updated from F=020 to F=021, and the same file number F=
021 is assigned and a new file is opened.

【0037】図3は二重出力中の一方の磁気テープMT
03Bが待機中の磁気テープMT03Cに切替えられた
例である。この場合はMT03Bが障害で停止、または
エンドテープ検出でファイルクローズされたときにMT
03Aもファイルクローズされ、待機中のMT03Cが
ファイルオープンされたときにMT03Aも改めてファ
イルオープンされる。この場合、MT03Aの最初のフ
ァイルとMT03Bのファイルが同一ファイル番号F=
030となり、MT03Aの後のファイルとMT03C
のファイルが同一ファイル番号F=031となる。
FIG. 3 shows one magnetic tape MT during double output.
In this example, magnetic tape MT03B is switched to standby magnetic tape MT03C. In this case, when MT03B stops due to a failure or the file is closed due to end tape detection, MT
The file 03A is also closed, and when the file of the waiting MT03C is opened, the file of MT03A is also opened anew. In this case, the first file of MT03A and the file of MT03B have the same file number F=
030, the file after MT03A and MT03C
The files have the same file number F=031.

【0038】図4は一重出力と二重出力が交互に行われ
、しかも一重出力の部分が異なる磁気テープに跨がって
いる例である。この場合も前記同様、一方の磁気テープ
の状態に変化があると他方の磁気テープをファイルクロ
ーズするため、図示のように同一ブロックが書き込まれ
ているファイルは同一ファイル番号となっている。
FIG. 4 shows an example in which single output and double output are performed alternately, and the single output portion spans different magnetic tapes. In this case as well, if there is a change in the state of one magnetic tape, the other magnetic tape is closed, so as shown in the figure, files in which the same block is written have the same file number.

【0039】従って、ファイルを処理するときはファイ
ル番号を通番順に処理すれば漏れがなく、また、同一番
号のファイルがある場合に一方のファイルのみを使用す
れば重複がない。図4の例では太線で示したファイルの
みを処理すれば、全データが漏れなく、かつ重複するこ
とがない。また二重化ファイルの照合を行う場合にはフ
ァイル番号のみを指定して同一ファイル番号のファイル
を照合すればよい。このため、ファイルの処理及び管理
が極めて簡単となる。
Therefore, when processing files, if the file numbers are processed in numerical order, there will be no omissions, and if there are files with the same number, if only one of the files is used, there will be no duplication. In the example of FIG. 4, if only the files indicated by bold lines are processed, all data will not be omitted and there will be no duplication. In addition, when verifying duplicated files, it is sufficient to specify only the file number and verify files with the same file number. This makes processing and management of files extremely simple.

【0040】次に図5及び図6により本発明のフローを
説明する。なお、図5及び図6は図1の構成を前提とし
、S1〜S35は各ステップの記号である。図5の(1
) は初期設定のフローを示す。図中、Biはブロック
通番を示し、i=1〜nである。初期設定においてはS
1においてi=1、即ち、第1ブロックB=1を設定す
る。
Next, the flow of the present invention will be explained with reference to FIGS. 5 and 6. Note that FIGS. 5 and 6 are based on the configuration of FIG. 1, and S1 to S35 are symbols for each step. (1 in Figure 5)
) indicates the initial setting flow. In the figure, Bi indicates a block serial number, and i=1 to n. In the initial setting, S
1, i=1, that is, the first block B=1 is set.

【0041】図5の(2) は図2(1) において説
明した二重出力状態から一重出力状態に移行するフロー
を示しており、以下、図2(1) の記号を用いて説明
する。図1のファイル処理手段6は図2(1) の第1
磁気テープMT01A(以下、MTAと略記する)及び
第2磁気テープMT01B(以下、MTBと略記する)
に対してブロック単位でデータの書き込みを実行してお
り、S11において第iブロック(B=i)の二重出力
による書き込みが終了したものとする。次に、S12に
おいてiの値に1を加え、i+1ブロックの書き込みを
開始し、先ずMTAに第i+1ブロック(Bi+1 と
記す)の書き込みを行う(S13) 。書き込みが正常
でない場合はMTAを巻き戻し(S14,S17) 、
この時点でMTBのクローズ処理を行ったのちファイル
を更新し、次のファイルをオープンする(S18,S1
9) 。これによってMTBによる一重出力が開始され
る。
FIG. 5(2) shows a flow of transition from the dual output state explained in FIG. 2(1) to the single output state, and will be explained below using the symbols in FIG. 2(1). The file processing means 6 in Fig. 1 is the first file processing means 6 in Fig. 2 (1).
Magnetic tape MT01A (hereinafter abbreviated as MTA) and second magnetic tape MT01B (hereinafter abbreviated as MTB)
It is assumed that data is being written in block units to the block, and writing of the i-th block (B=i) by double output is completed in S11. Next, in S12, 1 is added to the value of i to start writing the i+1 block, and first, the i+1-th block (denoted as Bi+1) is written to the MTA (S13). If the writing is not normal, rewind the MTA (S14, S17),
At this point, the MTB is closed, the file is updated, and the next file is opened (S18, S1
9). As a result, single output by the MTB is started.

【0042】S14においてMTAが正常であれば、M
TBに前記Bi+1 を書き込み(S15)、これが正
常に書き込まれれば次のブロックの書き込みに進み (
S16→S12) 、上記を繰り返す。
[0042] If the MTA is normal in S14, the MTA
Write Bi+1 to TB (S15), and if this is written normally, proceed to write the next block (
S16→S12), repeat the above.

【0043】MTBに正常に書き込みができなかった場
合はMTBを巻き戻し、MTAを予め定めたブロック数
 (例えば、数ブロック) だけ巻き戻すバックスキッ
プ処理を行う(S16→S20〜S21) 。次いで書
き込みができなかったi+1ブロックの直前のブロック
、即ち、第iブロックのサーチを行う(S22) 。こ
のサーチは巻き戻したMTAを1ブロックづつ読み出し
、ブロック番号が一致するか否かを比較によって行うが
、Bi ブロックが検出されるとそのブロックの末尾部
でMTAを停止させる。
[0043] If writing to the MTB cannot be performed normally, a backskip process is performed in which the MTB is rewound and the MTA is rewound by a predetermined number of blocks (for example, several blocks) (S16→S20-S21). Next, a search is performed for the block immediately before the i+1 block that could not be written, that is, the i-th block (S22). This search is performed by reading out the rewound MTA one block at a time and comparing whether or not the block numbers match. However, when a Bi block is detected, the MTA is stopped at the end of that block.

【0044】ここで、図1のファイル処理手段6がMT
AにEOFを書き込み、ファイルをクローズさせ(S2
3) 、続いて新しいファイルをオープンさせる(S2
4) 。この新しいファイルにより一重出力の書き込み
が開始される。
Here, the file processing means 6 of FIG.
Write EOF to A and close the file (S2
3) Next, open a new file (S2
4). This new file begins writing single output.

【0045】図6は図2(2) において説明した一重
出力状態から二重出力状態に移行するフローを示してお
り、以下、図2(2) の記号を用いて説明する。図6
は図2(2) のMT02A(以下、MTAと略記する
)により一重出力状態で書き込みが行われている状態で
、MT02B(以下、MTBと略記する)が登録された
場合のフローを示している。
FIG. 6 shows a flow of transition from the single output state explained in FIG. 2 (2) to the double output state, and will be explained below using the symbols in FIG. 2 (2). Figure 6
Figure 2 (2) shows the flow when MT02B (hereinafter abbreviated as MTB) is registered while MT02A (hereinafter abbreviated as MTA) is writing in a single output state. .

【0046】MT02Bが登録されると、図1のファイ
ル処理手段6はMTAの書き込みが実行中であるかを否
かを確認し(S31) 、例えばB=Mの書き込みが終
了したときにMTAをクローズさせる(S32,S33
) 。次いでMTAについて改めてファイルオープンを
行い、同時にMTBもオープンさせ(S34,S35)
 、次のブロック、例えばB=M+1より二重出力が開
始される。
[0046] When MT02B is registered, the file processing means 6 in FIG. Close (S32, S33
). Next, open the file for MTA again, and open MTB at the same time (S34, S35)
, double output starts from the next block, for example B=M+1.

【0047】以上、図2乃至図6により本発明の実施例
を説明したが、図2乃至図6はあくまで本発明の一実施
例を示したものに過ぎず、本発明が図2乃至図6に限定
されないことは勿論である。また、図2乃至図6は図1
の構成を前提としているが、図1は原理図を示したもの
であり、図1の各手段は併合または分離しても本発明の
効果は変わらない。例えば、図1においては磁気テープ
の状態変化の検出を磁気テープ状態変化検出手段4によ
り行っているが、磁気テープの状態変化は磁気テープに
書き込み等を行うファイル処理手段6において書き込み
不良発生などによって検出することも可能であるため、
両手段を併合しても本発明の効果は変わらない。また、
図5においては書き込みが正常に行われなかった磁気テ
ープを巻き戻しているが、巻き戻さないまま二重出力か
ら除いても本発明の効果が変わらないことは明らかであ
る。更に、図6における新規登録の磁気テープMTBの
ファイルオープンの時期S35を磁気テープMTAのフ
ァイルオープンの時期S34と入替えたり、或いはMT
B登録直後とすることも可能であるが、何れも本発明の
効果を変えるものではない。
Although the embodiment of the present invention has been described above with reference to FIGS. 2 to 6, FIGS. 2 to 6 merely show one embodiment of the present invention. Of course, it is not limited to. In addition, FIGS. 2 to 6 are as shown in FIG.
However, FIG. 1 shows a principle diagram, and the effects of the present invention do not change even if the means in FIG. 1 are combined or separated. For example, in FIG. 1, a change in the state of the magnetic tape is detected by the magnetic tape state change detection means 4, but a change in the state of the magnetic tape is caused by a writing failure occurring in the file processing means 6 that writes on the magnetic tape. Since it is also possible to detect
Even if both means are combined, the effects of the present invention do not change. Also,
In FIG. 5, the magnetic tape on which writing was not performed normally is rewound, but it is clear that the effects of the present invention will not change even if the magnetic tape is removed from the dual output without being rewound. Furthermore, the file open timing S35 of the newly registered magnetic tape MTB in FIG. 6 may be replaced with the file open timing S34 of the magnetic tape MTA, or the MT
Although it is also possible to do it immediately after B registration, the effect of the present invention is not changed in either case.

【0048】[0048]

【発明の効果】以上説明したように、本発明によれば、
二重化ファイルを作成する場合に2つの磁気テープの構
成が変わる度にファイルを更新させて常に同一ファイル
を二重生成するため、かかる二重化ファイルにおけるフ
ァイル処理及びファイル管理の簡略化と効率化に資する
ところが大きい。
[Effects of the Invention] As explained above, according to the present invention,
When creating a duplex file, the file is updated every time the configuration of the two magnetic tapes changes and the same file is always generated twice, which contributes to the simplification and efficiency of file processing and file management in such a duplex file. big.

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

【図1】  本発明の原理説明図[Figure 1] Diagram explaining the principle of the present invention

【図2】  本発明の実施例の二重化ファイル作成方法
(その1)
[Figure 2] Duplicated file creation method according to the embodiment of the present invention (Part 1)

【図3】  本発明の実施例の二重化ファイル作成方法
(その2)
[Figure 3] Duplicated file creation method according to the embodiment of the present invention (Part 2)

【図4】  本発明の実施例の二重化ファイル作成方法
(その3)
[Figure 4] Duplicated file creation method according to the embodiment of the present invention (part 3)

【図5】  本発明の実施例フロー図(その1)[Figure 5] Example flow diagram of the present invention (Part 1)

【図6
】  本発明の実施例フロー図(その2)
[Figure 6
] Flow diagram of an embodiment of the present invention (Part 2)

【図7】  
従来技術の二重化ファイル作成方法(その1)
[Figure 7]
Conventional technology duplex file creation method (Part 1)

【図8】  従来技術の二重化ファイル作成方法(その
2)
[Figure 8] Conventional technique for creating duplicated files (Part 2)

【図9】  従来技術の二重化ファイル作成方法(その
3)
[Figure 9] Conventional technology duplex file creation method (part 3)

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

1  制御装置 2a〜2n  磁気テープ装置 3a〜3n  磁気テープ 4  磁気テープ状態変化検出手段 5  磁気テープ位置制御手段 6  ファイル処理手段 1 Control device 2a-2n Magnetic tape device 3a-3n magnetic tape 4 Magnetic tape state change detection means 5 Magnetic tape position control means 6 File processing means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  2つの磁気テープに同一データを並列
に出力して2組の同一ファイルを作成する二重化ファイ
ル作成方式において、制御装置(1) 内に、同時出力
を行う2台の磁気テープ装置(2a,2b) にそれぞ
れ装着された磁気テープ(3a,3b) の一方の磁気
テープ(3b)の状態に変化が生じたことを検出する磁
気テープ状態変化検出手段(4) と、前記磁気テープ
状態変化検出手段(4) が前記磁気テープ(3b)の
状態変化を検出したときに、他方の磁気テープ(3a)
を状態が変化したデータブロックの直前のデータブロッ
クの終了位置に停止せしめる磁気テープ位置制御手段(
5) と、磁気テープ(3a,3b) に対する出力処
理を行うとともに、前記磁気テープ状態変化検出手段(
4) が前記磁気テープ(3b)の状態変化を検出し、
かつ前記磁気テープ位置制御手段(5) が磁気テープ
の状態に変化を生じなかった磁気テープ(3a)を状態
変化直前のデータブロックの終了位置に停止させたとき
に、該磁気テープ(3a)のファイルを終結させる処理
を行うファイル処理手段(6) を備え、同時出力する
磁気テープの構成が変わる度にファイルを更新させ、常
に同一ファイルを二重生成させることを特徴とする二重
化ファイル作成方式。
[Claim 1] In a duplex file creation method that outputs the same data to two magnetic tapes in parallel to create two sets of the same file, a control device (1) includes two magnetic tape devices that perform simultaneous output. magnetic tape state change detection means (4) for detecting a change in the state of one of the magnetic tapes (3b) of the magnetic tapes (3a, 3b) respectively mounted on the magnetic tapes (2a, 2b); When the state change detection means (4) detects a state change of the magnetic tape (3b), the other magnetic tape (3a)
magnetic tape position control means (
5) and output processing to the magnetic tape (3a, 3b), and the magnetic tape state change detection means (
4) detects a change in the state of the magnetic tape (3b);
and when the magnetic tape position control means (5) stops the magnetic tape (3a) whose state has not changed at the end position of the data block immediately before the state change, A duplex file creation method characterized by comprising a file processing means (6) for terminating a file, updating the file every time the configuration of simultaneously output magnetic tapes changes, and always generating duplicates of the same file.
JP3117785A 1991-05-23 1991-05-23 Duplex file generating system Withdrawn JPH04344922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3117785A JPH04344922A (en) 1991-05-23 1991-05-23 Duplex file generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3117785A JPH04344922A (en) 1991-05-23 1991-05-23 Duplex file generating system

Publications (1)

Publication Number Publication Date
JPH04344922A true JPH04344922A (en) 1992-12-01

Family

ID=14720256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3117785A Withdrawn JPH04344922A (en) 1991-05-23 1991-05-23 Duplex file generating system

Country Status (1)

Country Link
JP (1) JPH04344922A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191365B2 (en) 2002-05-20 2007-03-13 Nec Corporation Information recorder and its control method
JP2009230239A (en) * 2008-03-19 2009-10-08 Hitachi Ltd Data migration method for tape device and tape management system
JP2010170295A (en) * 2009-01-22 2010-08-05 Fujitsu Ltd Storage device and data transfer method for storage device
US8605560B2 (en) 2012-03-19 2013-12-10 Fujitsu Limited Storage system and storage control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7191365B2 (en) 2002-05-20 2007-03-13 Nec Corporation Information recorder and its control method
JP2009230239A (en) * 2008-03-19 2009-10-08 Hitachi Ltd Data migration method for tape device and tape management system
JP2010170295A (en) * 2009-01-22 2010-08-05 Fujitsu Ltd Storage device and data transfer method for storage device
US8605560B2 (en) 2012-03-19 2013-12-10 Fujitsu Limited Storage system and storage control method

Similar Documents

Publication Publication Date Title
US5539914A (en) Method and system for preprocessing data block headers during access of data in a data storage system
JPH04344922A (en) Duplex file generating system
CA1258525A (en) Reproduction of magnetic recordings
US3713123A (en) High density data recording and error tolerant data reproducing system
JPS59201297A (en) Information inspecting system
JP3090182B2 (en) Alternative sector registration method
JPH1031608A (en) Process data backup method
JPH02103778A (en) Data recording and reproducing system
JP3356666B2 (en) Magnetic information writing device and magnetic information recording device provided with the device
SU960789A1 (en) Device for checking recording in magnetic disk memory units
JPS58119244A (en) Information transmitter
JP3372192B2 (en) Bus interface test method and recording medium storing the processing program
JP2778343B2 (en) Monitoring and control equipment
JPS59125149A (en) Detecting system of invalid holding of trunk
Tsiang et al. Automatic trouble diagnosis of complex logic circuits
JPH05276570A (en) Data transmitter
JPH04310606A (en) Magnetic tape device
JPH0723107A (en) Electronic exchange
JPH09218751A (en) Copy system to recording medium
JPS63317950A (en) Data recording processing system by magnetic tape
Labrum et al. The design of a high packing density PCM magnetic tape replay system
JPS61107574A (en) Synchronous circuit
JPH0520880A (en) Semiconductor memory
JP2000209296A (en) Device for copying setting state
JPS58164088A (en) System for confirming copy of bubble memory

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980806