JPH09218750A - Control method of magnetic disk sub-system - Google Patents

Control method of magnetic disk sub-system

Info

Publication number
JPH09218750A
JPH09218750A JP8023666A JP2366696A JPH09218750A JP H09218750 A JPH09218750 A JP H09218750A JP 8023666 A JP8023666 A JP 8023666A JP 2366696 A JP2366696 A JP 2366696A JP H09218750 A JPH09218750 A JP H09218750A
Authority
JP
Japan
Prior art keywords
data
cache memory
magnetic disk
pin
disk device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8023666A
Other languages
Japanese (ja)
Inventor
Hiroaki Nakanishi
弘晃 中西
Hisayoshi Kawabata
久善 川端
Hiroaki Konuma
弘明 小沼
Isamu Kurokawa
勇 黒川
Hisaharu Takeuchi
久治 竹内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP8023666A priority Critical patent/JPH09218750A/en
Publication of JPH09218750A publication Critical patent/JPH09218750A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce probability for a data loss by evading writing impossible data to a magnetic disk and recovering data saved in an auxiliary area to a cache memory. SOLUTION: When a pin control flag inside a cache memory pin data control table 125 is invalid in stopping a plan, pin data 124 is stored in a pin data control table 133 inside a storage device 130. Then, when the data presence flag of pin data 124 to be saved is invalid, the auxiliary area where pin data 124 is stored is recognized, saving is executed and a track data invalid flag inside the pin data control table 133 is made to be valid. When starting a system, whole information of saved pin data 124 is restored to the cache memory pin data control table 125 and, after that, the pin control information flag of the pin data control table 133 is made to invalid.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はバッテリバックアッ
プされたキャッシュメモリ付き記憶制御装置と磁気ディ
スク装置から構成される磁気ディスクサブシステムの制
御方法に関し、磁気ディスク装置内にデータを書き込む
前にキャッシュメモリに一時的にデータを格納し、その
格納後、磁気ディスク装置にキャッシュメモリからデー
タを書き込む事が可能なキャッシュメモリ付き磁気ディ
スクサブシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of controlling a magnetic disk subsystem comprising a battery-backed storage control device with a cache memory and a magnetic disk device, and a method for controlling a cache memory before writing data in the magnetic disk device. The present invention relates to a magnetic disk subsystem with a cache memory, which is capable of temporarily storing data and then writing the data from a cache memory to a magnetic disk device.

【0002】[0002]

【従来の技術】キャッシュメモリの制御技術に関する公
知例を以下に示す。
2. Description of the Related Art Known examples of cache memory control technology are shown below.

【0003】キャッシュメモリとディスク装置間のデー
タ転送速度は、上位制御装置とキャッシュメモリ間の転
送速度よりも遅い。そこで、特願昭55−157053
に記載されている技術では、キャッシュメモリを有する
記憶制御装置は、中央処理装置からのライト指示に対
し、中央処理装置と記憶制御装置内のキャッシュメモリ
との間のデータ転送が終了した段階でライト終了報告を
行い、ライト指示を出した中央処理装置への高速な応答
を実現している。キャッシュメモリからディスク装置へ
のデータ転送は、中央処理装置からのライト指示とは非
同期に後から記憶制御装置が行う。この制御をライトア
フタ制御という。
The data transfer rate between the cache memory and the disk device is slower than the transfer rate between the host controller and the cache memory. Therefore, Japanese Patent Application No. 55-157053
In the technology described in (3), the storage controller having the cache memory writes in response to a write instruction from the central processing unit when the data transfer between the central processing unit and the cache memory in the storage control unit is completed. A high-speed response is achieved to the central processing unit that issues a write report and issues a write instruction. Data transfer from the cache memory to the disk device is performed later by the storage control device asynchronously with the write instruction from the central processing unit. This control is called write-after control.

【0004】[0004]

【発明が解決しようとする課題】従来、キャッシュメモ
リ付き磁気ディスクサブシステムにおいて、計画停止時
等のキャッシュメモリ内のデータ損失の可能性がある場
合でかつ、上記のライトアフタ制御によってキャッシュ
メモリ内に磁気ディスク装置に書き込めないデータがあ
る場合、キャッシュメモリ内に磁気ディスク装置へ書き
込み不可能なデータが存在するという情報のみを、バッ
テリバックアップ付き揮発性メモリに残していたが、デ
ータそのものは退避していなかった。
Conventionally, in a magnetic disk subsystem with a cache memory, when there is a possibility of data loss in the cache memory at the time of a planned stop, etc. When there is data that cannot be written to the magnetic disk device, only the information that there is data that cannot be written to the magnetic disk device in the cache memory was left in the volatile memory with battery backup, but the data itself was saved. There wasn't.

