JPS61240320A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPS61240320A
JPS61240320A JP60081551A JP8155185A JPS61240320A JP S61240320 A JPS61240320 A JP S61240320A JP 60081551 A JP60081551 A JP 60081551A JP 8155185 A JP8155185 A JP 8155185A JP S61240320 A JPS61240320 A JP S61240320A
Authority
JP
Japan
Prior art keywords
magnetic disk
address
disk device
copying
central 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.)
Granted
Application number
JP60081551A
Other languages
Japanese (ja)
Other versions
JPH0721748B2 (en
Inventor
Toshiaki Tazaki
田崎 稔明
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 JP60081551A priority Critical patent/JPH0721748B2/en
Publication of JPS61240320A publication Critical patent/JPS61240320A/en
Publication of JPH0721748B2 publication Critical patent/JPH0721748B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To shorten a downtime when a magnetic disk device has a trouble and to increase the executing speed of a double write command of data during a copying process, by providing an address counter, an address comparison part and a double write control part. CONSTITUTION:An address counter 23 stores the addresses within a magnetic disk device during an interrupted copying process. Thus an access can be given as normal from a central processor 10 even in a copy processing mode when the magnetic disk device has a trouble. This can shorten the downtime when the magnetic disk device has a trouble. An address comparison part 25 is added together with a double write control part 26. This part 26 decides whether data are written to the 1st magnetic disk device only or both magnetic disk devices. Thus the executing speed is increased a double write command of data during a copying process.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は磁気ディスク制御装置、特に2台の磁気ディス
ク装置の一方の内容を他方へ複写する制御を行なう磁気
ディスク制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk control device, and particularly to a magnetic disk control device that controls copying of the contents of one of two magnetic disk devices to the other.

〔従来の技術〕[Conventional technology]

磁気ディスク装置の故障に備えて2台の磁気ディスク装
置に同一の内容を書込んでおく二重書システムにおいて
、1台目の磁気ディスク装置の故障発生時に修理後他方
の磁気ディスク装置へ1台目のデータを複写しておく必
要がある。従来は、オペレーティングシステムにて複写
処理を実行していたため、複写中は他のジョブプログラ
ムが該iイスク装置にアクセスすることができなかった
In a dual-write system where the same content is written to two magnetic disk drives in case a magnetic disk drive fails, when a failure occurs in the first magnetic disk drive, the data is written to the other magnetic disk drive after repair. It is necessary to make a copy of the eye data. Conventionally, since the copying process was executed by the operating system, other job programs were unable to access the i-isk device while copying was in progress.

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

このため、ディスク装置へアクセスするジョブは全て数
分から数十分待たされ、実質的にダウンしているのと同
様の状態になっているという欠点があった。
As a result, all jobs accessing the disk device are forced to wait from several minutes to several tens of minutes, resulting in a disadvantage that the system is essentially in a state similar to being down.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の磁気ディスク制御装置は、2台の磁気ディスク
装置のうち1台目の磁気ディスク装置の内容を2台目の
磁気ディスク装置に複写する制御を行い、中央処理装置
からの二重書指令受信時に複写を一時中断させる複写制
御部と、複写中の磁気ディスク装置内アドレスを記憶す
るアドレスカウンタと、複写中に中央処理装置からの二
重書指令受信時の磁気ディスク装置内アドレスと前記ア
ドレスカウンタの大小を比較するアドレス比較部と、該
アドレス比較結果により1合口のみにデータを書込むか
2台ともに書込むかを制御する二重歯制御部とを有する
ことを特徴とする。
The magnetic disk control device of the present invention controls copying the contents of the first magnetic disk device out of two magnetic disk devices to the second magnetic disk device, and receives a double write command from the central processing unit. a copy control unit that temporarily suspends copying upon reception; an address counter that stores an address in the magnetic disk device during copying; and an address in the magnetic disk device and the address when a double write command is received from the central processing unit during copying. It is characterized by having an address comparison section that compares the magnitude of the counter, and a double-tooth control section that controls whether data is written to only one or both units based on the result of the address comparison.

このように、中断した複写中の磁気ディスク内アドレス
をアドレスカウンタに記憶しておくことにより、磁気デ
ィスク装置故障時の複写処理中でも中央処理装置から通
常通りアクセスすることが可能になり、また、アドレス
比較部と二重歯制御部を備えることにより、複写処理中
のデータニ重書指令の実行速度が向上する。
In this way, by storing the address in the magnetic disk during the interrupted copying in the address counter, it becomes possible to access the address normally from the central processing unit even during the copying process when the magnetic disk device fails. By providing the comparison section and the double-tooth control section, the execution speed of the data duplication command during the copying process is improved.

〔実施例〕〔Example〕

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

第1図は本発明による磁気ディスク制御装置の一実施例
のブロック図である。
FIG. 1 is a block diagram of an embodiment of a magnetic disk control device according to the present invention.

磁気ディスク装置インタフェース制御部2日は磁気ディ
スク装置31 、32とのインタフェース部である。中
央処理装置インタフェース制御部21は中央処理装置l
Oとのインタフェース部である。書込み/読出し制御部
27は磁気ディスク装置インタフェース制御部28を介
して、磁気ディスク装置31.32の内容の読出しと書
込みを行なう、複写制御部22は中央処理装置lOから
の複写指令を中央処理装置インタフェース制御部21を
介して受は取ると、磁気ディスク装置31 、32の一
方から他方への複写を行なう指令を書込み/読出し制御
部27へ出力する。アドレスカウンタ23は複写制御部
22によって初期値がセットされた後、複写が1アドレ
ス行なわれる毎に“1″カウントアツプされる。
The magnetic disk device interface control section 2 is an interface section with the magnetic disk devices 31 and 32. The central processing unit interface control section 21 is the central processing unit l.
This is an interface section with O. The write/read control unit 27 reads and writes the contents of the magnetic disk units 31 and 32 via the magnetic disk unit interface control unit 28. The copy control unit 22 receives copy commands from the central processing unit IO and transfers them to the central processing unit 10. When received via the interface control section 21, a command for copying from one of the magnetic disk devices 31, 32 to the other is output to the write/read control section 27. After the address counter 23 is set to an initial value by the copy control section 22, it is incremented by "1" every time one address is copied.

アドレスレジスタ24はアドレスカウンタ23のアドレ
スを保持するとともに、二重歯するときに中央処理装置
lOから中央処理装置インタフェース制御部21を通し
て送られてきた磁気ディスク内アドレスを保持する。ア
ドレス比較部25は二重歯の場合にアドレスカウンタ2
3のアドレスとアドレスレジスタ24の内容を比較する
。二重歯制御部28は中央処理装置lOから中央処理装
置インタフェース制御部21を通して書込み/読出し制
御部27に送られてきたデータをアドレス比較部25か
らの情報により、すなわちアドレスカウンタ23のアド
レスの方がアドレスレジスタ24のアドレスより小さい
場合には複写する側の磁気ディスク装置のみに書込み、
二重歯を行わないように、アドレスカウンタ23のアド
レスの方がアドレスレジスタ24の7ドレスより大きい
場合は通常通り二重歯を行なうように書込み/読出し制
御部27を制御する。
The address register 24 holds the address of the address counter 23, and also holds the address in the magnetic disk sent from the central processing unit 10 through the central processing unit interface control unit 21 when double teething is performed. Address comparison section 25 detects address counter 2 in case of double teeth.
3 and the contents of the address register 24 are compared. The double-tooth control unit 28 converts the data sent from the central processing unit IO to the write/read control unit 27 through the central processing unit interface control unit 21 based on the information from the address comparison unit 25, that is, the address of the address counter 23. If the address is smaller than the address in the address register 24, the data is written only to the magnetic disk device on the copying side.
If the address of the address counter 23 is larger than 7 addresses of the address register 24, the write/read control unit 27 is controlled so as to perform the double toothing as usual so as not to perform the double toothing.

次に、本実施例の動作を説明する。Next, the operation of this embodiment will be explained.

いま、磁気ディスク装置32が故障し、修理後データを
複写する例を考える。中央処理装置10からの複写指令
を中央処理装置インタフェース制御部21を通って複写
制御部22が認識すると、複写制御部22は磁気ディス
ク装置31のデータを磁気ディスク装置32へ低位の磁
気ディスク内アドレス(通常、シリンダアドレスという
)から複写を開始する。複写制御部22は、アドレスカ
ウンタ23に初期値である“oooo”の値をセットし
、アドレスカウンタ23の内容をアドレスレジスタ24
へ移送し、書込み/読出し制御部27に対して磁気ディ
スク装置インタフェース制御部28を通して磁気ディス
ク装置3!からアドレスレジスタ24のアドレスのデー
タを読出し、磁気ディスク装M32へ書込むことを指示
する。磁気fイスク装置32のデータが磁気ディスク装
置31に書込まれると、複写制御部22はアドレスカウ
ンタ23の内容を“1″カウントアツプする。その後前
記と同様に、アドレスレジスタ24のアドレスのデータ
を磁気ディスク装置32から読出し磁気ディスク装置3
1に書込むよう指示する。この動作を最終アドレスまで
繰返し、最終的に磁気ディスク装置31の内容を全て磁
気ディスク装置32へ複写してしまう、全データの複写
が終了すると、複写制御部22は中央処理装置10に対
して、複写指令の終了報告を返して一連の処理を終了す
る。
Now, let us consider an example in which the magnetic disk device 32 has failed and data is to be copied after repair. When the copy control unit 22 recognizes a copy command from the central processing unit 10 through the central processing unit interface control unit 21, the copy control unit 22 transfers the data in the magnetic disk device 31 to the magnetic disk device 32 at a low address within the magnetic disk. (usually referred to as a cylinder address). The copy control unit 22 sets the initial value “oooo” in the address counter 23 and stores the contents of the address counter 23 in the address register 24.
is transferred to the magnetic disk device 3! through the magnetic disk device interface control section 28 to the write/read control section 27. The data at the address in the address register 24 is read from the address register 24 and is instructed to be written to the magnetic disk device M32. When the data of the magnetic f-isk device 32 is written to the magnetic disk device 31, the copy control unit 22 counts up the contents of the address counter 23 by “1”. Thereafter, in the same manner as described above, the data at the address in the address register 24 is read from the magnetic disk device 32 and the magnetic disk device 3
Instruct to write to 1. This operation is repeated until the final address, and finally all the contents of the magnetic disk drive 31 are copied to the magnetic disk drive 32. When all the data has been copied, the copy control unit 22 tells the central processing unit 10 to: Returns a copy command completion report and ends the series of processing.

次に、この一連の複写処理中に、中央処理装置10が磁
気ディスク装置31 、32にデータを二重歯するとき
の処理について説明する。中央処理装置lOからデータ
二重書指令が出力されると、複写制御部22は現在複写
中のアドレス内のデータの複写完了を待って、それ以降
のアドレスのデータの複写を中断させた後、データ二重
書指令の処理を開始する。データ二重書指令で与えられ
た磁気ディスク内アドレスがアドレスレジスタ24に移
送され。
Next, a process when the central processing unit 10 transfers data to the magnetic disk devices 31 and 32 in duplicate during this series of copying processes will be described. When a data duplication command is output from the central processing unit IO, the copy control unit 22 waits for the copying of the data in the address currently being copied to be completed, interrupts copying of the data in subsequent addresses, and then Starts processing of data duplication command. The address within the magnetic disk given by the data duplication command is transferred to the address register 24.

二重歯制御部2Bにより、中央処理装W110から与え
られたデータを磁気ディスク装置31 、32に書込む
ことになる。このとき、中断した前記複写処理において
まだ複写が完了してないアドレスのデータは、複写処理
が再開されたときに磁気ディスク装置31から磁気ディ
スク装置32に書込まれるので。
The double-tooth control unit 2B writes data given from the central processing unit W110 to the magnetic disk devices 31 and 32. At this time, data at addresses for which copying has not yet been completed in the interrupted copying process will be written from the magnetic disk device 31 to the magnetic disk device 32 when the copying process is restarted.

磁気ディスク装置31のみに書込んでおけばよい。It is sufficient to write only to the magnetic disk device 31.

このことにより、データ二重書指令の実行速度を上げる
ことが可能になる。複写が完了してないアドレスかどう
かは、アドレス比較部25にて、アドレスカウンタ23
(複写を中断したときのアドレス)とアドレスレジスタ
24(データ二重書指令で与えられたアドレス)の大小
を比較することにより判断し、結果を二重歯制御部28
へ報告する。二重歯制御部26は、アドレスカウンタ2
3の方がアドレスレジスタ24より小さい場合は、磁気
ディスク装置31のみにデータを書込み、二重歯を行わ
ないようにM御し、アドレスカウンタ23の方がアドレ
スレジスタ24より大きい場合は通常通り二重歯を行う
This makes it possible to increase the execution speed of the data duplex command. The address comparator 25 checks the address counter 23 to determine whether the address has not been copied yet.
(the address when copying was interrupted) and the address register 24 (the address given by the data double write command) are compared, and the result is sent to the double tooth control unit 28.
Report to. The double-tooth control unit 26 controls the address counter 2
3 is smaller than the address register 24, data is written only to the magnetic disk device 31, and the M control is performed so as not to perform double teeth. Do heavy teeth.

書込み処理が終了すると、複写制御部22は、二重歯制
御部2Bからの書込み終了報告を受けとり、中央処理装
置10にデータ二重書指令の終了報告を行い、中断され
ていた複写処理をアドレスカウンタ23の7ドレスから
再開する。最終アドレスまで複写を終了すると、複写制
御部22は中央処理装置10に、先に出された複写指令
の終了報告を行い。
When the write process is completed, the copy control unit 22 receives the write completion report from the double-tooth control unit 2B, reports the completion of the data double write command to the central processing unit 10, and updates the interrupted copy process to an address. The process restarts from the 7th dress on the counter 23. When copying has been completed to the final address, the copy control unit 22 reports to the central processing unit 10 that the previously issued copy command has been completed.

一連の処理を終了する。Finish the series of processing.

なお、本実施例においては、複写処理中の中央処理装置
lOからの指令は二重歯指令の場合で説明したが、読出
し指令などの他の指令も受けつけることができるのは明
らかである。
In this embodiment, the instruction from the central processing unit IO during the copying process is a double-tooth instruction, but it is obvious that other instructions such as a read instruction can also be accepted.

さらに、前記実施例では、磁気ディスク内アドレス単位
で複写処理を中断させることにしているが、例えば10
0バイト単位などのあるブロックのアドレスの単位で中
断させることによりアドレス比較部25を簡単にするこ
とができる。また、複写処理の範囲は磁気ディスク内の
全データとして実施例を記述したが、複写する範囲を複
写指令で指定することも容易に可能である。
Furthermore, in the embodiment described above, the copying process is interrupted in units of addresses within the magnetic disk.
The address comparison unit 25 can be simplified by interrupting the processing in units of addresses of a certain block, such as in units of 0 bytes. Furthermore, although the embodiment has been described in which the range of copying processing is all the data in the magnetic disk, it is also possible to easily specify the range to be copied using a copying command.

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

以上説明したように2本発明は、磁気ディスク制御装置
内に磁気ディスク装置の全データを別の磁気ディスク装
置に複写し、複写中にも中央処理装置からの二重歯指令
を受けつける制御を行う複写制御部と、複写中の磁気デ
ィスクアドレスを格納しこのとき中断した複写中の磁気
ディスク内アドレスを記憶しておくアドレスカウンタを
備えることにより、磁気ディスク装置の二重化システム
における磁気ディスク装置故障時の複写処理中でも中央
処理装置から通常通りアクセス可能とし。
As explained above, the present invention performs control in which all data of a magnetic disk device is copied to another magnetic disk device within a magnetic disk control device, and also receives double-tooth commands from a central processing unit during the copying. By providing a copy control unit and an address counter that stores the magnetic disk address during copying and the address in the magnetic disk during copying that was interrupted at this time, it is possible to eliminate the problem in the event of a magnetic disk drive failure in a duplex system of magnetic disk drives. Even during the copying process, it can be accessed normally from the central processing unit.

実質的には磁気ディスク装置故障時のダウンタイムを短
縮でき、さらに、中央処理装置からの二重歯指令のアド
レスを記憶するアドレスレジスタと、アドレスカウンタ
との値の大小を比較するアドレス比較部と、その結果複
写処理を中断したときにまだ複写が完了してないアドレ
スであれば故障した方の磁気ディスク装置には書込を行
わないように制御する二重歯制御部を備えることにより
、複写処理中のデータ二重書指令の実行速度を向上させ
るという効果がある。
This can substantially reduce downtime in the event of a magnetic disk device failure, and it also includes an address register that stores the address of the double-tooth command from the central processing unit and an address comparison unit that compares the value with the address counter. As a result, when copy processing is interrupted, if the address has not yet been copied, it is equipped with a double-tooth control unit that controls not to write to the failed magnetic disk device. This has the effect of improving the execution speed of the data duplex command being processed.

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

第1図は、本発明による磁気ディスク制御装置の一実施
例のブロック図である。 lO・・・・・・・・・中央処理装置 20・・・・・・・・・磁気ディスク制御装置21・・
・・・・・・・中央処理装置インタフェース制御部22
・・・・・・・・・複写制御部 23・・・川・・・アドレスカウンタ 24・・・・・・・・・アドレスレジスタ25・・・・
・・・・・アドレス比較部2B・・・・・・・・・二重
書制御部 27・・・・・・・・・書込み/読出し制御部28・・
・・・・・・・磁気ディスク装置インタフェース制御部
FIG. 1 is a block diagram of an embodiment of a magnetic disk control device according to the present invention. lO... Central processing unit 20... Magnetic disk control device 21...
...Central processing unit interface control section 22
. . . Copy control unit 23 . . . Address counter 24 . . . Address register 25 .
...Address comparison section 2B...Double write control section 27...Write/read control section 28...
・・・・・・Magnetic disk device interface control unit

Claims (1)

【特許請求の範囲】[Claims] 2台の磁気ディスク装置のうち1台目の磁気ディスク装
置の内容を2台目の磁気ディスク装置に複写する制御を
行い、中央処理装置からの二重書指令受信時に複写を一
時中断させる複写制御部と、複写中の磁気ディスク装置
内アドレスを記憶するアドレスカウンタと、複写中に中
央処理装置からの二重書指令受信時の磁気ディスク装置
内アドレスと前記アドレスカウンタの大小を比較するア
ドレス比較部と、該アドレス比較結果により1台目のみ
にデータを書込むか2台ともに書込むかを制御する二重
書制御部とを有することを特徴とする磁気ディスク制御
装置。
Copy control that controls copying the contents of the first magnetic disk device of two magnetic disk devices to the second magnetic disk device, and temporarily suspends copying when a double write command is received from the central processing unit. an address counter that stores an address within the magnetic disk device during copying; and an address comparison section that compares the address within the magnetic disk device when receiving a double write command from the central processing unit during copying with the size of the address counter. and a dual write control unit that controls whether to write data to only the first disk or to both disks based on the address comparison result.
JP60081551A 1985-04-17 1985-04-17 Magnetic disk controller Expired - Lifetime JPH0721748B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60081551A JPH0721748B2 (en) 1985-04-17 1985-04-17 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60081551A JPH0721748B2 (en) 1985-04-17 1985-04-17 Magnetic disk controller

Publications (2)

Publication Number Publication Date
JPS61240320A true JPS61240320A (en) 1986-10-25
JPH0721748B2 JPH0721748B2 (en) 1995-03-08

Family

ID=13749426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60081551A Expired - Lifetime JPH0721748B2 (en) 1985-04-17 1985-04-17 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0721748B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572659A (en) * 1992-05-12 1996-11-05 International Business Machines Corporation Adapter for constructing a redundant disk storage system
JP2012088817A (en) * 2010-10-15 2012-05-10 Toshiba Corp Data processing system, data movement method, and data movement program
JP2013097630A (en) * 2011-11-02 2013-05-20 Fujitsu Ltd Repeater system and data copy method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS605329A (en) * 1983-06-23 1985-01-11 Fujitsu Ltd Managing system of duplex disk

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS605329A (en) * 1983-06-23 1985-01-11 Fujitsu Ltd Managing system of duplex disk

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572659A (en) * 1992-05-12 1996-11-05 International Business Machines Corporation Adapter for constructing a redundant disk storage system
JP2012088817A (en) * 2010-10-15 2012-05-10 Toshiba Corp Data processing system, data movement method, and data movement program
JP2013097630A (en) * 2011-11-02 2013-05-20 Fujitsu Ltd Repeater system and data copy method

Also Published As

Publication number Publication date
JPH0721748B2 (en) 1995-03-08

Similar Documents

Publication Publication Date Title
JPS61240320A (en) Magnetic disk controller
JPS60114947A (en) Disc cache device
JP2846760B2 (en) Programmable controller
JPS61208119A (en) Disk controller
JPS61127026A (en) Optical disk controller
JPH0264815A (en) Disk cache control system
CN115480703A (en) Method and system for reading USB data to disk under KMDF framework
JP3157794B2 (en) Peripheral control processor
JPS6217877Y2 (en)
JPH01128122A (en) Control system for volume dynamic copying
JPH07295761A (en) Mirroring magnetic disk device
JPH0229848A (en) System control device
JPS59144955A (en) Information processor
JP2562474B2 (en) Multi-CPU system adapter and control method thereof
JP2565923B2 (en) Data transfer method
JP2600861B2 (en) I / O system area error handling method
JPS6118032A (en) External memory controller
JPH03111959A (en) External device controller
JPS58171724A (en) Copy controller of magnetic disc tape
JPH04199217A (en) Input/output control method
JPH05274248A (en) Direct memory access device
JPH0355642A (en) Memory control system
JPS6365553A (en) Reliability securing system for input/output device constitution control data
JPH01205358A (en) Peripheral controller
JPS6030976B2 (en) Advance control type information processing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term