JPS62256266A - Magnetic disk control device - Google Patents

Magnetic disk control device

Info

Publication number
JPS62256266A
JPS62256266A JP9763486A JP9763486A JPS62256266A JP S62256266 A JPS62256266 A JP S62256266A JP 9763486 A JP9763486 A JP 9763486A JP 9763486 A JP9763486 A JP 9763486A JP S62256266 A JPS62256266 A JP S62256266A
Authority
JP
Japan
Prior art keywords
write
magnetic disk
control
track
double
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
JP9763486A
Other languages
Japanese (ja)
Inventor
Osamu Omoto
大本 修
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 JP9763486A priority Critical patent/JPS62256266A/en
Publication of JPS62256266A publication Critical patent/JPS62256266A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To decrease a turn around time by reporting the end to a host device by the end of write to a write data storage means and to one magnetic disk with respect to a write command from the host device to a double write object device. CONSTITUTION:When a data processing unit 2 decides a double write pair and issues a command to a magnetic disk control device 4, the device 4 stores the relation of correspondence of master/slave magnetic disk devices 61, 62 being the object to double write to a device correspondence table TB 441. When the unit 2 applies a write command to the device 61, the device 4 receives the write command through an interface IF section 41, a control section 44 uses the device number of write command to search the TB 441 thereby recognizing a double write device and track control information is read from a track control TB 442. The control section 44 uses the control information to store a write data in a storage section 45 and writes the data in a master device 61 through a write/read section 42 and an IF section 43 to apply a write end report to the device 2. Then the write data stored in a storage section 5 is written in a slave device.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、2台の磁気ディスク装置に対して同一データ
を2重書きする機能をもつ磁気ディスク制御装置に関し
、特に、ターンアラウンドタイムを短縮するための2重
書き制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a magnetic disk control device having a function of double writing the same data to two magnetic disk devices, and in particular, to reduce turnaround time. This invention relates to a double write control method.

従来の技術 従来、磁気ディスク装置を使用して同一データを2重書
きすることによりデータの信頼性を向」ニさせる技術と
しては、2台の磁気ディスク装置に対してオペレーティ
ングシステム(以下O3)がそれぞれ書込み指令を別々
に発行し、両方の指令の完了を待って動作を終了させる
方式が一般的にとられていた。
Conventional technology Conventionally, as a technology to improve data reliability by writing the same data twice using magnetic disk drives, an operating system (hereinafter referred to as O3) is used for two magnetic disk drives. Generally, a method has been adopted in which each write command is issued separately and the operation is terminated after waiting for the completion of both commands.

また、磁気ディスク制御装置が配下の2台の磁気ディス
ク装置を使用して2重書きをする方式として、データ処
理装置から受信した書込データを一方の磁気ディスク装
置に書込むと同時に記憶部に記憶しておき、両動作の完
了をもってデータ処理装置に終了報告した後に磁気ディ
スク制御装置の空き時間にもう一方の磁気ディスク装置
に書込む上いったターンアラウンドタイムの短縮を意図
した方法も提案されている。しかしながら、従来の磁気
ディスク制御装置による2重書きは制御のしやすさから
データ処理装置への書込終了報告後にもう一方の磁気デ
ィスク装置に記憶部のデータを書込む前に再度書込指令
が出されると書込トラックが異なっていても該指令を待
ち状態にしていた。
In addition, as a method in which the magnetic disk control device performs double writing using two subordinate magnetic disk devices, write data received from the data processing device is written to one of the magnetic disk devices at the same time. A method aimed at shortening the turnaround time has also been proposed, in which the information is stored, and after completion of both operations is reported to the data processing device, data is written to the other magnetic disk device during the idle time of the magnetic disk control device. ing. However, due to the ease of control of double writing using conventional magnetic disk control devices, after the write completion is reported to the data processing device, a write command is issued again before writing data in the storage section to the other magnetic disk device. When issued, the command is kept in a waiting state even if the writing track is different.

発明が解決しようとする問題点 上述したO5による2重書き方式では、2度同じ指令を
実行する必要があるので、osのオーバヘッドの為にC
PUの性能が低下する他、両方の磁気ディスク装置への
書込終了を待って動作完了としているのでアクセスタイ
ムの性能低下、つまりターンアラウンドタイムが延びる
という欠点があった。
Problems to be Solved by the Invention In the double writing method using O5 mentioned above, it is necessary to execute the same command twice, so the C
In addition to deteriorating the performance of the PU, since the operation is completed only after writing to both magnetic disk devices is completed, there is a drawback that the performance of the access time is decreased, that is, the turnaround time is extended.