【0005】また計画停止時、キャッシュメモリ等の揮
発性メモリはそのメモリ内のデータが損失することに対
して、特開昭60−45857では揮発性メモリのデー
タを不揮発性メモリに転送する技術を提示しているが、
あくまで不揮発性メモリに転送する際の書き込めない場
合において、転送できないデータを有効に保持する方法
は提示されていない。
Further, in the case of a planned stop, a volatile memory such as a cache memory loses data in the volatile memory, but Japanese Patent Laid-Open No. 60-45857 discloses a technique for transferring the data in the volatile memory to a non-volatile memory. I am presenting
There is no suggestion of a method for effectively holding data that cannot be transferred when writing to the nonvolatile memory is not possible.

【0006】さらに本来バッテリバックアップされたキ
ャッシュメモリは磁気ディスク装置に書き込む必要はな
くデータ保全が可能なはずだが、バッテリ自体のバック
アップ能力が有限であることから、データの保全性の面
では限界があった。
Further, although the battery-backed cache memory is supposed to be able to maintain data without having to write it in the magnetic disk device, there is a limit in terms of data integrity because the backup capacity of the battery itself is limited. It was

【0007】本発明の目的は、計画停止時において、磁
気ディスク装置の障害によって書き込み不可能なデータ
がキャッシュメモリ内に残っていたという情報を磁気デ
ィスク装置に残すだけでなく、書き込み不可能なデータ
も磁気ディスク装置の予備領域、または他の補助記憶装
置へ退避させ、再起動時には回復することを可能とする
磁気ディスク装置の制御方法を提供することである。
An object of the present invention is to not only leave information that unwritable data remained in the cache memory in the cache memory due to a failure of the magnetic disk device at the time of planned stop, but also to write unwritable data. Another object of the present invention is to provide a method of controlling a magnetic disk device, which makes it possible to save the data in a spare area of the magnetic disk device or another auxiliary storage device and recover the data upon restart.

【0008】またその時、書き込み不可能なデータの位
置情報等も磁気ディスク装置に持ち、回復を容易にする
磁気ディスク装置の制御方法を提供することである。
At the same time, another object of the present invention is to provide a method for controlling a magnetic disk device, in which the magnetic disk device also has position information of unwritable data and the like, which facilitates recovery.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するた
め、本発明のによるキャッシュメモリ付き磁気ディスク
サブシステムにおけるキャッシュメモリから記憶装置へ
のデータ退避・回復方法は、キャッシュメモリから磁気
ディスク装置へ書き込み不可能なデータ部の位置を特定
し、データの位置情報を、磁気ディスク装置の書き込み
不可能なデータを管理するテーブルに格納し、磁気ディ
スク装置内の予備領域の中に格納可能できるかを判定
し、書き込み不可能なデータを磁気ディスクに退避し、
再起動時にはキャッシュメモリのバッテリバックアップ
が切れていれば、書き込み不可能なデータがあったか
を、書き込み不可能なデータを管理するテーブルから確
認して、予備領域に退避したデータをキャッシュメモリ
に回復する方法と、前記磁気ディスク装置の予備領域の
替わりに、補助記憶装置内に書き込み不可能なデータを
退避し、回復する方法である。
In order to achieve the above object, a method of saving / restoring data from a cache memory to a storage device in a magnetic disk subsystem with a cache memory according to the present invention writes data from the cache memory to the magnetic disk device. The position of the impossible data part is specified, the position information of the data is stored in the table that manages the unwritable data of the magnetic disk device, and it is judged whether it can be stored in the spare area in the magnetic disk device. The unwritable data to the magnetic disk,
If the battery backup of the cache memory is cut off when restarting, check if there is unwritable data from the table that manages unwritable data and restore the data saved in the spare area to the cache memory. Then, in place of the spare area of the magnetic disk device, unwritable data is saved and restored in the auxiliary storage device.

