JPS61208119A - Disk controller - Google Patents

Disk controller

Info

Publication number
JPS61208119A
JPS61208119A JP60048902A JP4890285A JPS61208119A JP S61208119 A JPS61208119 A JP S61208119A JP 60048902 A JP60048902 A JP 60048902A JP 4890285 A JP4890285 A JP 4890285A JP S61208119 A JPS61208119 A JP S61208119A
Authority
JP
Japan
Prior art keywords
disk device
magnetic disk
copying
addresses
address
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
JP60048902A
Other languages
Japanese (ja)
Inventor
Jun Kanatsu
金津 潤
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 JP60048902A priority Critical patent/JPS61208119A/en
Publication of JPS61208119A publication Critical patent/JPS61208119A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate a wait for writing in copying operation by copying a dual file by a magnetic disk controller and speeding up copying operation at the time of the fault recovery of the dual file. CONSTITUTION:Data read out of a normal magnetic disk device 6 are stored in a data buffer 3 in response to a copy indication between disk devices from a host and written in a fault recovery magnetic disk device 5, and when an indication of writing to the normal disk is made by the host during the copying processing, a control part 2 judges whether or not write addresses are addresses after the completion of the copying processing; when so, the addresses are stored in a rewrite address memory; 4 and the control part 2 copies the addresses of the rewrite address memory 4 again.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、二重化ファイルシステムにおけるファイルの
全面コピーするディスク制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a disk control device that copies entire files in a duplex file system.

〔従来の技術〕[Conventional technology]

従来、この種の二重化ファイルの障害復旧時のファイル
の全面コピーは、ソフトウェアによりコピー終了までそ
のファイルへの書込みを禁止し、コピーしていた。
Conventionally, when performing a full copy of this type of duplicated file during failure recovery, software has been used to prohibit writing to the file until the copying is completed.

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

上述した従来のソフトウェアによるファイルの全面コピ
一方式は、コピーしている間そのファイルをソフト的に
書込み禁止しながらコピーしていくため、その間のファ
イルの書込みアクセスが全面的にまたされ、そのためジ
ョブの大幅なレスポンス遅れをまねく、又ファイルがマ
ルチCPUにより共用されている場合においてはそのフ
ァイルへの書込みアクセスが禁止されていることのCP
U間における報告等のけん雑な処理が多くシステム全体
のスループットの大幅な低下をまねく欠点があった。
In the above-mentioned method of full file copying using conventional software, the file is copied while being write-protected by software, so the write access to the file during that time is completely re-enabled, and as a result, the job This may cause a significant response delay, and if the file is shared by multiple CPUs, write access to the file is prohibited.
There is a drawback that there is a lot of complicated processing such as reporting between U units, which leads to a significant decrease in the throughput of the entire system.

本発明は前記問題点を解消した装置を提供するものであ
る。
The present invention provides an apparatus that solves the above problems.

〔問題点を解決するだめの手段〕[Failure to solve the problem]

本発明のディスク制御装置は、コピーデータを読み出し
側磁気ディスク装置より読み出して格納するデータバッ
ファと、コピー中にコピーしている磁気ディスク装置へ
の書込みアクセスがあった場合、その書込みアドレス(
シリンダ番号、トラック番号)を記憶する再書込アドレ
スメモリと、磁気ディスク装置、ホストインタフェース
、データバッファ及び再書込みアドレスメモリを制御す
る制御部とを有し、二重書ディスク装置の片方のディス
ク装置の障害復旧時においてホストよりのディスク装置
間のコピー指示により、正常なディスク装置より障害復
旧ディスク装置へデータをコピーする時正常なディスク
装置より読出したデータを前記データバッファへ格納し
次に障害復旧ディスク装置へ書込んでいき、そのコピー
処理中に前記正常なディスク装置への書込み指示がホス
トよりあると前記制御部においてその書込アドレスがコ
ピー終了したアドレスかどうか判断し終了したアドレス
であれば前記再書込アドレスメモリへそのアドレスを格
納しておき、コピー終了後前記制御部において前記再書
込アドレスメモリに登録されているアドレスを再度コピ
ーすることを特徴とするものである。
The disk control device of the present invention has a data buffer that reads and stores copy data from a read-side magnetic disk device, and a write address (
One disk device of a dual-write disk device has a rewrite address memory that stores the cylinder number, track number), and a control unit that controls the magnetic disk device, host interface, data buffer, and rewrite address memory. When data is copied from the normal disk device to the disaster recovery disk device according to a copy instruction from the host between disk devices during failure recovery, the data read from the normal disk device is stored in the data buffer, and then the failure recovery is performed. When data is written to a disk device, and during the copy process there is an instruction from the host to write to the normal disk device, the control unit determines whether the write address is the address where copying has been completed, and if it is the address where copying has been completed. The present invention is characterized in that the address is stored in the rewrite address memory, and after the copying is completed, the address registered in the rewrite address memory is copied again in the control section.

