JPH03252809A - File compiler - Google Patents

File compiler

Info

Publication number
JPH03252809A
JPH03252809A JP2051559A JP5155990A JPH03252809A JP H03252809 A JPH03252809 A JP H03252809A JP 2051559 A JP2051559 A JP 2051559A JP 5155990 A JP5155990 A JP 5155990A JP H03252809 A JPH03252809 A JP H03252809A
Authority
JP
Japan
Prior art keywords
data
shadow
disk device
file
sequential
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
JP2051559A
Other languages
Japanese (ja)
Inventor
Yoichi Hamada
洋一 浜田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2051559A priority Critical patent/JPH03252809A/en
Publication of JPH03252809A publication Critical patent/JPH03252809A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To sequentially compile the data on the shadow side in a short time by providing a memory to a shadow disk device and storing the data on the memory in the shadow disk device when a master disk device is switched to the shadow disk device. CONSTITUTION:When the data are written in a shadow disk device 6, the data same as those on a master disk device 4 are prepared as the sequential data is a RAM 8 which stores sequentially the data on the device 6. When the device 4 is switched to the device 6, the data stored in the RAM 8 are stored in the device 6. Thus the sequential data can be written into the device 6. As a result, the data can be sequentially compiled in the device 6 in a short time.

Description

【発明の詳細な説明】 〔発明の構成〕 (産業上の利用分野) 本発明はマスタ/シャドーの2台のディスク装置を備え
て二重化されたファイル編成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Structure of the Invention] (Industrial Field of Application) The present invention relates to a duplex file organization device equipped with two master/shadow disk devices.

(従来の技術) 近年、システムコンピュータの無停止稼働(このような
コンピュータはノンストップコンピュータという。)が
叫ばれている。コンピュータ内の主要構成モジュールの
中で、とりわけディスク装置については大容量化が進み
、さらには小形化が深耕して大量のデータが格納できる
メディアとして開発が行われている。
(Prior Art) In recent years, there has been a demand for non-stop operation of system computers (such computers are referred to as non-stop computers). Among the main constituent modules in a computer, disk devices in particular are becoming larger in capacity, and are also becoming more compact and being developed as media that can store large amounts of data.

利用者側からみれば、このディスク装置に障害が発生し
て内部のデータファイルが復元できなくなれば大きな損
失となり、その被害は極めて大きなものとなる。
From the user's perspective, if a failure occurs in this disk device and the internal data files cannot be restored, it will be a huge loss, and the damage will be extremely large.

このような状況の中でディスク装置の障害リカバリ方式
が種々提案されている。その中の一つとして二重化構成
がある。この方式は2台のディスク装置をマスタ/シャ
ドーと区別し、ディスクへの書込み指示が出たとき、リ
アルタイムでマスタ/シャドー両方に書込んでおき、マ
スク側に障害が発生したときには即シャドー側に切換え
てシャドー側で運転する手法である。
Under such circumstances, various failure recovery methods for disk devices have been proposed. One of them is a duplex configuration. In this method, two disk devices are distinguished as master and shadow, and when a write instruction to the disk is issued, data is written to both master and shadow in real time, and when a failure occurs on the mask side, the data is immediately transferred to the shadow side. This is a method of switching over and operating on the shadow side.

この方式はマスタ/シャドーともファイルの格納位置(
トラック/セクタ)は必ず同一でなければならない。こ
れはディスク管理プログラムがマスタ/シャドーで格納
位置が違うとシャドー側に切換えるとき、ディレクトリ
構造及びファイルアロケーションテーブル等を再編成し
なければならず、その処理に時間がかかるためファイル
編成位置はまったく同一にする方式が一般的である。
This method uses both master and shadow file storage locations (
Tracks/sectors) must be identical. This is because if the disk management program is master/shadow and the storage location is different, when switching to the shadow side, the directory structure and file allocation table etc. must be reorganized, and this process takes time, so the file organization location is exactly the same. The most common method is to