【0010】従来、計画停止時に磁気ディスク装置の障
害によりキャッシュメモリに残った書き込み不可能なデ
ータがある場合、そのデータの位置情報のみをバッテリ
バックアップされた揮発性メモリに格納することで、再
起動時にはキャッシュメモリに書き込み不可能なデータ
が計画停止前に存在していたという情報のみが得られて
いた。しかしそれだけではキャッシュメモリの電源を二
重化してもデータ損失の可能性が残ってしまう。
Conventionally, when there is unwritable data remaining in the cache memory due to a failure of the magnetic disk device at the time of planned shutdown, only the position information of the data is stored in the battery-backed volatile memory to restart. Sometimes only information was available that non-writable data existed in the cache memory before the planned shutdown. However, with that alone, there is still the possibility of data loss even if the cache memory power supply is duplicated.

【0011】そこで、本発明では計画停止時、記憶装置
の障害により書き込み不可能なデータが存在する場合、
磁気ディスク装置の書き込み不可能なデータを管理する
テーブル内に書き込み不可能なデータの位置情報を格納
しておく。そして更に磁気ディスク装置の予備領域が十
分に残っていれば書き込み不可能なデータを退避する。
そして再起動時には、キャッシュメモリのバッテリバッ
クアップが切れなかったかを確認し、切れた場合には磁
気ディスク装置の障害によって書き込み不可能なデータ
が存在していたかを、前記テーブル内を検索して求め、
書き込み不可能なデータを管理するテーブル内に書き込
み不可能なデータの存在を確認し、書き込み不可能なデ
ータが予備領域に残っていれば、キャッシュメモリに回
復することができる。
Therefore, according to the present invention, when there is unwritable data due to a failure of the storage device at the time of planned stop,
Position information of unwritable data is stored in a table that manages unwritable data of the magnetic disk device. If the spare area of the magnetic disk device is sufficient, the unwritable data is saved.
Then, at the time of restart, it is confirmed whether the battery backup of the cache memory has not expired, and if so, whether or not there is unwritable data due to a failure of the magnetic disk device is searched for in the table,
The existence of unwritable data is confirmed in the table that manages unwritable data, and if unwritable data remains in the spare area, it can be restored to the cache memory.

【0012】また従来からのキャッシュメモリ付きの磁
気ディスクサブシステムと異なり、複数台の小型磁気デ
ィスク装置を用いて、従来の一台もしくは複数台の磁気
ディスクに見せているキャッシュメモリ付きの磁気ディ
スクアレイ装置では、予備ディスク(スペアディスク)
を用意して、保守性を高めている。しかしこの予備ディ
スクは保守時を除いて使用されるケースは少ない。そこ
で本発明では、アレイ構成内の磁気ディスク装置の障害
でキャッシュメモリから磁気ディスク装置に書き込めな
いデータを計画停止時に予備ディスクにも退避すること
ができる。
Also, unlike a conventional magnetic disk subsystem with a cache memory, a magnetic disk array with a cache memory is shown as a conventional single or multiple magnetic disks by using a plurality of small magnetic disk devices. In the device, a spare disk (spare disk)
To improve maintainability. However, this spare disk is rarely used except during maintenance. Therefore, in the present invention, data that cannot be written to the magnetic disk device from the cache memory due to a failure of the magnetic disk device in the array configuration can be saved to the spare disk at the time of the planned stop.

【0013】[0013]

【発明の実施の形態】本発明のバッテリバックアップさ
れたキャッシュメモリ付き磁気ディスクサブシステム
は、記憶制御装置によって磁気ディスク装置にデータを
書き込む前に一時的にキャッシュメモリにデータを格納
する。このキャッシュにデータを格納するが、定期的も
しくは不定期に磁気ディスク装置にそのデータを書き込
むとき、磁気ディスク装置の障害によって書き込めない
ことがある。このデータをピンデータと呼ぶ。このピン
データはキャッシュメモリから磁気ディスク装置に書き
込めないが、キャッシュメモリ上には残っているので、
キャッシュメモリが通電時にはデータは保証され、何等
問題はない。しかし計画停止時の状態になり、キャッシ
ュメモリのバッテリバックアップが切れた場合、ピンデ
ータが磁気ディスク装置の当該部位に書き込めない事か
ら、データの信頼性が疑わしくなる。
BEST MODE FOR CARRYING OUT THE INVENTION The battery-backed magnetic disk subsystem with a cache memory of the present invention temporarily stores data in the cache memory before writing the data to the magnetic disk device by the storage controller. Although data is stored in this cache, when the data is written to the magnetic disk device regularly or irregularly, it may not be writable due to a failure of the magnetic disk device. This data is called pin data. This pin data cannot be written from the cache memory to the magnetic disk device, but it remains in the cache memory, so
Data is guaranteed when the cache memory is energized, and there is no problem. However, when the state of the planned stop occurs and the battery backup of the cache memory is cut off, the reliability of the data becomes doubtful because the pin data cannot be written in the relevant part of the magnetic disk device.

