JPH0740219B2 - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH0740219B2
JPH0740219B2 JP60226224A JP22622485A JPH0740219B2 JP H0740219 B2 JPH0740219 B2 JP H0740219B2 JP 60226224 A JP60226224 A JP 60226224A JP 22622485 A JP22622485 A JP 22622485A JP H0740219 B2 JPH0740219 B2 JP H0740219B2
Authority
JP
Japan
Prior art keywords
magnetic disk
write
disk
data
write data
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.)
Expired - Lifetime
Application number
JP60226224A
Other languages
Japanese (ja)
Other versions
JPS6286425A (en
Inventor
稔明 田崎
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 JP60226224A priority Critical patent/JPH0740219B2/en
Publication of JPS6286425A publication Critical patent/JPS6286425A/en
Publication of JPH0740219B2 publication Critical patent/JPH0740219B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は磁気ディスク制御装置に関する。The present invention relates to a magnetic disk control device.

〔従来の技術〕[Conventional technology]

電子計算機システムにおいて磁気ディスク装置が故障し
た場合、故障した磁気ディスク装置のデータが使用でき
なくなるので、以降の処理の続行が不可能になる。この
為、従来はオペレーティングシステムが2台の磁気ディ
スク装置に同じデータを書込んでおき、1台の磁気ディ
スク装置が故障した場合は、他方の正常の磁気ディスク
装置のデータを使用して処理を続行していた。
When the magnetic disk device fails in the electronic computer system, the data of the failed magnetic disk device becomes unusable, and it becomes impossible to continue the subsequent processing. Therefore, conventionally, the operating system writes the same data to two magnetic disk devices, and when one magnetic disk device fails, the data is processed from the other normal magnetic disk device. I was continuing.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

しかし、前述した従来の方法は、オペレーティングシス
テムが2台の磁気ディスク装置に対して別々にデータ書
込命令を実行させねばならなかったので、オペレーティ
ングシステムのオーバ・ヘッドにより中央処理装置の性
能が下がること及びディスクアクセスタイムが長くなる
という欠点があった。
However, in the above-mentioned conventional method, the operating system has to separately execute the data write command to the two magnetic disk devices, so that the overhead of the operating system lowers the performance of the central processing unit. However, there is a drawback that the disk access time becomes long.

本発明は、オペレーティングシステムから1回のみデー
タ書込命令を出せば、磁気ディスク制御装置が2台の磁
気ディスク装置に同一データを書込んでしまうことによ
り、前記欠点をなくすものである。
The present invention eliminates the above-mentioned drawback because the magnetic disk control device writes the same data to two magnetic disk devices if the data write command is issued only once from the operating system.

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

本発明の磁気ディスク制御装置は、2台の磁気ディスク
装置のうち予め定めた手順に基づいて早くアクセス動作
が終了すると予想される1台目の磁気ディスク装置を選
択する装置選択手段と、中央処理装置から送られてくる
書き込みデータを格納する書き込みデータレジスタおよ
びディスクキャッシュと、前記装置選択手段からの選択
信号に応じて、1台目の磁気ディスク装置には前記書き
込みデータレジスタから読み出した前記書き込みデータ
を書き込み、2台目の磁気ディスク装置には前記ディス
クキャッシュから読み出した該書き込みデータを書き込
む書き込み制御手段とを備えている。
The magnetic disk control device of the present invention includes a device selection means for selecting the first magnetic disk device of which the access operation is expected to be completed sooner based on a predetermined procedure among the two magnetic disk devices, and a central processing unit. A write data register and a disk cache for storing write data sent from the device, and the write data read from the write data register in the first magnetic disk device in response to a selection signal from the device selecting means. The second magnetic disk device is provided with write control means for writing the write data read from the disk cache.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は、本発明の一実施例を示す。中央処理装置1か
ら磁気ディスク制御装置4に対してデータ書込命令が命
令パス4を経由して出されると、命令解釈実行制御回路
15でデータ書込命令を認識し、書込データが書込データ
パス2を通り、ディスクアドレスがディスクアドレスパ
ス3を通って、それぞれ磁気ディスク制御装置4に渡さ
れる。ディスクアドレスは、ディスクアドレスレジスタ
7とディスクアドレスキュー5に格納され、書込データ
は書込データレジスタ14とディスクキャッシュ6とに格
納される。
FIG. 1 shows an embodiment of the present invention. When a data write instruction is issued from the central processing unit 1 to the magnetic disk control unit 4 via the instruction path 4, the instruction interpretation execution control circuit
The data write command is recognized at 15 and the write data is passed to the magnetic disk controller 4 through the write data path 2 and the disk address through the disk address path 3. The disk address is stored in the disk address register 7 and the disk address queue 5, and the write data is stored in the write data register 14 and the disk cache 6.

磁気ディスク装置、アドレス、およびデータの選択を制
御する選択制御回路8の制御により、アドレス選択回路
9は、ディスクアドレスレジスタ7の内容を選択してデ
ィスク書込制御回路11に入力する。さらに、データ選択
回路10は、書込データとして書込データレジスタ14を選
択し、ディスク書込制御回路11に入力する。ディスク書
込制御回路11は、選択制御回路8の制御により2台の磁
気ディスク装置12,13のうち早くアクセスできると予測
される方を1台目として選択し、ディスクレジスタ7に
よって指定されるディスクアドレスに書込データを書込
む。
Under the control of the selection control circuit 8 which controls the selection of the magnetic disk device, the address and the data, the address selection circuit 9 selects the content of the disk address register 7 and inputs it to the disk write control circuit 11. Further, the data selection circuit 10 selects the write data register 14 as write data and inputs it to the disk write control circuit 11. Under the control of the selection control circuit 8, the disk writing control circuit 11 selects the one of the two magnetic disk devices 12 and 13 which is predicted to be accessed earlier as the first disk, and the disk designated by the disk register 7. Write the write data to the address.

ここで、選択制御回路8が2台の磁気ディスク装置から
早くアクセスできる方を選択する手順について説明す
る。選択制御回路8は、磁気ディスク装置12及び磁気デ
ィスク装置13にそれぞれ磁気ヘッド位置読出命令を送出
し、磁気ヘッドの位置を認識する。
Here, a procedure in which the selection control circuit 8 selects one of the two magnetic disk devices that can be accessed earlier will be described. The selection control circuit 8 sends a magnetic head position read command to the magnetic disk device 12 and the magnetic disk device 13, respectively, and recognizes the position of the magnetic head.

シリンダ位置及び回転位置を示す磁気ヘッドの位置情報
と、アドレス選択回路9の出力である、書込動作を行わ
せたい書込アドレスとに比較により選択制御回路は第2
図のような方法で早くアクセスできる方の磁気ディスク
装置を選択する。
The selection control circuit determines the second by comparing the position information of the magnetic head indicating the cylinder position and the rotational position with the write address, which is the output of the address selection circuit 9, at which the write operation is desired to be performed.
Select the magnetic disk unit that can be accessed faster by the method shown in the figure.

第2図は選択制御回路8の動作を示すフロー図であり、
ステップ21,22では、現在の各磁気ディスク装置の現在
の磁気ヘッドのシリンダ位置と書込みアドレスのシリン
ダ位置との差C12,C13を計算する。ステップ23では、ス
テップ21,22で求めた差の大小を判断し、ステップ24,25
にてその差が小さい方の磁気ディスク装置を1台目の書
込対象装置として選択する。ステップ24では、その差が
負の場合は、x進法で計算して正の値とする。ただし、
xは磁気ヘッドの回転位置の値の最大値である。差が等
しい場合は、ステップ26で各磁気ディスク装置の現在の
磁気ヘッドの回転位置と書込アドレスの回転位置との大
小を判断し、物理的に現在の磁気ヘッドの回転位置が書
込アドレスの回転位置からより前方の近い位置にある場
合または一致する場合(実際には書込データ転送開始ま
でのオーバヘッドも含んで一致する場合)には、1台目
の書込対象として磁気ディスク装置12を選択する(ステ
ップ27)。また、現在の磁気ヘッドの回転位置が書込ア
ドレスの回転位置より前方の遠い位置にある場合は、1
台目の書込対象として磁気ディスク装置13を選択する
(ステップ28)。
FIG. 2 is a flow chart showing the operation of the selection control circuit 8.
In steps 21 and 22, differences C 12 and C 13 between the current cylinder position of the magnetic head of each magnetic disk device and the cylinder position of the write address are calculated. In step 23, the magnitude of the difference obtained in steps 21 and 22 is judged, and steps 24 and 25 are determined.
Then, the magnetic disk device having the smaller difference is selected as the first writing target device. In step 24, if the difference is negative, the value is calculated by the x-adic system and made a positive value. However,
x is the maximum value of the rotational position of the magnetic head. If the difference is the same, in step 26, it is judged whether the current rotational position of the magnetic head and the rotational position of the write address of each magnetic disk device is larger or smaller, and the current rotational position of the magnetic head is physically the write address. If the magnetic disk device 12 is located closer to the front than the rotational position or if they match (actually, if they also include the overhead until the start of write data transfer), the magnetic disk device 12 is set as the first writing target. Select (step 27). Also, if the current rotational position of the magnetic head is located far ahead of the rotational position of the write address, 1
The magnetic disk device 13 is selected as the first writing target (step 28).

いま、第2図の方法によって早くアクセスできると予測
される1台目が磁気ディスク装置12であったと仮定し、
次に2台目の磁気ディスク装置13に、磁気ディスク装置
12に書かれた書込データと同一の内容のデータを書込む
手順を説明する。
Now, assuming that the first disk, which is expected to be accessed quickly by the method of FIG. 2, is the magnetic disk device 12,
Next, in the second magnetic disk device 13,
The procedure for writing the same data as the write data written in 12 will be described.

中央処理装置1からのディスクアドレスと書込データは
前述したようにそれぞれディスクアドレスキュー5とデ
ィスクキャッシュ6にも格納されているので、これらの
情報を用いて磁気ディスク装置13に書込動作を実行すれ
ば、磁気ディスク装置12と磁気ディスク装置13には同一
データが書込まれることになる。
Since the disk address and the write data from the central processing unit 1 are also stored in the disk address queue 5 and the disk cache 6, respectively, as described above, the write operation is executed in the magnetic disk device 13 using these information. Then, the same data is written in the magnetic disk device 12 and the magnetic disk device 13.

選択制御回路8は、磁気ディスク装置12の書込動作終了
を確認すると、アドレス選択回路9でディスクアドレス
キュー5からのディスクアドレスを選択させ、データ選
択回路10でディスクキャッシュ6からの書込データを選
択させる。選択されたディスクアドレスと書込データを
もとにディスク書込制御回路11にて、磁気ディスク装置
13に書込動作を行う。
When the selection control circuit 8 confirms the completion of the write operation of the magnetic disk device 12, the address selection circuit 9 selects the disk address from the disk address queue 5, and the data selection circuit 10 selects the write data from the disk cache 6. Select. Based on the selected disk address and write data, the disk write control circuit 11 causes the magnetic disk device to
Write to 13.

つまり、中央処理装置上で動作するオペレーティングシ
ステムが1回のみデータ書込指令を出すと、同一データ
が磁気ディスク装置12と磁気ディスク装置13に書かれる
ことになる。
That is, when the operating system operating on the central processing unit issues a data write command only once, the same data is written in the magnetic disk device 12 and the magnetic disk device 13.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、1台目の磁気ディスク装
置に書込まれたデータはディスタキャッシュに残ってい
ることを利用して、2台目の磁気ディスク装置に該ディ
スクキャッシュのデータを使って磁気ディスク制御装置
が自動的に書込みを行うことにより、オペレーティング
システムからは1回のデータ書込命令で磁気ディスク装
置への二重書きを可能にし、従来2回のデータ書込命令
を出していた為に生じたオーバヘッドを減らし、中央処
理装置の性能を向上させ、二重書き時のディスクアクセ
スタイムを短縮させることができるという効果がある。
As described above, the present invention utilizes the fact that the data written in the first magnetic disk device remains in the distor cache and uses the data in the disk cache in the second magnetic disk device. The magnetic disk controller automatically writes data by the operating system, so that the operating system enables double writing to the magnetic disk device with one data write command, and conventionally two data write commands are issued. This has the effects of reducing the overhead caused by this, improving the performance of the central processing unit, and shortening the disk access time during double writing.

さらに、まだディスク二重書き機能をもってないオペレ
ーティングシステムにおいてディスク二重書機能を採用
する場合、ほとんどオペレーティングシステムを改造し
なくてもよいという効果もある。
Furthermore, when the disk double writing function is adopted in an operating system that does not yet have the disk double writing function, there is an effect that the operating system does not need to be modified.

なお、2台の磁気ディスク装置のうち早く書込動作が終
了すると予測される装置を選択することにより、ディス
クアクセスタイムを短縮できるという効果が発生する。
It should be noted that by selecting one of the two magnetic disk devices that is expected to complete the writing operation earlier, the effect that the disk access time can be shortened is produced.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の動作を示すフロー図である。 1……中央処理装置、2……書込データパス、3……デ
ィスクアドレスパス、4……磁気ディスク制御装置、5
……ディスクアドレスキュー、6……ディスクキャッシ
ュ、7……ディスクアドレスレジスタ、8……選択制御
回路、9……アドレス選択回路、10……データ選択回
路、11……ディスク書込制御回路、12……磁気ディスク
装置、13……磁気ディスク装置、14……書込データレジ
スタ。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG.
It is a flowchart which shows the operation | movement of a figure. 1 ... Central processing unit, 2 ... Write data path, 3 ... Disk address path, 4 ... Magnetic disk controller, 5
... disk address queue, 6 ... disk cache, 7 ... disk address register, 8 ... selection control circuit, 9 ... address selection circuit, 10 ... data selection circuit, 11 ... disk write control circuit, 12 ... Magnetic disk unit, 13 ... Magnetic disk unit, 14 ... Write data register.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】2台の磁気ディスク装置のうち予め定めた
手順に基づいて早くアクセス動作が終了すると予想され
る1台目の磁気ディスク装置を選択する装置選択手段
と、 中央処理装置から送られてくる書き込みデータを格納す
る書き込みデータレジスタおよびディスクキャッシュ
と、 前記装置選択手段からの選択信号に応じて、1台目の磁
気ディスク装置には前記書き込みデータレジスタから読
み出した前記書き込みデータを書き込み、2台目の磁気
ディスク装置には前記ディスクキャッシュから読み出し
た該書き込みデータを書き込む書き込み制御手段とを備
え、 前記中央処理装置からの1回の書き込み命令で前記2台
の磁気ディスク装置に同一データを書き込むことを特徴
とする磁気ディスク制御装置。
1. A device selecting means for selecting a first magnetic disk device of which the access operation is expected to be completed sooner than the other magnetic disk device according to a predetermined procedure, and a central processing unit. A write data register and a disk cache for storing incoming write data, and the write data read from the write data register is written to the first magnetic disk device in response to a selection signal from the device selection means. The second magnetic disk device is provided with a write control unit for writing the write data read from the disk cache, and the same data is written to the two magnetic disk devices by one write command from the central processing unit. A magnetic disk control device characterized by the above.
JP60226224A 1985-10-11 1985-10-11 Magnetic disk controller Expired - Lifetime JPH0740219B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60226224A JPH0740219B2 (en) 1985-10-11 1985-10-11 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60226224A JPH0740219B2 (en) 1985-10-11 1985-10-11 Magnetic disk controller

Publications (2)

Publication Number Publication Date
JPS6286425A JPS6286425A (en) 1987-04-20
JPH0740219B2 true JPH0740219B2 (en) 1995-05-01

Family

ID=16841839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60226224A Expired - Lifetime JPH0740219B2 (en) 1985-10-11 1985-10-11 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0740219B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5594354B2 (en) * 2012-12-18 2014-09-24 富士通株式会社 Control device and storage system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55123749A (en) * 1979-03-16 1980-09-24 Nec Corp Double recording system of magnetic disc
JPS5797157A (en) * 1980-12-08 1982-06-16 Ricoh Co Ltd Magnetic disk control device

Also Published As

Publication number Publication date
JPS6286425A (en) 1987-04-20

Similar Documents

Publication Publication Date Title
JPH0793219A (en) Information processor
JPH08286837A (en) Control method for external storage sub system and controller therefor
JP2759920B2 (en) Method and apparatus for operating a DASD peripheral data storage subsystem
JPH0740219B2 (en) Magnetic disk controller
JP3122702B2 (en) Disk device write-back control method
JPH0724009B2 (en) Double data writing method by disk controller
JPH05233513A (en) Interface circuit for controlling data transfer
JPS60245029A (en) Data write system
JPH11232037A (en) Magnetic disk device having disk cache write function
JPH02132515A (en) Pre-read control system
JPH0594373A (en) Data flash interval control system
JP3524954B2 (en) Disk controller
JPH0876940A (en) Method for controlling disk array
JPH04111015A (en) Information recorder
JPH075999A (en) Magnetic disk controller
JPH05341913A (en) Magnetic disk controller
JPH05150917A (en) Control method for printer device
JP2000339107A (en) Method for controlling medium inspection of disk array device
JPH08129513A (en) Recovery system for data transfer
JPS61100827A (en) Method for writing data on disk
JPH02176950A (en) Disk cache control system
JPH10112150A (en) Magnetic disk
JPH02148150A (en) Magnetic disk controller
JPH09128291A (en) Cache memory managing method
JPH06103683A (en) Data read controller for disk storage device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term