また、上述した磁気ディスク制御装置による2重書き方
式では、磁気ディスク装置単位の2重書き制御であるた
めに、1台の装置にアクセスが集中するようなシステム
ではターンアラウンドタイムの改善にならない欠点があ
った。
In addition, in the double write method using the magnetic disk control device described above, since double write control is performed for each magnetic disk device, turnaround time cannot be improved in a system where access is concentrated on one device. was there.

本発明は従来の上記事情に鑑みてなされたものであり、
従って本発明の目的は、従来の技術に内在する」−記譜
欠点を解消する1丁を可能とした新規な磁気ディスク制
御装置を提供することにある。
The present invention has been made in view of the above-mentioned conventional circumstances, and
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a novel magnetic disk control device that eliminates the notation defects inherent in the prior art.

問題点を解決するための手段 上記目的を達成する為に、本発明に係る磁気ディスク制
御装置は、2重書きの対象となる’A jflの対応関
係を記憶する装置対応テーブル記憶手段と、2重書きの
為の書込データを記憶する書込データ記憶手段と、トラ
ック単位の2重書き制御を行うためのトラック制御テー
ブル記憶手段とを有し、−!1位装置からの2重書き対
象装置への書込指令に対し一方の磁気ディスク装置への
書込みと書込データ配憶手段への書込動作完了をもって
」−位装置への終了報告を行うことを特徴としている。
Means for Solving the Problems In order to achieve the above object, the magnetic disk control device according to the present invention includes: device correspondence table storage means for storing the correspondence of 'A jfl to be double-written; It has write data storage means for storing write data for overwriting, and track control table storage means for performing double writing control on a track-by-track basis, -! In response to a write command from the first device to the target device for dual writing, upon completion of writing to one magnetic disk device and writing to the write data storage means, a completion report is made to the device in second place. It is characterized by

実施例 次に本発明をその好ましい一実施例について図面を参照
して具体的に説明する。
Embodiment Next, a preferred embodiment of the present invention will be specifically explained with reference to the drawings.

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

第1図を参照するに、本発明に係る磁気ディスク制御装
置4は、データ処理装置2と接続されデータ処理装置2
との入出力を行うインタフェース部4】と、インタフェ
ース部41及びインタフェース部43と接続されデータ
の書込・読出制御を行う書込・読出部42と、磁気ディ
スク装置6と接続され磁気ディスク装置6との入出力を
行うインタフェース部43と、前記インタフェース部4
1及び書込・読出部42と接続され2重書きのための書
込データを記憶する記憶部45と、前記インタフェース
部4■、書込・読出部42、インタフェース部43、及
び記憶部45と接続されて全体の制御を行うとともに2
重書きの対象となる装置の対応状況及び装置状態を記憶
する装置対応テーブル441とトラック単位の2重書き
制御を行うためのトラック制御テーブル442とを保持
して2重書き制御を行う制御部44とから構成される。
Referring to FIG. 1, a magnetic disk control device 4 according to the present invention is connected to a data processing device 2.
an interface unit 4 which performs input/output with the interface unit 4; a write/read unit 42 which is connected to the interface unit 41 and the interface unit 43 and controls data writing/reading; and a magnetic disk unit 6 which is connected to the magnetic disk unit 6. an interface section 43 that performs input/output to and from the interface section 4;
1 and the writing/reading section 42 and storing write data for double writing; the interface section 4; the writing/reading section 42; the interface section 43; and the storage section 45 It is connected to perform overall control and 2
A control unit 44 that performs double writing control by holding a device correspondence table 441 that stores the compatibility status and device status of the device that is the target of overwriting, and a track control table 442 that performs double writing control on a track-by-track basis. It consists of

まず、2重書きの対象とならない磁気ディスク装置への
書込拳読出時の磁気ディスク制御装置4の動作は従来の
磁気ディスク制御装置と同様で公知であるので省略する
First, the operation of the magnetic disk control device 4 when reading data from a magnetic disk device that is not subject to double writing is similar to that of a conventional magnetic disk control device and is well known, so a description thereof will be omitted.

