JPH03256145A - Duplexed file system - Google Patents

Duplexed file system

Info

Publication number
JPH03256145A
JPH03256145A JP2055753A JP5575390A JPH03256145A JP H03256145 A JPH03256145 A JP H03256145A JP 2055753 A JP2055753 A JP 2055753A JP 5575390 A JP5575390 A JP 5575390A JP H03256145 A JPH03256145 A JP H03256145A
Authority
JP
Japan
Prior art keywords
data
file
files
area
processing
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
JP2055753A
Other languages
Japanese (ja)
Inventor
Yasuo 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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2055753A priority Critical patent/JPH03256145A/en
Publication of JPH03256145A publication Critical patent/JPH03256145A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To make it possible to input updating data in copying and to attain the complete coincidence of the contents of two files by temporarily storing the contents of the updating data into a buffer, and after the completion of copying processing, writing the updating data into both the files. CONSTITUTION:It is supposed that the updating data of an already copied area are inputted to a CPU 5a during the data copying processing from a file Fa to a file Fb. In this case, the updating data are temporarily stored in the buffer Ba, and after the completion of the copying processing, the updating data stored in the buffer Ba are written in the prescribed areas of the files Fa, Fb. When the updating data of uncopied area are inputted, the input data are directly writted in a prescribed area of the file Fa. Thereby, the contents of data stored in both the files Fa, Fb can be made to always coincide with each other in any case of inputting updating data to the copied area or the uncopied area.

Description

【発明の詳細な説明】 (a)産業上の利用分野 この発明は、データ処理装置に用いられ、同一内容のデ
ータが記憶される2つのファイルを備えた2重化システ
ムに関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a duplex system used in a data processing device and provided with two files in which data of the same content is stored.