〔実施例〕〔Example〕

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

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

1はディスク制御装置、2は磁気ディスク装置、ホスト
インタフェース後述のデータバッファ及び再書込みアド
レスメモリを制御する制御部、3は磁気ディスク装置よ
り磁気ディスク装置ヘコピーする時コピーデータを格納
するデータバッファ、4はコピー動作中コピーを実行し
ている磁気ディスク装置へ書込みアクセスがあった時そ
のアドレス(シリンダ番号、トラック番号)を記憶する
再書込アドレスメモリである。5,6は二重書込対象と
なっている磁気ディスク装置、101はホストと種々の
命令、データ、ステータス等の転送を行うホストインタ
フェース線、  to2,103は磁気ディスク装置5
,6とディスク制御装置1との間にあって種々の命令、
データ、ステータス等の転送を行うデバイスインタフェ
ース線である。磁気ディスク装置5及び6は二重書きデ
ィスク装置(常に同一内容が書込まれる。)である。
1 is a disk control device; 2 is a magnetic disk device; a host interface; a control unit that controls a data buffer and rewrite address memory (to be described later); 3 is a data buffer that stores copy data when copying data from the magnetic disk device to the magnetic disk device; is a rewrite address memory that stores the address (cylinder number, track number) when a write access is made to the magnetic disk device executing the copy during the copy operation. 5 and 6 are magnetic disk devices subject to dual writing; 101 is a host interface line for transferring various commands, data, status, etc. with the host; to2 and 103 are magnetic disk devices 5
, 6 and the disk controller 1, various instructions,
This is a device interface line that transfers data, status, etc. The magnetic disk drives 5 and 6 are dual-write disk drives (the same content is always written).

磁気ディスク装置5が障害のためシステムより切り離さ
れ、障害修理後システムに組込まれると、ホストよりホ
ストインタフェース線lotを通してディスク制御装置
1へ磁気ディスク装置6よシ磁気ディスク装置5へのコ
ピー指示が出される。
When the magnetic disk device 5 is disconnected from the system due to a failure and is incorporated into the system after the failure is repaired, the host issues a copy instruction from the magnetic disk device 6 to the magnetic disk device 5 to the disk controller 1 through the host interface line lot. It will be done.

ディスク制御装置1はこの指示により、制御部2を使用
してデバイスインタフェース線103ヲ使用して磁気デ
ィスク装置6よりデータを1トラック読取りこれをデー
タバッファ3へ書込み、次にデータバッファ3へ書込ま
れたデータを読取り、デバイスインタフェース線102
を使用して磁気ディスク装置5ヘデータを書込む。以下
順次コピーするトラック番号及びシリンダ番号を変えて
コピーしていく。
In response to this instruction, the disk control device 1 uses the control unit 2 to read one track of data from the magnetic disk device 6 using the device interface line 103, writes it to the data buffer 3, and then writes it to the data buffer 3. Read the data stored in the device interface line 102.
data is written to the magnetic disk device 5 using the . Thereafter, the track numbers and cylinder numbers to be copied are sequentially changed and copied.

このコピー動作中にホストよりホストインタフェース1
01を通してディスク制御装置1に対し磁気ディスク装
置6に対する読取り又は書込み指示があると、コピー動
作を中断しその指示動作を行うO この時その指示が書込み指示であると、制御部2はその
書込み指示のあったアドレス(シリンダ番号、トラック
番号)がコピー処理の終了したアドレスかどうかを判断
し、終了したアドレスであると再書込アドレスメモリ4
にそのアドレスを格納する。
During this copy operation, the host interface 1
When the disk controller 1 receives an instruction to read or write to the magnetic disk device 6 through 01, the copy operation is interrupted and the instruction is performed. At this time, if the instruction is a write instruction, the control unit 2 It is determined whether the address (cylinder number, track number) where the copy process was completed is the address where the copy process was completed, and if it is the address where the copy process was completed, the rewrite address memory 4 is
Store that address in .

制御部2は磁気ディスク装置6より磁気ディスク装置5
へのコピーが最大アドレス(最大シリンダ、トラック)
まで終了すると、再書込アドレスメモリ4の内容を見て
再書込の必要なアドレスが登録されていると、再度その
アドレスを磁気ディスク装置6より磁気ディスク装置5
ヘコピーする。
The control unit 2 controls the magnetic disk device 5 from the magnetic disk device 6.
Copy to maximum address (maximum cylinder, track)
When the contents of the rewrite address memory 4 are checked and an address that requires rewriting is registered, the address is transferred from the magnetic disk device 6 to the magnetic disk device 5 again.
Copy to.