【0014】そこでピンデータを含むデータを磁気ディ
スク装置の予備領域、もしくは予備ディスクに退避し、
そのピンデータの関連情報も備え持つことで再起動時に
はピンデータを回復する方法で、以下、図面を用いて本
発明の実施例を説明する。
Therefore, data including pin data is saved in a spare area of the magnetic disk device or a spare disk,
A method of recovering the pin data at the time of restart by providing the related information of the pin data will be described below with reference to the drawings.

【0015】図1は本発明に関連する制御が流れる部位
の概略図である。以下では、本発明の実施例として、退
避領域を磁気ディスク装置の予備領域を用いて説明する
が、必ずしもその予備領域に限定されるべき物ではな
く、予備ディスクをも含むキャッシュ付き磁気ディスク
装置である。
FIG. 1 is a schematic view of a portion where control related to the present invention flows. In the following, as an embodiment of the present invention, the evacuation area will be described by using the spare area of the magnetic disk device, but it is not necessarily limited to the spare area, and a magnetic disk device with a cache including a spare disk is also used. is there.

【0016】キャッシュメモリ付き磁気ディスクサブシ
ステムは、中央処理装置110と、記憶制御装置120
と、記憶装置130を備えている。記憶制御装置部12
0は上位装置の中央処理装置からデータの転送を要求さ
れ、制御部121によってキャッシュメモリ122にデ
ータを一時的に格納し、データ転送完了を上位装置に報
告する。その後、キャッシュメモリ122から記憶装置
130にデータを転送する。しかしこの状態で記憶装置
130の障害によって、目的のアクセス位置にデータを
書き込めない場合がある。この時キャッシュメモリ12
2に残された転送できないデータをピンデータ124と
いう。
The magnetic disk subsystem with cache memory comprises a central processing unit 110 and a storage control unit 120.
And a storage device 130. Storage controller unit 12
0 is requested by the central processing unit of the host device to transfer data, the control unit 121 temporarily stores the data in the cache memory 122, and reports the completion of data transfer to the host device. After that, the data is transferred from the cache memory 122 to the storage device 130. However, in this state, due to a failure of the storage device 130, it may not be possible to write data to the target access position. At this time, the cache memory 12
The untransferable data left in 2 is called pin data 124.

【0017】図2にキャッシュメモリ122のピンデー
タを管理するキャッシュメモリピンデータ管理テーブル
125を示す。キャッシュメモリピンデータ管理テーブ
ル125は、共有メモリ123内にあり、キャッシュメ
モリ122のピンデータ124のキャッシュメモリピン
データ位置情報203と、キャッシュメモリ内にピンが
あることを示すキャッシュメモリピン管理情報フラグ2
01と、キャッシュメモリ内のピンデータの数を示すキ
ャッシュメモリピンデータカウンタ202を含んでい
る。キャッシュメモリピンデータ位置情報203には、
デバイス番号204、シリンダ番号205、トラック番
号206、データ有りフラグ207を有している。
FIG. 2 shows a cache memory pin data management table 125 for managing the pin data of the cache memory 122. The cache memory pin data management table 125 is in the shared memory 123, the cache memory pin data position information 203 of the pin data 124 of the cache memory 122, and the cache memory pin management information flag 2 indicating that there is a pin in the cache memory.
01 and a cache memory pin data counter 202 indicating the number of pin data in the cache memory. The cache memory pin data position information 203 includes
It has a device number 204, a cylinder number 205, a track number 206, and a data presence flag 207.