次に、二重書きの対象となる磁気ディスク装置g− 間の対応付けは、データ処理装置2で動作するO8かす
へての磁気ディスク装置6を管理して2重量きペアを決
定し、システム立」二げ時に磁気ディスク制御装置4に
指示するか、又は磁気ディスク制御装置4が電源投入時
等必要な場合に接続されているすべての磁気ディスク装
置が保持する物理的な情報(ジャンパパッケージ等)を
読出すことにより認識するか、いずれでもよい。いずれ
の場合でも磁気ディスク制御装置4は2重書き対象の磁
気ディスク装置の対応関係を装置対応テーブル441に
記憶するとともに、公知の方法により装置状態を読出し
装置対応テーブル441に記憶する。
Next, the correspondence between the magnetic disk devices g to be subjected to dual writing is determined by managing the magnetic disk devices 6 at the O8 operating in the data processing device 2 and determining a double weight pair. When necessary, such as when the magnetic disk controller 4 is turned on or when the magnetic disk controller 4 is powered on, the physical information held by all the connected magnetic disk devices (jumper packages, etc.) is sent to the magnetic disk controller 4. ) may be recognized by reading it. In either case, the magnetic disk control device 4 stores the correspondence of the magnetic disk devices subject to double writing in the device correspondence table 441, and also stores the device status in the reading device correspondence table 441 using a known method.

装置対応テーブル441の内容を第2図に示す。電源没
入時の装置状態情報は磁気ディスク装置に異常がなけれ
ば有効となる。
The contents of the device correspondence table 441 are shown in FIG. The device status information when the power is turned off is valid if there is no abnormality in the magnetic disk device.

以下に磁気ディスク制御装置4の2重書き制御について
記述する。
Double write control of the magnetic disk controller 4 will be described below.

データ処理装置2で動作する。sが磁気ディスクg M
B +に対して書込指令を実行すると、磁気ディスク制
御装置4はインタフェース部41を通t、 テ制輝部4
4がデバイス番号と書込指令と動作トラック情報を受信
する。制御部44は、デバイス番号より装置ハ′対応テ
ーブルをサーチして2重書き装置であることを認識する
と、正磁気ディスク装置81と副磁気ディスク装置62
の装置状態をチェックして、」ζ置杖態に従い以下の通
り動作する。
It operates on the data processing device 2. s is a magnetic disk g M
When a write command is executed for B
4 receives the device number, write command, and operation track information. When the control unit 44 searches the device H' correspondence table based on the device number and recognizes that it is a dual write device, the control unit 44 selects the primary magnetic disk device 81 and the sub magnetic disk device 62.
Check the device status and operate as follows according to the ζ setting status.

まず、正装置61又は副装置62のいずれかが切離し状
態の時には従来の1重書き処理を有効な磁気ディスク装
置に対して実行して動作完了後にデータ処理装置2に対
して終了報告を行う。
First, when either the primary device 61 or the secondary device 62 is in a disconnected state, conventional single write processing is executed on a valid magnetic disk device, and after the operation is completed, a completion report is sent to the data processing device 2.

正装置61及び副装置62のいずれもが有効な場合には
、制御部44は指定された動作対象l・ラック情報と装
置対応テーブルに記憶されているトラック制御ポインタ
情報とによりトラック制御テーブル442のトラック制
御情報を読出す。トラック制御情報は1トラック当り1
ビツトの情報で II Q l”の時には該トラックへ
の書込が可能である事を、“1゛′の時には該トラック
が2重書き待ちであることを示している。
When both the primary device 61 and the secondary device 62 are valid, the control unit 44 updates the track control table 442 based on the specified operation target l/rack information and the track control pointer information stored in the device correspondence table. Read track control information. Track control information is 1 per track
When the bit information is "IIQ1", it indicates that writing to the track is possible, and when it is "1", it indicates that the track is waiting for double writing.

トラック制御テーブル442のトラック制御情報の読み
出し制御は第3図に示す通りトラック制御テーブルポイ
ンタがデバイス毎の偏位を示し、動作対象)・ラック情
報中のシリンダアドレス及びI・ラックアドレスがデバ
イス内の偏位を示しているので、画情報から生成された
メモリアドレスの1ピツ)・を読出すことにより可能で
ある。
As shown in FIG. 3, the read control of the track control information in the track control table 442 is performed so that the track control table pointer indicates the deviation for each device. Since this shows the deviation, it is possible to do this by reading out one bit of the memory address generated from the image information.

制御部44は、読出されたトラック制御情報が“0′”
の時には、インタフェース部43を通して磁気ディスク
装置61を選択し、目的トラックへのシーク動作を指示
する。その後制御部44は、インタフェース部41を通
して書込みデータの送信をデータ処理装置2に対して指
示することにより書込みデータの受信が可能になるので
、受信データを記憶部45に記憶していくと同時に書込
・読出部42、インタフェース部43を通して磁気ディ
スク装置61ヘデータを書込んでいく。
The control unit 44 determines that the read track control information is “0′”.
At this time, the magnetic disk device 61 is selected through the interface unit 43 and a seek operation to the target track is instructed. Thereafter, the control section 44 can receive the write data by instructing the data processing device 2 to transmit the write data through the interface section 41, so that the received data can be stored in the storage section 45 and written at the same time. Data is written to the magnetic disk device 61 through the read/write section 42 and the interface section 43.