ところが、ディスク装置のもつ欠点として、あるファイ
ルが削除された後に新規にファイルが作られるとデータ
の格納位置が分散しシーケンシャルでないとびとびのフ
ァイル構成になるため、ファイルアクセスがかけられた
ときにヘッドに飛越しのアクセスが必要になるため処理
時間が多くなる。シャドーディスク装置にあってはマス
クのデータは正確に引継いでも、その上記したようなフ
ァイル構成の欠点までも引継ぐ必要は無い。
However, a drawback of disk devices is that when a new file is created after a file is deleted, the data storage locations are dispersed, resulting in a non-sequential file structure. Processing time increases because interleaved access is required. In the case of a shadow disk device, even if the mask data is accurately inherited, there is no need to inherit the above-mentioned defects in the file structure.

(発明が解決しようとする課題) 上記したように従来の二重化ファイル編成装置において
は、マスタ/シャドーで格納位置が違うと、マスクから
シャドーへの切り替わりに時間がかかるために、マスタ
/シャドーの格納位置を同一にしなければならなかった
ため、マスクディスク装置のファイル構成がシーケンシ
ャルでないとシャドーディスク装置のファイル構成もシ
ーケンシャルでない構成になってしまうという問題があ
る。
(Problem to be Solved by the Invention) As described above, in the conventional duplex file organization device, if the master/shadow storage locations are different, it takes time to switch from the mask to the shadow. Since the positions had to be the same, there is a problem that if the file configuration of the mask disk device is not sequential, the file configuration of the shadow disk device will also be non-sequential.

そこで本発明は、このような従来技術の問題点に鑑みて
なされたもので、その目的とするところは、極力時間を
かけることなく、シャドー側のデータをシーケンシャル
に編成することができるファイル編成装置を提供するこ
とにある。
The present invention has been made in view of the problems of the prior art, and its purpose is to provide a file organization device that can sequentially organize data on the shadow side with as little time as possible. Our goal is to provide the following.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 本発明のファイル編成装置は、マスタ/シャドーの2台
のディスク装置と、シャドーディスク装置にデータが書
込まれるときそのデータをシーケンシャルに格納するメ
モリと、シーケンシャル書込み指示を発生する手段と、
シーケンシャル書込み指示を受けるとメモリのシーケン
シャルデータを前記シャドーディスク装置に書込むコン
トローラとを備えている。
(Means for Solving the Problems) A file organization device of the present invention includes two disk devices, a master/shadow device, a memory for sequentially storing data when data is written to the shadow disk device, and a memory for sequential writing. means for generating instructions;
and a controller that writes sequential data in the memory to the shadow disk device upon receiving a sequential write instruction.

(作 用) 本発明によれば、シャドーディスク装置にデータが書込
まれるときそのデータをシーケンシャルに格納するメモ
リを設けて、マスクディスク装置と同じデータをシーケ
ンシャルデータとして予め用意しておき、マスクからシ
ャドーへの切り替わり時には、このメモリのデータをシ
ャドーディスク装置に格納することにより、シャドーデ
ィスク装置にシーケンシャルなデータを書き込むことが
できるようにしたので、極力時間をかけることなく、シ
ャドー側のデータをシーケンシャルに編成することがで
きる。
(Function) According to the present invention, when data is written to the shadow disk device, a memory for sequentially storing the data is provided, and the same data as the mask disk device is prepared in advance as sequential data, and the data is written from the mask to the mask disk device. At the time of switching to the shadow, data in this memory is stored in the shadow disk device, so that sequential data can be written to the shadow disk device, so data on the shadow side can be written sequentially without taking as much time as possible. can be organized into.

(実施例) 以下に本発明の実施例について図面を参照しつつ説明す
る。
(Example) Examples of the present invention will be described below with reference to the drawings.

図は本発明の一実施例に係るファイル編成装置のブロッ
ク図である。
The figure is a block diagram of a file organization device according to an embodiment of the present invention.

図において、1はコンピュータシステムの中枢を成すC
PU、2はシステムバス、3はマスクディスクコントロ
ーラ、4はマスクディスク装置、5はシャドーディスク
コントローラ、6はシャドーディスク装置である。
In the figure, 1 is C, which forms the core of the computer system.
PU, 2 is a system bus, 3 is a mask disk controller, 4 is a mask disk device, 5 is a shadow disk controller, and 6 is a shadow disk device.

ファイル作成を行う際には、CPUIは、まずマスクの
書込み指令を発し、データを転送する。
When creating a file, the CPUI first issues a mask write command and transfers the data.