【0018】図3にピンデータ124がキャッシュメモ
リ122に存在する場合、計画停止時にそのピンデータ
情報を格納するピンデータ管理テーブル133を示す。
テーブル内にはキャッシュメモリ122にピンデータ1
24が存在する場合、一つでもピンデータ124が有る
ことを示すピンデータ有りのピン管理情報フラグ301
と、退避したピンデータ23の個数を示すピンデータ個
数302、ピンデータ124の位置情報であるピンデー
タ位置情報がある。さらにピンデータ124の情報とし
て、デバイス番号304、シリンダ番号305、トラッ
ク番号306、予備領域に格納されているピンデータが
有効か無効かのトラックデータ有効フラグ307を含
む。
FIG. 3 shows a pin data management table 133 for storing the pin data information at the time of planned stop when the pin data 124 exists in the cache memory 122.
Pin data 1 in the cache memory 122 in the table
If 24 exists, pin management information flag 301 with pin data indicating that there is at least one pin data 124
There are the pin data number 302 indicating the number of the saved pin data 23, and the pin data position information which is the position information of the pin data 124. Further, the information of the pin data 124 includes a device number 304, a cylinder number 305, a track number 306, and a track data valid flag 307 indicating whether the pin data stored in the spare area is valid or invalid.

【0019】図4、図5は本発明のフローである。4 and 5 show the flow of the present invention.

【0020】図4はピンデータの退避手順を示す。通常
キャッシュメモリ122から記憶装置130へデータ転
送の要求があった時、そのデータが記憶装置130へ転
送可能かを判定する。このときデータがキャッシュメモ
リから記憶装置130の障害によって転送できないなら
ば、そのデータはピンデータ124になり、キャッシュ
メモリピンデータ管理テーブル125内の、ピン管理情
報フラグ201、キャッシュメモリピンデータカウンタ
202、キャッシュメモリピンデータ位置情報203に
必要な情報が記録される。
FIG. 4 shows the procedure for saving the pin data. When a data transfer request is issued from the normal cache memory 122 to the storage device 130, it is determined whether the data can be transferred to the storage device 130. At this time, if the data cannot be transferred from the cache memory due to the failure of the storage device 130, the data becomes the pin data 124, and the pin management information flag 201, the cache memory pin data counter 202 in the cache memory pin data management table 125, Necessary information is recorded in the cache memory pin data position information 203.

【0021】計画停止時、ピンデータ124が存在する
こと確認するためにをキャッシュメモリピンデータ管理
テーブル125内のピン管理情報フラグ201が有効
(値としては1を示す)ならば、そしてピンデータ12
4を記憶装置130内のピンデータ管理テーブル133
に記憶する。次に退避するピンデータ124のデータ有
りフラグ307が有効ならば、ピンデータ124を格納
できる予備領域132を確認して、退避し、ピンデータ
管理テーブル133内のトラックデータ有効フラグ30
7を有効にする。逆にデータ有りフラグ207が無効の
場合や、ピンデータ124を格納できる予備領域132
がない場合は、トラックデータ有効フラグ307を無効
にしておく。そして全てのピンデータ124の位置情報
をピンデータ管理テーブル133に書き込んだ時点で、
キャッシュメモリピンデータカウンタ202のピンデー
タの個数をピンデータ管理テーブル133内のピンデー
タ個数302に書き込み、ピンデータ管理テーブル13
3のピン管理情報フラグ301を有効にする。
At the time of the planned stop, if the pin management information flag 201 in the cache memory pin data management table 125 is valid (indicates 1 as a value) to confirm that the pin data 124 exists, then the pin data 12
4 is a pin data management table 133 in the storage device 130.
To memorize. If the data presence flag 307 of the pin data 124 to be saved next is valid, the spare area 132 in which the pin data 124 can be stored is confirmed and saved, and the track data valid flag 30 in the pin data management table 133 is saved.
Enable 7. On the contrary, when the data presence flag 207 is invalid, or the spare area 132 in which the pin data 124 can be stored
If there is not, the track data valid flag 307 is invalidated. Then, when the position information of all the pin data 124 is written in the pin data management table 133,
The number of pin data in the cache memory pin data counter 202 is written in the pin data number 302 in the pin data management table 133, and the pin data management table 13 is written.
3 pin management information flag 301 is enabled.