正装置61及び記憶部45への書込動作がエラーなく正
常に完了すると、制御部44はデータ処理装置2に対し
て書込指令に対する終了報告を行うとともにトラック制
御テーブルの該当トラック情報をil 111すなわち
2重書き待ち状態に変更する。
When the write operation to the primary device 61 and the storage unit 45 is completed normally without error, the control unit 44 notifies the data processing device 2 of the completion of the write command, and also updates the corresponding track information in the track control table to il 111. In other words, the state is changed to a double write wait state.

又、読出されたトラック制御情報が”1゛の時には該当
トラックは2重書き待ち状態であるので制御部44は、
データ処理装置2から要求された書込指令をいったん記
憶し、副装置62の該当トランクに対し記憶部45に既
に記憶されている書込みデータを使用して書込動作を完
了させた後、要求された書込指令の実行制御を前記の通
り行う。
Further, when the read track control information is "1", the corresponding track is in a double write waiting state, so the control unit 44
After once storing the write command requested by the data processing device 2 and completing the write operation for the relevant trunk of the sub-device 62 using the write data already stored in the storage unit 45, the write command requested by the data processing device 2 is completed. Execution control of the written write command is performed as described above.

なお、記憶部45には2重書き待ちとなっているすべて
のトラックの書込みデータが記憶されている。
Note that the storage unit 45 stores write data of all tracks waiting for double writing.

磁気ディスク制御装置4は、各指令動作完了後データ処
理装置2からの入出力要求の有無をチェックし、入出力
要求がない場合にはトラック制御テーブルのトラック制
御情報を順に読出し、2重書き待ち状態のトラックがな
いかをチェックする。
After completing each command operation, the magnetic disk control device 4 checks whether there is an input/output request from the data processing device 2. If there is no input/output request, the magnetic disk control device 4 sequentially reads the track control information from the track control table and waits for double writing. Check for status tracks.

2重書き待ち状態のトラックが存在すると、読出アドレ
スからデバイス番号及びトラックアドレスを逆変換して
求め、該当副磁気ディスク装置に対し、記憶部45の対
応する書込みデータを使用して一〇− 書込動作を行い正常に完了するとトラック制御テーブル
のトラック制御情報を“0”(書込可能)に変更すると
同時に記憶部45の書込みデータ記↑aエリアを空き状
態として解放する。
If there is a track waiting for double writing, the device number and track address are obtained by reverse conversion from the read address, and the corresponding write data in the storage unit 45 is used to write to the corresponding sub magnetic disk device. When the write operation is completed normally, the track control information in the track control table is changed to "0" (writable), and at the same time, the write data recording area ↑a of the storage unit 45 is released as a vacant state.

以」二の動作を1サイクルとしてデータ処理H1Fff
i2からの入出力要求の有無チャックにおいて要求のな
いアドレス状態が発生した場合には、2重書き待ちのト
ラックがなくなるまで上記動作サイクルを繰返す。
Data processing H1Fff is performed with the following two operations as one cycle.
If an address state with no request occurs in checking whether there is an input/output request from i2, the above operation cycle is repeated until there are no tracks waiting for double writing.

上記説明により、磁気ディスク制御装置4ではトラック
制御テーブル442のトラック制御情報によりトラック
単位の2重書き制御が可能であるので、正磁気ディスク
装置への書込終了後に副磁気ディスク装置に記憶部45
のデータを書込む前に再度書込指令が要求されてもトラ
、りが異なっていれば待ち状態とならないことが明らか
である。
According to the above explanation, since the magnetic disk control device 4 is capable of double writing control for each track based on the track control information in the track control table 442, the storage unit 45 is stored in the secondary magnetic disk device after writing to the primary magnetic disk device is completed.
It is clear that even if a write command is requested again before data is written, the waiting state will not occur if the conditions are different.

なお、2M書き対象装置に対する読出動作は両方の磁気
ディスク装置が有効な場合でも正磁気ディスク装置61
でのみ行われるが、本発明には直接関連しないので記述
しない。
Note that the read operation for the 2M write target device is performed only when the primary magnetic disk device 61 is used even if both magnetic disk devices are enabled.
However, since it is not directly related to the present invention, it will not be described.

発明の詳細 な説明した通り、本発明の磁気ディスク制御Rrfによ
れば、O8をわずられすことなく、シかもターンアラウ
ンドタイムの短い磁気ディスク装置の2重書きが実現で
きる効果が得られる。
As described in detail, according to the magnetic disk control Rrf of the present invention, it is possible to realize double writing in a magnetic disk device with a short turnaround time without disturbing the O8.

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

