JP2665199B2 - Mirrored disk management method - Google Patents
Mirrored disk management methodInfo
- Publication number
- JP2665199B2 JP2665199B2 JP7132211A JP13221195A JP2665199B2 JP 2665199 B2 JP2665199 B2 JP 2665199B2 JP 7132211 A JP7132211 A JP 7132211A JP 13221195 A JP13221195 A JP 13221195A JP 2665199 B2 JP2665199 B2 JP 2665199B2
- Authority
- JP
- Japan
- Prior art keywords
- disk
- physical
- mirrored
- management information
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000007726 management method Methods 0.000 title claims description 52
- 238000013507 mapping Methods 0.000 claims description 4
- 238000011084 recovery Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 5
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Description
【0001】[0001]
【産業上の利用分野】本発明は、ミラードディスク管理
方式に関し、特にデータの高信頼性を要求されるコンピ
ュータシステムの磁気ディスク装置を対象としたミラー
ドディスク管理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mirrored disk management system, and more particularly to a mirrored disk management system for a magnetic disk device of a computer system which requires high reliability of data.
【0002】[0002]
【従来の技術】従来、コンピュータシステムにおいて
は、外部記憶装置である磁気ディスク装置で取り扱うデ
ータの消失や欠落が、システム全体に致命的な影響を与
えるような重要なデータを記憶させる場合、磁気ディス
ク装置のハード不良,ハード故障によるデータの読み出
し不能および書き込み不能を回避するために磁気ディス
ク装置を二重化し、双方の磁気ディスク装置に同一のデ
ータを書き込むことにより、一方の磁気ディスク装置内
のファイルが破壊されても、他方のディスク装置内のフ
ァイルによって代替可能になっている。2. Description of the Related Art Conventionally, in a computer system, when storing important data such that the loss or loss of data handled by a magnetic disk device as an external storage device has a fatal effect on the entire system, a magnetic disk drive is required. The magnetic disk drive is duplicated in order to avoid the failure of reading and writing of data due to the hardware failure of the device and the hardware failure, and the same data is written to both the magnetic disk devices. Even if it is destroyed, it can be replaced by a file in the other disk device.
【0003】この種のミラードディスクに関しては、例
えば、特開平1−118921号公報に開示されてい
る。これは二重化された磁気ディスク装置自体に該当デ
ィスクの二重化状態を管理する情報、すなわち、マスタ
ー状態,スレーブ状態もしくは切り離し状態のいずれか
の状態にあるかを示す状態情報、およびこれらの情報の
更新回数を含む管理情報を格納したテーブルを備えると
ともに、各ディスクの状態が変化したとき、もしくはオ
ペレータからの変更指示があったときは、各ディスクの
状態をテーブル上で変化後の状態に更新し、この更新し
たテーブルの管理情報を用いて各磁気ディスク装置の動
作を制御するものである。[0003] This type of mirrored disk is disclosed, for example, in Japanese Patent Application Laid-Open No. 1-118921. This is information that manages the duplication state of the corresponding disk in the duplicated magnetic disk device itself, that is, state information indicating whether the disk is in a master state, a slave state, or a detached state, and the number of updates of such information. When the status of each disk changes, or when a change instruction is given by an operator, the status of each disk is updated on the table to the status after the change. The operation of each magnetic disk device is controlled using the updated management information of the table.
【0004】また、磁気ディスク装置の立ち上げ時に
は、各磁気ディスク装置が備えるテーブル内の管理情報
を読み出して比較し、もしも読み出した内容に不一致が
ある場合は、更新回数が大きい方の管理情報に双方のテ
ーブルの内容を一致させることにより、システム構築の
柔軟性向上をはかったものである。When the magnetic disk devices are started up, the management information in the table provided in each magnetic disk device is read and compared. If there is a mismatch between the read contents, the management information with the larger number of updates is read. By matching the contents of both tables, the flexibility of system construction is improved.
【0005】[0005]
【発明が解決しようとする課題】上述した従来のミラー
ドディスクにおいては、システムクラッシュ,システム
ストールおよびシステム電源断後のシステムリブートに
おいて、ミラードディスクのボリュームデータリカバリ
を行う場合に、物理ディスクのデータの整合性を確定で
きるディスク状態の種類が少ないため、最新のデータを
持つ物理ディスクの判断ができなくなり、ミラードディ
スクの信頼性向上が望めないという欠点があった。In the above-mentioned conventional mirrored disk, when recovering the volume data of the mirrored disk during a system crash, a system stall, or a system reboot after the system power is turned off, the data on the physical disk must be consistent. Since there are few types of disk states for which the reliability can be determined, it is impossible to determine the physical disk having the latest data, and there is a disadvantage that the reliability of the mirrored disk cannot be improved.
【0006】[0006]
【課題を解決するための手段】本発明は、複数の物理デ
ィスクと、前記物理ディスクを制御する磁気ディスク装
置と、前記磁気ディスク装置とファイルシステムの間に
挿入されデータの読み書きを前記複数の物理ディスクに
多重化して行うミラーディスク管理方式であって、前記
複数の物理ディスクごとに物理ディスクのシステム領域
の未使用部分に、それぞれ前記物理ディスクの使用の開
始・終了で更新するディスク状態情報と、前記物理ディ
スクに対するデータの読み書きでアクセスに失敗した場
合に更新される相手ディスクエラー情報と、前記物理デ
ィスクに対するデータの書き込みごとに更新される時刻
情報とからなる同一内容の二重化管理情報を備え、シス
テムクラッシュ,システムストールおよびシステム電源
断後のシステムリブートで物理ディスクの二重化管理情
報の相手ディスクエラー情報,タイムスタンプ,自デバ
イス番号を参照し、ディスク状態を更新することを特徴
とする。SUMMARY OF THE INVENTION The present invention provides a plurality of physical disks, a magnetic disk device for controlling the physical disks, and a plurality of physical disks inserted between the magnetic disk device and a file system for reading and writing data. A mirror disk management method performed by multiplexing the physical disks, wherein disk status information to be updated at the start and end of use of the physical disks, respectively, in unused portions of the system area of the physical disks for each of the plurality of physical disks, The system includes duplicated management information having the same contents including partner disk error information that is updated when access to the physical disk fails in reading and writing data and time information that is updated each time data is written to the physical disk. System reset after a crash, system stall, or system power off Over door at the other disk error information of the duplication management information of the physical disk, time stamp, self-Device
The disk state is updated with reference to the chair number .
【0007】また、物理ディスクの二重化管理情報は、
前記物理ディスクのデバイス番号を表わす自デバイス番
号と、前記自物理ディスクとミラーリングしている物理
ディスクのデバイス番号を表わすマッピング情報と、前
記二重化管理情報の妥当性をチェックするチェックサム
とを備えることを特徴とする。[0007] The duplication management information of the physical disk is
Comprising a self-device number that represents the device number of the previous SL physics disc, the mapping information representing the device number of the physical disks mirroring the own physical disks, and a checksum for checking the validity of the duplication management information It is characterized by the following.
【0008】[0008]
【実施例】次に、本発明について図面を参照して説明す
る。Next, the present invention will be described with reference to the drawings.
【0009】図1は、本発明の一実施例を示す構成図で
ある。FIG. 1 is a block diagram showing one embodiment of the present invention.
【0010】図1を参照すると、コンピュータシステム
11は、個々の物理ディスク15を制御する磁気ディス
ク装置14と、磁気ディスク装置14から構成されるミ
ラードディスクを管理するミラーディスク装置13と、
ミラーディスク装置13のデータ管理を行うファイルシ
ステム12とから成っている。Referring to FIG. 1, a computer system 11 includes a magnetic disk device 14 for controlling individual physical disks 15, a mirror disk device 13 for managing a mirrored disk composed of the magnetic disk devices 14, and
And a file system 12 for managing data of the mirror disk device 13.
【0011】図2は、図1のミラードディスクの詳細を
示す構成図である。FIG. 2 is a configuration diagram showing details of the mirrored disk of FIG.
【0012】図2を参照すると、ミラードディスク21
は、物理ディスク#1(22a)と物理ディスク#2
(22b)とから構成され、それぞれ物理ディスクの物
理情報が格納されるシステム領域23を備えている。ま
た、システム領域23には、未使用部分を利用したミラ
ードディスク21を構成する物理ディスクのボリューム
データを管理するための二重化管理情報24を格納する
ようになっている。Referring to FIG. 2, the mirrored disk 21
Are physical disks # 1 (22a) and physical disks # 2
(22b), each having a system area 23 in which physical information of a physical disk is stored. Further, the system area 23 stores duplex management information 24 for managing volume data of the physical disks constituting the mirrored disk 21 using the unused portion.
【0013】図3は、図2の二重化管理情報24の構成
を説明する図である。FIG. 3 is a view for explaining the configuration of the duplex management information 24 of FIG.
【0014】図3を参照すると、図2の二重化管理情報
24は、自物理ディスクのデバイス番号を表わす自デバ
イス番号31と、物理ディスクへのアクセスのごとに更
新されるタイムスタンプ32と、ディスク使用中である
か否かを示すディスク状態33と、自ディスクとミラー
リングしているディスクのデバイス番号を表わすマッピ
ング情報34と、ミラーリングしているディスクのエラ
ー情報を示す相手ディスクエラー情報35と、二重化管
理情報の妥当性をチェックするためのチェックサム36
とから構成されている。また、この二重化管理情報は、
図2に示すように、磁気ディスク装置のセクタ障害に備
えて物理ディスク22a,22bに対し同一内容で2つ
設けている。Referring to FIG. 3, the duplication management information 24 shown in FIG. 2 includes a self-device number 31 representing the device number of the self-physical disk, a time stamp 32 updated each time the physical disk is accessed, Disk status 33 indicating whether the disk is in the middle, mapping information 34 indicating the device number of the disk that is mirrored with its own disk, partner disk error information 35 indicating error information of the mirrored disk, and duplex management. Checksum 36 for checking the validity of the information
It is composed of Also, this duplicate management information
As shown in FIG. 2, two physical disks 22a and 22b having the same contents are provided in preparation for a sector failure of the magnetic disk device.
【0015】次に、このように構成された本実施例の動
作について説明する。Next, the operation of the embodiment constructed as described above will be described.
【0016】まず、コンピュータシステム11のファイ
ルシステム12からミラードディスク21の使用開始要
求があると、ミラーディスク装置13は、磁気ディスク
装置14に対してミラードディスク21を構成するすべ
ての物理ディスク15のオープン要求を行う。First, when there is a use start request of the mirrored disk 21 from the file system 12 of the computer system 11, the mirror disk drive 13 opens all the physical disks 15 constituting the mirrored disk 21 to the magnetic disk drive 14. Make a request.
【0017】そして、ミラーディスク装置13は、すべ
ての物理ディスク15のオープン要求が正常に完了する
と、物理ディスク15の二重化管理情報24のディスク
状態33を”ON”に設定した後、ファイルシステム1
2へミラードディスク21の使用開始要求を返す。これ
により、ミラードディスク21がマウントされる。When the request to open all the physical disks 15 is completed normally, the mirror disk device 13 sets the disk status 33 of the duplication management information 24 of the physical disks 15 to “ON”, and then sets the file system 1
2, a request to start using the mirrored disk 21 is returned. Thereby, the mirrored disk 21 is mounted.
【0018】ミラードディスク21のマウント後、ミラ
ードディスク21に対する書き込み要求があると、ミラ
ーディスク装置13は、ミラードディスク21を構成す
る物理ディスク15のすべての書き込み要求を磁気ディ
スク装置14に対して行う。そして、書き込み要求の正
常完了により、ミラーディスク装置13は、ミラードデ
ィスク21を構成するすべての物理ディスク15の二重
化管理情報24のタイムスタンプ32をその更新時刻で
更新する。After the mirrored disk 21 is mounted, if there is a write request to the mirrored disk 21, the mirror disk device 13 sends all the write requests to the physical disk 15 constituting the mirrored disk 21 to the magnetic disk device 14. Then, upon the normal completion of the write request, the mirror disk device 13 updates the time stamps 32 of the duplication management information 24 of all the physical disks 15 constituting the mirrored disk 21 with the updated time.
【0019】次に、ミラードディスク21に対する読み
込み要求では、ミラーディスク装置13は、ミラードデ
ィスク21を構成する物理ディスク15の二重化管理情
報24のタイムスタンプの更新は行わない。Next, in response to a read request for the mirrored disk 21, the mirror disk device 13 does not update the time stamp of the duplication management information 24 of the physical disk 15 constituting the mirrored disk 21.
【0020】ミラードディスク21のアンマウントで
は、ファイルシステム12からミラードディスク21の
使用終了要求により、ミラーディスク装置13は、ミラ
ードディスク21を構成するすべての物理ディスク15
の二重化管理情報24のディスク状態33を”OFF”
に設定後、すべての物理ディスク15のクローズ要求を
磁気ディスク装置14に対して行う。そして、ミラーデ
ィスク装置13は、すべての物理ディスク15のクロー
ズ要求が正常に完了すると、ファイルシステム12へミ
ラードディスク21の使用終了要求を返す。When the mirrored disk 21 is unmounted, the mirror disk device 13 sends all the physical disks 15 constituting the mirrored disk 21 in response to a request to terminate use of the mirrored disk 21 from the file system 12.
The disk status 33 of the duplication management information 24 of the "OFF"
After that, a request to close all the physical disks 15 is made to the magnetic disk device 14. Then, when the request to close all the physical disks 15 is completed normally, the mirror disk device 13 returns a request to end use of the mirrored disk 21 to the file system 12.
【0021】ファイルシステム12からのミラードディ
スク21に対する書き込み要求では、ミラーディスク装
置13は、すべての物理ディスク15への書き込みを磁
気ディスク装置14に対して行う。そして、すべての物
理ディスク15への書き込みで物理ディスク15のいず
れかに書き込みエラーが発生した場合は、ミラーディス
ク装置13は、書き込みエラーが発生していない方の物
理ディスク15の二重化管理情報24の相手ディスクエ
ラー情報35を”ON”に設定する。これにより、ミラ
ーリングしている相手の物理ディスク15にエラーが発
生したことを表わす。In response to a write request from the file system 12 to the mirrored disk 21, the mirror disk device 13 writes all the physical disks 15 to the magnetic disk device 14. If a write error occurs in any of the physical disks 15 in writing to all the physical disks 15, the mirror disk device 13 stores the duplicate management information 24 of the physical disk 15 in which the write error has not occurred. The partner disk error information 35 is set to "ON". This indicates that an error has occurred in the mirrored physical disk 15.
【0022】以後、ミラーディスク装置13は、書き込
みエラーが発生した物理ディスク15を一切アクセスし
ないで、ミラードディスク21を片側物理ディスク15
のみの運転とさせる。したがって、ミラードディスク2
1への書き込み要求により、物理ディスク15の二重化
管理情報24のタイムスタンプ32は、正常の物理ディ
スク15のみが更新される。また、ミラードディスク2
1の使用終了要求では、二重化管理情報24のディスク
状態33は、正常な物理ディスク15のみが”OFF”
される。Thereafter, the mirror disk device 13 replaces the mirrored disk 21 with the one-sided physical disk 15 without accessing the physical disk 15 in which the write error has occurred.
Only drive. Therefore, mirrored disk 2
In response to the write request to 1, the time stamp 32 of the duplication management information 24 of the physical disk 15 is updated only for the normal physical disk 15. Mirrored disk 2
In the use end request of No. 1, the disk status 33 of the duplex management information 24 indicates that only the normal physical disk 15 is “OFF”
Is done.
【0023】次に、ファイルシステム12からのミラー
ドディスク21に対する読み込み要求では、ミラーディ
スク装置13は、ミラードディスク21を構成する物理
ディスク15のいずれか一方からの読み込みを磁気ディ
スク装置14に対して行う。物理ディスク15からの読
み込みで読み込みエラーが発生した場合には、ミラーデ
ィスク装置13は、もう一方の物理ディスク15の二重
化管理情報24の相手ディスクエラー情報35を”O
N”に設定して、同物理ディスク15からの読み込みを
磁気ディスク装置14に対して行う。ミラーディスク装
置13は、読み込みエラーが発生した物理ディスク15
に関しては、一切アクセスしないでミラードディスク2
1を片側物理ディスク15のみの運転とさせる。物理デ
ィスク15の二重化管理情報24の扱いは、ミラードデ
ィスク21への書き込みの場合と同一である。Next, in response to a read request from the file system 12 to the mirrored disk 21, the mirror disk device 13 reads from one of the physical disks 15 constituting the mirrored disk 21 to the magnetic disk device 14. . If a read error occurs during reading from the physical disk 15, the mirror disk device 13 sets the partner disk error information 35 of the duplex management information 24 of the other physical disk 15 to “O”.
N ", and reads from the physical disk 15 to the magnetic disk device 14. The mirror disk device 13 reads the physical disk 15 on which a read error has occurred.
Mirrored disk 2 without any access
1 is to operate only one physical disk 15. The handling of the duplicate management information 24 of the physical disk 15 is the same as the case of writing to the mirrored disk 21.
【0024】システムのリブートによりファイルシステ
ム12からのミラードディスク21の再使用開始要求
で、ミラーディスク装置13は、磁気ディスク装置14
に対してミラードディスク21を構成するすべての物理
ディスク15のオープン要求を行う。ミラーディスク装
置13は、物理ディスク15のオープン要求失敗か、物
理ディスク15の二重化管理情報24の相手ディスクエ
ラー情報35からアクセス可能な物理ディスク15を検
索する。When the system system reboots and the file system 12 requests the mirror disk 21 to be reused, the mirror disk device 13
Request to open all the physical disks 15 that make up the mirrored disk 21. The mirror disk device 13 searches for an accessible physical disk 15 from the partner disk error information 35 of the duplication management information 24 of the physical disk 15 or whether the open request of the physical disk 15 failed.
【0025】そして、ミラーディスク装置13は、アク
セス可能な物理ィスク15の二重化管理情報24のディ
スク状態33を”ON”に設定する。また、このとき、
ミラーディスク装置13は、アクセス不可能な物理ディ
スク15に対しては、そのまま閉塞状態とするので、ミ
ラードディスク21は、片側物理ディスク15のみの運
転となる。Then, the mirror disk device 13 sets the disk status 33 of the duplicate management information 24 of the accessible physical disk 15 to "ON". At this time,
The mirror disk device 13 keeps the inaccessible physical disk 15 in the closed state, so that the mirrored disk 21 operates with only one physical disk 15.
【0026】次に、ミラードディスク21を構成するす
べての物理ディスク15に対するオープン要求により、
物理ディスク15の二重化管理情報24の相手ディスク
エラー情報35でエラーが発生した物理ディスク15が
存在しない場合は、ミラーディスク装置13は、すべて
の物理ディスク15の二重化管理情報24のタイムスタ
ンプ32を比較し、同一更新時刻であるか否かを確認す
る。Next, in response to an open request to all the physical disks 15 constituting the mirrored disk 21,
If there is no physical disk 15 in which an error has occurred in the partner disk error information 35 of the duplicate management information 24 of the physical disk 15, the mirror disk device 13 compares the time stamps 32 of the duplicate management information 24 of all the physical disks 15. Then, it is determined whether or not the times are the same.
【0027】そして、タイムスタンプ32が同一更新時
刻でない場合は、ミラードディスク21を構成する物理
ディスク15間のデータの整合性が取れていないため、
ミラーディスク装置13が最新のタイムスタンプを持つ
物理ディスク15を基に、もう一方の物理ディスク15
のボリュームデータのリカバリを行う。If the time stamps 32 do not have the same update time, data consistency between the physical disks 15 constituting the mirrored disk 21 is not ensured.
The mirror disk device 13 uses the other physical disk 15 based on the physical disk 15 having the latest time stamp.
Perform volume data recovery.
【0028】このデータリカバリ開始により、ミラーデ
ィスク装置13は、データリカバリ元の物理ディスク1
5の二重化管理情報24のディスク状態を”ON”にす
るとともに、データリカバリ先の同ディスク状態33
を”リカバリ中”に設定する。そして、ボリュームデー
タのリカバリが完了すると、ミラーディスク装置13
は、データリカバリ先の物理ディスク15の二重化管理
情報24のディスク状態33を“リカバリ中”から“O
N”に変更し、ミラードディスク21のミラーリング運
用を開始する。With the start of the data recovery, the mirror disk device 13 moves the physical disk 1 of the data recovery source.
5, the disk status of the duplex management information 24 is set to “ON”, and the disk status 33 of the data recovery destination is set.
Set to "Recovering". When the recovery of the volume data is completed, the mirror disk device 13
Changes the disk status 33 of the duplex management information 24 of the data recovery destination physical disk 15 from “recovering” to “O
N ", and the mirroring operation of the mirrored disk 21 is started.
【0029】また、ミラードディスク21を構成する物
理ディスク15の二重化管理情報24のタイムスタンプ
32が同一更新時刻の場合には、ミラーディスク装置1
3は、物理ディスク15の二重化管理情報24のディス
ク状態33を調べる。そして、両物理ディスク15のデ
ィスク状態33が“OFF”の場合は、ミラーディスク
装置13は、物理ディスク15の二重化管理情報24の
ディスク状態を“ON”に設定し、ミラードディスク2
1のミラーリング運用を開始する。また、物理ディスク
15のどちらか一方の二重化管理情報24のディスク状
態33が“ON”の場合は、システムクラッシュ、シス
テムストール、電源断などでミラードディスク21のア
ンマウントが完結していないため、ミラードディスク2
1を構成する物理ディスク15間のデータの整合性がと
れていない可能性がある。When the time stamp 32 of the duplication management information 24 of the physical disk 15 constituting the mirrored disk 21 has the same update time, the mirror disk device 1
3 examines the disk status 33 of the duplicate management information 24 of the physical disk 15. Then, when the disk status 33 of both physical disks 15 is “OFF”, the mirror disk device 13 sets the disk status of the duplex management information 24 of the physical disk 15 to “ON”, and the mirrored disk 2
Start the mirroring operation of No. 1. If the disk status 33 of the duplication management information 24 of one of the physical disks 15 is “ON”, the unmounting of the mirrored disk 21 is not completed due to a system crash, a system stall, a power failure, or the like. 2
There is a possibility that data consistency between the physical disks 15 constituting the first disk is not maintained.
【0030】そこで、ミラーディスク装置13は、二重
化管理情報24のディスク状態33が“OFF”の物理
ディスク15をデータリカバリ元とし、同ディスク状態
33が“ON”の物理ディスク15をデータリカバリ先
としてボリュームデータのリカバリを行う。そして、デ
ータリカバリ開始により、ミラーディスク装置13は、
データリカバリ元の物理ディスク15の二重化管理情報
24のディスク状態33を“ON”に設定するともに、
リカバリ先の同ディスク状態33を“リカバリ中”に設
定する。Therefore, the mirror disk device 13 uses the physical disk 15 whose disk status 33 in the duplex management information 24 is “OFF” as a data recovery source and the physical disk 15 whose disk status 33 is “ON” as a data recovery destination. Perform volume data recovery. When the data recovery starts, the mirror disk device 13
The disk status 33 of the duplex management information 24 of the data recovery source physical disk 15 is set to “ON”,
The same disk status 33 of the recovery destination is set to “recovering”.
【0031】ボリュームデータのリカバリが完了する
と、ミラーディスク装置13は、データリカバリ先の物
理ディスク15の二重化管理情報24のディスク状態3
3を“リカバリ中”から“ON”に変更して、ミラード
ディスク21のミラーリング運用を開始する。When the recovery of the volume data is completed, the mirror disk device 13 sets the disk status 3 in the duplex management information 24 of the physical disk 15 as the data recovery destination.
3 is changed from “recovery” to “ON”, and the mirroring operation of the mirrored disk 21 is started.
【0032】同様に、両物理ディスク15の二重化管理
情報24のディスク状態33が“ON”の場合は、シス
テムクラッシュ,システムストールおよび電源断などで
ミラードディスク21のアンマウントが完結していない
ため、ミラードディスク21を構成する物理ディスク1
5間において、データの整合性がとれていない可能性が
ある。Similarly, when the disk status 33 of the duplication management information 24 of both physical disks 15 is “ON”, the unmounting of the mirrored disk 21 has not been completed due to a system crash, system stall, or power-off, etc. Physical disk 1 constituting disk 21
There is a possibility that data consistency is not maintained between the five.
【0033】そこで、ミラーディスク装置13は、二重
化管理情報24の自デバイス番号31の小さいデバイス
番号の物理ディスク15をデータリカバリ元とし、自デ
バイス番号31の大きいデバイス番号の物理ディスク1
5をデータリカバリ先としてボリュームデータのリカバ
リを行う。そして、データリカバリ開始により、ミラー
ディスク装置13は、データリカバリ元の物理ディスク
15の二重化管理情報24のディスク状態33を“O
N”に設定するとともに、リカバリ先の物理ディスク1
5の二重化管理情報24のディスク状態33を“リカバ
リ中”に設定する。Accordingly, the mirror disk device 13 uses the physical disk 15 having the smaller device number of the own device number 31 of the duplex management information 24 as the data recovery source, and the physical disk 1 having the larger device number of the own device number 31.
5 is used as a data recovery destination to recover the volume data. When the data recovery is started, the mirror disk device 13 changes the disk status 33 of the duplex management information 24 of the data recovery source physical disk 15 to “O”.
N "and the recovery destination physical disk 1
The disk status 33 of the duplication management information 24 of No. 5 is set to “recovering”.
【0034】ボリュームデータのリカバリが完了する
と、ミラーディスク装置13はデータリカバリ先の物理
ディスク15の二重化管理情報24のディスク状態33
を“リカバリ中”から“ON”に変更し、ミラードディ
スク21のミラーリング運用を開始する。When the recovery of the volume data is completed, the mirror disk device 13 sets the disk status 33 of the duplication management information 24 of the physical disk 15 as the data recovery destination.
Is changed from “recovery” to “ON”, and the mirroring operation of the mirrored disk 21 is started.
【0035】[0035]
【発明の効果】以上説明したように本発明は、ミラード
ディスクを構成する物理ディスクの二重化管理情報の相
手ディスクエラー情報,タイムスタンプおよびディスク
状態を用いた三段階によるミラードディスクのボリュー
ムデータチェックを行うことにより、システムクラッシ
ュ,システムストール,電源断等の原因によってミラー
ドディスクを構成する物理ディスク間のデータの整合性
が確定できない場合に、ミラードディスクのボリューム
データの信頼性を上げることができるとい効果がある。As described above, according to the present invention, the volume data of a mirrored disk is checked in three stages using the partner disk error information, the time stamp, and the disk status of the duplication management information of the physical disks constituting the mirrored disk. As a result, when the data consistency between the physical disks constituting the mirrored disk cannot be determined due to a system crash, system stall, power failure, or the like, the reliability of the volume data of the mirrored disk can be improved. is there.
【図1】本発明の一実施例を示す構成図である。FIG. 1 is a configuration diagram showing one embodiment of the present invention.
【図2】図1のミラードディスクの詳細を示す構成図で
ある。FIG. 2 is a configuration diagram showing details of a mirrored disk of FIG. 1;
【図3】図2の二重化管理情報の構成を説明する図であ
る。FIG. 3 is a diagram for explaining a configuration of duplex management information of FIG. 2;
11 コンピュータシステム 12 ファイルシステム 13 ミラーディスク装置 14 磁気ディスク装置 15 物理ディスク 21 ミラードディスク 22a,22b 物理ディスク 23 システム領域 24 二重化管理情報 31 自デバイス番号 32 タイムスタンプ 33 ディスク状態 34 マッピング情報 35 相手ディスクエラー情報 36 チェックサム 11 Computer System 12 File System 13 Mirror Disk Device 14 Magnetic Disk Device 15 Physical Disk 21 Mirrored Disk 22a, 22b Physical Disk 23 System Area 24 Duplex Management Information 31 Own Device Number 32 Time Stamp 33 Disk Status 34 Mapping Information 35 Remote Disk Error Information 36 Checksum
Claims (2)
クを制御する磁気ディスク装置と、前記磁気ディスク装
置とファイルシステムの間に挿入されデータの読み書き
を前記複数の物理ディスクに多重化して行うミラーディ
スク管理方式であって、前記複数の物理ディスクごとに
物理ディスクのシステム領域の未使用部分に、それぞれ
前記物理ディスクの使用の開始・終了で更新するディス
ク状態情報と、前記物理ディスクに対するデータの読み
書きでアクセスに失敗した場合に更新される相手ディス
クエラー情報と、前記物理ディスクに対するデータの書
き込みごとに更新される時刻情報とからなる同一内容の
二重化管理情報を備え、システムクラッシュ,システム
ストールおよびシステム電源断後のシステムリブートで
物理ディスクの二重化管理情報の相手ディスクエラー情
報,タイムスタンプ,自デバイス番号を参照し、ディス
ク状態を更新することを特徴とするミラードディスク管
理方式。1. A plurality of physical disks, a magnetic disk device for controlling the physical disks, and a mirror disk inserted between the magnetic disk device and a file system for multiplexing data reading and writing on the plurality of physical disks A management method, wherein in each of the plurality of physical disks, an unused portion of a system area of a physical disk is updated by starting and ending use of the physical disk, and by reading and writing data to and from the physical disk. It has duplicated management information of the same contents, consisting of partner disk error information that is updated when access fails and time information that is updated each time data is written to the physical disk. System crash, system stall, and system power off Duplicate physical disk in later system reboot Refer to the partner disk error information, time stamp, and local device number in the
A mirrored disk management method characterized by updating the disk status .
物理ディスクのデバイス番号を表わす自デバイス番号
と、前記自物理ディスクとミラーリングしている物理デ
ィスクのデバイス番号を表わすマッピング情報と、前記
二重化管理情報の妥当性をチェックするチェックサムと
を備えることを特徴とする請求項1記載のミラードディ
スク管理方式。 Duplication management information as claimed in claim 1, wherein the physical disk, before Symbol
And own device number indicating the device number of the physical disk, the mapping information representing the device number of the physical disks mirroring the own physical disk, further comprising a checksum for checking the validity of the duplication management information 2. The mirrored disk management system according to claim 1, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7132211A JP2665199B2 (en) | 1995-05-30 | 1995-05-30 | Mirrored disk management method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7132211A JP2665199B2 (en) | 1995-05-30 | 1995-05-30 | Mirrored disk management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08328753A JPH08328753A (en) | 1996-12-13 |
| JP2665199B2 true JP2665199B2 (en) | 1997-10-22 |
Family
ID=15076000
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7132211A Expired - Lifetime JP2665199B2 (en) | 1995-05-30 | 1995-05-30 | Mirrored disk management method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2665199B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2001195818A (en) * | 2000-01-13 | 2001-07-19 | Matsushita Electric Ind Co Ltd | Duplex disk controller |
| JP4757300B2 (en) * | 2006-03-31 | 2011-08-24 | 富士通株式会社 | Volume management apparatus and volume management method |
| JP4888347B2 (en) * | 2007-11-08 | 2012-02-29 | 日本電気株式会社 | Storage apparatus and time stamp assigning method |
| JP2015052853A (en) * | 2013-09-05 | 2015-03-19 | 富士通株式会社 | Storage controller, storage control method, and program |
-
1995
- 1995-05-30 JP JP7132211A patent/JP2665199B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08328753A (en) | 1996-12-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3316500B2 (en) | Increase the number of drives in a RAID set while maintaining the integrity of the moved data | |
| US5089958A (en) | Fault tolerant computer backup system | |
| US7266654B2 (en) | Storage system, server apparatus, and method for creating a plurality of snapshots | |
| US6212531B1 (en) | Method for implementing point-in-time copy using a snapshot function | |
| JP4108973B2 (en) | Backup system | |
| US6161111A (en) | System and method for performing file-handling operations in a digital data processing system using an operating system-independent file map | |
| US8086792B2 (en) | Demoting tracks from cache | |
| JP3058743B2 (en) | Disk array controller | |
| US20060107129A1 (en) | Method and computer program product for marking errors in BIOS on a RAID controller | |
| US5829019A (en) | Computer network server backup with posted write cache disk controllers | |
| JP4325845B2 (en) | Data backup method, computer program, information processing apparatus, and data backup and recovery method | |
| US20090019245A1 (en) | Methods for implementation of data formats on a removable disk drive storage system | |
| WO2001095315A2 (en) | Data storage system and process | |
| WO2001040925A1 (en) | Disk array system and method of expanding storage capacity | |
| US20060112300A1 (en) | Method and computer program product for backing up and restoring online system information | |
| JP2665199B2 (en) | Mirrored disk management method | |
| TWI293428B (en) | ||
| CN103699456A (en) | File recording apparatus, file system management method, and changer drive | |
| US6993677B1 (en) | System and method for data verification in a RAID system | |
| JP4667925B2 (en) | Method, system, and program for managing write processing | |
| US7739447B1 (en) | Online label maintenance | |
| JPH04124743A (en) | Data duplicating system | |
| US20060277353A1 (en) | Virtual tape library device, virtual tape library system, and method for writing data to a virtual tape | |
| JP2002278706A (en) | Disk array device | |
| JP2000035920A (en) | Fault restoration method for system and storage medium storing program for fault restoration of system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19970603 |