【0022】もし、逆にピン管理情報フラグ201が無
効(値としては0を示す)ならば、ピンデータ管理テー
ブル133内のピン管理情報フラグ301に無効を入れ
て、ピンデータ124のないことを記録する。そして全
てのピンデータ124の情報を記憶装置130に格納し
た時点で電源をオフする。
On the contrary, if the pin management information flag 201 is invalid (indicates 0 as a value), the pin management information flag 301 in the pin data management table 133 is invalidated so that the pin data 124 does not exist. Record. Then, when the information of all the pin data 124 is stored in the storage device 130, the power is turned off.

【0023】図5にピンデータの回復処理の手順を示
す。システムの再起動時に、まずバッテリバックアップ
されたキャッシュメモリ122のバッテリが切れている
かを確認し、バッテリが切れていないならば、ピンデー
タ管理テーブル24のピン管理情報フラグ301を無効
にし、ピンデータ回復処理は終了する。
FIG. 5 shows the procedure of pin data recovery processing. When the system is restarted, it is first checked whether the battery of the cache-backed-up cache memory 122 has run out. If the battery has not run out, the pin management information flag 301 in the pin data management table 24 is invalidated, and the pin data is recovered. The process ends.

【0024】もし、バッテリが切れていて、ピンデータ
管理テーブル133のピン管理情報フラグ301が無効
ならば、キャッシュメモリピンデータ管理テーブル12
5内のピン管理情報フラグ201を無効にし、ピンデー
タ回復処理を終了する。
If the battery is dead and the pin management information flag 301 of the pin data management table 133 is invalid, the cache memory pin data management table 12
The pin management information flag 201 in 5 is invalidated, and the pin data recovery process ends.

【0025】もし、バッテリが切れていて、ピンデータ
管理テーブル133のピン管理情報フラグ301が有効
ならば、以下の処理を実行する。
If the battery is dead and the pin management information flag 301 of the pin data management table 133 is valid, the following processing is executed.

【0026】まず、ピンデータ管理テーブル133のあ
るピンデータ124のピンデータ位置情報303をキャ
ッシュメモリピンデータ位置情報203に書き込む。そ
してトラックデータ有効フラグ307が有効ならば、磁
気ディスク装置130の予備領域132に退避したピン
データ133をキャッシュメモリ122に回復する。そ
してキャッシュメモリピンデータ管理テーブル125の
データ有りフラグ207を有効にする。逆にトラックデ
ータ有効フラグ307が無効ならば、キャッシュメモリ
ピンデータ管理テーブル125のデータ有りフラグ20
7を無効にする。
First, the pin data position information 303 of the pin data 124 in the pin data management table 133 is written in the cache memory pin data position information 203. If the track data valid flag 307 is valid, the pin data 133 saved in the spare area 132 of the magnetic disk device 130 is restored in the cache memory 122. Then, the data presence flag 207 of the cache memory pin data management table 125 is validated. On the contrary, if the track data valid flag 307 is invalid, the data presence flag 20 of the cache memory pin data management table 125 is set.
Disable 7.

【0027】そして、すべての退避したピンデータ12
4の情報がキャッシュメモリピンデータ管理テーブル1
25に回復された後、ピンデータ管理テーブル133の
ピン管理情報フラグ301を無効にする。
Then, all the saved pin data 12
The information of 4 is the cache memory pin data management table 1
After being restored to 25, the pin management information flag 301 of the pin data management table 133 is invalidated.

【0028】以上のステップによりピンデータ124に
なっても他データと何等遜色なくデータ保全が可能にな
る。
By the above steps, even if the pin data 124 is obtained, the data can be preserved in the same way as other data.

【0029】[0029]

【発明の効果】本発明によれば、キャッシュメモリ付き
磁気ディスクサブシステムにおいて、磁気ディスク装置
の障害によってキャッシュメモリから磁気ディスク装置
に書き込めないピンデータが存在する場合で、計画停止
時にはキャッシュメモリ内のピンデータを含む当該トラ
ックも可能な限り退避することでき、逆に再起動時には
ピンデータ管理テーブル内の情報を用いてピンデータを
他のデータと同じようにキャッシュメモリ内に復活する
ことができる。その結果、上記情報システムでは上位制
御装置からのデータがキャッシュメモリで更新可能であ
れば、データ損失になる可能性が非常に小さくなる。
According to the present invention, in a magnetic disk subsystem with a cache memory, when there is pin data that cannot be written from the cache memory to the magnetic disk device due to a failure of the magnetic disk device, and when there is a planned stop, the data in the cache memory is The track including the pin data can be saved as much as possible, and conversely, at the time of restart, the pin data can be restored in the cache memory like other data by using the information in the pin data management table. As a result, in the above information system, if the data from the host controller can be updated in the cache memory, the possibility of data loss becomes very small.

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