ディスクコントローラ3がそのマスクの書込み指令を受
け、送られてくるデータをマスクディスク装置4に書込
む。これにより、このマスクディスク装置4にはファイ
ル7が形成される。次にCPUIはシャドーの書込み指
令を発し、マスクディスク装置4に書込んだものと同じ
データを転送する。ディスクコントローラ5はそのシャ
ドーの書込み指令を受け、送られてくるデータをシャド
ーディスク装置6に書込む。これにより、このシャドー
ディスク装置6にはマスクディスク装置4と同じファイ
ル7が形成されることとなる。
The disk controller 3 receives the mask write command and writes the sent data to the mask disk device 4. As a result, a file 7 is formed in this mask disk device 4. Next, the CPUI issues a shadow write command and transfers the same data written to the mask disk device 4. The disk controller 5 receives the shadow write command and writes the sent data to the shadow disk device 6. As a result, the same file 7 as in the mask disk device 4 is formed in this shadow disk device 6.

8はシーケンシャルライト用のRAMファイル装置であ
る。このRAMファイル装置8は、シャドーディスク装
置6へのデータがシステムバス2上を流れるとき、同時
にそのデータをRAMにシーケンシャルに格納するもの
である。これにより、シャドーディスク装置6に格納さ
れているファイル7のシーケンシャルなコピーファイル
9が形成される。
8 is a RAM file device for sequential writing. This RAM file device 8 sequentially stores data in the RAM when data to the shadow disk device 6 flows on the system bus 2. As a result, a sequential copy file 9 of the file 7 stored in the shadow disk device 6 is formed.

オペレータは、図外のキーボード等の操作手段を通じて
、CPU1に対し通常モードとシーケンシャルライトモ
ードとの何れかを指定するようになっている。CPUI
は、通常モードを指定されている場合には、上記したよ
うな二重ファイル編成動作のみを行い、シーケンシャル
ライトモードを指定されていた場合には、上記RAMフ
ァイル装置8に一つのファイルが完成されるごとに、こ
のRAMファイル装置8のファイル9をシャドーディス
ク装置6に書込むためのシーケンシャルライト制御を行
う。
The operator specifies either the normal mode or the sequential write mode for the CPU 1 through an operation means such as a keyboard (not shown). C.P.U.I.
When the normal mode is specified, only the double file organization operation described above is performed, and when the sequential write mode is specified, one file is completed in the RAM file device 8. Sequential write control is performed to write the file 9 of this RAM file device 8 to the shadow disk device 6 each time the file 9 is written.

この場合、まずCPUIがディスクコントローラ5にシ
ーケンシャルライトの制御指令を出す。
In this case, the CPU first issues a sequential write control command to the disk controller 5.

すると、ディスクコントローラ5がRAM8をダイレク
トにアクセスし、そのデータをシャドーディスク装置6
に格納するものである。
Then, the disk controller 5 directly accesses the RAM 8 and transfers the data to the shadow disk device 6.
It is stored in .

これにより、本実施例によれば、シャドーディスク装W
16にデータが書込まれるときそのデータをシーケンシ
ャルに格納するRAM8にマスタディスク装置4と同じ
データをシーケンシャルデータとして予め用意しておき
、マスクからシャドーへの切り替わり時には、このRA
M8のデータをシャドーディスク装置6に格納すること
により、このシャドーディスク装置6にシーケンシャル
なデータを書き込むことができるようにしたので、極力
時間をかけることなく、シャドー側のデータをシーケン
シャルに編成することができることとなる。
As a result, according to this embodiment, the shadow disk device W
The same data as the master disk device 4 is prepared in advance as sequential data in the RAM 8, which stores the data sequentially when data is written to the RA 16. When switching from mask to shadow, this RA
By storing the M8 data in the shadow disk device 6, sequential data can be written to the shadow disk device 6, so that data on the shadow side can be organized sequentially without taking as much time as possible. will be possible.