(bl従来の技術 データ処理装置においてハードディスク等の外部記憶装
置が接続されている場合、その外部記憶装置に形成され
ているファイルは、物理的な原因または誤操作により破
壊される危険に常に曝されている。そこで、従来のデー
タ処理装置では、同一内容の2つのファイルをそれぞれ
異なる記憶装置に形成しておき、一方のファイルが破壊
された場合にはその破壊原因を取り除いた後に、破壊さ
れていない正常なファイルを修復後の記憶装置に複写す
るようにした2重化ファイルシステムを備えたものがあ
る。このようにファイルを2重化することにより、保管
すべきデータのセキュリティの向上を図っている。
(bl) Conventional technology When an external storage device such as a hard disk is connected to a data processing device, files formed on the external storage device are always exposed to the risk of being destroyed due to physical causes or erroneous operations. Therefore, in conventional data processing devices, two files with the same content are created in different storage devices, and if one of the files is destroyed, the cause of the destruction is removed, and then the undamaged file is restored. Some devices are equipped with a redundant file system that copies normal files to the storage device after recovery.By duplicating files in this way, the security of the data to be stored is improved. There is.

(C1発明が解決しようとする課題 しかしながら、従来の2重化ファイルシステムでは、一
方の記憶装置から他方の記憶装置へのファイルの複写処
理中に、データ端末などを介して複写元ファイルへの新
たな更新データが入力された場合、その更新データが既
に複写処理を終了しているエリアに該当するデータであ
る場合には、複写元のファイルにのみその更新データが
書き換えられ、複写先のファイルにその更新データは書
き換えられない構成となっていた。このため、複写処理
完了後に両ファイルの一部に差異が生し、正確なデータ
処理作業が実行できなくなる問題があった。また、この
ようなファイルの不一致を未然に防止するためには、複
写処理中における更新データの入力を受は付けないよう
にする外なく、データ処理装置の運用に支障を来す問題
があったこの発明の目的は、データ複写処理中において
既に複写処理が終了しているエリアに対する更新データ
が入力された場合には、この更新データの内容をへソフ
ァに一時保持し、複写処理が完全に完了したのちにバッ
ファに保持されている更新データを両方のファイルに書
き込むようにし、複写処理中における更新データの入力
を可能にするとともに、両ファイルの記憶データの不一
致を未然に防止することができる2重化ファイルシステ
ムを提供することにある。
(C1 Problem to be Solved by the Invention) However, in the conventional duplex file system, during the process of copying a file from one storage device to another, a new file is transferred to the copy source file via a data terminal, etc. If updated data is input that corresponds to an area for which copy processing has already been completed, the updated data will be rewritten only in the copy source file, and will not be added to the copy destination file. The update data was configured so that it could not be rewritten.Therefore, after the copying process was completed, there would be a difference between some of the two files, making it impossible to perform accurate data processing. In order to prevent file mismatches, there is no choice but to not accept input of update data during copy processing, which poses a problem that hinders the operation of the data processing device.The purpose of this invention is to During the data copying process, if update data is input for an area for which the copying process has already been completed, the contents of this updated data are temporarily held in the sofa, and then stored in the buffer after the copying process is completely completed. A redundant file system is provided that writes the retained update data to both files, enables input of the update data during the copying process, and prevents discrepancies in the data stored in both files. It is about providing.

(d1課題を解決するための手段 この発明の2重化ファイルシステムは、同一内容のデー
タを記憶する2つのファイルを備えた2重化ファイルシ
ステムにおいて、 一方の複写元ファイルから他方の複写先ファイルへの複
写処理中に既に複写処理が終了したエリアに対する更新
データを保持するデータ保持手段と、ファイル複写処理
完了後に前記データ保持手段が保持している更新データ
を両方のファイルに書き込む更新データ書込手段と、を
設けたことを特徴とする。
(Means for Solving Problem d1) The duplex file system of the present invention is a duplex file system that includes two files storing data of the same content, from one copy source file to the other copy destination file. data holding means for holding updated data for areas for which copy processing has already been completed during copy processing to the file; and update data writing for writing the updated data held by the data holding means into both files after file copy processing is completed. It is characterized by providing means.

(81作用 この発明においては、ファイルの複写処理中に既に複写
処理が終了したエリアに対する更新データが入力される
と、データ保持手段により更新データが一時保持され、
複写処理が完了したのちに保持されている更新データが
2つのファイルの両方に書き込まれる。従って、複写処
理中に受は付けた更新データが一方のファイルのみに書
き込まれるといったことがなく、2つのファイルの内容
は完全に一致する。
(81 Effect) In this invention, when update data for an area for which copying processing has already been completed is input during file copying processing, the updated data is temporarily held by the data holding means,
After the copy process is completed, the updated data held is written to both files. Therefore, the update data accepted during the copying process is not written to only one file, and the contents of the two files completely match.

(f)実施例 第1図は、この発明の実施例である2重化ファイルシス
テムの構成を示す図である。
(f) Embodiment FIG. 1 is a diagram showing the configuration of a duplex file system that is an embodiment of the present invention.

データ処理の実行に用いられるターミナルlは伝送ライ
ン2を介して2つのファイル処理ユニット3.4に接続
されており、ター≧ナル1は伝送ライン2を介してファ
イル処理ユニット3.4にアクセスする。ファイルユニ
ット3.4は同一の構成を備えており、ファイルFa、
Fb、更新データを一時保持するバッファBa、Bbお
よびこれらへのデータの入出力を管理するCPU5 a
The terminal l used for performing data processing is connected via transmission line 2 to two file processing units 3.4, terminals ≧1 accessing file processing units 3.4 via transmission line 2. . File unit 3.4 has the same configuration, files Fa,
Fb, buffers Ba and Bb that temporarily hold updated data, and a CPU 5 a that manages input and output of data to these buffers.
.

5bによって構成されている。CPU5a、5bはター
ごナル1から入力される命令に従ってファイルFa、F
bに対するデータの人出力を実行する。また、ターミナ
ルlからファイル複写処理命令が人力されると、CPU
5 aと5bは一方のファイルから他方のファイルにデ
ータを転送し、ファイル複写処理を実行する。このファ
イル複写処理命令は開始アドレス、データレングスおよ
びダイレクト転写処理のコマンドからなる。
5b. CPUs 5a and 5b process files Fa and F according to instructions input from terminal 1.
Execute human output of data for b. Also, when a file copy processing command is manually issued from terminal l, the CPU
5a and 5b transfer data from one file to the other file and execute file copy processing. This file copy processing command consists of a start address, data length, and direct transfer processing command.

第2図は、上記2重化ファイルシステムを構成するファ
イル処理ユニットの処理手順を示すフローチャートであ
る。
FIG. 2 is a flowchart showing the processing procedure of the file processing unit that constitutes the duplex file system.

一方の複写元ファイル処理ユニット3から他方の複写先
ファイル処理ユニット4にファイルを複写するファイル
複写処理作業中において、複写元ファイル処理ユニット
3のCPU5aは、ターミナル1において更新データが
人力されたか否かの判別を行い(nl)、更新データが
ない場合には複写処理が完了するまでファイルFaの所
定量のデータを複写先ファイル処理ユニット4のファイ
ルFbに転送する(n 1→n 5.  n 6→n 
1 )。
During the file copy process of copying a file from one copy source file processing unit 3 to the other copy destination file processing unit 4, the CPU 5a of the copy source file processing unit 3 determines whether update data has been manually input at the terminal 1. (nl), and if there is no updated data, transfer a predetermined amount of data in the file Fa to the file Fb of the copy destination file processing unit 4 until the copying process is completed (n 1 → n 5. n 6 →n
1).

更新データがある場合には既に複写処理を終了したエリ
アであるか否かの判別を行い(n2)、未だ複写処理が
終了していないエリアについての更新データであればフ
ァイルFaの所定のエリアに更新データを書き込む(n
2→n3)。更新データが既に複写処理を終了したエリ
アに対するものであればバッファBaに保持する(n2
→n4)。以上のようにCPU5aはファイル複写処理
中にファイルFaからファイルFbにデータを転送する
とともに、この間に更新データが人力されるとそのデー
タに該当するエリアに応じてファイルFaに格納するか
またはへソファBaに保持するこののち複写処理が完了
するとバッファB a 内における更新データの有無を
判別しくn7)、バッファBa内に更新データが保持さ
れている場合にはその更新データをファイルFaおよび
Fbの両方の所定のエリアに書き込む(n8.n9)。
If there is updated data, it is determined whether the area has already been copied (n2), and if the updated data is for an area for which the copying process has not yet been completed, it is stored in a predetermined area of file Fa. Write update data (n
2→n3). If the updated data is for an area for which copy processing has already been completed, it is held in buffer Ba (n2
→n4). As described above, the CPU 5a transfers data from the file Fa to the file Fb during the file copy process, and when update data is manually input during this time, it is stored in the file Fa or transferred to the file depending on the area corresponding to the data. After the copy process is completed, it is determined whether there is updated data in the buffer Ba (n7), and if the updated data is held in the buffer Ba, the updated data is stored in both files Fa and Fb. (n8, n9).

以上の処理においてnl、n2.n4がバッファBa、
Bbとともにこの発明のデータ保持手段に相当し、n7
〜n9が同しく更新データ書込手段に相当する。
In the above processing, nl, n2. n4 is buffer Ba,
It corresponds to the data holding means of this invention together with Bb, and n7
.about.n9 also corresponds to update data writing means.

以上のようにしてCPU5 aは、第3図に示すように
ファイルFaからファイルFbに対するデータ複写処理
中において、既に複写処理を終了したエリアfal(f
bl)に対する更新データD、が入力された場合にはバ
ッファBaにこれを一時保持し、複写処理完了後にバッ
ファBaに保持していた更新データD1をファイルFa
およびFbの所定のエリアに書き込む。一方、未だ複写
処理を終了していないエリアfa2(Fb2)に対する
更新データD2が入力された場合には、そのままファイ
ルFaの所定のエリアに書き込む。これによって既に複
写処理を終了したエリアおよび未だ複写処理が終了して
いないエリアの何れに対して更新データが人力された場
合にも、2つのファイルに記憶されているデータの内容
を常に一致させることができる。
As described above, during the data copying process from file Fa to file Fb, as shown in FIG.
bl) is input, it is temporarily held in the buffer Ba, and after the copying process is completed, the update data D1 held in the buffer Ba is transferred to the file Fa.
and write in a predetermined area of Fb. On the other hand, when update data D2 for area fa2 (Fb2) for which the copying process has not yet been completed is input, it is written as is in a predetermined area of file Fa. This allows the contents of the data stored in the two files to always match even when update data is manually input to an area where copy processing has already been completed or an area where copy processing has not yet been completed. I can do it.

ナオ、ファイル処理ユニット4のファイルFbからファ
イル処理ユニット3のファイルFaにファイルを複写す
る複写処理中においてはCPU5bが更新データを書き
込むべきエリアに応じてバッファBbまたはファイルF
bの何れかに書き込む。また、本実施例ではターミナル
の外部に伝送ラインを介してファイル処理ユニ・ノドが
接続されている場合について説明したが、同一装置内に
2重化ファイルを備えたシステムにおいても同様にこの
発明を実施することができる。この場合には単一のファ
イルを備えれば足りる。また、ファイルのそれぞれにC
PUを備える必要はなく、装置(ターくナル)の制御部
において2つのファイルに対するデータの人出力を制御
してもよい。
During the copy process of copying a file from file Fb of file processing unit 4 to file Fa of file processing unit 3, CPU 5b selects buffer Bb or file F depending on the area to which updated data is to be written.
Write in either b. Furthermore, in this embodiment, a case has been described in which a file processing unit is connected to the outside of the terminal via a transmission line, but the present invention can be applied to a system having duplicated files in the same device. It can be implemented. In this case, a single file is sufficient. Also, each of the files has a C
There is no need to provide a PU, and the human output of data to the two files may be controlled by the control unit of the device (terminal).

(g)発明の効果 この発明によれば、ファイル複写処理中に既に複写処理
が終了したエリアに対して更新データが人力された場合
には、更新データがデータ保持手段に一時保持され、複
写処理が完了した後に両方のファイルの所定のエリアに
更新データが書き込まれる。このため、複写処理中に更
新データの入力を受は付でも2つのファイルの一部に不
一致を生しることがなく、データ処理作業を常に正確に
実行することができる。
(g) Effect of the Invention According to this invention, when update data is manually input to an area where copy processing has already been completed during file copy processing, the updated data is temporarily held in the data holding means, and the copy processing After the update data is completed, the updated data is written to a predetermined area of both files. Therefore, even if update data is input during copy processing, there will be no discrepancy between parts of the two files, and data processing operations can always be performed accurately.

制御部の処理手順を示すフローチャート、第3図は同2
重化ファイルシステムのファイルa耳処理中における更
新データの記憶状態を示す図である3、4−ファイル処
理ユニット、 Ba、Bb−バッファ Fa、Fb−ファイル、 DI、D2−更新データ。
A flowchart showing the processing procedure of the control unit, Figure 3 is the same as 2.
3, 4 - File processing unit; Ba, Bb - buffer Fa, Fb - file; DI, D2 - update data.

Claims (1)

【特許請求の範囲】[Claims] (1)同一内容のデータを記憶する2つのファイルを備
えた2重化ファイルシステムにおいて、一方の複写元フ
ァイルから他方の複写先ファイルへの複写処理中に既に
複写処理が終了したエリアに対する更新データを保持す
るデータ保持手段と、複写処理完了後に前記データ保持
手段が保持している更新データを両方のファイルに書き
込む更新データ書込手段と、を設けたことを特徴とする
2重化ファイルシステム。
(1) In a duplex file system with two files that store data of the same content, update data for an area where copy processing has already been completed during copy processing from one copy source file to the other copy destination file What is claimed is: 1. A duplex file system comprising: a data holding means for holding data; and an update data writing means for writing update data held by said data holding means into both files after copy processing is completed.
JP2055753A 1990-03-06 1990-03-06 Duplexed file system Pending JPH03256145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2055753A JPH03256145A (en) 1990-03-06 1990-03-06 Duplexed file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2055753A JPH03256145A (en) 1990-03-06 1990-03-06 Duplexed file system

Publications (1)

Publication Number Publication Date
JPH03256145A true JPH03256145A (en) 1991-11-14

Family

ID=13007605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2055753A Pending JPH03256145A (en) 1990-03-06 1990-03-06 Duplexed file system

Country Status (1)

Country Link
JP (1) JPH03256145A (en)

Similar Documents

Publication Publication Date Title
JP4422016B2 (en) Method and apparatus for creating a virtual data copy
JP4170056B2 (en) Backup / restore management method between replicated volumes and storage control device used in this method
JP2004258944A (en) Storage device and method for managing it
NO317208B1 (en) Computer backup system that can work with open files
JPH03252825A (en) Data updating/restoring processing system
JPH03256145A (en) Duplexed file system
JP2939414B2 (en) Database Equivalent Processor for Dual Computer
JP2000339104A (en) Disk sub-system and data copying method
US9424261B2 (en) Techniques to take clean database file snapshot in an online database
JPH04124743A (en) Data duplicating system
JPH10240597A (en) Hard disk drive management system
JP2666426B2 (en) Duplex auxiliary storage device
JPH07319637A (en) Controller and control method for disk device
JP2604604B2 (en) Stack control device
JPH01128122A (en) Control system for volume dynamic copying
JPS6160155A (en) Memory subsystem
JPH02143343A (en) Robustizing processing system for storing ordinal file
JPH02110725A (en) System for recovering file on unrewritable medium
JPS58175066A (en) Processing system of multiplex volume
JPH0589060A (en) Data base input output processing system
JPH10143412A (en) Data base managing system
JPH01103753A (en) External storing and copying device
JPS6336375A (en) File managing method in data filling device
JPH05224831A (en) Fault information reference system
JPH0273420A (en) Semiconductor disk device