第1図は本発明に係る磁気ディスク制御装置の一実施例
を示すブロック構成図、第2図は第1図の装置対応テー
ブルの内容を示す図、第3図は第1図のトラック制御テ
ーブルの内容を示す図である。 216.データ処理装置、4.、、磁気ディスク制御装
置、6.、、磁気ディスク装置、4114391.イン
タフェース部、42. 、 、書込−読出部、44、 
、 、制御部、45.6.記憶部、441 、 、 、
装置対応テーブル、442.、、)ランク制御テーブル
、fil、 、 、 2重書き対象正磁気ディスク装置
、62、 、 、2重書き対象副磁気ディスク装置特許
出願人  日本電気株式会社 代 理 人  弁理士熊谷雄太部 第1図
FIG. 1 is a block diagram showing an embodiment of a magnetic disk control device according to the present invention, FIG. 2 is a diagram showing the contents of the device correspondence table shown in FIG. 1, and FIG. 3 is a track control table shown in FIG. 1. FIG. 216. data processing device, 4. , , magnetic disk control device, 6. ,,magnetic disk device, 4114391. Interface section, 42. , , write-read unit, 44,
, ,control unit, 45.6. Storage section, 441, , ,
Device correspondence table, 442. ,,) Rank control table, fil, , , Primary magnetic disk device for dual writing, 62, , , Secondary magnetic disk device for dual writing Patent applicant NEC Corporation Representative Patent attorney Yutabe Kumagai Figure 1

Claims (1)

【特許請求の範囲】 磁気ディスク装置の書込・読出制御を行う磁気ディスク
制御装置において、 2重書きの対象となる装置の対応関係を記憶する装置対
応テーブル記憶手段と、 2重書きのための書込データを記憶する書込データ記憶
手段と、 トラック単位の2重書き制御を行うためのトラック制御
テーブル記憶手段と、 を有し、上位装置からの2重書き対象装置への書込指令
に対し一方の磁気ディスク装置への書込みと書込データ
記憶手段への書込み動作完了をもって上位装置への終了
報告を行うことを特徴とする磁気ディスク制御装置。
[Scope of Claims] A magnetic disk control device that controls writing and reading of a magnetic disk device, comprising: device correspondence table storage means for storing a correspondence relationship between devices subject to double writing; It has write data storage means for storing write data, and track control table storage means for performing double write control on a track-by-track basis. On the other hand, a magnetic disk control device is characterized in that a completion report is sent to a host device upon completion of writing to one of the magnetic disk devices and writing to the write data storage means.
JP9763486A 1986-04-26 1986-04-26 Magnetic disk control device Pending JPS62256266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9763486A JPS62256266A (en) 1986-04-26 1986-04-26 Magnetic disk control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9763486A JPS62256266A (en) 1986-04-26 1986-04-26 Magnetic disk control device

Publications (1)

Publication Number Publication Date
JPS62256266A true JPS62256266A (en) 1987-11-07

Family

ID=14197583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9763486A Pending JPS62256266A (en) 1986-04-26 1986-04-26 Magnetic disk control device

Country Status (1)

Country Link
JP (1) JPS62256266A (en)

Similar Documents

Publication Publication Date Title
EP0567144A2 (en) Disk control system
JPH07281840A (en) Dual-disk recording device
JPH04325923A (en) Access control system for optical disk device
JPH1097385A (en) Disk recording and reproducing device and interface controller applied to the recording and reproducing device
JPH04243458A (en) Communication system between asynchronous channel direct access storage device
JPS62256266A (en) Magnetic disk control device
JPS583103A (en) Magnetic disc device
JPH04111113A (en) Hard disk emulator
JPS58182775A (en) Self-diagnosing system of magnetic disk
JPS62139172A (en) Magnetic disk controller
JPS60245029A (en) Data write system
JPS6331806B2 (en)
JPH11175261A (en) Control method for disk
JPH0793101A (en) Data backup device
JPH09305323A (en) Disk storage system
JP2561394B2 (en) I / O control method
JPH01223529A (en) Semiconductor disk device
JPH0684283A (en) Transfer method for magneto-optical disk data
JP3260613B2 (en) Information processing device
JPS6041125A (en) Control device of storage device
JPH0659820A (en) Control method for magnetic disk device of duplicate recording system
JPS6286425A (en) Magnetic disc control device
JPS6247735A (en) Controller for external memory device
JPH0644012A (en) Data transfer system using pseudo magnetic disk device
JPH05242605A (en) Disk control device