ここで、上記したようにシーケンシャルライトモードと
通常のモードとをオペレータ指示に委ねたのは、シーケ
ンシャルイメージへの切り替え(マスタ宵害発生時)は
ディスクファイルの管理プログラムの再編成が必要なた
め、その分時間がかかるので指示形態とした。
Here, the reason why we left the sequential write mode and normal mode to the operator's instructions as described above is because switching to sequential image (when master damage occurs) requires reorganization of the disk file management program. Since it takes time, I decided to do it in the form of instructions.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、シャドーディスク
装置にデータが書込まれるときそのデータをシーケンシ
ャルに格納するメモリを設けて、マスクディスク装置と
同じデータをシーケンシャルデータとして予め用意して
おき、マスクからシャドーへの切り替わり時には、この
メモリのデータをシャドーディスク装置に格納すること
により、シャドーディスク装置にシーケンシャルなデー
タを書き込むことができるようにしたので、極力時間を
かけることなく、シャドー側のデータをシーケンシャル
に編成することができる。
As explained above, according to the present invention, when data is written to the shadow disk device, a memory is provided to sequentially store the data, and the same data as the mask disk device is prepared in advance as sequential data, and the mask When switching from to shadow, the data in this memory is stored in the shadow disk device, making it possible to write sequential data to the shadow disk device, so the data on the shadow side can be written in as little time as possible. Can be organized sequentially.

5・・・ディスクコントローラ、6・・・シャドーディ
スク装置、7.9.10・・・ファイル、8・・・RA
Mファイル装置。
5... Disk controller, 6... Shadow disk device, 7.9.10... File, 8... RA
M file device.

Claims (1)

【特許請求の範囲】 マスタ/シャドーの2台のディスク装置と、前記シャド
ーディスク装置にデータが書込まれるときそのデータを
シーケンシャルに格納するメモリと、 シーケンシャル書込み指示を発生する手段と、前記シー
ケンシャル書込み指示を受けると前記メモリのシーケン
シャルデータを前記シャドーディスク装置に書込むコン
トローラと、 を備えているファイル編成装置。
[Scope of Claims] Two disk devices, master and shadow, a memory that sequentially stores data when it is written to the shadow disk device, means for generating a sequential write instruction, and the sequential write instruction. A file organization device comprising: a controller that writes sequential data in the memory to the shadow disk device upon receiving an instruction.
JP2051559A 1990-03-02 1990-03-02 File compiler Pending JPH03252809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2051559A JPH03252809A (en) 1990-03-02 1990-03-02 File compiler

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2051559A JPH03252809A (en) 1990-03-02 1990-03-02 File compiler

Publications (1)

Publication Number Publication Date
JPH03252809A true JPH03252809A (en) 1991-11-12

Family

ID=12890346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2051559A Pending JPH03252809A (en) 1990-03-02 1990-03-02 File compiler

Country Status (1)

Country Link
JP (1) JPH03252809A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06110618A (en) * 1992-09-29 1994-04-22 Nec Corp Filing system
JP2007305075A (en) * 2006-05-15 2007-11-22 Hitachi Ltd Storage system with multiple tape devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06110618A (en) * 1992-09-29 1994-04-22 Nec Corp Filing system
JP2007305075A (en) * 2006-05-15 2007-11-22 Hitachi Ltd Storage system with multiple tape devices

Similar Documents

Publication Publication Date Title
US6272571B1 (en) System for improving the performance of a disk storage device by reconfiguring a logical volume of data in response to the type of operations being performed
US7418563B2 (en) Method for controlling storage device controller, storage device controller, and program
JPH08212018A (en) Method and apparatus for dynamic extension of raid
KR20020080458A (en) A method for repartitioning physical sectors of a storage system with use of virtual disc drives, a data processing apparatus and a data storage apparatus
JPH03252809A (en) File compiler
JP2986880B2 (en) Array disk
US20080177960A1 (en) Export of Logical Volumes By Pools
JP3882461B2 (en) Storage device system and backup acquisition method thereof
JPH04311219A (en) Data backup system
JP3785165B2 (en) Disk array device and intra-cabinet replication method
JP3463696B2 (en) Online garbage collection processing method
JP2994917B2 (en) Storage system
JP2005316697A (en) Disk array system and method for data backup
JPH0743634B2 (en) Split volume control method
JPH0830402A (en) Parity storing method
JPH08263389A (en) Data backup method
JP2906739B2 (en) Storage device
JPH05134814A (en) Duplex external storage device
JPH01237820A (en) Computer system
JPH0442462A (en) Magnetic disk subsystem
JPS61134859A (en) Backup controlling system of memory
JPH07222218A (en) Memory storage time shortening method for duplex electronic exchange
JPS59133656A (en) Data processing system
JP2003076500A (en) Method of copy processing and its data access, information processing system for the same, and disk controller for its realization
JPH02501602A (en) Mirror disk RAM system