【図1】本発明において関連する部位を含む磁気ディス
クサブシステムの概略図である。
FIG. 1 is a schematic diagram of a magnetic disk subsystem including parts relevant to the present invention.

【図2】磁気ディスク装置の障害によりキャッシュメモ
リから磁気ディスク装置に書き込めなかったキャッシュ
メモリ内のデータを管理するためのテーブルを示す図で
ある。
FIG. 2 is a diagram showing a table for managing data in the cache memory that could not be written from the cache memory to the magnetic disk device due to a failure of the magnetic disk device.

【図3】計画停止時に磁気ディスク装置の障害によりキ
ャッシュメモリから磁気ディスク装置に書き込めなかっ
たデータの管理情報が格納されるテーブルを示す図であ
る。
FIG. 3 is a diagram showing a table in which management information of data that cannot be written from the cache memory to the magnetic disk device due to a failure of the magnetic disk device at the time of planned stop is stored.

【図4】磁気ディスク装置の障害によりキャッシュメモ
リから磁気ディスク装置に書き込めなかったデータを退
避、復旧する処理のフローチャートを示す図である。
FIG. 4 is a diagram showing a flowchart of processing for saving and restoring data that could not be written in the magnetic disk device from the cache memory due to a failure of the magnetic disk device.

【図5】磁気ディスク装置の障害によりキャッシュメモ
リから磁気ディスク装置に書き込めなかったデータを退
避、復旧する処理のフローチャートを示す図である。
FIG. 5 is a diagram showing a flowchart of processing for saving and restoring data that could not be written in the magnetic disk device from the cache memory due to a failure of the magnetic disk device.

【符号の説明】[Explanation of symbols]

110....中央処理装置 120....記憶制御装
置 121....制御部 122....キャッシュメモリ 123....共有メモリ
124....ピンデータ 125....キャッシュメモリピンデータ管理テーブル
130....記憶装置 131....記憶装置内使用領域 132....記
憶装置内予備領域 133....ピンデータ管理テーブル 134....退
避したピンデータ
110 .... Central processing unit 120 .... Storage control unit 121 .... Control unit 122 .... Cache memory 123 .... Shared memory 124 .... Pin data 125 .... Cache Memory pin data management table
130 .... Storage device 131 .... Storage area in storage device 132 .... Reserve area in storage device 133 .... Pin data management table 134 .... Saved pin data

───────────────────────────────────────────────────── フロントページの続き (72)発明者 黒川 勇 神奈川県小田原市国府津2880番地 株式会 社日立製作所ストレージシステム事業部内 (72)発明者 竹内 久治 神奈川県小田原市国府津2880番地 株式会 社日立製作所ストレージシステム事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Isamu Kurokawa 2880, Kozu, Odawara-shi, Kanagawa Hitachi Storage Systems Division (72) Inventor, Kuji Takeuchi 2880, Kozu, Odawara, Kanagawa Hitachi Storage Co., Ltd. System Division

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】キャッシュメモリと、磁気ディスク装置
と、前記キャッシュメモリと該磁気ディスク装置を制御
する記憶制御装置と、前記キャッシュメモリと前記磁気
ディスク装置と該記憶制御装置の間でデータ転送を制御
するデータ転送手段を具備するキャッシュメモリ付き磁
気ディスクサブシステムの制御方法であって、前記デー
タ転送手段の制御を用いて、前記キャッシュメモリ付き
磁気ディスクサブシステムの上位制御装置である中央処
理装置からのライトデータを一時的に前記キャッシュメ
モリに格納し、その後前記磁気ディスク装置内の目的の
アクセス位置にデータを格納する際に、前記磁気ディス
ク装置の障害により目的のアクセス位置に書き込めない
で前記キャッシュメモリに残っているデータについて、
計画停止時のデータ保証の為に前記書き込み不可能なデ
ータを前記磁気ディスク装置の該予備領域に退避し、前
記キャッシュメモリ付き磁気ディスク装置の再起動時に
は、前記予備領域に記憶された前記書き込み不可能なデ
ータを前記キャッシュメモリ内に回復する磁気ディスク
サブシステムの制御方法。
1. A cache memory, a magnetic disk device, a storage control device for controlling the cache memory and the magnetic disk device, and data transfer between the cache memory, the magnetic disk device and the storage control device. A method for controlling a magnetic disk subsystem with a cache memory, comprising: a data transfer means for controlling a magnetic disk subsystem from a central processing unit, which is a host controller of the magnetic disk subsystem with a cache memory, using the control of the data transfer means. When the write data is temporarily stored in the cache memory and then the data is stored in a target access position in the magnetic disk device, the cache memory cannot be written in the target access position due to a failure of the magnetic disk device. For the data remaining in
The unwritable data is saved in the spare area of the magnetic disk device to guarantee the data at the time of the planned stop, and when the magnetic disk device with the cache memory is restarted, the write failure stored in the spare area is lost. A method of controlling a magnetic disk subsystem for recovering possible data in the cache memory.
【請求項2】前記磁気ディスク装置の予備領域に替えて
予備ディスクにデータを退避することを特徴とする請求
項1の方法。
2. The method according to claim 1, wherein data is saved to a spare disk in place of the spare area of the magnetic disk device.
JP8023666A 1996-02-09 1996-02-09 Control method of magnetic disk sub-system Pending JPH09218750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8023666A JPH09218750A (en) 1996-02-09 1996-02-09 Control method of magnetic disk sub-system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8023666A JPH09218750A (en) 1996-02-09 1996-02-09 Control method of magnetic disk sub-system

