JPS6286425A - Magnetic disc control device - Google Patents

Magnetic disc control device

Info

Publication number
JPS6286425A
JPS6286425A JP60226224A JP22622485A JPS6286425A JP S6286425 A JPS6286425 A JP S6286425A JP 60226224 A JP60226224 A JP 60226224A JP 22622485 A JP22622485 A JP 22622485A JP S6286425 A JPS6286425 A JP S6286425A
Authority
JP
Japan
Prior art keywords
write
data
magnetic disk
disc
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.)
Granted
Application number
JP60226224A
Other languages
Japanese (ja)
Other versions
JPH0740219B2 (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 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)

Abstract

PURPOSE:To reduce the disc access time by using one data write instruction from a central processing unit so as to write same data in two sets of magnetic disc devices. CONSTITUTION:Since a disc address and a write data from the central proc essing unit 1 are stored respectively also in a disc address queue and a disc cache 6, when write operation is executed to a magnetic disc device 13, the same data are written in the magnetic disc devices 12, 13. When a selection control circuit 8 confirms the end of write of the magnetic disc device 12, an address selection circuit 9 selects a disc address and a data selection circuit 10 selects a write data and a disc write control circuit 11 writes the magnetic disc device 13. That is, when the operating system gives a data write command only once, the same data is written in the magnetic disc devices 12, 13. Thus, the disc access time is decreased.

Description

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

〔従来の技術〕[Conventional technology]

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

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

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

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

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

本発明の磁気ディスク制御装置は、2台の磁気ディスク
装置のうち早く書込動作が終了すると予測される1台目
の磁気ディスク装置を選択する装置選択手段と、中央処
理装置からのデータを書込むディスクキャッシュと、餅
参が1台目の磁気ディスク装置には該データを直接打込
み2台目の磁気ディスク装置にはディスクキャッジ−か
ら該データを書込む手段とを有し、該中央処理装置から
の1回のデータ書込命令で前記2台の磁気ディスク装置
に同一データを書込むことを可能にすることを4I黴と
する。
The magnetic disk control device of the present invention includes device selection means for selecting the first magnetic disk device of two magnetic disk devices that is predicted to finish the write operation earlier, and a device selection means for selecting the first magnetic disk device that is predicted to finish the write operation earlier, and for writing data from the central processing unit. The central processing 4I means that the same data can be written to the two magnetic disk devices with a single data write command from the device.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例を示す。中央処理装置1か
ら磁気ディスク制御装置4に対してデータ書込命令が命
令パス4を経由して出されると、書込データが書込デー
タバス2を通り、ディスクアドレスがディスクアドレス
バス3を通って、それぞれ磁気ディスク制御装置4に渡
される。ディスクアドレスは、ディスクアドレスレジス
タ7とディスクアドレスキー−5に格納され4、書込デ
ータは書込データレジスタ14とディスクキャッシュ6
とに格納される。
FIG. 1 shows one embodiment of the invention. When a data write command is issued from the central processing unit 1 to the magnetic disk controller 4 via the command path 4, the write data passes through the write data bus 2, and the disk address passes through the disk address bus 3. Then, they are each passed to the magnetic disk control device 4. The disk address is stored in the disk address register 7 and the disk address key-5 4, and the write data is stored in the write data register 14 and the disk cache 6.
is stored in

磁気ディスク装置、アドレス、2よびデータの選択を制
御する選択制御回路8の制御によリーアドレス選択回路
9は、ディスクアドレスレジスタ7の内容を選択してデ
ィスク書込制御回路11に入力するっさらに、データ選
択回路10は、書込データとして書込データ1/ジスタ
14を選択し、ディスク書込制御回路11に入力する。
Under the control of a selection control circuit 8 that controls the selection of magnetic disk devices, addresses, 2, and data, a read address selection circuit 9 selects the contents of the disk address register 7 and inputs the selected contents to the disk write control circuit 11. , the data selection circuit 10 selects write data 1/register 14 as write data and inputs it to the disk write control circuit 11.

