JPH0528057A - File backup circuit - Google Patents

File backup circuit

Info

Publication number
JPH0528057A
JPH0528057A JP3202519A JP20251991A JPH0528057A JP H0528057 A JPH0528057 A JP H0528057A JP 3202519 A JP3202519 A JP 3202519A JP 20251991 A JP20251991 A JP 20251991A JP H0528057 A JPH0528057 A JP H0528057A
Authority
JP
Japan
Prior art keywords
data
external storage
shared memory
file
main body
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
JP3202519A
Other languages
Japanese (ja)
Other versions
JP3074817B2 (en
Inventor
Toyoki Ashihara
豊紀 芦原
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 JP03202519A priority Critical patent/JP3074817B2/en
Publication of JPH0528057A publication Critical patent/JPH0528057A/en
Application granted granted Critical
Publication of JP3074817B2 publication Critical patent/JP3074817B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To make a file dual without degrading the processing capability of a CPU on the main body side. CONSTITUTION:An external storage write part 11 of a main body CPU 1 writes data transferred from an application program in a shared memory area 12a virtually mapped in a shared memory 22 of a control board 2 for the purpose of preserving this data in an external storage 3. Data written in the shared memory area 12a is written in the shared memory 22. The external storage write part 11 uses a DMA control part 13 to write data of the shared memory area 12a in the external storage 3 and sends an interrupt report to a copy control part 21 of the control board 2. When receiving the interrupt report, the copy control part 21 starts a copy program to write data of the shared memory 22 in an external storage 4.

Description

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

【0001】[0001]

【技術分野】本発明はファイルバックアップ回路に関
し、特に外部記憶媒体にファイルを保存して管理する方
式におけるファイルの二重化に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file backup circuit, and more particularly to file duplication in a method of storing and managing files in an external storage medium.

【0002】[0002]

【従来技術】従来、この種のファイル管理方式において
は、図3に示すように、ファイルの二重化を行うため
に、本体CPU(中央処理装置)5によって外部の磁気
ディスク6にそのファイルのデータを書込んだ後に(図
3ステップ51)、同じデータを別の磁気ディスク7に
書込んでいる(図3ステップ52)。
2. Description of the Related Art Conventionally, in this type of file management system, as shown in FIG. 3, in order to duplicate a file, the data of the file is stored in an external magnetic disk 6 by a main CPU (central processing unit) 5. After writing (step 51 in FIG. 3), the same data is written in another magnetic disk 7 (step 52 in FIG. 3).

【0003】また、本体CPU5によって磁気ディスク
6にファイルのデータを書込んだ後に、本体CPU5の
空き時間を使ってバックグランド処理でそのファイルの
データを別のファイルにコピーすることによってファイ
ルの二重化を行っている。
Further, after the data of the file is written to the magnetic disk 6 by the main body CPU 5, the data of the file is copied to another file by the background processing by using the free time of the main body CPU 5 to duplicate the file. Is going.

【0004】このような従来のファイル管理方式では、
本体CPU5によって磁気ディスク6にファイルのデー
タを書込んだ後に、同じデータを別の磁気ディスク7に
書込む場合、磁気ディスク6,7へのデータの書込みが
本体CPU5を使って連続して行われるため、ファイル
への書込みが頻繁になるとシステム全体のパフォーマン
スが劣化するという欠点がある。
In such a conventional file management system,
When writing the same data to another magnetic disk 7 after writing the file data to the magnetic disk 6 by the main body CPU 5, the data writing to the magnetic disks 6 and 7 is continuously performed using the main body CPU 5. Therefore, there is a drawback that the performance of the entire system is deteriorated when writing to the file becomes frequent.

【0005】また、本体CPU5によって磁気ディスク
6にファイルのデータを書込んだ後に、本体CPU5の
空き時間を使ってバックグランド処理でそのファイルの
データを別のファイルにコピーする場合、本体CPU5
の負荷が高く、バックアップファイルにまだ書込みを行
っていないときにコピー元のファイルが破壊されるとそ
の間のファイルの情報が消えてしまい、信頼性に問題が
出てしまうという欠点がある。
Further, when the data of the file is written to the magnetic disk 6 by the main body CPU 5 and then the data of the file is copied to another file by the background processing using the free time of the main body CPU 5,
However, if the copy source file is destroyed while the backup file has not been written yet, the information of the file in the meantime will be erased, resulting in a problem of reliability.

【0006】[0006]

【発明の目的】本発明は上記のような従来のものの欠点
を除去すべくなされたもので、本体側のCPUの処理能
力を低下させることなく、ファイルの二重化を行うこと
ができるファイルバックアップ回路の提供を目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to eliminate the above-mentioned drawbacks of the conventional ones, and provides a file backup circuit capable of duplicating a file without lowering the processing capacity of the CPU of the main body. For the purpose of provision.

【0007】[0007]

【発明の構成】本発明によるファイルバックアップ回路
は、中央処理装置内のバッファ内に格納されたデータを
第1および第2の外部記憶装置に書込むことによってフ
ァイルの二重化を行うファイルバックアップ回路であっ
て、前記バッファと同一アドレスを有し、前記バッファ
へのデータの格納と同時に該データを格納する格納手段
と、前記バッファから前記第1の外部記憶装置への前記
データの書込み時に前記格納手段に格納されたデータを
前記第2の外部記憶装置に書込むよう制御する制御手段
とを含む制御ボードを前記中央処理装置に接続するよう
にしたことを特徴とする。
The file backup circuit according to the present invention is a file backup circuit for duplicating a file by writing the data stored in the buffer in the central processing unit to the first and second external storage devices. Storage means for storing the data in the buffer at the same time as storing the data in the buffer, and the storage means for writing the data from the buffer to the first external storage device. A control board including a control means for controlling to write the stored data in the second external storage device is connected to the central processing unit.

【0008】[0008]

【実施例】次に、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described with reference to the drawings.

【0009】図1は本発明の一実施例の構成を示すブロ
ック図であり、図2は本発明の一実施例を示す概念図で
ある。これらの図において、本体CPU1と制御ボード
2とはバス結合にて接続され、各々外部記憶3,4に接
続されている。また、本体CPU1のメモリ12の共有
メモリ領域12aは制御ボード2の共有メモリ22に仮
想的にマッピングされている。通常、本体CPU1はフ
ァイルを外部記憶3に持ち、そのファイルへの読み書き
を行う。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention, and FIG. 2 is a conceptual diagram showing an embodiment of the present invention. In these figures, the main body CPU 1 and the control board 2 are connected by bus connection, and are connected to the external memories 3 and 4, respectively. Further, the shared memory area 12 a of the memory 12 of the main body CPU 1 is virtually mapped to the shared memory 22 of the control board 2. Normally, the main body CPU 1 has a file in the external storage 3 and reads / writes the file.

【0010】本体CPU1内で動作するアプリケーショ
ンプログラム(AP)15はオペレーティングシステム
14を介して外部記憶書込み部(ドライバ)11にデー
タを転送する。外部記憶書込み部11は転送されてきた
データを外部記憶3に保存するため、制御ボード2の共
有メモリ22に仮想的にマッピングされている共有メモ
リ領域12aに該データを書込む。このとき、外部記憶
書込み部11から共有メモリ領域12aへのデータおよ
びアドレスが制御ボード2に送られ、共有メモリ22に
該データが書込まれる。
An application program (AP) 15 operating in the main body CPU 1 transfers data to an external storage writing unit (driver) 11 via an operating system 14. The external storage writing unit 11 writes the transferred data in the shared memory area 12a virtually mapped to the shared memory 22 of the control board 2 in order to save the transferred data in the external storage 3. At this time, the data and address from the external storage writing unit 11 to the shared memory area 12a are sent to the control board 2 and the data is written in the shared memory 22.

【0011】その後に、外部記憶書込み部11はDMA
(ダイレクトメモリアクセス)制御部13に制御を渡
し、DMAを使用して共有メモリ領域12aのデータを
外部記憶3に書込み始めるとともに、制御ボード2のコ
ピー制御部21に割込み通知を送る。割込み通知を受取
ったコピー制御部21ではコピープログラムを起動し、
共有メモリ22上のデータの外部記憶4への書込み処理
を行う。ここで、コピー制御部21はコピープログラム
を動作させるためのCPUである。
After that, the external memory writing unit 11 executes the DMA
(Direct memory access) The control is passed to the control unit 13, the data of the shared memory area 12a is started to be written to the external storage 3 by using the DMA, and the interrupt notification is sent to the copy control unit 21 of the control board 2. Upon receiving the interrupt notification, the copy control unit 21 activates the copy program,
The writing process of the data on the shared memory 22 to the external storage 4 is performed. Here, the copy control unit 21 is a CPU for operating a copy program.

【0012】外部記憶書込み部11は外部記憶4への書
込み処理が行われていることを関知することなく、共有
メモリ領域12a上のデータをDMA制御部13によっ
て外部記憶3に書込み、それが完了した時点でオペレー
ティングシステム14を介してアプリケーションプログ
ラム15に完了通知を行う。
The external storage writing unit 11 writes the data in the shared memory area 12a to the external storage 3 by the DMA control unit 13 without knowing that the writing process to the external storage 4 is being performed, and the process is completed. At that time, the completion notification is sent to the application program 15 via the operating system 14.

【0013】これにより、アプリケーションプログラム
15からのデータが外部記憶3,4に書込まれ、外部記
憶3,4には夫々同一のファイルが作られる。よって、
本体CPU1からは外部記憶3へのデータの書込みを行
うだけで、外部記憶3,4を用いてファイルの二重化を
行うことができる。尚、アプリケーションプログラム1
6からのデータに対しても上記と同様にしてファイルの
二重化を行うことができる。
As a result, the data from the application program 15 is written in the external storages 3 and 4, and the same files are created in the external storages 3 and 4, respectively. Therefore,
Only by writing data from the main body CPU 1 to the external storage 3, the files can be duplicated using the external storages 3 and 4. Application program 1
The data from 6 can be duplicated in the same manner as above.

【0014】このように、ファイルの二重化を行うと
き、外部記憶3へのデータを制御ボード2の共有メモリ
22に仮想的にマッピングされている共有メモリ領域1
2aに書込んでからDMA制御部13によって外部記憶
3に書込み始めるとともに、制御ボード2のコピー制御
部21に割込み通知を送って、共有メモリ22上の共有
メモリ領域12aに書込まれたデータと同一のデータを
外部記憶4に書込ませるようにすることによって、外部
記憶3のファイルのバックアップを制御ボード2上のコ
ピー制御部21の制御によって行わせることができる。
よって、本体CPU1の処理能力を低下させることな
く、ファイルの二重化を外部記憶3,4に行うことがで
きる。
In this way, when the files are duplicated, the shared memory area 1 in which the data to the external storage 3 is virtually mapped to the shared memory 22 of the control board 2
2a and then writing to the external storage 3 by the DMA control unit 13 and sending an interrupt notification to the copy control unit 21 of the control board 2 so that the data written in the shared memory area 12a on the shared memory 22 and By writing the same data in the external storage 4, the files in the external storage 3 can be backed up under the control of the copy control unit 21 on the control board 2.
Therefore, the files can be duplicated in the external storages 3 and 4 without lowering the processing capacity of the main body CPU 1.

【0015】また、本体CPU1の空き時間を使ってバ
ックグランド処理でファイルのバックアップを行うので
はないため、本体CPU1の負荷を軽減することができ
るとともに、コピー元のファイルが破壊されても外部記
憶4にファイルを記憶しておくことができ、信頼性に問
題を生ずることはない。
Further, since the files are not backed up in the background processing by using the free time of the main body CPU1, the load of the main body CPU1 can be reduced, and even if the copy source file is destroyed, the external storage is possible. The file can be stored in No. 4, and there is no problem in reliability.

【0016】[0016]

【発明の効果】以上説明したように本発明によれば、中
央処理装置内のバッファ内に格納されたデータを第1お
よび第2の外部記憶装置に書込むことによってファイル
の二重化を行うとき、バッファから第1の外部記憶装置
へのデータの書込み時に、バッファと同一アドレスを有
する格納手段にそのデータを格納し、格納手段に格納さ
れたデータを第2の外部記憶装置に書込むよう制御ボー
ドの制御手段で制御することによって、本体側の中央処
理装置の処理能力を低下させることなく、ファイルの二
重化を行うことができるという効果がある。
As described above, according to the present invention, when the data stored in the buffer in the central processing unit is written into the first and second external storage devices to duplicate the file, When writing data from the buffer to the first external storage device, the data is stored in the storage means having the same address as the buffer, and the data stored in the storage means is written in the second external storage device. By controlling with the control means, there is an effect that the files can be duplicated without reducing the processing capacity of the central processing unit on the main body side.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.

【図2】本発明の一実施例を示す概念図である。FIG. 2 is a conceptual diagram showing an embodiment of the present invention.

【図3】従来例を示す概念図である。FIG. 3 is a conceptual diagram showing a conventional example.

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

1 本体CPU 2 制御ボード 3,4 外部記憶 11 外部記憶書込み部 12 メモリ 12a 共有メモリ領域 13 DMA制御部 21 コピー制御部 22 共有メモリ 1 Main CPU 2 Control board 3, 4 External storage 11 External storage writing unit 12 Memory 12a Shared memory area 13 DMA control unit 21 Copy control unit 22 Shared memory

Claims (1)

【特許請求の範囲】 【請求項1】 中央処理装置内のバッファ内に格納され
たデータを第1および第2の外部記憶装置に書込むこと
によってファイルの二重化を行うファイルバックアップ
回路であって、前記バッファと同一アドレスを有し、前
記バッファへのデータの格納と同時に該データを格納す
る格納手段と、前記バッファから前記第1の外部記憶装
置への前記データの書込み時に前記格納手段に格納され
たデータを前記第2の外部記憶装置に書込むよう制御す
る制御手段とを含む制御ボードを前記中央処理装置に接
続するようにしたことを特徴とするファイルバックアッ
プ回路。
Claim: What is claimed is: 1. A file backup circuit for duplicating a file by writing data stored in a buffer in a central processing unit to a first and a second external storage device. Storage means having the same address as the buffer and storing the data in the buffer at the same time as storing the data in the buffer; and storing the data in the storage means at the time of writing the data from the buffer to the first external storage device. A file backup circuit, wherein a control board including a control means for controlling writing of the data to the second external storage device is connected to the central processing unit.
JP03202519A 1991-07-17 1991-07-17 File backup circuit Expired - Lifetime JP3074817B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03202519A JP3074817B2 (en) 1991-07-17 1991-07-17 File backup circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03202519A JP3074817B2 (en) 1991-07-17 1991-07-17 File backup circuit

Publications (2)

Publication Number Publication Date
JPH0528057A true JPH0528057A (en) 1993-02-05
JP3074817B2 JP3074817B2 (en) 2000-08-07

Family

ID=16458838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03202519A Expired - Lifetime JP3074817B2 (en) 1991-07-17 1991-07-17 File backup circuit

Country Status (1)

Country Link
JP (1) JP3074817B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728708A (en) * 1993-07-09 1995-01-31 Nec Corp Back-up method for disk device
JP2006106909A (en) * 2004-09-30 2006-04-20 Nippon Digital Kenkyusho:Kk Data backup system and its computer
US7844852B2 (en) 2004-03-31 2010-11-30 Nec Corporation Data mirror cluster system, method and computer program for synchronizing data in data mirror cluster system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728708A (en) * 1993-07-09 1995-01-31 Nec Corp Back-up method for disk device
US7844852B2 (en) 2004-03-31 2010-11-30 Nec Corporation Data mirror cluster system, method and computer program for synchronizing data in data mirror cluster system
JP2006106909A (en) * 2004-09-30 2006-04-20 Nippon Digital Kenkyusho:Kk Data backup system and its computer
JP4575741B2 (en) * 2004-09-30 2010-11-04 株式会社日本デジタル研究所 Data backup system

Also Published As

Publication number Publication date
JP3074817B2 (en) 2000-08-07

Similar Documents

Publication Publication Date Title
US5193154A (en) Buffered peripheral system and method for backing up and retrieving data to and from backup memory device
US5930816A (en) Memory back-up apparatus and method and audio and/or video data recording and reproducing apparatus
JP3074817B2 (en) File backup circuit
JPS60179857A (en) Control system of cache device
JP2000148404A (en) Computer system
JPH09212424A (en) Disk cache and disk caching method
JPH0793101A (en) Data backup device
JPH01303547A (en) Control system for information memory
JP3785165B2 (en) Disk array device and intra-cabinet replication method
JP2549197B2 (en) Disk device cache memory management device
JPH0520196A (en) Disk cache controller
JPS58125128A (en) Computer system
JP2701739B2 (en) Processor switching method
JPS6027014A (en) Magnetic disk controller
JPH0553732A (en) Dual disk system
JPH05181613A (en) Information processor
JPH10254781A (en) Auxiliary storage device
JP4009401B2 (en) Disk control apparatus and recording medium recording program
JP2001175422A (en) Disk array device
JPH0239342A (en) Memory ensuring system for ram disk
JPH02165354A (en) Auxiliary storage device
JPH09259047A (en) Recovery device for duplexed disk
JPH06161673A (en) Computer system using duplexed disk
JPH0424823A (en) Magnetic disk device and its control system
JPH1049310A (en) Data backup method of industrial computer