Publications (1)

Publication Number Publication Date
JPH09218750A true JPH09218750A (en) 1997-08-19

Family

ID=12116828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8023666A Pending JPH09218750A (en) 1996-02-09 1996-02-09 Control method of magnetic disk sub-system

Country Status (1)

Country Link
JP (1) JPH09218750A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011238038A (en) * 2010-05-11 2011-11-24 Nec Corp Disk array device, disk array device control system, and disk array device control program
JP2012514781A (en) * 2009-01-06 2012-06-28 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system, and computer program for determining modified data in a cache for use during a recovery operation (determining modified data in a cache for use during a recovery operation)
JP2014238746A (en) * 2013-06-10 2014-12-18 日本電気株式会社 Data integrity processing apparatus, raid controller, data integrity processing system, data integrity processing method, and program therefor

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012514781A (en) * 2009-01-06 2012-06-28 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system, and computer program for determining modified data in a cache for use during a recovery operation (determining modified data in a cache for use during a recovery operation)
JP2011238038A (en) * 2010-05-11 2011-11-24 Nec Corp Disk array device, disk array device control system, and disk array device control program
JP2014238746A (en) * 2013-06-10 2014-12-18 日本電気株式会社 Data integrity processing apparatus, raid controller, data integrity processing system, data integrity processing method, and program therefor

Similar Documents

Publication Publication Date Title
US6766491B2 (en) Parity mirroring between controllers in an active-active controller pair
US7111134B2 (en) Subsystem and subsystem processing method
JP2557172B2 (en) Method and system for secondary file status polling in a time zero backup copy process
US6073221A (en) Synchronization of shared data stores through use of non-empty track copy procedure
US7836268B2 (en) Method, apparatus, and system for controlling data storage
JPH0619722B2 (en) Device that saves the state of the computer
KR20040104391A (en) Autonomic power loss recovery for a multi-cluster storage sub-system
JPH0991099A (en) Disk update log recording system
US20040133741A1 (en) Disk array apparatus and data writing method used in the disk array apparatus
JPH09218750A (en) Control method of magnetic disk sub-system
JPH05189314A (en) Disk cache control system
JPS63140352A (en) Memory device for data base of on-line system
JPH1185594A (en) Information processing system for remote copy
JPH09212424A (en) Disk cache and disk caching method
JP2656499B2 (en) Computer system
JP2893758B2 (en) Optical disk drive
JPH06348600A (en) Disk cache device
JP2000267936A (en) Disk sub-system
JPS61210453A (en) Data memory device
JPH10240620A (en) Computer system and check point image preservation method in the system
JPH06149487A (en) External storage device and data backup method
JPH10105346A (en) Disk storage system
JP3594202B2 (en) External storage controller
JP2624106B2 (en) Automatic verification method of backup file in exchange system
JPH0415726A (en) Write back-up system for disk controller