ディスク書込制御回路11は、選択制御回路8の制御に
より2台の磁気ディスク装置12.13のうち早(アク
セスできると予測される方を1台目として選択し、ディ
スクレジスタ7によって指定されるディスクアドレスに
書込データを書込む。
Under the control of the selection control circuit 8, the disk write control circuit 11 selects as the first of the two magnetic disk devices 12. Write write data to disk address.

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

シリンダ位置及び回転位111を示す磁気ヘッドの位置
清報と、アドレス退去回路9の出力である、書込動作を
行わせたい書込アドレスとの比較により選択制御回路は
第2図のような方法で早(アクセスできる方の磁気ディ
スク装置を選択する。
By comparing the position information of the magnetic head indicating the cylinder position and rotational position 111 with the write address at which the write operation is to be performed, which is the output of the address withdrawal circuit 9, the selection control circuit selects the method as shown in FIG. (select the magnetic disk device that you can access).

第2図は8択制御回路8の動作を示すフロー図であり、
ステップ21では、現在の各磁気ディスク装置の現在の
磁気ヘッドのシリンダ位置と書込みアドレスのシリンダ
位置との差内2 、 C13を計算する。ステソゲ23
では、ステi・プ21,22で求めた差の大小を判断し
、ステップ24.25にてその差が小さい方の磁気ディ
スク装置を1台目の書込対象装置として選択する。ステ
ップ24では、その差が負の場合は、X進法で計9γし
て正の値とする。ただし、Xは磁気ヘッドの回転位置の
値の最大値である。差が等しい場合は、ステラプ26.
27各磁気ディスク装置の現在の磁気ヘッドの回転位置
と書込アドレスの回転位置との大小を判断し、物理的に
現在の磁気ヘッドの回転位置が書込アドレスの回転位置
からより前方の近い位置にある場合または等しい場合(
実際には書込データ転送開始までのオーバヘッドも含ん
で等しい場合)には、1台目の書込対象として磁気ディ
スク装置12を選択する。他方に比べてより遠い位置に
ある場合は、1台目の書込対象として磁気ディスク装置
13を選択する。
FIG. 2 is a flow diagram showing the operation of the 8-selection control circuit 8.
In step 21, the difference 2, C13 between the current cylinder position of the magnetic head of each current magnetic disk device and the cylinder position of the write address is calculated. Stesoge 23
Then, the magnitude of the difference obtained in steps 21 and 22 is determined, and in step 24 and 25, the magnetic disk device with the smaller difference is selected as the first writing target device. In step 24, if the difference is negative, a total of 9γ is calculated using the X-adic system to obtain a positive value. However, X is the maximum value of the rotational position of the magnetic head. If the differences are equal, step 26.
27 Determine the magnitude of the current rotational position of the magnetic head of each magnetic disk device and the rotational position of the write address, and determine whether the current rotational position of the magnetic head is physically closer to the front of the rotational position of the write address. If it is or is equal to (
In fact, if they are equal including the overhead up to the start of write data transfer), the magnetic disk device 12 is selected as the first write target. If it is located further away than the other, the magnetic disk drive 13 is selected as the first write target.

いま、第2図の方法によって早くアクセスできると予測
される1台目が磁気ディスク装置12であったと仮定し
、次に2台目の磁気ディスク装置13に、磁気ディスク
装置12に書かれた書込データと同一の内容のデータを
書込む手順を説明する。
Now, suppose that the first magnetic disk device 12 is predicted to be able to be accessed quickly using the method shown in FIG. This section explains the procedure for writing data with the same content as the loaded data.

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

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

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

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

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

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

なお、2台の磁気ティスフ装置のうち早(書込動作が終
了すると予測される装置を選択することにより、ディス
クアクセスタイムを短縮できるという効果が発生する。
Note that by selecting the device that is predicted to finish the write operation sooner from the two magnetic disk devices, an effect that the disk access time can be shortened occurs.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図の動作を示すフロー図である。 1・・・・・・中央処理装置、2・・・・・・書込デー
タバス、3・・・−・ディスクアドレスバス、4・−・
・・・磁気ディスク制御装置、5・・・・・・ディスク
アドレスキエー、6・・・・・・ディスクキャッシュ、
7−・・・・・ディスクアドレスレジスタ、8・−・・
−・選択制御回路、9・−・・・・アドレス選択回路、
lO・−・・・・データ選択回路、11・・・・・・デ
ィスク書込制御回路、12−・・・・・磁気ディスク装
置、13・−・・・・磁気ディスク装置、14・−・・
−・書込データレジスタ。 【 第 1 図 茅 2 図
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a flow diagram showing the operation of the figure. 1...Central processing unit, 2...Write data bus, 3...--Disk address bus, 4...-
... Magnetic disk control device, 5 ... Disk address key, 6 ... Disk cache,
7-...Disk address register, 8...
---Selection control circuit, 9 --- Address selection circuit,
lO---Data selection circuit, 11---Disk write control circuit, 12---Magnetic disk unit, 13---Magnetic disk unit, 14------・
-・Write data register. [Figure 1 Figure 2

Claims (1)

【特許請求の範囲】 2台の磁気ディスク装置のうち早く書込動作が終了する
と予測される1台目の磁気ディスク装置を選択する装置
選択手段と、中央処理装置からデータを書込むディスク
キャッシュと、1台 目の磁気ディスク装置には該データを直接書込み2台目
の磁気ディスク装置にはディスクキャッシュから該デー
タを書込む手段とを有し、該中央処理装置からの1回の
データ書込命令で前記2台の磁気ディスク装置に同一デ
ータを書込むことを可能にすることを特徴とする磁気デ
ィスク制御装置。
[Scope of Claims] Device selection means for selecting a first magnetic disk device of two magnetic disk devices that is predicted to finish a write operation earlier, and a disk cache for writing data from a central processing unit. , a means for directly writing the data into the first magnetic disk device and a means for writing the data from the disk cache into the second magnetic disk device, and one data write from the central processing unit. A magnetic disk control device characterized in that it is possible to write the same data to the two magnetic disk devices by a command.
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 true JPS6286425A (en) 1987-04-20
JPH0740219B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080506A (en) * 2012-12-18 2013-05-02 Fujitsu Ltd Control device and storage system

Citations (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

Patent Citations (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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080506A (en) * 2012-12-18 2013-05-02 Fujitsu Ltd Control device and storage system

Also Published As

Publication number Publication date
JPH0740219B2 (en) 1995-05-01

Similar Documents

Publication Publication Date Title
JPH04243458A (en) Communication system between asynchronous channel direct access storage device
JPS62243044A (en) Disk cache memory control method
JPH04111113A (en) Hard disk emulator
JPH0724009B2 (en) Double data writing method by disk controller
JPS60245029A (en) Data write system
JP2558318B2 (en) Redundant file management method
JPS6095762A (en) magnetic disk controller
JPH0447350A (en) Main storage read/response control
JPH0740219B2 (en) Magnetic disk controller
JPH0561610A (en) Method for selecting interruption magnetic disk device
JPH02132515A (en) Pre-read control system
JPH07295761A (en) Mirroring magnetic disk device
JPH04111015A (en) information recording device
JP3524954B2 (en) Disk controller
JPH05217286A (en) Magnetic disk controller
JPH01223529A (en) Semiconductor disk device
JPH02280221A (en) System for controlling disk
JPH033184A (en) Disk controller
JPH0355642A (en) Memory control system
JPH02148150A (en) Magnetic disk controller
JPS58166575A (en) Disk control circuit
JPH0869358A (en) Data read system for dual file
JPH02176950A (en) Disk cache control system
JPH02218055A (en) Disk control device
JPH04359312A (en) Electronic disk subsystem

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term