JPH02222027A - Data multi-writing control system for auxiliary memory - Google Patents
Data multi-writing control system for auxiliary memoryInfo
- Publication number
- JPH02222027A JPH02222027A JP4354089A JP4354089A JPH02222027A JP H02222027 A JPH02222027 A JP H02222027A JP 4354089 A JP4354089 A JP 4354089A JP 4354089 A JP4354089 A JP 4354089A JP H02222027 A JPH02222027 A JP H02222027A
- Authority
- JP
- Japan
- Prior art keywords
- auxiliary storage
- data
- storage device
- magnetic disk
- 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.)
- Pending
Links
- 238000012545 processing Methods 0.000 claims description 194
- 238000003860 storage Methods 0.000 claims description 157
- 238000000034 method Methods 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 2
- 230000005856 abnormality Effects 0.000 claims 2
- 238000012546 transfer Methods 0.000 abstract description 25
- 230000008569 process Effects 0.000 description 25
- 230000001360 synchronised effect Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 15
- 230000004913 activation Effects 0.000 description 4
- 238000013523 data management Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 2
- 238000013416 safety cell bank Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、計算機システムにおける多重書き方式に関し
、特に補助記憶装置に記憶するデータの信頼性を向上−
するための補助記憶制御方式に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a multiple write method in a computer system, and particularly to improving the reliability of data stored in an auxiliary storage device.
This relates to an auxiliary storage control method for
従来、補助記憶装置に記憶するデータの信頼性を高める
方法として、例えば特開昭61−249132号公報に
記載されているような磁気ディスり制御装置によるデー
タ二重書き方式がある。Conventionally, as a method for increasing the reliability of data stored in an auxiliary storage device, there is a data double writing method using a magnetic disk control device as described in, for example, Japanese Patent Laid-Open No. 61-249132.
この方法では、オペレーティングシステムにより2台の
磁気ディスク装置に同一データを書き込んでおき、1台
の磁気ディスク装置が故障の場合には、他方の磁気ディ
スク装置に記憶されたデータを使用して処理を続行する
ことができ、処理の中断を防止できる。この場合、上記
公報記載の方式の特徴は、オペレーティングシステムか
ら1回のデータ書き込み命令を発行するだけで、2台の
磁気ディスク装置に同一データを書き込むことができる
点である9すなわち、計算機システムの補助記憶装置で
ある磁気ディスク装置を制御する制御装置内にデータバ
ッファを設けて、中央処理装置からのデータ書き込み要
求が発生した際に、1台目の磁気ディスク装置と上記デ
ータバッファにデータを格納した後、次にそのデータバ
ッファに格納されている中央処理装置からの書き込みデ
ータを、磁気ディスク制御装置が2台目の磁気ディスク
装置に対して自動的に書き込む。これにより、1回のデ
ータ書き込み要求で、2台の磁気ディスク装置に同一デ
ータを書き込むことが可能である。In this method, the same data is written to two magnetic disk drives by the operating system, and if one magnetic disk drive fails, processing is performed using the data stored in the other magnetic disk drive. It is possible to continue processing and prevent interruption of processing. In this case, the feature of the method described in the above publication is that the same data can be written to two magnetic disk devices by issuing a single data write command from the operating system9. A data buffer is provided in the control device that controls the magnetic disk device, which is an auxiliary storage device, and when a data write request is generated from the central processing unit, data is stored in the first magnetic disk device and the data buffer. After that, the magnetic disk control device automatically writes the write data from the central processing unit stored in the data buffer to the second magnetic disk device. This makes it possible to write the same data to two magnetic disk devices with a single data write request.
上記公報には、1台の磁気ディスク装置が故障した場合
の処理については、何も記載されていない。The above-mentioned publication does not describe anything about what to do when one magnetic disk device fails.
従来の方法では、複数の磁気ディスク装置に同一のデー
タを書き込み、そのデータを磁気ディスク装置から読み
出す際に、1台の磁気ディスク装置が故障した場合には
、オペレーティングシステムにより他方の正常な磁気デ
ィスク装置からデータを読み出す必要がある。そのため
には、オペレーティングシステムが、常に同一データを
書き込んだ全ての磁気ディスク装置の状態を把握してい
なければならない。その結果、オペレーティングシステ
ムの処理が複雑になるという問題があった。In the conventional method, when writing the same data to multiple magnetic disk drives and reading that data from the magnetic disk drives, if one of the magnetic disk drives fails, the operating system uses the other normal magnetic disk. It is necessary to read data from the device. To do this, the operating system must always know the status of all magnetic disk devices into which the same data has been written. As a result, there is a problem in that the processing of the operating system becomes complicated.
本発明の目的は、このような従来の課題を解決し、多重
書きを行っている磁気ディスク装置の一部が故障の場合
、オペレーティングシステムに依存することなく、自動
的に正しいデータを中央処理装置に転送できるような補
助記憶装置のデータ多重書き制御方式を提供することに
ある。The purpose of the present invention is to solve such conventional problems, and when a part of a magnetic disk device that performs multiple writing fails, the correct data is automatically transferred to the central processing unit without depending on the operating system. An object of the present invention is to provide a data multiplex write control method for an auxiliary storage device that can transfer data to the auxiliary storage device.
上記目的を達成するため1本発明による補助記憶装置の
データ多重書き制御方式は、中央処理装置とチャネルイ
ンタフェースを介して接続され、かつドライブインタフ
ェースを介して複数の補助記憶装置と接続された補助記
憶制御装置であって。In order to achieve the above objects, the present invention provides a data multiplex writing control method for an auxiliary storage device, which is an auxiliary storage device connected to a central processing unit via a channel interface and connected to a plurality of auxiliary storage devices via a drive interface. It is a control device.
上記中央処理装置に対して予め組み合わせた複数の補助
記憶装置を1台の補助記憶装置(以下、論理補助記憶装
置と記す)として認識させ、上記中央処理装置から補助
記憶装置にデータ書き込み要求が発生すると、上記論理
補助記憶装置を構成する組み合わせの中から1台の補助
記憶装置を選択して、該補助記憶装置と上記補助記憶制
御装置内のデータバッファにデータの書き込みを行い、
正常に書き込みが終了したときには、上記中央処理装置
に正常の書き込み終了を報告し、その後、論理補助記憶
装置として組み合わされた残りの補助記憶装置に対して
データの書き込みを行う補助記憶制御装置において、上
記補助記憶装置にデータの書き込みを行っている途中で
、障害が発生したときには、該補助記憶制御装置内のメ
モリの補助記憶装置単位に、書き込み障害位置を記憶す
ることに特徴がある。The central processing unit is made to recognize a plurality of auxiliary storage devices that have been combined in advance as one auxiliary storage device (hereinafter referred to as a logical auxiliary storage device), and a data write request is generated from the central processing unit to the auxiliary storage device. Then, one auxiliary storage device is selected from among the combinations configuring the logical auxiliary storage device, and data is written to the auxiliary storage device and the data buffer in the auxiliary storage control device,
When the writing is completed normally, the auxiliary storage control device reports the normal completion of writing to the central processing unit, and then writes data to the remaining auxiliary storage devices combined as the logical auxiliary storage device, A feature of the present invention is that when a failure occurs while data is being written to the auxiliary storage device, the location of the write failure is stored in each auxiliary storage device of the memory within the auxiliary storage control device.
本発明においては、(i)中央処理装置から転送された
データを複数の補助記憶装置に書き込む際に、障害によ
りデータを正しく記憶できなかった場合には、その障害
が発生した補助記憶装置上の位置を補助記憶制御装置内
のメモリに記録する(第1図参照)。(n)また、中央
処理装置から転送されたデータを複数の補助記憶装置に
書き込む際に、ある補助記憶装置に故障が発生した場合
、その障害位置を記録するとともに、他の補助記憶装置
にて正しくデータを記録できたときには、補助記憶制御
装置は中央処理装置にデータ転送が正常に行われたこと
を報告する(第3図参照)。(iii)複数の補助記憶
装置にデータを書き込む際に、それら全ての補助記憶装
置において障害が発生した場合には、データ転送が正し
く実行できなかつたことを中央処理装置に報告する(第
3図参照)。(iv )次に、補助記憶装置上のデータ
を中央処理装置に転送する際には、障害位置情報を参照
して、正しくデータが記録されている補助記憶装置を選
択する(第3図参照)。(V)また、補助記憶装置上の
データを中央処理装置に転送する際に、補助記憶装置上
のデータを正しく読み出すことができなかった場合には
、その障害が発生した補助記憶装置上の位置を補助記憶
制御装置内のメモリに記憶する(第3図参照)。(vi
)補助記憶装置上のデータを中央処理装置に転送する際
に、各補助記憶装置上のデータを読み出した結果、正し
くデータが記録されている補助記憶装置がない場合には
、中央処理装置に対してデータ転送が正しく実行できな
かったことを報告する(第3図参照)。(煽)次に、書
き込み、読み出しの際に障害が発生した場合、補助記憶
装置の記憶媒体に、その障害が発生した位置の情報を記
録する。(=4 )また、補助記憶制御装置内のメモリ
を不揮発化する。(ix)また、補助記憶制御装置内の
メモリには、階層構造のデータテーブルを格納し、この
テーブルから補助記憶装置上のデータが補助記憶制御装
置内のデータバッファ内に存在するか否かおよび当該デ
ータが正常か否かを判別する。In the present invention, (i) when data transferred from the central processing unit is written to multiple auxiliary storage devices, if the data cannot be stored correctly due to a failure, the auxiliary storage device in which the failure occurred is The location is recorded in the memory in the auxiliary storage controller (see Figure 1). (n) In addition, if a failure occurs in one auxiliary storage device when data transferred from the central processing unit is written to multiple auxiliary storage devices, the location of the failure will be recorded and other auxiliary storage devices will be written. When the data can be recorded correctly, the auxiliary storage control device reports to the central processing unit that the data transfer was performed normally (see FIG. 3). (iii) When writing data to multiple auxiliary storage devices, if a failure occurs in all of the auxiliary storage devices, the central processing unit is notified that the data transfer could not be executed correctly (see Figure 3). reference). (iv) Next, when transferring the data on the auxiliary storage device to the central processing unit, refer to the failure location information and select the auxiliary storage device in which the data is correctly recorded (see Figure 3). . (V) In addition, if the data on the auxiliary storage device cannot be read correctly when transferring the data on the auxiliary storage device to the central processing unit, the location on the auxiliary storage device where the failure occurred is stored in the memory within the auxiliary storage control device (see FIG. 3). (vi
) When transferring the data on the auxiliary storage device to the central processing unit, if there is no auxiliary storage device in which the data is correctly recorded after reading the data on each auxiliary storage device, the data is transferred to the central processing unit. to report that the data transfer could not be executed correctly (see Figure 3). (Advanced) Next, when a failure occurs during writing or reading, information on the location where the failure occurs is recorded in the storage medium of the auxiliary storage device. (=4) Also, the memory in the auxiliary storage control device is made non-volatile. (ix) In addition, a hierarchically structured data table is stored in the memory in the auxiliary storage control device, and it is determined from this table whether or not data on the auxiliary storage device exists in the data buffer in the auxiliary storage control device. Determine whether the data is normal or not.
その結果1本発明では、中央処理装置からの1回の書き
込み要求で複数の補助記憶装置に対してデータを格納す
ることが可能となり、かつデータの書き込み時および読
み出し時に補助記憶装置で障害が発生した場合、オペレ
ーティングシステムが介在しなくても、正常な補助記憶
装置により入出力動作を実行することができる。As a result 1, in the present invention, it is possible to store data in multiple auxiliary storage devices with a single write request from the central processing unit, and a failure occurs in the auxiliary storage device when writing or reading data. In this case, input/output operations can be performed using the normal auxiliary storage device without the intervention of the operating system.
また、補助記憶装置が磁気テープ装置のように取り外し
可能な記憶媒体の場合、記憶媒体取り外し時にその記憶
媒体に対応する障害情報を記憶媒体自体に記録し、その
記憶媒体が補助記憶装置に取り付けられたとき、取り外
しの際に記録した障害情報を補助記憶制御装置内の制御
メモリに展開することにより、取り外し可能な記憶媒体
の補助記憶装置においても、データの多重書きが可能と
なる。Additionally, if the auxiliary storage device is a removable storage medium such as a magnetic tape device, failure information corresponding to the storage medium is recorded on the storage medium itself when the storage medium is removed, and the storage medium is attached to the auxiliary storage device. When a removable storage medium is used, multiple writing of data becomes possible even in the auxiliary storage device of a removable storage medium by expanding the failure information recorded at the time of removal into the control memory in the auxiliary storage control device.
さらに、補助記憶装置がディスクキャッシュメモリ付き
の磁気ディスク装置の場合、磁気ディスク装置上のデー
タを中央処理装置がアクセスした際に、シリンダテーブ
ルやトラックテーブルからデータが正しく記録されてい
る磁気ディスク装置であるか否か、またはディスクキャ
ッシュメモリ上にそのデータが存在するか否かを判定す
ることにより、正しく記録されたデータの検索を高速化
することが可能である。Furthermore, if the auxiliary storage device is a magnetic disk device with disk cache memory, when the central processing unit accesses the data on the magnetic disk device, the magnetic disk device must be able to correctly record data from the cylinder table and track table. By determining whether the data exists or not, or whether the data exists on the disk cache memory, it is possible to speed up the search for correctly recorded data.
以下、本発明の実施例を、図面により詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
第2図は、本発明の一実施例を示す磁気ディスク制御装
置のブロック図である。FIG. 2 is a block diagram of a magnetic disk control device showing one embodiment of the present invention.
第2図に示すように、磁気ディスク制御装置2は、チャ
ネルインタフェースを介して中央処理装置1に接続され
る一方、ドライブインタフェースを介して、取り外し不
可能な磁気ディスク装置31.32.33を含む磁気デ
ィスク装置群に接続されている。磁気ディスク制御装置
2のチャネルインタフェースとドライブインタフェース
は、データバス23を介して相互に接続されている。こ
のデータバス23には、磁気ディスク装置上のデータを
格納するためのディスクキャッシュメモリ24が接続さ
れている。磁気ディスク制御装置2は、中央処理装置1
とのデータ転送制御等を行うチャネル側制御部2oと、
磁気ディスク装置群とのデータ転送制御等を行うドライ
ブ側制御部22の2つの制御部により制御される。これ
らの制御部20.22は、磁気ディスク制御装置2全体
を制御するためのデバイス制御テーブルが格納された制
御メモリ21と、磁気ディスク装置上のデータとディス
クキャッシュメモリ24上のデータとの対応関係および
補助記憶装置上の障害位置を記憶するディレクトリメモ
リ25に接続されている。As shown in FIG. 2, the magnetic disk control device 2 is connected to the central processing unit 1 via a channel interface, and includes non-removable magnetic disk devices 31, 32, and 33 via drive interfaces. Connected to a group of magnetic disk devices. The channel interface and drive interface of the magnetic disk control device 2 are interconnected via a data bus 23. Connected to this data bus 23 is a disk cache memory 24 for storing data on the magnetic disk device. The magnetic disk control device 2 includes the central processing unit 1
a channel-side control unit 2o that controls data transfer between the
It is controlled by two control units of a drive-side control unit 22 that controls data transfer with a group of magnetic disk devices. These control units 20 and 22 have a control memory 21 storing a device control table for controlling the entire magnetic disk control device 2, and a correspondence relationship between data on the magnetic disk device and data on the disk cache memory 24. and a directory memory 25 that stores the fault location on the auxiliary storage device.
なお、この実施例では、2つの制御部20.22により
制御される磁気ディスク制御襞置2の例を示しているが
、この対の制御部20.22を複数組配置することによ
り、同時に複数の中央処理装置からの入出力要求を処理
することが可能である。Although this embodiment shows an example of the magnetic disk control fold placement 2 controlled by two control units 20.22, by arranging a plurality of pairs of control units 20.22, a plurality of control units 20.22 can be used simultaneously. It is possible to process input/output requests from the central processing unit.
また、磁気ディスク制御装匝2には、SvPインタフェ
ースを介してサービスプロセッサ3が接続されている。Further, a service processor 3 is connected to the magnetic disk control unit 2 via an SvP interface.
サービスプロセッサ3は、フロッピーディスク装置4を
具備しており、SvPインタフェースを介して磁気ディ
スク制御装置2の実行状態を監視する役目を果す。The service processor 3 includes a floppy disk device 4, and serves to monitor the execution status of the magnetic disk control device 2 via the SvP interface.
磁気ディスク制御装置2は、磁気ディスク装置31.3
2を1台の磁気ディスク装置であるかのように、中央処
理装置1上で動作するオペレーティングシステム10に
見せる機能を果す。この場合、これら2つの磁気ディス
ク装[31,32が機能する1台の磁気ディスク装置を
、論理磁気ディスク装置30と呼ぶことにする6
論理磁気デイスク装置30と磁気ディスク装置31.3
2との対応関係は、オペレーティングシステム10また
はサービスプロセッサ3からの指示により設定され、こ
の装置構成情報は磁気ディスク制御装置2内の制御メモ
リ21に記憶される。The magnetic disk control device 2 includes a magnetic disk device 31.3.
2 appears to the operating system 10 running on the central processing unit 1 as if it were a single magnetic disk device. In this case, one magnetic disk device in which these two magnetic disk devices [31, 32 function] will be referred to as a logical magnetic disk device 30.6 Logical magnetic disk device 30 and magnetic disk device 31.3
2 is set by an instruction from the operating system 10 or the service processor 3, and this device configuration information is stored in the control memory 21 in the magnetic disk control device 2.
中央処理装置lから論理磁気ディスク装置30への入出
力要求は、特別な装置アドレスを指定してもよく、また
論理磁気ディスク装置3oを構成するいずれかの磁気デ
ィスク装置アドレスを指定してもよく、いずれの場合に
も論理磁気ディスク装置30がアクセスされる。An input/output request from the central processing unit l to the logical magnetic disk device 30 may specify a special device address, or may specify the address of one of the magnetic disk devices constituting the logical magnetic disk device 3o. In either case, the logical magnetic disk device 30 is accessed.
中央処理装置1上のオペレーティングシステム10から
、論理磁気ディスク装置30を構成する磁気ディスク装
置31.32に書き込み要求を行った場合には、論理磁
気ディスク装置30を構成する全ての磁気ディスク装置
に対して同一のデータが書き込まれ、これにより磁気デ
ィスク装置の2重書き機能が実現される。ここでは、2
台の磁気ディスク装置31.32からなる論理磁気ディ
スク装置30の例が示されているが、2台以上複数台の
磁気ディスク装置に拡張することができるので、多重書
き制御が可能である。When a write request is made from the operating system 10 on the central processing unit 1 to the magnetic disk devices 31 and 32 that make up the logical magnetic disk device 30, all magnetic disk devices that make up the logical magnetic disk device 30 are requested to write. The same data is written to the disk, thereby realizing the dual write function of the magnetic disk device. Here, 2
Although an example of a logical magnetic disk device 30 consisting of two magnetic disk devices 31 and 32 is shown, it can be expanded to two or more magnetic disk devices, so multiple writing control is possible.
第3図は、本発明の概略フローチャートである。FIG. 3 is a schematic flowchart of the present invention.
中央処理装置1から論理磁気ディスク装置30に対して
データの書き込み要求が発行された場合、磁気ディスク
制御装@2は、先ず書き込み対象となった磁気ディスク
装置上の位置を求め、次に、論理磁気ディスク装置30
を構成する磁気ディスク装置31.32の中から、書き
込み対象となった位置に正しくデータが書き込まれてい
る磁気ディスク装置をディレクトリメモリ25上の障害
情報を参照して1台だけ選択する(ステップ4001)
。選択された磁気ディスク装置を、同期処理補助記憶装
置と呼ぶ。中央処理装置1から同期処理補助記憶装置と
制御装置2内のディスクキャッシュメモリ24に対して
、同時にデータを転送する(ステップ4002)。磁気
ディスク制御装置2は、ディスクキャッシュメモリ24
および同期処理補助記憶装置にデータが正しく書き込め
たことを確認する(ステップ4003)。この結合、同
期補助記憶装置に正しくデータを格納した場合、中央処
理装置1に対してデータ書き込み要求が正常に終了した
ことを報告する。同期処理補助記憶装置への書き込み動
作が正常に行われなかった場合には、ディレクトリメモ
リ25に障害位置を記録しくステップ4003)、他に
正常な磁気ディスク装置が存在する場合(ステップ40
05)、論理磁気ディスク装置30の中から選択して(
ステップ4001)、これを同期処理補助記憶装置とし
て再度中央処理装置1から書き込みデータを転送させる
(ステップ4002)。When a data write request is issued from the central processing unit 1 to the logical magnetic disk device 30, the magnetic disk controller @2 first determines the location on the magnetic disk device that is the write target, and then writes the data to the logical magnetic disk device 30. Magnetic disk device 30
Among the magnetic disk devices 31 and 32 that make up the system, only one magnetic disk device in which data is correctly written to the write target location is selected by referring to the fault information on the directory memory 25 (step 4001). )
. The selected magnetic disk device is called a synchronous processing auxiliary storage device. Data is simultaneously transferred from the central processing unit 1 to the synchronous processing auxiliary storage device and the disk cache memory 24 in the control device 2 (step 4002). The magnetic disk control device 2 includes a disk cache memory 24
Then, it is confirmed that the data has been correctly written to the synchronous processing auxiliary storage device (step 4003). When the data is correctly stored in this combined and synchronized auxiliary storage device, it is reported to the central processing unit 1 that the data write request has been successfully completed. If the write operation to the synchronous processing auxiliary storage device is not performed normally, the location of the failure is recorded in the directory memory 25 (step 4003), or if there is another normal magnetic disk device (step 40).
05), select from among the logical magnetic disk devices 30 (
Step 4001), this is used as a synchronous processing auxiliary storage device to transfer write data from the central processing unit 1 again (Step 4002).
この場合、正常な磁気ディスク装置が選択できなかった
場合には、中央処理装置1に対して書き込み異常を報告
する(ステップ4006)。In this case, if a normal magnetic disk device cannot be selected, a write error is reported to the central processing unit 1 (step 4006).
同期処理補助記憶装置に対してデータを書き込んだ場合
(ステップ4003)、中央処理装置に対し、入出力要
求の正常終了を報告しくステップ4007)、その後、
同期処理補助記憶装置を除く論理磁気ディスク装置30
を構成する磁気ディスク装置に対し、順次ディスクキャ
ッシュ24内の書き込みデータを書き込む(ステップ4
009)。When data is written to the synchronous processing auxiliary storage device (step 4003), normal completion of the input/output request is reported to the central processing unit (step 4007), and then,
Logical magnetic disk device 30 excluding synchronous processing auxiliary storage device
The write data in the disk cache 24 is sequentially written to the magnetic disk devices that make up the disk cache 24 (step 4).
009).
このとき、磁気ディスク装置に正しくデータを書き込め
なかった場合、ディレクトリメモリ25に障害位置を記
録する。At this time, if data cannot be correctly written to the magnetic disk device, the location of the failure is recorded in the directory memory 25.
次に、中央処理装置1から論理磁気ディスク装置30に
対して、データの読み出し要求が発行された場合には、
先ず読み出し対象の論理磁気ディスフ装[30を構成す
る磁気ディスク装置の中から、読み出し対象となったデ
ータが正しく書き込まれている磁気ディスク装置を、デ
ィレクトリメモリ25を参照して、書き込み時と同じよ
うに同期処理補助記憶装置を1台だけ選択する(ステッ
プ4001)。そして、磁気ディスク制御装置2は、選
択された同期処理補助記憶装置内の読み出し対象データ
を、中央処理装置1に転送する(ステップ4002)。Next, when a data read request is issued from the central processing unit 1 to the logical magnetic disk device 30,
First, from among the magnetic disk devices constituting the logical magnetic disk drive to be read [30], select the magnetic disk device in which the data to be read has been correctly written, by referring to the directory memory 25, in the same way as when writing. Only one synchronous processing auxiliary storage device is selected (step 4001). Then, the magnetic disk control device 2 transfers the data to be read in the selected synchronous processing auxiliary storage device to the central processing unit 1 (step 4002).
中央処理装置1に対して正しくデータが転送できた場合
には(ステップ4003)、中央処理装置1に対してデ
ータ読み出し要求が正常に終了したことを報告する(ス
テップ4007)。一方、同期処理補助記憶装置からの
読み出し処理が正常に行われなかった場合(ステップ4
003)には、ディレクトリメモリ25に障害位置を記
録(ステップ4004)した後、他の磁気ディスク装置
の中からデータが正常に格納されている磁気ディスクの
装置を1台選択(ステップ4001)して、これを同期
処理補助記憶装置とし、中央処理装置1に対して読み出
し対象データを転送する(ステップ4001)。If the data has been successfully transferred to the central processing unit 1 (step 4003), it is reported to the central processing unit 1 that the data read request has been successfully completed (step 4007). On the other hand, if the read processing from the synchronous processing auxiliary storage device is not performed normally (step 4
003), after recording the fault location in the directory memory 25 (step 4004), one of the magnetic disk devices in which data is normally stored is selected from among the other magnetic disk devices (step 4001). , this is used as a synchronous processing auxiliary storage device, and data to be read is transferred to the central processing unit 1 (step 4001).
第1図は1本発明の一実施例を示す制御メモリとディレ
クトリメモリのブロック図であって、第2図において、
磁気ディスク制御装置を制御するための制御テーブル関
連の構成が示される。FIG. 1 is a block diagram of a control memory and a directory memory showing one embodiment of the present invention, and in FIG.
A configuration related to a control table for controlling a magnetic disk controller is shown.
制御テーブルとしては、制御メモリ21内のデバイス制
御ブロックD CB (Device Contro
lB Lock)と、ディレクトリメモリ25内のスロ
ット制御ブロックS CB (S lot Cont
rol B Lock)とがある。DCBlooO−
a、1000−bは。As a control table, a device control block D CB (Device Control) in the control memory 21 is used.
1B Lock) and a slot control block S CB (S lot Cont) in the directory memory 25.
rol B Lock). DCBlooO-
a, 1000-b.
磁気ディスク制御装置2が制御する磁気ディスク装置単
位に存在して、磁気ディスク装置に対する入出力動作を
実行するための制御ブロックである。This control block exists in each magnetic disk device controlled by the magnetic disk controller 2 and is used to execute input/output operations for the magnetic disk device.
一方、5CB4000−1.4000−2は、ディスク
キャッシュメモリ24に格納されているデータを管理す
るための制御ブロックである。その他にも、シリンダテ
ーブル2000−a、200o−b、およびトラックテ
ーブル3000− a、30oo−bが、障害記録のた
めと、磁気ディスク装置上のデータがキャッシュメモリ
上に存在する事を高速判定するために設けられる。On the other hand, 5CB4000-1.4000-2 is a control block for managing data stored in the disk cache memory 24. In addition, cylinder tables 2000-a, 200o-b and track tables 3000-a, 30oo-b are used to record failures and to quickly determine whether data on a magnetic disk device exists in cache memory. established for the purpose of
論理磁気ディスク装置を構成する磁気ディスク装置を制
御するDCBlooO−aとDCB 10oo−bは、
それぞれ磁気ディスク装置31と32に対応して設けら
れ、ポインタ1500.160oにより結合されて、そ
の構成が管理されている。すなわち、ポインタ1500
.1600により2つのテーブル1000−a、bが互
いに結合され、ポインタ1700.1800により各々
5CB4000−1.2と結合され、ポインタ1100
により各々シリンダテーブル2000−a。DCBlooO-a and DCB 10oo-b control the magnetic disk devices that constitute the logical magnetic disk device.
They are provided corresponding to the magnetic disk drives 31 and 32, respectively, and are connected by pointers 1500 and 160o to manage their configurations. That is, pointer 1500
.. Two tables 1000-a and b are joined to each other by 1600, and each is joined to 5CB4000-1.2 by pointer 1700.1800, and by pointer 1100.
cylinder table 2000-a.
bに結合されている。It is connected to b.
次に、シリンダテーブル2000−a、bは、同じく論
理磁気ディスク装置30を構成する磁気ディスク装置に
対応して設けられ、ポインタによりそれぞれトラックテ
ーブル3000−a、bに結合される。これらのシリン
ダテーブル2000とトラックテーブル3000は、い
ずれも磁気ディスク装置31.32上のデータがキャッ
シュメモリ24上に存在するか否かまたは、当該トラッ
クにおいて障害が発生しているか否かを判定するための
テーブルである。シリンダテーブル200Q−a、bは
磁気ディスク装置単位に存在し、そのエントリは磁気デ
ィスク装置のシリンダと対応して、トラックテーブル3
000の先頭を示している。トラックテーブル3000
のエントリは、磁気ディスク装置のトラックと対応して
おり、それらのトラックが正常にアクセス可能であるか
否かを示す障害フラグ3100($1で示す)と、ディ
スクキャッシュメモリ24に格納されているデータを管
理するための制御ブロックであるスロット制御ブロック
(SCB)4000のアドレスを示す領域3200によ
り構成される。Next, cylinder tables 2000-a and 2000-b are provided corresponding to the magnetic disk devices that also constitute the logical magnetic disk device 30, and are coupled to track tables 3000-a and 3000-b, respectively, by pointers. Both the cylinder table 2000 and the track table 3000 are used to determine whether data on the magnetic disk devices 31 and 32 exists on the cache memory 24 or whether a failure has occurred in the relevant track. This is the table. The cylinder tables 200Q-a and 200Q-b exist for each magnetic disk device, and their entries correspond to the cylinders of the magnetic disk device.
It shows the beginning of 000. truck table 3000
The entries correspond to tracks of the magnetic disk device, and are stored in the disk cache memory 24 along with a failure flag 3100 (indicated by $1) indicating whether or not those tracks can be accessed normally. It is composed of an area 3200 indicating the address of a slot control block (SCB) 4000, which is a control block for managing data.
ディスクキャッシュメモリ24内にデータが存在しない
トラックに対応するトラックテーブル上のエントリには
、NULLのコードが設定されている。A NULL code is set in the entry on the track table corresponding to a track for which no data exists in the disk cache memory 24.
以下、磁気ディスク装置に対する多重書き制御の動作を
、説明する。The operation of multiple write control for the magnetic disk device will be described below.
中央処理装置1上のオペレーティングシステム10が磁
気ディスク装置31に入出力要求を行った場合、この入
出力要求を受は取った磁気ディスク制御装置2は、制御
メモリ21内に格納されたDCBのポインタ1500,
1600を参照することにより、互いに結合されている
ことから、磁気ディスク装置31が論理磁気ディスク装
置30を構成する磁気ディスク装置であることを判定す
る。そして、中央処理装置1からの入出力動作を実行す
る磁気ディスク装@(同期処理磁気ディスク装置と呼ぶ
)を論理磁気ディスク装置30の中から選択する。この
処理を、同期磁気ディスク装置選択処理と呼ぶことにす
る。When the operating system 10 on the central processing unit 1 makes an input/output request to the magnetic disk device 31, the magnetic disk control device 2 that received the input/output request stores the DCB pointer stored in the control memory 21. 1500,
1600, it is determined that the magnetic disk device 31 is a magnetic disk device constituting the logical magnetic disk device 30 since they are coupled to each other. Then, a magnetic disk device @ (referred to as a synchronous processing magnetic disk device) that executes input/output operations from the central processing unit 1 is selected from among the logical magnetic disk devices 30 . This process will be referred to as synchronous magnetic disk device selection process.
第4図は、本発明における同期磁気ディスク装置選択処
理の動作フローチャートである。FIG. 4 is an operational flowchart of synchronous magnetic disk device selection processing in the present invention.
中央処理装置1から磁気ディスク制御装置2により制御
される磁気ディスク装置に対して入出力要求が発行され
ると、その磁気ディスク装置に対応するDCBlooO
を制御メモリ21から読み出シ(ステップ5000)、
DCBlooOを参照することにより、入出力要求が発
行された磁気ディスク装置が使用中であるか否かを判定
する(ステップ5001)。判定の結果、使用中でない
と判定された場合には、その磁気ディスク装置を同期処
理磁気ディスク装置として、DCBlooOに使用中を
記録する(ステップ5005)、次に、中央処理装置1
に対してデバイス使用可能を報告する(ステップ500
6)。When an input/output request is issued from the central processing unit 1 to a magnetic disk device controlled by the magnetic disk control device 2, the DCBlooO corresponding to the magnetic disk device is
is read from the control memory 21 (step 5000),
By referring to DCBlooO, it is determined whether the magnetic disk device to which the input/output request was issued is in use (step 5001). As a result of the determination, if it is determined that the magnetic disk device is not in use, the magnetic disk device is designated as a synchronous processing magnetic disk device, and the fact that it is in use is recorded in DCBlooO (step 5005). Next, the central processing unit 1
Report device availability to (step 500
6).
また、その磁気ディスク装置が使用中であると判断され
た場合には(ステップ5001)、DCBloooのポ
インタ1500.1600を参照することにより、その
磁気ディスク装置が論理磁気ディスク装置を構成する磁
気ディスク装置であるか否かを判定する(ステップ50
02)。判定の結果、その磁気ディスク装置が論理磁気
ディスク装置を構成する磁気ディスク装置であると判断
された場合には、論理磁気ディスク装置を構成する磁気
ディスク装置の中から、現在使用中でない磁気ディスク
装置を1台選択する(ステップ5003)。Further, if it is determined that the magnetic disk device is in use (step 5001), by referring to the pointer 1500.1600 of DCBlooo, it is determined that the magnetic disk device is a magnetic disk device that constitutes a logical magnetic disk device. (Step 50)
02). As a result of the determination, if it is determined that the magnetic disk device is a magnetic disk device that configures a logical magnetic disk device, select a magnetic disk device that is not currently in use from among the magnetic disk devices that configure the logical magnetic disk device. one unit is selected (step 5003).
次に、論理磁気ディスク装置を構成する全ての磁気ディ
スク装置が使用中か否かを判定しくステップ5004)
、未使用の磁気ディスク装置が存在した場合には、その
未使用の磁気ディスク装置に対して、中央処理装置1か
らの入出力要求を実行するための同期処理磁気ディスク
装置とする(ステップ5005)。この場合、この磁気
ディスク装置に対応するDCBlooOに使用中を設定
した後、中央処理装置1に対してデバイス使用可能を報
告する(ステップ5006)。Next, it is determined whether all the magnetic disk devices that make up the logical magnetic disk device are in use (step 5004).
If an unused magnetic disk device exists, the unused magnetic disk device is designated as a synchronous processing magnetic disk device for executing input/output requests from the central processing unit 1 (step 5005). . In this case, after setting DCBlooO corresponding to this magnetic disk device to be in use, it reports to the central processing unit 1 that the device can be used (step 5006).
また、入出力要求が発行された磁気ディスク装置が使用
中で、かつその磁気ディスク装置が論理磁気ディスク装
置を構成していないと判断された場合(ステップ500
1.5002)、あるいは論理磁気ディスク装置を構成
する全ての磁気ディスク装置が使用中であった場合(ス
テップ5004)、中央処理装置1に対してデバイスビ
ジーを報告する(ステップ5007)。Further, if the magnetic disk device to which the input/output request was issued is in use and it is determined that the magnetic disk device does not constitute a logical magnetic disk device (step 500
1.5002), or if all the magnetic disk units constituting the logical magnetic disk unit are in use (step 5004), the CPU 1 reports device busy to the central processing unit 1 (step 5007).
デバイス使用可能の報告を受は取った中央処理装置1は
、オペレーティングシステム10が入出力要求時に作成
したチャネルコマンドワード(以下、CCWと記す)と
そのパラメータを磁気ディスク制御装置2に転送する。Upon receiving the report that the device is available for use, the central processing unit 1 transfers the channel command word (hereinafter referred to as CCW) created by the operating system 10 at the time of an input/output request and its parameters to the magnetic disk control unit 2 .
CCWとそのパラメータを受は取った磁気ディスク制御
装置2は、中央処理装置1からの入出力要求を同期磁気
ディスク装置により実行する。この入出力要求が、論理
磁気ディスク装置に対するデータの書き込み要求のとき
には、同期磁気ディスク装置への入出力処理終了後、論
理磁気ディスク装置を構成する全ての磁気ディスク装置
に中央処理装置1から転送されたデータを書き込む。The magnetic disk control device 2 that has received the CCW and its parameters executes the input/output request from the central processing unit 1 using a synchronous magnetic disk device. When this input/output request is a data write request to a logical magnetic disk device, after the input/output processing to the synchronous magnetic disk device is completed, it is transferred from the central processing unit 1 to all the magnetic disk devices that make up the logical magnetic disk device. Write the data.
以下、中央処理装置1から論理磁気ディスク装置30へ
のデータ書き込み要求に対する磁気ディスク制御装置2
の処理を、データの書き込みCCWとそのパラメータに
より説明する。Below, the magnetic disk controller 2 responds to a data write request from the central processing unit 1 to the logical magnetic disk device 30.
The processing will be explained using the data write CCW and its parameters.
第5図は、磁気ディスク装置上にデータを書き込む場合
に、オペレーティングシステムが用意するチャネルコマ
ンド群とそのパラメータを示す図である。FIG. 5 is a diagram showing a group of channel commands and their parameters prepared by the operating system when writing data on a magnetic disk device.
第5図において、5SCHは中央処理装置1上のオペレ
ーティングシステム10で実行される入出力起動要求命
令11であり、この入出力起動要求を発行する際の動作
要求ブロックが12である。In FIG. 5, 5SCH is an input/output activation request command 11 executed by the operating system 10 on the central processing unit 1, and 12 is an operation request block when issuing this input/output activation request.
また、磁気ディスク装置に対する書き込み動作を行うた
めのCCW群が(1oO〜105)を含む13であり、
それらの各々によりポインタで結合された(110〜1
14)がCCWのパラメータである。Further, the CCW group for performing a write operation on the magnetic disk device is 13 including (1oO to 105),
connected by pointers (110 to 1
14) are the parameters of CCW.
オペレーティングシステム1oから入出力起動命令(S
SCH:5TART 5UBCHANNEL)11に
より、磁気ディスク制御装置2が制御する磁気ディスク
装置に対して入出力要求が起動されると、磁気ディスク
制御装置2は、チャネル側制御部20により同期磁気デ
ィスク装置を選択する。ここでは、磁気ディスク装置3
1が選択されたものとする。その後、中央処理装置1は
、5SCH命令11により指定された動作要求ブロック
12内のCCWアドレスが示すCCW群13からCCW
を1つずつ読み出して、磁気ディスク制御装置2に転送
する。磁気ディスク制御装置2は、これらのCCWを受
は取ると、チャネル側制御部20によりこれらCCWを
処理する。The input/output start command (S
When an input/output request is activated by SCH:5TART 5UBCHANNEL) 11 to a magnetic disk device controlled by the magnetic disk controller 2, the magnetic disk controller 2 selects a synchronous magnetic disk device by the channel side control unit 20. do. Here, magnetic disk device 3
1 is selected. Thereafter, the central processing unit 1 selects the CCW from the CCW group 13 indicated by the CCW address in the operation request block 12 specified by the 5SCH instruction 11.
are read out one by one and transferred to the magnetic disk control device 2. When the magnetic disk control device 2 receives these CCWs, the channel side control unit 20 processes these CCWs.
次に、CCWを受は取ったチャネル側制御部20の動作
について、詳述する。Next, the operation of the channel-side control unit 20 that receives the CCW will be described in detail.
5EEKコマンド100は、磁気ディスク装置31上の
シリンダアドレス(CC)およびヘッドアドレス(HH
)を、シークアドレス110として指定する。この5E
EKコマンド100と、このコマンドのオペランドであ
るシリンダアドレスと、ヘッドアドレスとをチャネル側
制御部20が受は取ると、このシークアドレス110が
論理的に正しいと判断された場合、その値をDCBlo
oOに格納して、中央処理装置1に対して(チャネルエ
ンド)+(デバイスエンド)のDSB(デバイスステー
タスバイト)を報告する。(チャネルエンド)+(デバ
イスエンド)を受は取った中央処理装置1は、5EEK
コマンド100に続< DE F I NEEXTEN
Tコマンド101をそのコマンドのパラメータであるエ
クステント情報111とともに磁気ディスク制御装置2
にコマンドチエインとして転送する。DEFINE
EXTENTコマンド101とパラメータのエクステン
ト情報111を受は取ったチャネル側制御部20は、そ
のエクステント情報111の論理的チエツクを行い、こ
のパラメータが正しいと判断された場合には、この値を
DCBlooOに格納した後、中央処理装置1に対して
(チャネルエンド)+(デバイスエンド)のDSBを報
告する。(チャネルエンド)+(デバイスエンド)のD
SBを受は取った中央処理装置1は、DEFINE
EXTENTコマンド101に続<SET 5ECT
OR=+vンド102を、このコマンドのパラメータで
あるセクタ番号112とともに、磁気ディスク制御装置
2にコマンドチエインとして転送する。チャネル側制御
部20は、SET 5ECTORコマンドとセクタ番
号を受は取ると、セクタ番号の論理的なチエツクを行い
、このセクタ番号をDCB 1000に格納する。そし
て、先に受は取った5EEKコマンド処理でDCBlo
oOに格納したシークアドレスを読み出し、これをキー
としてディレクトリメモリ25上のシリンダテーブル2
000とトラックテーブル3000を検索し、入出力の
対象とするデータがディスクキャッシュメモリ24上に
存在するか否かの判定、つまりヒツト/ミス判定を行う
。ヒツト/ミス判定の結果、ディスクキャッシュメモリ
24上にデータが存在しない(ミス)と判断された場合
、ディスクキャッシュメモリ24の空き領域を1つ確保
する。ディスクキャッシュメモリ24は、磁気ディスク
装置の1トラツク容量の領域を1スロツトとして5CB
4000により管理される。The 5EEK command 100 specifies the cylinder address (CC) and head address (HH) on the magnetic disk device 31.
) is specified as the seek address 110. This 5E
When the channel-side control unit 20 receives the EK command 100, the cylinder address that is the operand of this command, and the head address, if this seek address 110 is determined to be logically correct, the value is transferred to DCBlo.
oO and reports the (channel end) + (device end) DSB (device status byte) to the central processing unit 1. The central processing unit 1 that received (channel end) + (device end) is 5EEK
Following command 100 < DE F I NEEXTEN
The T command 101 is sent to the magnetic disk controller 2 together with the extent information 111 that is a parameter of the command.
as a command chain. DEFINE
The channel side control unit 20 that receives the EXTENT command 101 and parameter extent information 111 performs a logical check on the extent information 111, and if this parameter is determined to be correct, stores this value in DCBlooO. After that, the DSB of (channel end) + (device end) is reported to the central processing unit 1. (Channel end) + (Device end) D
The central processing unit 1 that received the SB is the DEFINE
Following EXTENT command 101 <SET 5ECT
The OR=+v command 102 is transferred to the magnetic disk controller 2 as a command chain together with the sector number 112 which is a parameter of this command. When the channel side control unit 20 receives the SET 5ECTOR command and the sector number, it performs a logical check of the sector number and stores this sector number in the DCB 1000. Then, by processing the 5EEK command that Uke took earlier, DCBlo
Read the seek address stored in oO and use this as a key in the cylinder table 2 on the directory memory 25.
000 and the track table 3000, and it is determined whether or not data to be input/output exists on the disk cache memory 24, that is, a hit/miss determination is performed. As a result of the hit/miss determination, if it is determined that no data exists on the disk cache memory 24 (miss), one free area in the disk cache memory 24 is secured. The disk cache memory 24 has a capacity of 5 CB, with one slot corresponding to one track capacity of the magnetic disk device.
4000.
SCBには、次の(i)〜(inn)の状態がある。The SCB has the following states (i) to (inn).
(i)未使用状態、(五)使用中状態、 (iii)再
使用可能状態、
未使用状態のSCBは、このSCBが管理するディスク
キャッシュメモリ24上のスロツI−が空き状態である
ことを示す。使用中状態は、そのSCBが管理するディ
スクキャッシュメモリ24上のスロットのデータを削除
してはならない状態であって、具体的には、中央処理装
置1からのデータ読み出し要求により、スロット上のデ
ータの読み出しが行われている状態、または中央処理装
口1から論理磁気ディスク装置30にデータの書き込み
要求が発行され、その論理磁気ディスク装置30を構成
する全ての磁気ディスク装置にデータの書き込み処理が
終了するまでの状態を示している。また、再使用可能状
態は、そのSCBが管理するディスクキャッシュメモリ
24上のスロットのデータが、磁気ディスク装置の内容
と一致しており、そのスロットを破棄してもよい状態を
示している。なお、上述の磁気ディスク装置が論理磁気
ディスク装置30の場合には、その論理磁気ディスク装
置30を構成する全ての磁気ディスク装置31.32の
内容と一致していることが必要である。(i) Unused state, (5) In use state, (iii) Reusable state. An SCB in an unused state indicates that slot I- on the disk cache memory 24 managed by this SCB is free. show. The in-use state is a state in which the data in the slot on the disk cache memory 24 managed by the SCB must not be deleted. Specifically, the data in the slot is deleted due to a data read request from the central processing unit 1. is in a state where data is being read, or a data write request is issued from the central processing unit 1 to the logical magnetic disk device 30, and data writing processing is performed on all the magnetic disk devices that make up the logical magnetic disk device 30. Shows the status until the end. Furthermore, the reusable state indicates a state in which the data in the slot on the disk cache memory 24 managed by the SCB matches the contents of the magnetic disk device, and the slot can be discarded. In addition, when the above-mentioned magnetic disk device is a logical magnetic disk device 30, it is necessary that the contents match the contents of all the magnetic disk devices 31 and 32 that constitute the logical magnetic disk device 30.
第6図は、第2図のディスクキャッシュメモリ上の領域
(スロット)を確保するための処理フローチャートであ
る。FIG. 6 is a processing flowchart for securing an area (slot) on the disk cache memory of FIG. 2.
先ず、未使用SCBが存在するか否かを判定して(ステ
ップ5100)、未使用SCBが存在する場合には、未
使用SCBの中からSCBを1つ確保して、そのSCB
を使用中とする(ステップ5102)。また、未使用S
CBが存在しないと判断された場合には(ステップ51
00)、再使用可能SCBが存在するか否かを判定しく
ステップ5101)、再使用可能SCBが存在すると判
断されたときには、再使用可能SCBの中からSCBを
1つ確保して、そのSCBを使用中とする(ステップ5
102)。また、再使用可能SCBも存在しないと判断
された場合には(ステップ5101)、再使用可能SC
Bが発生するまで中央処理装置1からの入出力要求を待
ち状態とする(ステップ5105)。未使用SCB、ま
たは再使用可能SCBが確保できた場合には、そのSC
Bが管理するディスクキャッシュメモリ24上のスロッ
トのデータが配置されている磁気ディスク装置の番号と
、その磁気ディスク装置上のシリンダアドレスと、トラ
ックアドレスとを格納する(ステップ5103)。さら
に、SCBのアドレスを、そのトラックに対応するトラ
ックテーブル3000のエントリに格納する(ステップ
5104.)。なお、磁気ディスク装置が論理磁気ディ
スク装置を構成している場合には、その論理磁気ディス
ク装置を構成する全ての磁気ディスク装置に対して実行
する(ステップ5104)。First, it is determined whether or not there is an unused SCB (step 5100), and if there is an unused SCB, one SCB is secured from among the unused SCBs, and that SCB is
is in use (step 5102). Also, unused S
If it is determined that the CB does not exist (step 51
00), it is determined whether a reusable SCB exists or not (step 5101), and when it is determined that a reusable SCB exists, one SCB is secured from among the reusable SCBs and the SCB is In use (step 5)
102). Furthermore, if it is determined that there is no reusable SCB (step 5101), the reusable SCB
The input/output request from the central processing unit 1 is placed in a waiting state until B occurs (step 5105). If an unused SCB or reusable SCB can be secured, that SC
The number of the magnetic disk device in which the data in the slot on the disk cache memory 24 managed by B is arranged, the cylinder address and track address on the magnetic disk device are stored (step 5103). Furthermore, the address of the SCB is stored in the entry of the track table 3000 corresponding to the track (step 5104). Note that if the magnetic disk devices constitute a logical magnetic disk device, the process is executed for all magnetic disk devices that make up the logical magnetic disk device (step 5104).
以上の処理により、空きスロットの確保処理が実行され
、その後、磁気ディスク装置31に対してヘッドの位置
付け指示をドライブ側制御部22に対して行い、中央処
理装置1に対してチャネルエンドのDSBを報告した後
、ドライブ側制御部22からの位置付け完了を待つ。ド
ライブ側制御部22は、ヘッドの位置付け要求を受は取
ると、DCB内のシークアドレスをもとにヘッドを目的
とするシリンダ上に位置付け、その後、トラックに対応
するヘッドを選択して、指定されたセクタ番号まで回転
待ちを行う。指定されたセクタ番号に位置付けられた時
点で、磁気ディスク装置31からドライブ側制御部22
に対しセクタレディの割り込みが発生する。この割り込
みを刈り取ったドライブ側制御部22は、セクタレディ
の発生をチャネル側制御部20に通知する。チャネル側
制御部20は、セクタレディの通知を受は取ると、デバ
イスエンドのDSBを中央処理袋@1に報告して、SE
T 5ECTORコマンド処理を終了する(第5図の
コマンド102を終了)。また、ヒツト/ミス判定の結
果、ディスクキャッシュメモリ24上にデータが存在す
る(ヒツト)と判断された場合、5CB4000に格納
されている情報からディスクキャッシュメモリ24上の
指定セクタ位置にアドレス付けを行い、(チャネルエン
ド)+(デバイスエンド)のDSBを中央処理装置1に
報告する。中央処理装置1は、SET 5ECTOR
コマンドの終了を示すDSBを受は取ると、第5図に示
すように、SET 5ECTORコマンド102に続
<5EARCHID EQUALコマンド103とそ
のCCWパラメータであるレコード■D113を、コマ
ンドチエインとして磁気ディスク制御装置2に転送する
。チャネル側制御部20は、これらの5EARCHID
EQUALコマンド103とレコードID113を
受は取ると、先のヒツト/ミス判定によりミスと判断さ
れている場合、磁気ディスク装置31に先に位置付け指
示を行ったセクタの最初のレコードのキ一部の読み出し
指示をドライブ側制御部22に対して行う。次に、チャ
ネル側制御部20は、中央処理装置1から転送されたレ
コードID113とドライブ側制御部22が読み出した
キーの値を比較し、その値が一致したとき、(状態修飾
)+(チャネルエンド)+(デバイスエンド)のDSB
を中央処理装置1に報告する。また、磁気ディスク装置
31から読み出されたキ一部の内容とレコードID11
3の値が不一致の場合には、中央処理装置1に対して(
チャネルエンド)+(デバイスエンド)のDSBを報告
する。Through the above processing, processing for securing an empty slot is executed, and then a head positioning instruction is given to the drive-side control unit 22 for the magnetic disk device 31, and a channel end DSB is sent to the central processing unit 1. After reporting, it waits for the completion of positioning from the drive-side control unit 22. When the drive-side control unit 22 receives a head positioning request, it positions the head on the target cylinder based on the seek address in the DCB, and then selects the head corresponding to the track and performs the specified head positioning. The rotation waits until the sector number is reached. When the sector is located at the designated sector number, the drive-side control unit 22 is sent from the magnetic disk device 31.
A sector ready interrupt occurs. The drive-side control unit 22 that has harvested this interrupt notifies the channel-side control unit 20 of the occurrence of sector ready. When the channel side control unit 20 receives the sector ready notification, it reports the DSB of the device end to the central processing bag @1 and sends it to the SE.
T5 Ends ECTOR command processing (ends command 102 in FIG. 5). Furthermore, if it is determined that data exists (hit) on the disk cache memory 24 as a result of the hit/miss judgment, an address is assigned to the specified sector position on the disk cache memory 24 from the information stored in the 5CB4000. , (channel end) + (device end) DSB is reported to the central processing unit 1. The central processing unit 1 is SET 5ECTOR
When the DSB indicating the end of the command is received, as shown in FIG. Transfer to. The channel side control unit 20 controls these 5EARCHIDs.
When the EQUAL command 103 and the record ID 113 are received, if the previous hit/miss judgment has determined that it was a mistake, the key part of the first record of the sector for which the positioning instruction was given to the magnetic disk device 31 is read out. An instruction is given to the drive-side control unit 22. Next, the channel side control unit 20 compares the record ID 113 transferred from the central processing unit 1 with the key value read by the drive side control unit 22, and when the values match, (state modification) + (channel end) + (device end) DSB
is reported to the central processing unit 1. In addition, the contents of part of the keys read from the magnetic disk device 31 and the record ID 11
If the values of 3 do not match, the central processing unit 1 (
Reports the DSB of channel end) + (device end).
チャネル側制御部20は、5EARCHIDEQUAL
コマンドを受は取った際に、先のヒツト/ミス判定によ
りヒツトと判定された場合、SET 5ECTORコ
マンド処理でアドレス付けしたレコードのキ一部をディ
スクキャッシュメモリ24から読み出し、中央処理装置
1から転送されたレコードIDと比較して、一致したと
きには(状態修飾)+(チャネルエンド)+(デバイス
エンド)のDSBを、また不一致のときには(チャネル
エンド)+(デバイスエンド)のDSBを、それぞれ中
央処理装置1に報告する。The channel side control unit 20 is 5EARCHIDEQUAL
When a command is received, if it is determined as a hit by the previous hit/miss determination, a part of the record addressed by the SET 5 ECTOR command processing is read from the disk cache memory 24 and transferred from the central processing unit 1. Centrally processes the DSB of (state modification) + (channel end) + (device end) when they match, and the DSB of (channel end) + (device end) when they do not match. Report to device 1.
第5図に示すように、中央処理装置1は、(チャネルエ
ンド)+(デバイスエンド)のDSBを受は取ると、5
EARCHID EQUALコマンド103に続<T
ICコマンド104を実行する。TICコマンド104
は、次に実行すべきCCWのアドレスを示すコマンドで
あって、本実施例の場合には、1つ前のコマンドである
5EARCHID EQUALコマンド103を示し
ている。従って、中央処理装置1は、(チャネルエンド
)+(デバイスエンド)の報告を受は取っている限り、
コマンド103を繰り返し磁気ディスク制御装置2に送
出することになる。As shown in FIG. 5, when the central processing unit 1 receives DSB of (channel end) + (device end),
Following EARCHID EQUAL command 103 <T
Execute IC command 104. TIC command 104
is a command indicating the address of the CCW to be executed next, and in the case of this embodiment, indicates the 5EARCHID EQUAL command 103, which is the previous command. Therefore, as long as the central processing unit 1 receives reports of (channel end) + (device end),
The command 103 will be repeatedly sent to the magnetic disk controller 2.
また、中央処理装置1は、(状態修飾)+(チャネルエ
ンド)+(デバイスエンド)のDSBを受は取ると、5
EARCHID EQUALの2つ先のコマンドであ
るWRIHT DATA105とそのWRIHT
DATAコマンドにより磁気ディスク装置に書き込むデ
ータ114を、磁気ディスク制御装置2に転送する。す
なわち、5EARCHID EQUALコマンド10
3と’0Cコマンド104の組み合わせにより、磁気デ
ィスク装置上の入出力の目的とするレコードに位置付け
ることができる。Moreover, when the central processing unit 1 receives the DSB of (state modification) + (channel end) + (device end),
WRIHT DATA105, which is the second command after EARCHID EQUAL, and its WRIHT
Data 114 to be written to the magnetic disk device by the DATA command is transferred to the magnetic disk control device 2. That is, 5 EARCHID EQUAL command 10
3 and the '0C command 104, it is possible to locate the target record for input/output on the magnetic disk device.
磁気ディスク制御装置2のチャネル側制御部20は、中
央処理装置1からWRIHT DATAコマンド10
5と書き込みデータ114を受は取ると、先のヒツト/
ミス判定によりヒツトと判定されている場合、磁気ディ
スク装置31に対してDCBに格納したシークアドレス
、セクタ番号、およびレコードIDを基に、ドライブ側
制御部22に対して位置付け指示を行う。これは、中央
処理装置1から書き込み要求があったときに、そのデー
タを直接磁気ディスク装置上に書き込むことにより、デ
ータの信頼性を確保するためである。The channel side control unit 20 of the magnetic disk control device 2 receives the WRIHT DATA command 10 from the central processing unit 1.
5 and write data 114, the previous hit/
If a hit is determined as a result of a miss determination, a positioning instruction is given to the drive-side control unit 22 based on the seek address, sector number, and record ID stored in the DCB of the magnetic disk device 31. This is to ensure data reliability by writing the data directly onto the magnetic disk device when a write request is received from the central processing unit 1.
チャネル側制御部20は、ヒツト時の位置付け完了後、
またはミス時のWRIHT DATAコマンド受は取
り直後、ディスクキャッシュメモリ24へのデータ転送
準備を行うとともに、ドライブ側制御部22に対してデ
ータ転送準備を指示する。ドライブ側制御部22が磁気
ディスク装置31へのデータ転送準備を終了すると、中
央処理装置1からの書き込みデータ114をディスクキ
ャッシュメモリ24と、磁気ディスク装置31とにそれ
ぞれ転送する。このデータ転送が終了した時、チャネル
側制御部20は、ドライブ側制御部22の磁気ディスク
装置31へのデータ転送結果と、ディスクキャッシュメ
モリ24へのデータ転送結果とを確認し、ともに正常に
終了した場合には、書き込み動作を行ったレコード位置
(シークアドレス、セクタ番号、レコードID)、磁気
ディスク装置31への書き込み処理の終了を5CB40
0o上の記録して、(チャネルエンド)+(デバイスエ
ンド)のDSBを中央処理装置1に転送する。After completing the positioning at the time of hit, the channel side control unit 20
Or, immediately after receiving the WRIHT DATA command in the event of a miss, it prepares for data transfer to the disk cache memory 24 and instructs the drive-side control unit 22 to prepare for data transfer. When the drive-side control unit 22 completes the preparation for data transfer to the magnetic disk device 31, the write data 114 from the central processing unit 1 is transferred to the disk cache memory 24 and the magnetic disk device 31, respectively. When this data transfer is completed, the channel side control unit 20 checks the data transfer result of the drive side control unit 22 to the magnetic disk device 31 and the data transfer result to the disk cache memory 24, and both end normally. In this case, the record position (seek address, sector number, record ID) where the write operation was performed and the end of the write process to the magnetic disk device 31 are specified in 5CB40.
0o and transfers the (channel end)+(device end) DSB to the central processing unit 1.
これによって、同期磁気ディスク装置である磁気ディス
ク装置31へのデータ書き込み入出力要求は終了し、中
央処理装置1から発行された入出力要求は終了する。こ
れまで述べた磁気ディスク装置への書き込み動作を、オ
ンラインデステージ処理と呼ぶ。オンラインデステージ
処理の終了後。As a result, the data write input/output request to the magnetic disk device 31, which is a synchronous magnetic disk device, ends, and the input/output request issued from the central processing unit 1 ends. The write operation to the magnetic disk device described above is called online destaging processing. After completing the online destaging process.
ドライブ側制御部22は、論理磁気ディスク装置を構成
する磁気ディスク装置の中から、先の中央処理装置1か
ら要求された書き込み要求を実行していない磁気ディス
ク装置を5CB4000を参照することにより選択する
。ここでは、磁気ディスク装置32が選択されるので、
磁気ディスク装置32への書き込み動作が、中央処理装
置1とは非同期で実行される。この書き込み動作を、オ
フラインデステージ処理と呼ぶ。以下、オフラインデス
テージ処理について、説明する。The drive-side control unit 22 selects a magnetic disk device that has not executed the write request requested by the central processing unit 1 from among the magnetic disk devices configuring the logical magnetic disk device by referring to 5CB4000. . Here, the magnetic disk device 32 is selected, so
A write operation to the magnetic disk device 32 is executed asynchronously with the central processing unit 1. This write operation is called offline destage processing. The offline destaging process will be described below.
ドライブ側制御部22は、中央処理装置1から論理磁気
ディスク装置30を構成する磁気ディスク装置へのオン
ラインデステージ処理が終了した後、オフラインデステ
ージ処理をある周期で起動する。オフラインデステージ
処理では、先ず、論理磁気ディスク装置30を構成する
磁気ディスク装置のうち、中央処理装置1からのデータ
出力要求をオンラインデステージ処理、またはオフライ
ンデステージ処理で未だ実行されていない磁気ディスク
装置を選択する(本実施例では、磁気ディスク装置32
とする)。ドライブ側制御部22は、選択された磁気デ
ィスク装置32に対して、オンラインデステージ処理の
際に5CB4000に格納したシークアドレス、セクタ
番号、およびレコードIDを基に位置付け要求を行う。The drive-side control unit 22 starts offline destaging processing at a certain cycle after the online destaging processing from the central processing unit 1 to the magnetic disk devices constituting the logical magnetic disk device 30 is completed. In the offline destaging process, first, among the magnetic disk devices configuring the logical magnetic disk device 30, a data output request from the central processing unit 1 is sent to a magnetic disk that has not yet been processed by the online destaging process or the offline destaging process. Select a device (in this embodiment, the magnetic disk device 32
). The drive-side control unit 22 issues a positioning request to the selected magnetic disk device 32 based on the seek address, sector number, and record ID stored in the 5CB 4000 during online destage processing.
位置付け処理が完了した時点で、ディスクキャッシュメ
モリ24上のデータを磁気ディスク装置32に転送して
、5CB4000に磁気ディスク装置32へのデータ転
送終了を記録する。これによって、オフラインデステー
ジ処理を終了する。磁気ディスク装置32へのオフライ
ンデステージ処理が終了すると、論理磁気ディスク装置
30を構成する磁気ディスク装置の全てに対して中央処
理装置lからのデータ書き込みが完了したことになる。When the positioning process is completed, the data on the disk cache memory 24 is transferred to the magnetic disk device 32, and the completion of data transfer to the magnetic disk device 32 is recorded in 5CB 4000. This ends the offline destaging process. When the offline destaging process to the magnetic disk device 32 is completed, data writing from the central processing unit 1 to all the magnetic disk devices making up the logical magnetic disk device 30 is completed.
このとき、5CB4000を再使用可能SCBとする。At this time, 5CB4000 is assumed to be a reusable SCB.
論理磁気ディスク装置が2台以上の磁気ディスク装置か
ら構成されている場合、論理磁気ディスク装置を構成す
る磁気ディスク装置のうち、同期処理磁気ディスク装置
を除く全ての磁気ディスク装置に対してオフラインデス
テージ処理を実行することにより、磁気ディスク装置の
N重書き動作が実現される。If a logical magnetic disk device consists of two or more magnetic disk devices, offline destage is performed for all magnetic disk devices that make up the logical magnetic disk device, except for the synchronous processing magnetic disk device. By executing the process, N-overwrite operation of the magnetic disk device is realized.
次に、障害時の動作について、詳述する。Next, the operation at the time of failure will be explained in detail.
磁気ディスク制御装置2が、オンラインデステージ処理
のデータ書き込み動作中に、データの書き込み対象とな
っている磁気ディスク装置上のトラックに何らかの障害
を検知して、デステージ処理が続行できなくなった場合
には、第1図に示すように、障害が発生したトラックに
対応するトラックテーブル3000のエントリの障害フ
ラグ3100に障害(拳1)を記録する。また、5CB
4000上に、障害が発生した磁気ディスク装置への書
き込み動作の終了を記録する。When the magnetic disk control device 2 detects some kind of failure in a track on the magnetic disk device to which data is written during data writing operation for online destaging processing, and the destaging processing cannot continue. As shown in FIG. 1, the fault (fist 1) is recorded in the fault flag 3100 of the entry in the track table 3000 corresponding to the track where the fault has occurred. Also, 5CB
4000, the completion of the write operation to the magnetic disk device in which the failure occurred is recorded.
その後、論理磁気ディスク装置を構成する磁気ディスク
装置の中から、書き込み動作の終了していない磁気ディ
スク装置を1台だけ選択し、これを同期磁気ディスク装
置として再度オンラインデステージ処理を実行する。Thereafter, only one magnetic disk device for which the write operation has not been completed is selected from among the magnetic disk devices constituting the logical magnetic disk device, and the online destage process is performed again on this magnetic disk device as a synchronous magnetic disk device.
第7図は、本発明におけるオンラインデステージ処理中
のトラック障害の場合の動作フローチャートであり、第
8図は、本発明におけるトラックテーブルおよびシリン
ダテーブルの検索方法を示す図である。FIG. 7 is an operational flowchart in the case of a track failure during online destage processing according to the present invention, and FIG. 8 is a diagram showing a method for searching the track table and cylinder table according to the present invention.
オンラインデステージ処理中に、磁気ディスク装置のト
ラックに障害が検知された場合、先ずその磁気ディスク
装置が論理磁気ディスク装置を構成する磁気ディスク装
置であるか否かの判定を行う(ステップ5200)。論
理磁気ディスク装置を構成する磁気ディスク装置である
と判断されたときには、データ書き込み対象となってい
るトラックに対応するトラックテーブル3000上のエ
ントリに障害発生を記録する(ステップ5201)。If a fault is detected in a track of a magnetic disk device during online destage processing, first, it is determined whether the magnetic disk device is a magnetic disk device constituting a logical magnetic disk device (step 5200). When it is determined that the magnetic disk device constitutes a logical magnetic disk device, the occurrence of a failure is recorded in the entry on the track table 3000 corresponding to the track to which data is written (step 5201).
トラックテーブル3000のエントリは、第8図に示す
ように、障害フラグ3100とSCBアドレス3200
により構成されており、トラック障害が発生したときに
は、この障害フラグ3100に(*1)で記録される。As shown in FIG. 8, the entries in the track table 3000 include a fault flag 3100 and an SCB address 3200.
When a track failure occurs, (*1) is recorded in this failure flag 3100.
トラック障害の記録が終了すると、中央処理装置1がら
の書き込み要求を処理するために確保した5CB400
0に、トラック障害が発生した磁気ディスク装置への書
き込み動作終了を記録する(ステップ5202)。その
後、論理磁気ディスク装置を構成する磁気ディスク装置
の中に、中央処理装置1からのデータの書き込み動作を
行っていない磁気ディスク装置が存在するか否かの判定
を行う(ステップ5203)。When the recording of the track failure is completed, the 5CB400 reserved for processing write requests from the central processing unit 1 is
0, the completion of the write operation to the magnetic disk device in which the track failure occurred is recorded (step 5202). Thereafter, it is determined whether or not there is a magnetic disk device that is not writing data from the central processing unit 1 among the magnetic disk devices that constitute the logical magnetic disk device (step 5203).
この判定の結果、データの書き込み動作が未実行の磁気
ディスク装置が存在すると判断されたときには、書き込
み未実行磁気ディスク装置を選択し、これを確保する(
ステップ5204)。それと同時に、トラック障害が発
生した磁気ディスク装置に対応するDCBlooOに格
納されている中央処理装置1からの入出力要求に関係す
る情報を新たに確保した磁気ディスク装置に対応するD
CB 1000にコピーする。次に、新たに確保した磁
気ディスク装置を同期処理磁気ディスク装置とし、DC
B100O上にコピーされた中央処理装置1からのデー
タ書き込み対象位置(シークアドレス、セクタ番号およ
びレコードIDにより示される位置)に位置付け処理を
実行する(ステップ5205)。位置付け処理が終了す
ると、中央処理装置1に対して書き込みデータの再転送
を要求する(ステップ5206)。これにより、障害と
なっていない磁気ディスク装置に、中央処理装置1から
のデータを書き込むことが可能である。As a result of this determination, if it is determined that there is a magnetic disk device in which no data write operation has been performed, the magnetic disk device in which no data write operation has been performed is selected and secured (
Step 5204). At the same time, the information related to the input/output request from the central processing unit 1 stored in the DCBlooO corresponding to the magnetic disk device in which the track failure occurred is transferred to the newly secured DCBlooO corresponding to the magnetic disk device.
Copy to CB 1000. Next, use the newly secured magnetic disk device as a synchronous processing magnetic disk device, and use the DC
Positioning processing is executed at the data write target position (position indicated by the seek address, sector number, and record ID) copied from the central processing unit 1 onto the B100O (step 5205). When the positioning process is completed, a request is made to the central processing unit 1 to retransfer the write data (step 5206). Thereby, it is possible to write data from the central processing unit 1 to a magnetic disk device that is not causing a failure.
一方、トラック障害が発生した磁気ディスク装置が、論
理磁気ディスク装置を構成していないと判断された場合
(ステップ5200)、または論理磁気ディスク装置を
構成する磁気ディスク装置の中に、書き込み未実行の磁
気ディスク装置が存在しないと判断された場合(ステッ
プ5203)、中央処理装置1からのデータ書き込み要
求を処理するために確保した5CB4’OOOを未使用
SCBの状態としくステップ5207)、中央処理装置
1に対してユニットチエツクを含むDSBを報告する(
ステップ5208)。中央処理装置1は、ユニットチエ
ツクを含むDSBを受は取ると、磁気ディスク装置に対
する入出力要求が異常終了したことを検知し、以後のC
CWの実行を中止して、オペレーティングシステム10
に対して入出力要求の異常終了を報告する。On the other hand, if it is determined that the magnetic disk device in which the track failure has occurred does not constitute a logical magnetic disk device (step 5200), or if there is an unwritten write state in the magnetic disk device that constitutes the logical magnetic disk device. If it is determined that there is no magnetic disk device (step 5203), 5CB4'OOO secured for processing the data write request from the central processing unit 1 is made into an unused SCB (step 5207), and the central processing unit Report DSB including unit check for 1 (
Step 5208). When the central processing unit 1 receives the DSB including the unit check, it detects that the input/output request to the magnetic disk device has ended abnormally, and the subsequent C
Stop running CW and restart operating system 10.
Reports abnormal termination of I/O requests to.
このようにして、論理磁気ディスク装置を構成する磁気
ディスク装置の一部の磁気ディスク装置にトラック障害
が発生した場合でも、中央処理袋@1上のオペレーティ
ングシステム10は、トランク障害を意識せずに処理を
続行することができる。In this way, even if a track failure occurs in some of the magnetic disk units constituting the logical magnetic disk unit, the operating system 10 on the central processing bag @1 can operate without being aware of the trunk failure. Processing can continue.
第9図は、オフラインデステージ処理の際に、トラック
障害が発生した場合の処理フローチャートである。FIG. 9 is a processing flowchart when a track failure occurs during offline destaging processing.
オフラインデステージ処理の磁気ディスク装置へのデー
タ転送処理において、トラック障害が発生した場合、障
害の発生したトラックに対応するトラックテーブル30
00のエントリに、オンラインデステージ処理と同じよ
うに、障害発生を記録すル(ステップ5300)。ソノ
後、5CB4000にその磁気ディスク装置に対するデ
ータの書き込み終了を記録する(ステップ5301)。When a track failure occurs during data transfer processing to the magnetic disk device during offline destage processing, the track table 30 corresponding to the track where the failure has occurred is
The occurrence of a failure is recorded in the entry 00 (step 5300), as in the online destage process. After the recording, the completion of data writing to the magnetic disk device is recorded in the 5CB 4000 (step 5301).
次に、論理磁気ディスク装置を構成する全ての磁気ディ
スク装[6のデータの書き込み動作が終了したと判断さ
れたときには(ステップ5302)、その5CB400
0を再使用可能SCB状態とする(ステップ5303)
。すなわち、スロットを解放する。Next, when it is determined that the data write operation of all the magnetic disk units [6 constituting the logical magnetic disk unit] has been completed (step 5302), the 5CB400
0 to reusable SCB state (step 5303)
. That is, free the slot.
第10図は、第2図のディスクキャッシュメモリ上に中
央処理装置からアクセス対象となったデータが存在する
か否かを判定するための処理フローチャートである。FIG. 10 is a processing flowchart for determining whether data to be accessed by the central processing unit exists on the disk cache memory of FIG. 2.
以下、トラックテーブル3000上の障害フラグ310
0に記録したトラック障害情報の参照方法について、説
明する。このトラック障害情報は。Below, the failure flag 310 on the track table 3000
A method of referring to the track failure information recorded in 0 will be explained. This truck fault information is.
中央処理装置1から入出力8′@要求が発行された場合
、その入出力処理の対象となったトラックがディスクキ
ャッシュメモリ24上に存在するか否かの判定を行うヒ
ツト/ミス判定処理において参照される。When an input/output 8' @ request is issued from the central processing unit 1, this is referred to in the hit/miss determination process that determines whether or not the track targeted for the input/output process exists on the disk cache memory 24. be done.
第10図において、中央処理装置1からの5EEKコマ
ンドにより指定されたシークアドレスは、第8図に示す
DCB100O上のシークアドレス1200に格納され
ている。ヒツト/ミス判定処理では、上記シークアドレ
スに対応するトラックテーブルエントリを読み出す(ス
テップ5500)。In FIG. 10, the seek address specified by the 5EEK command from central processing unit 1 is stored in seek address 1200 on DCB 100O shown in FIG. In the hit/miss determination process, the track table entry corresponding to the seek address is read (step 5500).
この読み出し動作は、次のように行われる。第8図にお
けるDCB100O上のシリンダテーブル2000の先
頭アドレス1100とシークアドレス1200内のシリ
ンダアドレス1210とを加算しく5401)、シリン
ダテーブルエントリアドレスを求める。この加算の結果
、求められたシリンダテーブルエントリアドレスが示す
シリンダテーブルエントリは、そのシリンダに含まれる
トランクに対応するトラックテーブル3000の先頭ア
ドレス2100と、シークアドレス120゜内のトラッ
クアドレス1220を加算することにより(5402)
、トラックテーブルエントリアドレスを求める。この結
果、求められたトラックテーブルエントリアドレスが示
すトラックテーブルエントリを読み出す。This read operation is performed as follows. The start address 1100 of the cylinder table 2000 on the DCB 100O in FIG. 8 and the cylinder address 1210 in the seek address 1200 are added (5401) to obtain the cylinder table entry address. As a result of this addition, the cylinder table entry indicated by the obtained cylinder table entry address is obtained by adding the start address 2100 of the track table 3000 corresponding to the trunk included in that cylinder and the track address 1220 within the seek address 120°. By (5402)
, ask for the track table entry address. As a result, the track table entry indicated by the obtained track table entry address is read.
このようにしてトラックテーブルエントリが読み出され
ると、第10図に示すように、このエントリの障害フラ
グ3100を調べて、中央処理装置1からの入出力対象
トラック(以下、アクセストラックと呼ぶ)において障
害が発生しているか否かを判定する(ステップ5501
)。この判定の結果、アクセス1〜ラツクが障害により
アクセス不能と判定された場合には、入出力処理対象と
なった論理磁気ディスク装置の中に未選択の磁気ディス
ク装置が存在するか否かを判定する(ステップ5502
)。この判定の結果、未選択の磁気ディスク装置が存在
すると判断された場合には、未選択の磁気ディスク装置
の中から1台の磁気ディスク装置を選択して、これを確
保する(ステップ5503)。新たに確保した磁気ディ
スク装置を用いて、最初に戻ってトラックテーブルエン
トリを読み出し、再度同じ処理を繰り返す(ステップ5
500)。これにより、正常にアクセス可能なアクセス
トラックを持つ磁気ディスク装置を選択することができ
る。正常にアクセスが可能なアクセストラックを持つ磁
気ディスク装置が選択された場合、第8図に示すSCB
アドレス3200の値を判定する(ステップ5504)
。判定の結果、SCBアドレス3200にNULLの値
が設定されていたときには、アクセストラックはディス
クキャッシュメモリ24上に存在しないことが判定され
る。つまり、ミスと判断される(ステップ5506)。When a track table entry is read in this way, as shown in FIG. is occurring (step 5501)
). As a result of this determination, if it is determined that Access 1 to Rack are inaccessible due to a failure, it is determined whether or not there is an unselected magnetic disk device among the logical magnetic disk devices targeted for input/output processing. (Step 5502
). As a result of this determination, if it is determined that there is an unselected magnetic disk device, one magnetic disk device is selected from the unselected magnetic disk devices and secured (step 5503). Using the newly secured magnetic disk device, go back to the beginning, read the track table entry, and repeat the same process again (step 5).
500). This makes it possible to select a magnetic disk device that has access tracks that can be accessed normally. If a magnetic disk device with access tracks that can be accessed normally is selected, the SCB shown in FIG.
Determine the value of address 3200 (step 5504)
. As a result of the determination, if a NULL value is set in the SCB address 3200, it is determined that the access track does not exist on the disk cache memory 24. In other words, it is determined to be a mistake (step 5506).
同時にその状態は、DCB上に記録される。At the same time, its status is recorded on the DCB.
一方、5CB7ドレス32ooにscBのアドレスが格
納されていると判断されたときには(ステップ5504
)、ヒツトと判定され(ステップ5505)、その状態
がDCB上に記録される。On the other hand, when it is determined that the scB address is stored in the 5CB7 address 32oo (step 5504
), it is determined to be a hit (step 5505), and its status is recorded on the DCB.
また、論理磁気ディスク装置を構成する全ての磁気ディ
スク装置に正常にアクセス可能なアクセストラックを持
つ磁気ディスク装置が存在しないと判断された場合には
(ステップ5502)、中央処理装置1からの入出力要
求を正常に実行できないので、ユニットチエツクを含む
DSBを中央処理装置1に報告する(ステップ5507
)。Furthermore, if it is determined that there is no magnetic disk device that has access tracks that can normally access all the magnetic disk devices that make up the logical magnetic disk device (step 5502), the input/output from the central processing unit 1 is Since the request cannot be executed normally, the DSB including the unit check is reported to the central processing unit 1 (step 5507).
).
これによって、中央処理装置1がら転送要求されたデー
タが正しく格納されている磁気ディスク装置を、磁気デ
ィスク制御装置2により自動的に選択することが可能で
ある。This allows the magnetic disk controller 2 to automatically select the magnetic disk device in which the data requested to be transferred by the central processing unit 1 is correctly stored.
次に、中央処理装置1からデータの読み出し要求が発行
された場合の磁気ディスク制$J装置2の動作について
、詳述する。Next, the operation of the magnetic disk $J device 2 when a data read request is issued from the central processing unit 1 will be described in detail.
第11図は、磁気ディスク装置上のデータを読み出す場
合に、オペレーティングシステムが用意するチャネルコ
マンド群とそのパラメータを示す図である。FIG. 11 is a diagram showing a group of channel commands and their parameters prepared by the operating system when reading data on a magnetic disk device.
第11図において、5SCHは中央処理装置1上のオペ
レーティングシステム10で実行される入出力起動要求
命令11であり、12はその入出力起動要求を発行する
際の制御ブロックである。In FIG. 11, 5SCH is an input/output activation request instruction 11 executed by the operating system 10 on the central processing unit 1, and 12 is a control block when issuing the input/output activation request.
14は、磁気ディスク装置に対するデータの読み込み動
作を行うためのCCW群であり、それらのCCWにポイ
ンタで結ばれている210〜214はいずれもCCWパ
ラメータである。CCW群14のうち、TICコマンド
204までの動作は、先に詳述したデータ書き込み要求
時の動作と同じである。すなわち、TICコマンド20
4の次のREAD DATAコマンド205を実行す
るまでに、アクセストラックのデータが正しく格納され
ている磁気ディスク装置を同期処理磁気ディスク装置と
して選択し、アクセス対象のレコードに位置付けられて
準備される。この場合、ヒツトのときはディスクキャッ
シュメモリ24上のアクセス対象レコード位置に、ミス
のときには、磁気ディスク装置上のアクセス対象レコー
ド位置に、それぞれ位置付けられる。この状態において
、中央処理装置1からREAD DATAコマンド2
05が発行されると、磁気ディスク制御装置2は、ヒツ
トの場合、ディスクキャッシュメモリ24上に位置付け
られたレコードを、ミスの場合、磁気ディスク装置上に
位置付けられたレコードを、それぞれ中央処理装置1に
転送する。14 is a CCW group for performing a data reading operation for the magnetic disk device, and 210 to 214 connected to these CCWs by pointers are all CCW parameters. Of the CCW group 14, the operations up to the TIC command 204 are the same as those at the time of the data write request described in detail above. That is, TIC command 20
By the time the next READ DATA command 205 of No. 4 is executed, the magnetic disk device in which the data of the access track is correctly stored is selected as the synchronous processing magnetic disk device, and the record to be accessed is positioned and prepared. In this case, if there is a hit, the record is located at the record position to be accessed on the disk cache memory 24, and if it is a miss, the record is located at the record position to be accessed on the magnetic disk device. In this state, the central processing unit 1 issues a READ DATA command 2.
05, the magnetic disk control device 2 transfers the record located on the disk cache memory 24 in the case of a hit, and the record located on the magnetic disk device in the case of a miss to the central processing unit 1. Transfer to.
ここで、ミスの場合には磁気ディスク装置上のレコード
を中央処理装置1に加えディスクキャッシュメモリ24
にも転送するが、この転送の際に障害が発生したときの
処理を、次に説明する。Here, in the case of a miss, the record on the magnetic disk device is added to the central processing unit 1 and the disk cache memory 24
However, the process to be performed when a failure occurs during this transfer will be explained below.
第12図は、磁気ディスク装置上のデータを読み出す際
に、トラック障害が発生した場合の処理フローチャート
である。FIG. 12 is a processing flowchart when a track failure occurs when reading data on a magnetic disk device.
磁気ディスク装置上のレコードを中央処理装置1に転送
している際中に障害が発生した場合、先ず障害になった
磁気ディスク装置が論理磁気ディスク装置を構成してい
るか否かを判定する(ステップ5600)。判定の結果
、その磁気ディスク装置が論理磁気ディスク装置を構成
していると判断された場合には、アクセスの対象となっ
たレコードが属するトラックに対応するトラックテーブ
ル3000のエントリ内の障害フラグ3100に、トラ
ック障害を記録する(ステップ5601)。その後、そ
の磁気ディスク装置が属する論理磁気ディスク装置の中
に、現在処理を行っている中央処理装置1からの入出力
要求において、未だ選択されていない磁気ディスク装置
が存在するか否かを判定する(ステップ5602)。判
定の結果、未選択磁気ディスク装置が存在すると判断さ
れたときには、この未選択磁気ディスク装置の中から磁
気ディスク装置1台を選択し、これを確保しておく(ス
テップ5603)。このとき、新たに確保した磁気ディ
スク装置に対応するDCBに障害を発生した磁気ディス
ク装置に対応するDCBの内容のうち、現在実行中の中
央処理装置1からの入出力要求に関する情報をコピーす
る。そして、新たに確保した磁気ディスク装置に対して
、位置付け処理を実行する(ステップ5604)。次に
、中央処理装置1に対して読み出しデータを再転送する
(ステップ5605)。If a failure occurs while transferring records on a magnetic disk device to the central processing unit 1, first it is determined whether the failed magnetic disk device constitutes a logical magnetic disk device (step 5600). As a result of the determination, if it is determined that the magnetic disk device constitutes a logical magnetic disk device, the failure flag 3100 in the entry of the track table 3000 corresponding to the track to which the accessed record belongs is set. , record the track failure (step 5601). Thereafter, it is determined whether or not there is a magnetic disk device among the logical magnetic disk devices to which the magnetic disk device belongs, which has not yet been selected in response to an input/output request from the central processing unit 1 that is currently processing. (Step 5602). As a result of the determination, if it is determined that there is an unselected magnetic disk device, one magnetic disk device is selected from the unselected magnetic disk devices and reserved (step 5603). At this time, information regarding the currently executing input/output request from the central processing unit 1 is copied from the contents of the DCB corresponding to the failed magnetic disk device to the DCB corresponding to the newly secured magnetic disk device. Then, positioning processing is executed for the newly secured magnetic disk device (step 5604). Next, the read data is retransferred to the central processing unit 1 (step 5605).
一方、障害発生の磁気ディスク装置が論理磁気ディスク
装置を構成していないと判断されたとき(ステップ56
00)、または未選択の磁気ディスク装置が論理磁気デ
ィスク装置の中になかったとき(ステップ5602)、
磁気ディスク装置上のレコードを格納するディスクキャ
ッシュメモリ24上のスロットを管理する5CB400
0を未使用状態としくステップ5605)、中央処理装
置1に対してユニットチエツクを含むDSBを報告する
ことにより(ステップ5607)、その入出力要求が正
常に実行できなかったことを通知する。On the other hand, when it is determined that the failed magnetic disk device does not constitute a logical magnetic disk device (step 56
00), or when the unselected magnetic disk device is not among the logical magnetic disk devices (step 5602),
5CB400 that manages slots on the disk cache memory 24 that stores records on the magnetic disk device
0 as an unused state (step 5605), and reports the DSB including the unit check to the central processing unit 1 (step 5607), thereby notifying that the input/output request could not be executed normally.
上記実施例では、論理磁気ディスク装置を構成する全て
の磁気ディスク装置において障害が発生した場合、中央
処理装置1に障害を報告するようにしたが、障害発生磁
気ディスク装置数が規定値以上となった場合、中央処理
装置1に障害または警告を報告しても良い。In the above embodiment, when a failure occurs in all the magnetic disk units that make up the logical magnetic disk unit, the failure is reported to the central processing unit 1. However, when the number of failed magnetic disk units exceeds the specified value, In this case, a failure or warning may be reported to the central processing unit 1.
なお、障害情報を記録するトラックテーブル3000が
配置されるディレクトリメモリ25が揮発性メモリの場
合には、その障害情報を磁気ディスク装置上にも記録し
ておく。これによって、電源障害が発生しても、障害情
報は保持される。Note that if the directory memory 25 in which the track table 3000 for recording fault information is arranged is a volatile memory, the fault information is also recorded on the magnetic disk device. As a result, even if a power failure occurs, failure information is retained.
もし、ディレクトリメモリ25を不揮発性メモリにした
場合には、磁気ディスク制御装置2の電源を切断する際
に、この障害情報をサービスプロセッサ3(第1図参照
)に転送することにより、サービスプロセッサ3はこの
障害情報をフロッピーディスク装置4に記録する。そし
て、再び電源が投入された場合、サービスプロセッサ3
はフロッピーディスク装置4から障害情報を読み出して
。If the directory memory 25 is a non-volatile memory, this fault information is transferred to the service processor 3 (see FIG. 1) when the power to the magnetic disk control device 2 is turned off. records this failure information in the floppy disk device 4. Then, when the power is turned on again, the service processor 3
reads the fault information from the floppy disk device 4.
ディレクトリメモリ25内のトラックテーブル3000
の障害フラグ3100を初期設定する。Track table 3000 in directory memory 25
The failure flag 3100 of is initialized.
このようにして、磁気ディスク装置に対する多重書き動
作が可能であり、かつ多重に記録されたデータの一部に
障害が発生した場合にも、オペレーティングシステムの
介在なしで、磁気ディスク制御装置のみの制御により自
動的に正常なデータが格納されている磁気ディスク装置
を選択した後、その磁気ディスク装置からデータを正し
く読み出すことができる。In this way, it is possible to perform multiple write operations on the magnetic disk drive, and even if a failure occurs in part of the multiplexed data, only the magnetic disk drive can be controlled without the intervention of the operating system. After automatically selecting a magnetic disk drive in which normal data is stored, data can be correctly read from the magnetic disk drive.
第13図は、本発明の第2の実施例を示すデータ多重書
き制御方式のブロック図であって、この実施例では補助
記憶装置として磁気テープ装置が使用されている。FIG. 13 is a block diagram of a data multiplex write control system showing a second embodiment of the present invention, in which a magnetic tape device is used as the auxiliary storage device.
第13図の計算機システムは、第2図に比べて磁気ディ
スク制御装置2が磁気テープ制御装置7に置き替わり、
磁気ディスク装置31〜33が磁気テープ装置51〜5
3に置き替わり、ディレクトリメモリ25がデータ管理
メモリ75に変更され、サービスプロセッサ5にフロッ
ピーディスク装置が接続されていない点で異なっている
だけで。In the computer system of FIG. 13, the magnetic disk control device 2 is replaced with a magnetic tape control device 7 compared to that of FIG.
The magnetic disk devices 31 to 33 are magnetic tape devices 51 to 5.
3, the only difference is that the directory memory 25 is changed to a data management memory 75, and a floppy disk device is not connected to the service processor 5.
それ以外は同じ構成である。Other than that, the configuration is the same.
中央処理装置1は、チャネルインタフェースを介して磁
気テープ制御装置7に接続されている。The central processing unit 1 is connected to a magnetic tape controller 7 via a channel interface.
さらに磁気テープ制御装置7は、ドライブインタフェー
スを介して磁気テープ装置51,52.53等よりな−
・る磁気テープ装置群に接続される。チャネルインタフ
ェースとドライブインタフェースに接続されたデータバ
ス73には、磁気テープ装置上のデータを格納するため
のデータバッファメモリ74が接続されている。磁気テ
ープ制御装置7は、中央処理装置1とのデータ転送を制
御するためのチャネル側制御部7oと、磁気テープ装置
とのデータ転送を制御するためのドライブ側制御部72
の2つの制御部により制御される。これらの制御部70
.72は、磁気テープ制御装置7の全体を制御するため
の制御メモリ71と、データバッファメモリ74上のデ
ータを管理するためのデータ管理メモリ75に接続され
ている。Furthermore, the magnetic tape control device 7 is connected to magnetic tape devices 51, 52, 53, etc. via a drive interface.
・Connected to a group of magnetic tape devices. A data buffer memory 74 for storing data on the magnetic tape device is connected to the data bus 73 connected to the channel interface and the drive interface. The magnetic tape control device 7 includes a channel side control section 7o for controlling data transfer with the central processing unit 1, and a drive side control section 72 for controlling data transfer with the magnetic tape device.
It is controlled by two control units. These control units 70
.. 72 is connected to a control memory 71 for controlling the entire magnetic tape control device 7 and a data management memory 75 for managing data on the data buffer memory 74.
磁気ディスク装置の場合と同じように、本実施例におい
ても、論理磁気テープ装置を設定することにより、1台
の論理磁気テープ装置に対して中央処理装置1からのデ
ータの書き込み、読み出しを行うことによって、実際に
は複数台の磁気テープ装置に対し同一データの書き込み
または読み出しを行うようにしている。ここでは、磁気
テープ制御装置7は、磁気テープ装置51.52を1台
の磁気テープ装置であるかのように中央処理装置1上で
動作するオペレーティングシステム10に対して働く。As in the case of a magnetic disk device, in this embodiment as well, by setting a logical magnetic tape device, it is possible to write and read data from the central processing unit 1 to one logical magnetic tape device. In practice, the same data is written to or read from multiple magnetic tape devices. Here, the magnetic tape control device 7 acts on the operating system 10 running on the central processing unit 1 as if the magnetic tape devices 51, 52 were one magnetic tape device.
論理磁気テープ装置と磁気テープ装置との対応関係は、
オペレーティングシステム10またはサービスプロセッ
サ3からの指示により設定され、その設定のための情報
は制御メモリ71と磁気テープ装置の記録媒体に記録さ
れる。磁気テープ装置の記録媒体に記録された論理磁気
テープ装置の構成情報は、その記録媒体が磁気テープ装
置に取り付けられた際に、自動的に制御メモリ71内に
格納される。The correspondence between logical magnetic tape devices and magnetic tape devices is as follows:
Settings are made by instructions from the operating system 10 or the service processor 3, and information for the settings is recorded in the control memory 71 and the recording medium of the magnetic tape device. The configuration information of the logical magnetic tape device recorded on the recording medium of the magnetic tape device is automatically stored in the control memory 71 when the recording medium is attached to the magnetic tape device.
中央処理装置1上のオペレーティングシステム1oから
論理磁気テープ装置50を構成する磁気テープ装置51
または52に書き込み要求を行った場合には、論理磁気
テープ装置を構成する全ての磁気テープ装[(5L52
)に対して同一のデータが書き込まれる。これにより、
磁気テープ装置の2重書き機能が実現できる。この実施
例では、2台の磁気テープ装置からなる論理磁気テープ
装置の例が示されているが、3台以上に拡張できるのは
勿論である。A magnetic tape device 51 that constitutes a logical magnetic tape device 50 from the operating system 1o on the central processing unit 1
Or if a write request is made to 5L52, all magnetic tape devices [(5L52
) is written with the same data. This results in
The dual write function of a magnetic tape device can be realized. Although this embodiment shows an example of a logical magnetic tape device consisting of two magnetic tape devices, it is of course possible to expand the logical magnetic tape device to three or more.
第14図は、第13図における磁気テープ制御装置内の
制御テーブルの関連図である。FIG. 14 is a related diagram of the control table in the magnetic tape control device in FIG. 13.
デバイス制御ブロック(Device Contro
lB 1ock、以下、DCBと呼ぶ)6000−a、
6000−bは、制御メモリ71上に格納され、磁気テ
ープ制御装置7が制御する磁気テープ装置単位に存在し
、磁気テープ装置に対する入出力動作を実行するための
制御ブロックを構成する。そして、論理磁気テープ装置
を構成する磁気テープ装置を制御するDCBは、互いに
ポインタにより接続されている。また、各DCBのエン
トリからはポインタによりデータ管理メモリ75上のハ
ツシュテーブル7000に接続されている。Device control block
1B 1ock (hereinafter referred to as DCB) 6000-a,
6000-b is stored in the control memory 71, exists in each magnetic tape device controlled by the magnetic tape control device 7, and constitutes a control block for executing input/output operations for the magnetic tape device. The DCBs that control the magnetic tape devices constituting the logical magnetic tape device are connected to each other by pointers. Furthermore, each DCB entry is connected to a hash table 7000 on the data management memory 75 by a pointer.
ハツシュテーブル7000−a、7000−bは、磁気
テープ装置上のデータがデータバッファメモリ74上に
存在するか否かを判定するためのテーブルであって、そ
のエントリには、データバッファメモリ74に格納され
ているデータを管理するための制御ブロック、つまりブ
ロック制御ブロック(B 1ock Control
B 1ock:以下、BCBと呼ぶ)8000のア
ドレス7200と、磁気テープ装置上のデータが正しく
読み出せないことを示す情報が格納される障害フラグ(
−)7100により構成されている。The hash tables 7000-a and 7000-b are tables for determining whether or not data on the magnetic tape device exists on the data buffer memory 74. A control block for managing stored data, that is, a block control block (B 1ock Control
B 1ock: Hereinafter referred to as BCB) 8000 address 7200 and a failure flag (hereinafter referred to as BCB) that stores information indicating that data on the magnetic tape device cannot be read correctly.
-)7100.
中央処理装置上上のオペレーティングシステム10が、
磁気テープ装置51に対してデータの書き込み要求を行
うと、磁気テープ制御装置7はこの入出力要求を受は取
り、続けて転送されてきた書き込みデータをデータバッ
ファメモリ74に格納した後、中央処理装置1に対して
入出力の終了を報告する。その後、磁気テープ制御装置
7は、中央処理装置1と非同期でデータバッファメモリ
74上のデータを磁気テープ装置51および磁気テープ
装置52にそれぞれ独立に書き込む。この場合、論理磁
気テープ装置を構成する全ての磁気テープ装置に記録媒
体が取り付けられていることを確認し、もし取り付けら
れていない場合には。The operating system 10 on the central processing unit is
When a data write request is made to the magnetic tape device 51, the magnetic tape control device 7 accepts this input/output request, stores the subsequently transferred write data in the data buffer memory 74, and then sends it to the central processing Reports completion of input/output to device 1. After that, the magnetic tape control device 7 independently writes the data on the data buffer memory 74 to the magnetic tape device 51 and the magnetic tape device 52 asynchronously with the central processing unit 1. In this case, confirm that recording media are installed in all the magnetic tape devices that make up the logical magnetic tape device, and if they are not installed.
中央処理装置1上のオペレーティングシステム10に記
録媒体の取り付けを要求して、論理磁気テープ装置を構
成する全ての磁気テープ装置が取り付けられてから、デ
ータの書き込み動作を実行する。磁気テープ制御装置7
において、データバッファメモリ74上のデータを管理
するために、中央処理装置1からの書き込み要求単位(
これをブロックと呼ぶ)でBCB8000を参照するこ
とにより管理する。BCB8000では、中央処理装置
1から磁気テープ装置にデータの書き込み要求が発行さ
れた時点で領域が確保され、ブロックに付されたシーケ
ンス番号、つまり磁気テープ装置の先頭のブロックを1
とした順序番号をキーとしたハツシュ関数により得られ
たハツシュテーブル7000上のエントリからポイント
される。論理磁気テープ装置を構成する全ての磁気テー
プ装置にデータを書き込むと、データバッファ74上の
データを削除すると同時に、BCB8000を無効化し
、それとともにハツシュテーブル7000上のエントリ
からBCB8000のアドレスを削除する。これによっ
て、磁気テープ装置に対する多重書き処理が実現される
。The operating system 10 on the central processing unit 1 is requested to attach a recording medium, and after all the magnetic tape devices constituting the logical magnetic tape device are attached, a data write operation is executed. Magnetic tape control device 7
In order to manage the data on the data buffer memory 74, write request units (
This is called a block) and is managed by referring to the BCB 8000. In the BCB8000, an area is secured when a data write request is issued from the central processing unit 1 to the magnetic tape device, and the sequence number assigned to the block, that is, the first block of the magnetic tape device, is set to 1.
It is pointed to from the entry on the hash table 7000 obtained by the hash function using the sequence number as a key. When data is written to all the magnetic tape devices that make up the logical magnetic tape device, the data on the data buffer 74 is deleted, and at the same time, BCB 8000 is invalidated, and at the same time, the address of BCB 8000 is deleted from the entry on the hash table 7000. . This realizes multiple write processing for the magnetic tape device.
次に、中央処理装置1から論理磁気テープ装置を構成す
る磁気テープ装置に対してデータの読み出し要求が発行
されると、先ず論理磁気テープ装置を構成する磁気テー
プ装置の中から任意の1台が選択される。この選択され
た磁気テープ装置に対して、ブロックに付されたシーケ
ンス番号をキーとしてハツシュテーブル7000のエン
1−りを参照する。このエントリにBCB8000のア
ドレスが設定されている場合には、未だ以前に中央処理
装置1から発行された書き込み要求を論理磁気テープ装
置を構成する全ての磁気テープ装置に反映していない、
つまり指定された複数の磁気テープ装置の全てに書き込
んでいないことが判別できたので、そちらの動作を先に
終了させる。すなわち、先ず論理磁気テープ装置を構成
する全ての磁気テープ装置に未反映データを書き込んで
から、中央処理装置1から今回発行されたデータ読み出
し要求を、前に選択した磁気テープ装置により実行する
。また、ハツシュテーブル7000上のエントリにその
ブロックが障害により読み出せないことが示されていた
場合には、論理磁気テープ装置を構成する磁気テープ装
置の中から未選択の磁気テープ装置を選択し、その磁気
テープ装置によりデータ読み出し動作を実行する。Next, when a data read request is issued from the central processing unit 1 to the magnetic tape devices that make up the logical magnetic tape device, first any one of the magnetic tape devices that make up the logical magnetic tape device is read. selected. For this selected magnetic tape device, the entry 1 of the hash table 7000 is referred to using the sequence number assigned to the block as a key. If the address of the BCB 8000 is set in this entry, the write request previously issued by the central processing unit 1 has not yet been reflected in all the magnetic tape devices that make up the logical magnetic tape device.
In other words, since it has been determined that writing has not been done to all of the specified plurality of magnetic tape devices, the operation of those devices is terminated first. That is, first, unreflected data is written to all the magnetic tape devices constituting the logical magnetic tape device, and then the data read request issued this time from the central processing unit 1 is executed by the previously selected magnetic tape device. Additionally, if the entry in the hash table 7000 indicates that the block cannot be read due to a failure, select an unselected magnetic tape device from among the magnetic tape devices that make up the logical magnetic tape device. , executes a data read operation using the magnetic tape device.
データの読み出し動作において障害が発生した場合、読
み出し対象となったブロックに対応するハツシュテーブ
ル7000上のエントリの障害フラグ7100に障害を
記録する。その後に、論理磁気テープ装置を構成する磁
気テープ装置の中から未選択の磁気テープ装置を選択し
、中央処理装置1からのデータ読み出し要求を実行する
。なお。If a failure occurs in the data read operation, the failure is recorded in the failure flag 7100 of the entry on the hash table 7000 corresponding to the block to be read. Thereafter, an unselected magnetic tape device is selected from among the magnetic tape devices constituting the logical magnetic tape device, and a data read request from the central processing unit 1 is executed. In addition.
上述の場合、未選択の磁気テープ装置を選択する際に論
理磁気テープ装置を構成する全ての磁気テープ装置に記
録媒体が取り付けられていないことがある。そのときに
は、磁気テープ制御装置7から中央処理装置1のオペレ
ーティングシステム10に対して、論理磁気テープ装置
を構成する磁気テープ装置に記録媒体を取り付けること
を指示する。そして、記録媒体が磁気テープ装置に取り
付けられた時点で、障害情報を記録媒体から読み出して
ハツシュテーブル7000上に展開し、中央処理装置1
からのデータの読み出し要求を実行する。なお、記録媒
体への障害情報の書き込みは、その記録媒体が取り外さ
れる際に実行される。In the above case, when selecting an unselected magnetic tape device, there may be cases where no recording medium is attached to any of the magnetic tape devices that make up the logical magnetic tape device. At that time, the magnetic tape control device 7 instructs the operating system 10 of the central processing unit 1 to attach a recording medium to the magnetic tape device constituting the logical magnetic tape device. Then, when the recording medium is attached to the magnetic tape device, the failure information is read from the recording medium and developed on the hash table 7000, and the central processing unit 1
Executes a request to read data from. Note that writing of the failure information to the recording medium is executed when the recording medium is removed.
これによって、複数の磁気テープ装置に対する多重書き
されたデータの読み出しが実現される。As a result, it is possible to read multiplexed data from a plurality of magnetic tape devices.
このように、本発明の各実施例においては、補助記憶制
御装置が補助記憶装置にデータの多重書きを自動的に行
うとき、補助記憶装置にデータが正しく格納されていな
い箇所を、補助記憶制御装置に制御メモリに格納してお
くので、この情報を参照することにより、正しくデータ
が格納されている補助記憶装置を選択することができる
。また、補助記憶装置にデータが正しく格納されていな
い箇所の情報を補助記憶装置自体にも記録しておくので
、取り外し可能な記録媒体を持つ、例えば磁気テープ装
置等の補助記憶装置に対しても、データの多重書きを制
御装置において自動的に実行できる。As described above, in each embodiment of the present invention, when the auxiliary storage control device automatically performs multiple writing of data in the auxiliary storage device, the auxiliary storage control device Since the data is stored in the control memory of the device, by referring to this information, it is possible to select the auxiliary storage device in which the data is correctly stored. In addition, since information on locations where data is not stored correctly in the auxiliary storage device is also recorded in the auxiliary storage device itself, it is also possible to store information on auxiliary storage devices that have removable recording media, such as magnetic tape devices. , data multiplexing can be automatically executed in the control device.
以上説明したように1本発明によれば、オペレーティン
グシステムの介在なしで、磁気ディスク制御装置、磁気
テープ制御装置により自動的に正しいデータを中央処理
装置に転送することができ、また取り外し不可能な記録
媒体を持つ補助記憶装置は勿論のこと、取り外し可能な
記録媒体を持つ補助記憶装置に対しても、自動的にデー
タの多重書きを行うことが可能である。As explained above, according to the present invention, correct data can be automatically transferred to the central processing unit by the magnetic disk control device and the magnetic tape control device without the intervention of the operating system, and the correct data can be automatically transferred to the central processing unit without the intervention of the operating system. It is possible to automatically multiplex write data not only to an auxiliary storage device having a recording medium but also to an auxiliary storage device having a removable recording medium.
第1図は本発明における磁気ディスク制御装置内の制御
テーブル関連図、第2図は本発明の一実施例を示す磁気
ディスク制御装置のブロック図。
第3図は、磁気ディスク装置が中央処理装置からの入出
力要求を受は取った際の処理フローチャート第4図は第
2図における論理磁気ディスク装置の中から使用可能な
磁気ディスク装置を選択する処理のフローチャート、第
5図は第2図における磁気ディスク装置上にデータを書
き込む場合のオペレーティングシステムが用意するチャ
ネルコマンド群とそのパラメータを示す図、第6図は第
2図におけるディスクキャッシュメモリ上の領域を確保
するための処理フローチャート、第7図は第2図におい
て、中央処理装置からのデータ書き込み要求を処理する
途中で、磁気ディスク装置上のトラックで障害が発生し
たときの処理フローチャート、第8図は第1図における
トラックテーブルおよびシリンダテーブルの検索方法を
示す図、第9図はオフラインデステージ処理のときに、
磁気ディスク装置上のトラックで障害が発生した場合の
処理フローチャート、第10図は第2図において、ディ
スクキャッシュメモリ上の中央処理5jflからアクセ
ス対象となったデータが存在するか否かを判定するため
の処理フローチャート、第11図は第2図における磁気
ディスク装置上のデータ読み出しの場合に、オペレーテ
ィングシステムが用意するチャネルコマンド群とそのパ
ラメータを示す図、第12図は第2図において、磁気デ
ィスク装置上のデータを読み出し中にトラック障害が発
生した場合の処理フローチャート、第13図は本発明の
他の実施例を示す磁気テープ制御装置のブロック図、第
14図は第13図の磁気テープ制御装置を制御するため
のテーブルの構成図である。
1:中央処理装置、2:磁気ディスク制御装首、3.5
:サービスプロセッサ、7:磁気テープ制御装置、10
:オペレーティングシステム、20゜70:チャネル側
制御部(プロセッサ)、22゜72ニドライブ側制御部
(プロセッサ)、21゜7に制御メモリ、24:ディス
クキャッシュメモリ、25:ディレクトリメモリ、31
〜33:磁気ディスク装置、30:論理磁気ディスク装
置、1000−a、1000−b:デバイス制御ブロッ
ク、1100,1500,1600,1700゜180
0:ポインタ、2000−a、2000−b=シリンダ
テーブル、3000−a、3000−b=トラックテー
ブル、4000−a、4000−b=ニスロット御テー
ブル、51〜53:磁気テープ装置、50:論理磁気テ
ープ装置、74:データバッファメモリ、75:データ
管理メモリ、6000−a、6000−b :デバイス
制御ブロック、7000−a、7000−b :ハッシ
ュテーブル、8000−a、8000−b ニブロック
制御ブロック、3100.7100:障害フラグ。
第
図
第
図
第
図
第
図FIG. 1 is a diagram related to a control table in a magnetic disk control device according to the present invention, and FIG. 2 is a block diagram of a magnetic disk control device showing an embodiment of the present invention. FIG. 3 is a processing flowchart when the magnetic disk device receives an input/output request from the central processing unit. Flowchart of the processing, FIG. 5 is a diagram showing the channel command group and its parameters prepared by the operating system when writing data on the magnetic disk device in FIG. 2, and FIG. 6 is a diagram showing the channel command group and its parameters on the disk cache memory in FIG. FIG. 7 is a processing flowchart for securing an area, and FIG. The figure shows how to search the track table and cylinder table in Figure 1, and Figure 9 shows how to search for the track table and cylinder table in Figure 1.
FIG. 10 is a processing flowchart when a failure occurs in a track on a magnetic disk device. FIG. 11 is a diagram showing a group of channel commands and their parameters prepared by the operating system when reading data from the magnetic disk device in FIG. 13 is a block diagram of a magnetic tape control device showing another embodiment of the present invention; FIG. 14 is a flowchart of the process when a track failure occurs while reading the above data; FIG. 14 is a block diagram of the magnetic tape control device of FIG. FIG. 2 is a configuration diagram of a table for controlling. 1: Central processing unit, 2: Magnetic disk control head, 3.5
: Service processor, 7: Magnetic tape control device, 10
: Operating system, 20° 70: Channel side control unit (processor), 22° 72 Drive side control unit (processor), 21° 7: Control memory, 24: Disk cache memory, 25: Directory memory, 31
~33: Magnetic disk device, 30: Logical magnetic disk device, 1000-a, 1000-b: Device control block, 1100, 1500, 1600, 1700° 180
0: pointer, 2000-a, 2000-b = cylinder table, 3000-a, 3000-b = track table, 4000-a, 4000-b = slot control table, 51 to 53: magnetic tape device, 50: logic magnetic Tape device, 74: Data buffer memory, 75: Data management memory, 6000-a, 6000-b: Device control block, 7000-a, 7000-b: Hash table, 8000-a, 8000-b Niblock control block, 3100.7100: Failure flag. Figure Figure Figure Figure
Claims (1)
続され、かつドライブインタフェースを介して複数の補
助記憶装置と接続された補助記憶制御装置であって、上
記中央処理装置に対して予め組み合わせた複数の補助記
憶装置を1台の補助記憶装置(以下、論理補助記憶装置
と記す)として認識させ、上記中央処理装置から論理補
助記憶装置にデータ書き込み要求が発生すると、上記論
理補助記憶装置を構成する組み合わせの中から1台の補
助記憶装置を選択して、該補助記憶装置と上記補助記憶
制御装置内のデータバッファにデータの書き込みを行い
、正常に書き込みが終了したときには、上記中央処理装
置に正常の書き込み終了を報告し、その後、論理補助記
憶装置として組み合わされた残りの補助記憶装置に対し
てデータの書き込みを行う補助記憶制御装置において、
上記補助記憶装置にデータの書き込みを行っている途中
で、障害が発生したときには、該補助記憶制御装置内の
メモリの補助記憶装置単位に、書き込み障害位置を記憶
することを特徴とする補助記憶装置のデータ多重書き制
御方式。 2、請求項1記載による補助記憶装置のデータ多重書き
制御方式において、中央処理装置からの書き込み要求時
に、選択された1台の補助記憶装置に書き込みを行って
いる途中で障害が発生し、そのために正常書き込みが不
可能であるとき、補助記憶制御装置内のメモリの補助記
憶装置単位に障害位置を記録した後、書き込み障害が発
生した補助記憶装置以外の論理補助記憶装置を構成する
補助記憶装置群の中から1台の補助記憶装置を選択して
、該補助記憶装置と上記補助記憶制御装置内のデータバ
ッファに対して同一データの書き込みを行い、正常に動
作が終了した時点で、上記中央処理装置に正常書き込み
終了を報告することを特徴とする補助記憶装置のデータ
多重書き制御方式。 3、請求項1記載による補助記憶装置のデータ多重書き
制御方式において、中央処理装置からの書き込み要求に
より、論理補助記憶装置を構成するN台の補助記憶装置
のうちのM台の補助記憶装置(N≧M)が正常に書き込
み動作できなかったときには、補助記憶制御装置から上
記中央処理装置に対して補助記憶装置の異常を報告する
ことを特徴とする補助記憶装置のデータ多重書き制御方
式。 4、請求項1記載による補助記憶装置のデータ多重書き
制御方式において、中央処理装置からの読み出し要求が
発行されると、補助記憶制御装置内のデータバッファに
上記読み出し要求のデータが存在するときには、該デー
タバッファのデータを上記中央処理装置に転送し、該デ
ータバッファに対象データが存在しないときには、上記
補助記憶制御装置内のメモリの障害位置の情報を参照し
て、対象データが正常に書き込まれている補助記憶装置
を1台選択し、該補助記憶装置からデータを読み出して
、該データを上記中央処理装置に転送することを特徴と
する補助記憶装置のデータ多重書き制御方式。 5、請求項4記載による補助記憶装置のデータ多重書き
制御方式において、中央処理装置からのデータ読み出し
要求により、選択された補助記憶装置からデータを読み
出している途中で障害が発生し、そのために正常に終了
しなかったときには、補助記憶制御装置内のメモリに補
助記憶装置単位で障害位置を記録するとともに、読み出
しデータが正常に書き込まれている補助記憶装置を組み
合わせの中から選択し、該補助記憶装置から対象データ
を読み出すことを特徴とする補助記憶装置のデータ多重
書き制御方式。 6、請求項4または5記載による補助記憶装置のデータ
多重書き制御方式において、中央処理装置からのデータ
読み出し要求により、論理補助記憶装置を構成するN台
の補助記憶装置のうち、正常な読み出しデータを持たな
い補助記憶装置がM台(N≧M)となった場合には、上
記中央処理装置に対して補助記憶装置の異常を報告する
ことを特徴とする補助記憶装置のデータ多重書き制御方
式。 7、請求項1または4記載による補助記憶装置のデータ
多重書き制御方式において、前記書き込み時の障害発生
位置および読み出し時の障害発生位置を上記補助記憶装
置の記憶媒体に書き込み、該記憶媒体の取り付け時、お
よび上記補助記憶制御装置内の障害位置情報が書き込ま
れたメモリに障害が発生した時には、上記記憶媒体に書
き込んだ障害情報を読み込むことを特徴とする補助記憶
装置のデータ多重書き制御方式。 8、請求項1または4記載による補助記憶装置のデータ
多重書き制御方式において、前記書き込み時の障害発生
位置および読み出し時の障害発生位置を記録するための
補助記憶制御装置内のメモリを、不揮発性メモリで構成
することを特徴とする補助記憶装置のデータ多重書き制
御方式。 9、請求項1、4、5または7記載による補助記憶装置
のデータ多重書き制御方式において、前記補助記憶制御
装置内のメモリには、補助記憶装置の領域としてシリン
ダと該シリンダを形成するトラックを含む階層的に構成
されたテーブルを設け、該テーブルを参照することによ
り、補助記憶装置上のデータが上記補助記憶制御装置内
のデータバッファ上に存在するか否かおよび当該データ
が正常か否かを判定することを特徴とする補助記憶装置
の多重書き制御方式。[Scope of Claims] 1. An auxiliary storage control device connected to a central processing unit via a channel interface and connected to a plurality of auxiliary storage devices via a drive interface; When a plurality of auxiliary storage devices combined in advance are recognized as one auxiliary storage device (hereinafter referred to as a logical auxiliary storage device) and a data write request is generated from the central processing unit to the logical auxiliary storage device, the logical auxiliary storage device One auxiliary storage device is selected from the combinations that make up the device, data is written to the auxiliary storage device and the data buffer in the auxiliary storage control device, and when the writing is completed normally, the central In an auxiliary storage control device that reports normal write completion to a processing device and then writes data to the remaining auxiliary storage devices combined as a logical auxiliary storage device,
An auxiliary storage device characterized in that when a failure occurs while data is being written to the auxiliary storage device, the location of the write failure is stored in each auxiliary storage device of the memory in the auxiliary storage control device. data multiplex writing control method. 2. In the data multiplex writing control method for the auxiliary storage device according to claim 1, when a write request is made from the central processing unit, a failure occurs while writing to one selected auxiliary storage device; If normal writing is not possible in the auxiliary storage device, the location of the failure is recorded in each auxiliary storage device of the memory in the auxiliary storage controller, and then the auxiliary storage device that constitutes the logical auxiliary storage device other than the auxiliary storage device where the write failure occurred. Select one auxiliary storage device from the group, write the same data to the auxiliary storage device and the data buffer in the auxiliary storage control device, and when the operation is completed normally, the central A data multiplex write control method for an auxiliary storage device characterized by reporting the completion of normal writing to a processing device. 3. In the data multiplex writing control method for an auxiliary storage device according to claim 1, M auxiliary storage devices (of the N auxiliary storage devices constituting the logical auxiliary storage device) are A data multiplex write control method for an auxiliary storage device, characterized in that when a write operation cannot be performed normally (N≧M), the auxiliary storage control device reports an abnormality in the auxiliary storage device to the central processing unit. 4. In the data multiplex write control method for an auxiliary storage device according to claim 1, when a read request is issued from the central processing unit and the data of the read request exists in the data buffer in the auxiliary storage control device, The data in the data buffer is transferred to the central processing unit, and when the target data does not exist in the data buffer, the target data is written normally by referring to the information on the fault location of the memory in the auxiliary storage control device. 1. A data multiplex write control method for an auxiliary storage device, characterized in that one auxiliary storage device is selected, data is read from the auxiliary storage device, and the data is transferred to the central processing unit. 5. In the data multiplex writing control method for the auxiliary storage device according to claim 4, a failure occurs while reading data from the selected auxiliary storage device due to a data read request from the central processing unit, and therefore the normal operation is not performed. If the failure is not completed, the location of the failure is recorded for each auxiliary storage device in the memory in the auxiliary storage control device, and the auxiliary storage device in which the read data has been correctly written is selected from among the combinations, and the auxiliary storage device is A data multiplex write control method for an auxiliary storage device characterized by reading target data from the device. 6. In the data multiplex writing control method for an auxiliary storage device according to claim 4 or 5, in response to a data read request from the central processing unit, normal read data from among the N auxiliary storage devices constituting the logical auxiliary storage device is detected. A data multiplex write control method for an auxiliary storage device, characterized in that when there are M auxiliary storage devices (N≧M) that do not have an auxiliary storage device, an abnormality in the auxiliary storage device is reported to the central processing unit. . 7. In the data multiplex write control method for an auxiliary storage device according to claim 1 or 4, the writing-time failure occurrence position and the reading-time failure occurrence position are written in a storage medium of the auxiliary storage device, and the storage medium is attached. A data multiplex write control method for an auxiliary storage device, characterized in that when a failure occurs in the memory in which the failure location information is written in the auxiliary storage control device, the failure information written in the storage medium is read. 8. In the data multiplex write control method for an auxiliary storage device according to claim 1 or 4, the memory in the auxiliary storage control device for recording the location of failure during writing and the location of failure during reading is a non-volatile memory. A data multiplex write control method for an auxiliary storage device characterized by comprising a memory. 9. In the data multiplex writing control method for an auxiliary storage device according to claim 1, 4, 5 or 7, the memory in the auxiliary storage control device includes a cylinder and a track forming the cylinder as an area of the auxiliary storage device. By referring to the table, it is possible to determine whether the data on the auxiliary storage device exists on the data buffer in the auxiliary storage control device and whether the data is normal or not. A multiple write control method for an auxiliary storage device, characterized in that it determines.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4354089A JPH02222027A (en) | 1989-02-23 | 1989-02-23 | Data multi-writing control system for auxiliary memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4354089A JPH02222027A (en) | 1989-02-23 | 1989-02-23 | Data multi-writing control system for auxiliary memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02222027A true JPH02222027A (en) | 1990-09-04 |
Family
ID=12666570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4354089A Pending JPH02222027A (en) | 1989-02-23 | 1989-02-23 | Data multi-writing control system for auxiliary memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02222027A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7191365B2 (en) | 2002-05-20 | 2007-03-13 | Nec Corporation | Information recorder and its control method |
-
1989
- 1989-02-23 JP JP4354089A patent/JPH02222027A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7191365B2 (en) | 2002-05-20 | 2007-03-13 | Nec Corporation | Information recorder and its control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5724542A (en) | Method of controlling disk control unit | |
US5878204A (en) | Disk controlling method and apparatus for transferring a record from a disk to a host via an intermediate buffer | |
US6598134B2 (en) | System and method for on-line, real time, data migration | |
US6049890A (en) | Disk array system and its control method | |
US5568628A (en) | Storage control method and apparatus for highly reliable storage controller with multiple cache memories | |
US6272571B1 (en) | System for improving the performance of a disk storage device by reconfiguring a logical volume of data in response to the type of operations being performed | |
JP4252139B2 (en) | Storage system | |
JPH06214782A (en) | System and method for introduction of processor control code | |
JP3260999B2 (en) | Control method of disk controller | |
JP2742186B2 (en) | Disk driver, disk array device, data storage system, and data backup method for disk array system | |
US7263580B2 (en) | Cache flush based on checkpoint timer | |
JP3490266B2 (en) | Backup system and backup method using disk system and magnetic tape library device | |
JPH04282731A (en) | Method of error recovery in the asynchronous control unit | |
JPH08249218A (en) | File control device and data writing method | |
JP3882467B2 (en) | Snapshot management method for storage system | |
JPH02222027A (en) | Data multi-writing control system for auxiliary memory | |
US20030195738A1 (en) | Information processing system for sharing internal auxiliary storage device | |
JPH0452725A (en) | Storage device failure recovery processing method | |
JPH1185594A (en) | Information processing system for remote copy | |
JPH1124849A (en) | Fault recovery method and device therefor | |
JP3515495B2 (en) | Disk control device and control method thereof | |
JPH05143248A (en) | Data backup system for semiconductor disk device | |
JP2888222B2 (en) | Data backup method | |
JPH07319637A (en) | Controller and control method for disk device | |
JPH10340215A (en) | Data backup system |