制御部2は再書込アドレスメモリに登録されている全て
のアドレスに対し上記処理を行い、全ての処理が終了す
ると、ホストに対しホストインタフェース101を使用
して終了報告を行う。
The control unit 2 performs the above processing on all addresses registered in the rewrite address memory, and when all processing is completed, reports the completion to the host using the host interface 101.

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

以上説明したように本発明は、磁気ディスク制御装置に
より二重化ファイルのコピーを処理することにより、二
重化ファイルの障害復旧時のコピ−動作を高速化でき、
さらにコピ一時の書込みの待合せをなくすことができる
効果がある。
As explained above, the present invention can speed up the copy operation when recovering a duplex file from a failure by processing the copy of the duplex file using a magnetic disk control device.
Furthermore, it is possible to eliminate the waiting time for writing during copying.

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

第1図は本発明のブロック図である。 1・・・ディスク制御装置  2・・・制御部3・・・
データバッファ   4・・・再書込アドレスメモリ5
.6・・・磁気ディスク装置   101・・・ホスト
インタフェース線102、103・・・デバイスインタ
フェース線特許出願人  日本電気株式会社 第4図
FIG. 1 is a block diagram of the present invention. 1... Disk control device 2... Control unit 3...
Data buffer 4... Rewrite address memory 5
.. 6...Magnetic disk device 101...Host interface lines 102, 103...Device interface lines Patent applicant NEC Corporation Figure 4

Claims (1)

【特許請求の範囲】[Claims] (1)二重書ディスク装置を制御するディスク制御装置
において、前記ディスク装置より読出したデータを格納
するデータバッファと、ホストインタフェースより指示
された前記ディスク装置への書込アドレス(シリンダ番
号、トラック番号)を格納する再書込アドレスメモリと
、前記ディスク装置、ホストインタフェース及びデータ
バッファ、再書込アドレスメモリを制御する制御部とを
有することを特徴とするディスク制御装置。
(1) In a disk control device that controls a dual-write disk device, there is a data buffer that stores data read from the disk device, and a write address (cylinder number, track number) to the disk device instructed by the host interface. ); and a control unit that controls the disk device, the host interface, the data buffer, and the rewrite address memory.
JP60048902A 1985-03-12 1985-03-12 Disk controller Pending JPS61208119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60048902A JPS61208119A (en) 1985-03-12 1985-03-12 Disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60048902A JPS61208119A (en) 1985-03-12 1985-03-12 Disk controller

Publications (1)

Publication Number Publication Date
JPS61208119A true JPS61208119A (en) 1986-09-16

Family

ID=12816194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60048902A Pending JPS61208119A (en) 1985-03-12 1985-03-12 Disk controller

Country Status (1)

Country Link
JP (1) JPS61208119A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63164075A (en) * 1986-12-25 1988-07-07 Sharp Corp Data copying and processing system for compact computer system
JPH03204733A (en) * 1990-01-08 1991-09-06 Fujitsu Ltd Error countermeasure processing system for dual constitution
JPH08147205A (en) * 1994-11-18 1996-06-07 Nec Corp Disk sharing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63164075A (en) * 1986-12-25 1988-07-07 Sharp Corp Data copying and processing system for compact computer system
JPH0427624B2 (en) * 1986-12-25 1992-05-12 Sharp Kk
JPH03204733A (en) * 1990-01-08 1991-09-06 Fujitsu Ltd Error countermeasure processing system for dual constitution
JPH08147205A (en) * 1994-11-18 1996-06-07 Nec Corp Disk sharing system

Similar Documents

Publication Publication Date Title
JPS6433770A (en) Disk controller
JP2544449B2 (en) Information processing system and method of controlling information processing system
JPH0452743A (en) Control system for duplex external storage
JPS58151660A (en) Magnetic disk control device
JPS61208119A (en) Disk controller
JPH03204023A (en) Duplexing control system for magnetic recorder
JPS648848B2 (en)
JPH0293721A (en) Copying and transferring system for magnetic disk device
JPS6374170A (en) Control system for magnetic disk
JPS63305445A (en) Data writing system at power break
JPH0721748B2 (en) Magnetic disk controller
JPH0388018A (en) Disk controller
JPH0793101A (en) Data backup device
JPH05181613A (en) Information processor
JP3226047B2 (en) I / O device
JPH0317130B2 (en)
JPS58171724A (en) Copy controller of magnetic disc tape
JPH01128122A (en) Control system for volume dynamic copying
JPS63119070A (en) File data storage system
JP2001175422A (en) Disk array device
JPH0635621A (en) Dual disk storage device having dual restoring function
JPH07319720A (en) System switching method for processor
JPH10207783A (en) Volume copy system and method therefor, and computer readable recording medium recorded with volume copy program
JPS62128322A (en) Input/output control system
JPH0635781A (en) Recorded data on-line recovery device