Nothing Special   »   [go: up one dir, main page]

JP7056874B2 - Controls, disk array devices, control methods, and programs - Google Patents

Controls, disk array devices, control methods, and programs Download PDF

Info

Publication number
JP7056874B2
JP7056874B2 JP2019045456A JP2019045456A JP7056874B2 JP 7056874 B2 JP7056874 B2 JP 7056874B2 JP 2019045456 A JP2019045456 A JP 2019045456A JP 2019045456 A JP2019045456 A JP 2019045456A JP 7056874 B2 JP7056874 B2 JP 7056874B2
Authority
JP
Japan
Prior art keywords
storage area
data
storage
information
area
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.)
Active
Application number
JP2019045456A
Other languages
Japanese (ja)
Other versions
JP2020149267A (en
Inventor
大吾 忽那
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
Original Assignee
NEC Platforms 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 NEC Platforms Ltd filed Critical NEC Platforms Ltd
Priority to JP2019045456A priority Critical patent/JP7056874B2/en
Publication of JP2020149267A publication Critical patent/JP2020149267A/en
Application granted granted Critical
Publication of JP7056874B2 publication Critical patent/JP7056874B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)

Description

本発明は、制御装置、ディスクアレイ装置、制御方法、及びプログラムに関する。 The present invention relates to a control device, a disk array device, a control method, and a program.

近年、物理ディスクの大容量化に伴い、物理ディスクに障害が発生した場合、復旧時間が容量に比例して延びている。特許文献1には、関連する技術として、復旧時間を短縮するための技術が開示されている。 In recent years, with the increase in the capacity of a physical disk, when a failure occurs in the physical disk, the recovery time is extended in proportion to the capacity. Patent Document 1 discloses a technique for shortening the recovery time as a related technique.

特開2018-120382号公報Japanese Unexamined Patent Publication No. 2018-120382

特許文献1に記載の技術では、後に生じる復旧時間を短縮するために物理ディスクのプールに予備記憶装置を組み込む。しかしながら、障害発生時に、障害が発生したディスクのデータを一時的に他の物理ディスクに復旧するために、他の多くの物理ディスクを利用し冗長性を復旧する必要があり、復旧には時間が必要であった。 In the technique described in Patent Document 1, a spare storage device is incorporated in a pool of physical disks in order to shorten the recovery time that occurs later. However, in the event of a failure, in order to temporarily recover the data of the failed disk to another physical disk, it is necessary to use many other physical disks to restore redundancy, and recovery takes time. It was necessary.

本発明は、上記の課題を解決する、制御装置、ディスクアレイ装置、制御方法、及びプログラムを提供することにある。 The present invention is to provide a control device, a disk array device, a control method, and a program that solve the above problems.

本発明の第1の態様によれば、複数の記憶装置を用いて構成される記憶域プールを制御する制御装置であって、通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎に同一の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得部と、前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御部と、を備える制御装置である。 According to the first aspect of the present invention, it is a control device that controls a storage area pool configured by using a plurality of storage devices, and is a storage area for data to be stored in the storage area pool and the above-mentioned. It is the first storage area information indicating the storage area of any of the spare areas in which data can be stored , and is the identification information of each of the plurality of storage devices and the identification of a plurality of groups provided in the same number of the storage devices. For each storage area identified by information, the data storage area indicates the data recorded in that area, and at least one of the spare areas for each group is different from the other storage devices. The first storage area information indicating that the same data for each group is stored in at least two storage devices, and the second storage area indicating the storage area and the spare area at the time of shrinkage. The data at the time of withdrawal for each storage area specified by the area information, the identification information of each of the plurality of storage devices, and the identification information of a plurality of groups provided in the same number of the storage devices. The second storage area information indicating at least the identification information of the data for each storage area, the acquisition unit for acquiring the data, and the first storage area information and the second storage area information when the shrinkage occurs. Based on this, the data recorded in the first storage area information corresponding to the identification information of the retracted storage device is transferred from the storage area of another storage device in the same group as the storage area of the data to the spare area. The data is rearranged by copying , and when the contracted state is released, the rearranged data is returned to the original arrangement based on the first storage area information and the second storage area information. It is a control device including a control unit for performing control for the purpose.

本発明の第2の態様によれば、複数の記憶装置と、上記の制御装置と、を備えるディスクアレイ装置である。 According to the second aspect of the present invention, it is a disk array device including a plurality of storage devices and the above-mentioned control device.

本発明の第3の態様によれば、複数の記憶装置を用いて構成される記憶域プールを制御する制御装置において、通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得ステップと、前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御ステップと、を含む、制御方法である。 According to the third aspect of the present invention, in the control device that controls the storage area pool configured by using a plurality of storage devices, the storage area of the data to be stored in the storage area pool and the data in the normal time are stored in the storage area pool. The first storage area information indicating any storage area of the storage area , which is the identification information of each of the plurality of storage devices and the identification information of a plurality of groups provided in the same number of the storage devices. For each storage area specified by, the data storage area indicates the data recorded in that area, and at least one of the spare areas for each group is set in the storage device different from the other groups. The first storage area information indicating that the data for each group is stored in at least two storage devices, and the second storage area information indicating the storage area and the spare area at the time of shrinkage. For each storage area specified by the identification information of each of the plurality of storage devices and the identification information of a plurality of groups provided in the same number of the storage devices, each storage area of the data at the time of shrinkage is obtained. Based on the acquisition step of acquiring at least the second storage area information indicating the identification information of the data, and the first storage area information and the second storage area information when the shrinkage occurs, the said By copying the data recorded in the first storage area information corresponding to the identification information of the retracted storage device from the storage area of another storage device in the same group as the storage area of the data to the spare area. Control for returning the rearranged data to the original arrangement based on the first storage area information and the second storage area information when the data is rearranged and the contracted state is released. It is a control method including a control step to be performed.

本発明の第4の態様によれば、複数の記憶装置を用いて構成される記憶域プールを制御するコンピュータに、複数の記憶装置を用いて構成される記憶域プールを制御する制御装置であって、通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得ステップと、前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御ステップと、を実行させるためのプログラムである。 According to the fourth aspect of the present invention, it is a control device that controls a storage pool configured by using a plurality of storage devices in a computer that controls a storage area pool configured by using a plurality of storage devices. It is the first storage area information indicating the storage area of either the storage area of the data to be stored in the storage area pool or the spare area in which the data can be stored in the normal time, and is the first storage area information of each of the plurality of storage devices. For each storage area specified by the identification information and the identification information of a plurality of groups provided in the same number in each of the storage devices, the data storage area indicates the data recorded in the area, and the group is shown. With the first storage area information indicating that at least one of the spare areas for each is set in the storage device different from the other groups and the data for each group is stored in at least two storage devices. Second storage area information indicating the storage area and the spare area at the time of withdrawal , identification information of each of the plurality of storage devices, and identification information of a plurality of groups provided in the same number in each of the storage devices. And, for each storage area specified by, the acquisition step of acquiring at least the second storage area information indicating at least the identification information of the data for each storage area of the data at the time of the shrinkage, and the shrinkage occurred. In this case, based on the first storage area information and the second storage area information, the data recorded in the first storage area information corresponding to the identification information of the retracted storage device is stored in the data. The data is rearranged by copying from the storage area of another storage device in the same group as the area to the spare area, and when the contracted state is released, the first storage area information and the second storage area are released. It is a program for executing a control step for performing control for returning the rearranged data to the original arrangement based on the information.

本発明によれば、高速に冗長度を復旧することができる。 According to the present invention, redundancy can be restored at high speed.

本発明の一実施形態に係る情報処理システム100の構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the information processing system 100 which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマップの一例を示す図である。It is a figure which shows an example of the map which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマップの別の一例を示す図である。It is a figure which shows another example of the map which concerns on one Embodiment of this invention. 本発明の一実施形態に係るデータコピーの一例を示す図である。It is a figure which shows an example of the data copy which concerns on one Embodiment of this invention. 本発明の一実施形態に係る縮退時の動作の一例を示すフローチャートである。It is a flowchart which shows an example of the operation at the time of degeneration which concerns on one Embodiment of this invention. 本発明の一実施形態に係るデータ書き込みを行う領域の判定処理の一例を示すフローチャートである。It is a flowchart which shows an example of the determination process of the area which performs data writing which concerns on one Embodiment of this invention. 本発明の一実施形態に係るマップの別の一例を示す図である。It is a figure which shows another example of the map which concerns on one Embodiment of this invention. 本発明の一実施形態に係る縮退時の動作の別の一例を示すフローチャートである。It is a flowchart which shows another example of the operation at the time of degeneration which concerns on one Embodiment of this invention. 本発明の一実施形態に係る制御装置の最小構成を示す図である。It is a figure which shows the minimum structure of the control device which concerns on one Embodiment of this invention.

以下、図面を参照して、本発明の一実施形態について詳しく説明する。 Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本発明の一実施形態に係る情報処理システム100の構成を示す概略図である。
制御装置100は、制御装置1、記憶域プール20、及び、複数のホスト30(30-1、・・・30-N)を備える。ホスト30は、制御装置1と接続されている。また、制御装置1は、記憶域プール20と接続されている。本実施形態では、説明の都合上、ホスト30が1つである例を説明するが、ホスト30は、複数のホスト30(30-1、・・・、30-N)を備えてもよい。また、本実施形態において、ホスト30(30-1、・・・30-N)は、情報処理システム100が備える任意のホストを示す場合、又は特に区別しない場合には、ホスト30として説明する。
FIG. 1 is a schematic diagram showing a configuration of an information processing system 100 according to an embodiment of the present invention.
The control device 100 includes a control device 1, a storage pool 20, and a plurality of hosts 30 (30-1, ... 30-N). The host 30 is connected to the control device 1. Further, the control device 1 is connected to the storage pool 20. In the present embodiment, for convenience of explanation, an example in which one host 30 is provided will be described, but the host 30 may include a plurality of hosts 30 (30-1, ..., 30-N). Further, in the present embodiment, the host 30 (30-1, ... 30-N) will be described as the host 30 when indicating an arbitrary host included in the information processing system 100, or when not particularly distinguished.

ホスト30は、CPU(Central Processing Unit)等のプロセッサを備えたコンピュータである。ホスト30は、CPUによりOS(Operating System)が稼働している。OSは、制御装置1が管理する論理ボリュームを対象とする読み出し命令及び書き込み命令を制御装置1へ出力する。
制御装置1は、記憶域プール20の物理ディスク#1~#nに対するRAID(Redundant Arrays of Inexpensive Disks)を構成し制御する。また、制御装置1は、ホスト30による読み出し命令及び書き込み命令に従い、論理ボリュームに対するドライブへの書き込みや、ドライブからの読み出しを行う。制御装置1についての詳細は後述する。
記憶域プール20は、複数の物理ディスク(#1~#n)によって構成される。複数の物理ディスク#1~#nは、データの冗長性を保証する1つの論理ディスクを構成している。また、物理ディスクは、HDD(Hard Disk Drive)やSSD(Solid State Drive)などの記憶装置である。
The host 30 is a computer provided with a processor such as a CPU (Central Processing Unit). The host 30 is running an OS (Operating System) by a CPU. The OS outputs a read instruction and a write instruction for the logical volume managed by the control device 1 to the control device 1.
The control device 1 configures and controls RAID (Redundant Arrays of Inexpentive Disks) for the physical disks # 1 to # n of the storage pool 20. Further, the control device 1 writes to the drive and reads from the drive for the logical volume according to the read command and the write command by the host 30. Details of the control device 1 will be described later.
The storage pool 20 is composed of a plurality of physical disks (# 1 to # n). The plurality of physical disks # 1 to # n constitute one logical disk that guarantees data redundancy. Further, the physical disk is a storage device such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive).

次に、制御装置1について説明する。
制御装置1は、ホスト制御部11、物理ディスク制御部12、RAID管理部13、及びマップ記憶部131を備える。
Next, the control device 1 will be described.
The control device 1 includes a host control unit 11, a physical disk control unit 12, a RAID management unit 13, and a map storage unit 131.

ホスト制御部11は、ホスト30から受信した命令を解析し実行する。具体的には、ホスト制御部11は、書き込み命令を受信した場合、受信した命令を解析する。ホスト制御部11は、解析した結果に基づいて、物理ディスク制御部12に、書き込みを行う命令及び書き込む内容を示す情報を出力する。また、物理ディスク制御部12から書き込みが終了した入力を受け入れると、ホスト30に書き込みが終了したことを出力する。
また、ホスト制御部11は、読み出し命令を受信した場合、受信した命令を解析する。ホスト制御部11は、解析した結果に基づいて、物理ディスク制御部12に読み出しを行う命令及び読み出す内容を示す情報を出力する。また、物理ディスク制御部12から読み出した情報を受け入れると、ホスト30に読み出した内容を出力する。
また、ホスト制御部11は、物理ディスク制御部12から書き込み又は読み出しに失敗した情報を受け入れた場合、ホスト30に当該情報を出力する。
The host control unit 11 analyzes and executes an instruction received from the host 30. Specifically, when the host control unit 11 receives a write instruction, the host control unit 11 analyzes the received instruction. Based on the analysis result, the host control unit 11 outputs an instruction for writing and information indicating the content to be written to the physical disk control unit 12. Further, when the input from the physical disk control unit 12 that the writing is completed is received, the fact that the writing is completed is output to the host 30.
Further, when the host control unit 11 receives the read instruction, the host control unit 11 analyzes the received instruction. Based on the analysis result, the host control unit 11 outputs an instruction to read and information indicating the content to be read to the physical disk control unit 12. When the information read from the physical disk control unit 12 is received, the read contents are output to the host 30.
Further, when the host control unit 11 receives the information from the physical disk control unit 12 that has failed to be written or read, the host control unit 11 outputs the information to the host 30.

物理ディスク制御部12は、制御装置1と記憶域プール20とのデータ転送を制御する。具体的には、物理ディスク制御部12は、書き込み又は読み出しを行うデータの記憶域プール20内での領域を問い合わせる情報を、RAID管理部13に出力する。以下、書き込み対象のデータを「ライトデータ」、読み込み対象のデータを「リードデータ」とも称する。物理ディスク制御部12は、RAID管理部13から受信した情報に基づいて、ライトデータを記憶域プール20に書き込む処理を行う。また、物理ディスク制御部12は、RAID管理部13から受信した情報に基づいて、リードデータを記憶域プール20から読み出す処理を行う。物理ディスク制御部12は、処理結果を示す情報をホスト制御部11に出力する。処理結果を示す情報は、例えば、書き込み終了を示す情報、リードデータを含む情報、書き込み又は読み出しが失敗した情報、などである。 The physical disk control unit 12 controls data transfer between the control device 1 and the storage pool 20. Specifically, the physical disk control unit 12 outputs information for inquiring about an area in the storage area pool 20 of data to be written or read to the RAID management unit 13. Hereinafter, the data to be written is also referred to as "write data", and the data to be read is also referred to as "read data". The physical disk control unit 12 performs a process of writing write data to the storage pool 20 based on the information received from the RAID management unit 13. Further, the physical disk control unit 12 performs a process of reading read data from the storage area pool 20 based on the information received from the RAID management unit 13. The physical disk control unit 12 outputs information indicating the processing result to the host control unit 11. The information indicating the processing result is, for example, information indicating the end of writing, information including read data, information in which writing or reading has failed, and the like.

また、物理ディスク制御部12は、記憶域プール20を構成する物理ディスクに縮退が発生した場合、当該情報を記憶域プール20から取得し、取得した情報をRAID管理部13に出力する。縮退の発生は、対象の物理ディスクに故障が発生した場合に限られない。例えば、物理ディスクのエラー率などを監視し、監視している情報がある所定の条件を満たした場合などに縮退が発生してもよい。以下では、縮退が発生した物理ディスクは、読み出し及び書き込みが行えないものとするが、これには限られない。 Further, when the physical disk constituting the storage area pool 20 is degenerated, the physical disk control unit 12 acquires the information from the storage area pool 20 and outputs the acquired information to the RAID management unit 13. The occurrence of degeneracy is not limited to the case where the target physical disk fails. For example, the error rate of a physical disk may be monitored, and degeneracy may occur when the monitored information meets certain conditions. In the following, it is assumed that the physical disk in which the degeneracy has occurred cannot be read or written, but the present invention is not limited to this.

RAID管理部13は、記憶域プール20の物理ディスクが記憶するデータの配置を、マップを用いて管理する。マップは、記憶域プール20の物理ディスクがデータを記憶する領域と当該領域に含まれる情報とを対応付けた情報である。ここで、領域とは、物理ディスクにおいてデータを記録する単位である。
また、RAID管理部13は、物理ディスク制御部12からのライトデータ・リードデータの領域の問い合わせに回答する。具体的には、RAID管理部13は、物理ディスク制御部12からライトデータ・リードデータの領域を問い合わせる情報を受け入れる。RAID管理部13は、マップ記憶部131からマップを読み出し、読み出した情報に基づいて、ライトデータ・リードデータの領域を決定する。RAID管理部13は決定した情報を物理ディスク制御部12に出力する。
また、RAID管理部13は、記憶域プール20を構成する物理ディスクに縮退が発生した場合に、縮退復旧のためコピーするデータを決定する処理を行う。RAID管理部13は、決定した情報を物理ディスク制御部12に出力する。
RAID管理部13の処理の詳細は後述する。
The RAID management unit 13 manages the arrangement of data stored in the physical disk of the storage area pool 20 by using a map. The map is information in which an area in which the physical disk of the storage pool 20 stores data is associated with information contained in the area. Here, the area is a unit for recording data on a physical disk.
Further, the RAID management unit 13 responds to an inquiry from the physical disk control unit 12 in the area of write data / read data. Specifically, the RAID management unit 13 receives information inquiring about the area of write data / read data from the physical disk control unit 12. The RAID management unit 13 reads a map from the map storage unit 131, and determines a region of write data / read data based on the read information. The RAID management unit 13 outputs the determined information to the physical disk control unit 12.
Further, the RAID management unit 13 performs a process of determining data to be copied for degeneration recovery when a degeneration occurs in the physical disk constituting the storage pool 20. The RAID management unit 13 outputs the determined information to the physical disk control unit 12.
The details of the processing of the RAID management unit 13 will be described later.

マップ記憶部131は、RAID管理部13が管理するマップを記憶する。マップ記憶部131は、2種類のマップ(第1マップ、第2マップ)を記憶する。第1マップは、記憶域プール20を構成する物理ディスクの全てに縮退が起きていない場合のマップである。第2マップは、記憶域プール20を構成する物理ディスクのいずれかに縮退が起きた場合のマップである。第2マップは、縮退が起きた物理ディスクに応じて異なるマップである。そのため、第2マップは記憶域プール20を構成する物理ディスクの数だけ存在する。 The map storage unit 131 stores the map managed by the RAID management unit 13. The map storage unit 131 stores two types of maps (first map and second map). The first map is a map when degeneration has not occurred in all the physical disks constituting the storage pool 20. The second map is a map when degeneration occurs in any of the physical disks constituting the storage pool 20. The second map is a different map depending on the physical disk in which the degeneration occurred. Therefore, there are as many second maps as there are physical disks constituting the storage pool 20.

以下、記憶域プール20が9台の物理ディスク(#1~#9)を有する場合の例について説明する。ただし、本実施形態は、以下の説明に限定されない。 Hereinafter, an example in which the storage pool 20 has nine physical disks (# 1 to # 9) will be described. However, this embodiment is not limited to the following description.

図2は、本発明の一実施形態に係るマップの一例を示す図である。図2におけるマップM1は、上述した第1マップの一例を示す。
この図に示す一例では、マップM1は、9台の物理ディスクの各々を9個の領域に分割している場合の、各領域が記憶するデータの構成を示す情報である。最初の行の“#1”~“#9”は、記憶域プール20を構成する個々の物理ディスクを示す。つまり、各列が1つの物理ディスクを構成する。また、ストライプSTは、各物理ディスクの領域を1つずつ含むグループを示す。各ストライプSTに含まれる領域は、各物理ディスクでの位置が一致する。この図に示す一例では、各行が1つのストライプを構成する。
FIG. 2 is a diagram showing an example of a map according to an embodiment of the present invention. Map M1 in FIG. 2 shows an example of the above-mentioned first map.
In the example shown in this figure, the map M1 is information showing the structure of the data stored in each area when each of the nine physical disks is divided into nine areas. “# 1” to “# 9” in the first line indicate individual physical disks constituting the storage pool 20. That is, each column constitutes one physical disk. Further, the stripe ST indicates a group including one area of each physical disk. The areas included in each stripe ST have the same position on each physical disk. In the example shown in this figure, each row constitutes one stripe.

各領域は、データを記憶する領域(「データ領域」とも称する)か、予備領域(「スペア領域」とも称する)かのいずれかである。ここでデータは、記憶域プール20が記憶する情報と、当該情報に関する誤り訂正符号(パリティ)とを含む。また、予備領域は、記憶域プール20を構成する物理ディスクに縮退が発生していない場合には、データが記録されない領域である。
ある領域がデータ領域である場合、当該領域には“Dx”(xは0~35のいずれかの数字)という識別子が示される。また、各データは2つのデータ領域にミラーリングされている。ここで、ミラーリングとは、記憶域プール20を構成する物理ディスクの複数の領域に同一のデータが記憶されることを示す。
Each area is either an area for storing data (also referred to as a "data area") or a spare area (also referred to as a "spare area"). Here, the data includes information stored in the storage pool 20 and an error correction code (parity) related to the information. Further, the spare area is an area in which data is not recorded when the physical disk constituting the storage pool 20 is not degenerated.
When a certain area is a data area, the identifier "Dx" (x is a number from 0 to 35) is indicated in the area. Also, each data is mirrored in two data areas. Here, mirroring means that the same data is stored in a plurality of areas of the physical disk constituting the storage area pool 20.

ミラーリングされるデータ(以下、「ミラーリングデータ」とも称する)は、2つの物理ディスクに分散して記憶される。すなわち、ミラーリングデータは、第1の物理ディスクと、第1の物理ディスクとは異なる第2の物理ディスクに記憶される。第1及び第2の物理ディスクの組み合わせは、ミラーリングデータごとに異なる。また、ミラーリングデータは、同一のストライプ内に記憶される。 The mirrored data (hereinafter, also referred to as “mirroring data”) is distributed and stored in two physical disks. That is, the mirroring data is stored in the first physical disk and the second physical disk different from the first physical disk. The combination of the first and second physical disks is different for each mirroring data. Also, the mirroring data is stored in the same stripe.

また、ある領域がスペア領域である場合には、当該ストリップには、“S”という識別子が示される。スペア領域は、各物理ディスクに1つであって、かつ、各ストライプに1つになるように配置されている。また、スペア領域は記憶するデータがないので、ミラーリングされない。 Further, when a certain area is a spare area, the strip is indicated by the identifier "S". There is one spare area for each physical disk and one for each stripe. Also, the spare area has no data to store, so it is not mirrored.

この図に示す一例では、例えば物理ディスク#1のストライプ0は、識別子“D0”が示され、この領域がデータ領域であることを示す。また、物理ディスク#2のストライプ0も同じ識別子が示され、この2つの領域はミラーリングデータを保持することを示す。また、物理ディスク#9のストライプ0は、識別子“S”が表示されており、この領域がスペア領域であることを示す。 In the example shown in this figure, for example, stripe 0 of the physical disk # 1 is indicated by the identifier “D0”, indicating that this area is a data area. The same identifier is also shown for stripe 0 of physical disk # 2, indicating that these two areas hold mirroring data. Further, the stripe 0 of the physical disk # 9 displays the identifier “S”, indicating that this area is a spare area.

図3は、本発明の一実施形態に係るマップの別の一例を示す図である。図3におけるマップM2は、上述した第2マップの一例を示す。 FIG. 3 is a diagram showing another example of the map according to the embodiment of the present invention. Map M2 in FIG. 3 shows an example of the above-mentioned second map.

この図に示す一例では、マップM2は、物理ディスク#3が縮退した場合に、各領域が記憶するデータの構成を示す情報である。マップM2では、縮退が起きた物理ディスク#3が全てのスペア領域を含む。また、マップM2では、マップM1でスペア領域となっていた領域に、マップM1の物理ディスク#3のデータ領域であって、同一のストライプに含まれるデータ領域が記憶するデータが記憶される。 In the example shown in this figure, the map M2 is information indicating the structure of the data stored in each area when the physical disk # 3 is degenerated. In map M2, the degenerate physical disk # 3 includes all spare areas. Further, in the map M2, the data stored in the data area of the physical disk # 3 of the map M1 and stored in the data area included in the same stripe is stored in the area that was the spare area in the map M1.

例えば、ストライプ0の場合、マップM1ではスペア領域は物理ディスク#9に存在する。また、マップM1では物理ディスク#3のストライプ0には識別子“D1”で識別されるデータが記憶されている。そこで、マップM2では、物理ディスク#9のストライプ0には識別子“D1”で識別されるデータが記憶される。また、物理ディスク#3のストライプ0はスペア領域となる。ストライプ0については、他の物理ディスク(#1、#2、#4~#8)で、マップM1とマップM2との間に変更点はない。
また、例えば、ストライプ6の場合、マップM1で既に物理ディスク#3がスペア領域である。従って、ストライプ6は、全ての物理ディスクについて、マップM1とマップM2との間に変更点はない。
For example, in the case of stripe 0, the spare area exists on the physical disk # 9 in the map M1. Further, in the map M1, the data identified by the identifier “D1” is stored in the stripe 0 of the physical disk # 3. Therefore, in the map M2, the data identified by the identifier “D1” is stored in the stripe 0 of the physical disk # 9. Further, stripe 0 of the physical disk # 3 is a spare area. For stripe 0, there is no change between map M1 and map M2 on other physical disks (# 1, # 2, # 4 to # 8).
Further, for example, in the case of stripe 6, the physical disk # 3 is already a spare area in the map M1. Therefore, the stripe 6 has no change between the map M1 and the map M2 for all physical disks.

このように、マップM2は、マップM1において、縮退が発生した物理ディスクに存在するデータ領域を、同一のストライプのスペア領域に移動させて配置することで作成することが可能である。
また、他の物理ディスクに縮退が発生した場合についても、第2マップは、上述した方法によって容易にマップM1から作成可能である。
As described above, the map M2 can be created by moving the data area existing in the degenerate physical disk to the spare area of the same stripe in the map M1 and arranging the map M2.
Further, even when the degeneracy occurs in another physical disk, the second map can be easily created from the map M1 by the above-mentioned method.

続いて、実際に縮退が起きた場合に、RAID管理部13が、コピー対象となるデータを決定する処理について詳細を説明する。
図4は、本発明の一実施形態に係るデータコピーの一例を示す図である。この図に示す一例では、物理ディスク#3に縮退が発生した場合に、物理ディスク制御部12が、コピーを行うデータを矢印で示す。例えば、「D1からSへの矢印」は物理ディスク#6の識別子“D1”で識別されるデータ領域に記憶されるデータを、物理ディスク#9のスペア領域にコピーさせることを示す。RAID管理部13は、この矢印の元と先の領域、すなわち、コピー元とコピー先とを特定する。
Subsequently, the RAID management unit 13 will explain in detail the process of determining the data to be copied when the degeneracy actually occurs.
FIG. 4 is a diagram showing an example of a data copy according to an embodiment of the present invention. In the example shown in this figure, when the degeneracy occurs in the physical disk # 3, the physical disk control unit 12 indicates the data to be copied by an arrow. For example, the "arrow from D1 to S" indicates that the data stored in the data area identified by the identifier "D1" of the physical disk # 6 is copied to the spare area of the physical disk # 9. The RAID management unit 13 identifies the area to which the arrow is based and the area to which the arrow is located, that is, the copy source and the copy destination.

RAID管理部13は、縮退が発生した場合、物理ディスク制御部12から、縮退が発生した物理ディスクを示す情報を受け入れる。以下では、物理ディスク#3に縮退が発生した場合について説明するが、これには限られない。また、以降、縮退が発生した物理ディスクを「縮退ディスク」とも称する。 When the degeneration occurs, the RAID management unit 13 receives information indicating the degenerate physical disk from the physical disk control unit 12. In the following, the case where the degeneracy occurs in the physical disk # 3 will be described, but the present invention is not limited to this. Further, hereinafter, the physical disk in which the degeneracy has occurred is also referred to as a "degenerate disk".

RAID管理部13は、物理ディスク制御部12から受け入れた情報に基づき、複数の第2マップの中から、縮退ディスク(#3)に対応する第2マップをマップ記憶部131から読み出す。また、RAID管理部13は、マップ記憶部131から第1マップを読み出す。RAID管理部13は、読みだした第1マップ及び第2マップに基づいて、移動させるデータを決定する。縮退ディスクに含まれているデータは、縮退のため、当該ディスクから読み出すことができない。そのため、RAID管理部13は、当該データがミラーリングされている領域からデータを読み出す。 The RAID management unit 13 reads out the second map corresponding to the degenerate disk (# 3) from the map storage unit 131 from the plurality of second maps based on the information received from the physical disk control unit 12. Further, the RAID management unit 13 reads the first map from the map storage unit 131. The RAID management unit 13 determines the data to be moved based on the read first map and the second map. The data contained in the degenerate disk cannot be read from the disk due to degeneration. Therefore, the RAID management unit 13 reads the data from the area where the data is mirrored.

具体的には、まず、RAID管理部13は、第1マップを参照し、障害ディスクの各領域に記憶されていたデータがミラーリングされている領域を特定する。例えば、ストライプ0の場合、RAID管理部13は、まず第1マップを参照し、縮退ディスクに記憶されているデータの識別子が“D1”であることを取得する。続いて、RAID管理部13は、第1マップを参照し、取得した識別子が示された他の領域(ミラーリングされている領域)を特定する。識別子“D1”の場合、RAID管理部13は、他に物理ディスク#6のストライプ0の領域に配置されていることを特定する。すなわち、この領域(物理ディスク#6のストライプ0)がコピー元となる領域である。 Specifically, first, the RAID management unit 13 refers to the first map and identifies an area in which the data stored in each area of the fault disk is mirrored. For example, in the case of stripe 0, the RAID management unit 13 first refers to the first map and acquires that the identifier of the data stored in the degenerate disk is “D1”. Subsequently, the RAID management unit 13 refers to the first map and identifies another area (mirrored area) in which the acquired identifier is shown. In the case of the identifier "D1", the RAID management unit 13 identifies that the RAID management unit 13 is also arranged in the area of the stripe 0 of the physical disk # 6. That is, this area (stripe 0 of the physical disk # 6) is the copy source area.

次に、RAID管理部13は、第2マップを参照し、先ほど特定した領域に含まれるデータが縮退時にミラーリングされる領域を特定する。具体的には、RAID管理部13は、第2マップを参照し、先に取得した識別子が配置されている領域を特定する。例えば、識別子“D1”の場合、物理ディスク#6及び物理ディスク#9のストライプ0に当該識別子で識別されるデータが配置されていることを取得する。続いて、RAID管理部13は、先ほど特定した領域が物理ディスク#6であったことから、縮退時にミラーリングされる領域が物理ディスク#9のストライプ0であることを特定する。即ち、この領域(物理ディスク#9のストライプ0)がコピー先となる領域である。 Next, the RAID management unit 13 refers to the second map and identifies the area where the data contained in the previously specified area is mirrored at the time of degeneration. Specifically, the RAID management unit 13 refers to the second map and identifies the area in which the previously acquired identifier is arranged. For example, in the case of the identifier "D1", it is acquired that the data identified by the identifier is arranged on the stripe 0 of the physical disk # 6 and the physical disk # 9. Subsequently, the RAID management unit 13 specifies that the area mirrored at the time of degeneration is stripe 0 of the physical disk # 9, since the area specified earlier was the physical disk # 6. That is, this area (stripe 0 of the physical disk # 9) is the copy destination area.

RAID管理部13は、他のストライプについても上述した処理と同様の処理を行う。図4に示す例では、このような処理の結果特定されたコピー元とコピー先が矢印で示されている。
この図の例では、各物理ディスクは、読み出し及び書き込みが行われる領域が1箇所ずつになり、その組み合わせが全て異なる。そのため、物理ディスク制御部12は、縮退時に複数の物理ディスクを同時に用いて読み出し及び書き込みを並行して実行することができる。すなわち、例えば、ストライプ0、2、5、8のデータコピーは、読み出し及び書き込みを行う物理ディスクが全て異なるため、同時に実行することが可能になる。また、ストライプ1、3、4、7のデータコピーについても同様である。従って、縮退ディスクが発生した場合でも短時間のデータコピーによって、マップM2で示される構成に移行することができる。マップM1の構成もマップM2の構成も冗長性は同等であるから、これにより、短時間で冗長性を復旧することが可能になる。
RAID管理部13は、コピーが必要な領域(D1、D4、D10、D14、D18、D22、D29、D32)についてのコピーが終了すると、マップを通常時のマップ(マップM1)から、縮退時のマップ(マップM2)に変更する。
The RAID management unit 13 performs the same processing as described above for the other stripes. In the example shown in FIG. 4, the copy source and copy destination specified as a result of such processing are indicated by arrows.
In the example of this figure, each physical disk has one area where reading and writing are performed, and the combinations thereof are all different. Therefore, the physical disk control unit 12 can simultaneously execute reading and writing using a plurality of physical disks at the time of degeneration. That is, for example, the data copy of stripes 0, 2, 5, and 8 can be executed at the same time because the physical disks for reading and writing are all different. The same applies to the data copies of stripes 1, 3, 4, and 7. Therefore, even if a degenerate disk occurs, it is possible to shift to the configuration shown by the map M2 by copying the data for a short time. Since the redundancy of the configuration of the map M1 and the configuration of the map M2 are the same, it is possible to restore the redundancy in a short time.
When the RAID management unit 13 finishes copying the area (D1, D4, D10, D14, D18, D22, D29, D32) that needs to be copied, the RAID management unit 13 shifts the map from the normal map (map M1) to the degenerate map. Change to a map (map M2).

次に、RAID管理部13の縮退復旧時の動作を説明する。
図5は、本発明の一実施形態に係る縮退時の動作の一例を示すフローチャートである。
Next, the operation of the RAID management unit 13 at the time of degenerate recovery will be described.
FIG. 5 is a flowchart showing an example of the operation at the time of degeneracy according to the embodiment of the present invention.

物理ディスク制御部12は、記憶域プール20を構成する物理ディスク(#3)に縮退が発生したこと示す情報を記憶域プール20から取得する(ステップS101)。物理ディスク制御部12は取得した情報を、RAID管理部13に出力する。制御装置1はその後、処理をステップS102に進める。 The physical disk control unit 12 acquires information indicating that degeneration has occurred in the physical disk (# 3) constituting the storage area pool 20 from the storage area pool 20 (step S101). The physical disk control unit 12 outputs the acquired information to the RAID management unit 13. The control device 1 then proceeds to step S102.

RAID管理部13は、縮退復旧を行うか否かを判定する(ステップS102)。縮退復旧がまだ行われていない場合、RAID管理部13は縮退復旧を行うと判定する(ステップS102:YES)。この場合、RAID管理部13は処理をステップS103に進める。 The RAID management unit 13 determines whether or not to perform degenerate recovery (step S102). If the degenerate recovery has not been performed yet, the RAID management unit 13 determines that the degenerate recovery will be performed (step S102: YES). In this case, the RAID management unit 13 advances the process to step S103.

RAID管理部13は、縮退復旧が既に行われている場合、縮退復旧を行わないと判定する(ステップS102:NO)。この場合、RAID管理部13は処理をステップS104に進める。 The RAID management unit 13 determines that the degenerate recovery is not performed when the degenerate recovery has already been performed (step S102: NO). In this case, the RAID management unit 13 advances the process to step S104.

RAID管理部13は、縮退復旧を行う(ステップS103)。具体的には、RAID管理部13は、記憶域プール20を管理するマップを、縮退前のマップ(マップM1)から、縮退時のマップ(マップM2)に変更することを決定する。また、RAID管理部13は、マップを変更することに伴い、データコピーを行うための情報を特定する。データコピーを行うための情報は、コピーが必要になるデータが含まれる領域(コピー元の領域)と、コピーを行う領域(コピー先の領域)とを示す情報である。RAID管理部13は、特定した情報を物理ディスク制御部12に出力する。物理ディスク制御部12は、RAID管理部13から受け入れた情報に従って、記憶域プール20のデータコピーを行う。RAID管理部13は、データコピーが完了すると、記憶域プール20を管理するマップを縮退時のマップ(マップM2)に変更する。制御装置1は、処理が完了すると、処理をステップS101に戻す。 The RAID management unit 13 performs degenerate recovery (step S103). Specifically, the RAID management unit 13 decides to change the map that manages the storage pool 20 from the map before degeneration (map M1) to the map at the time of degeneration (map M2). In addition, the RAID management unit 13 specifies information for copying data as the map is changed. The information for performing data copying is information indicating an area (copy source area) containing data that needs to be copied and an area (copy destination area) for copying. The RAID management unit 13 outputs the specified information to the physical disk control unit 12. The physical disk control unit 12 copies the data of the storage pool 20 according to the information received from the RAID management unit 13. When the data copy is completed, the RAID management unit 13 changes the map that manages the storage pool 20 to the map at the time of degeneration (map M2). When the processing is completed, the control device 1 returns the processing to step S101.

RAID管理部13は、縮退復旧が既に行われている場合には、現状のマップを維持する(ステップS104)。この場合、RAID管理部13は記憶域プール20を構成するマップをすでに縮退時のマップ(マップM2)に変更しているので、当該マップでの運用を継続する。以下、制御装置1は、縮退した物理ディスクを交換するなどによって、縮退状態でなくなるまで、ステップS102に戻って、処理を繰り返す。 The RAID management unit 13 maintains the current map when the degenerate restoration has already been performed (step S104). In this case, since the RAID management unit 13 has already changed the map constituting the storage pool 20 to the map at the time of degeneration (map M2), the operation on the map is continued. Hereinafter, the control device 1 returns to step S102 and repeats the process until the degenerate state is eliminated by exchanging the degenerate physical disk or the like.

なお、RAID管理部13は、縮退状態が解除されると、記憶域プール20が使用するマップを縮退時のマップ(マップM2)から、通常時のマップ(マップM1)に変更するための処理を行う。この際、RAID管理部13は、縮退時のマップに移行するときに行ったコピーを逆方向に行う。即ち、縮退時のマップ移行時のコピー元とコピー先とを入れ替えてコピーを行う。その後、RAID管理部13は、マップを通常時のマップ(マップM1)に変更する。 When the degenerate state is released, the RAID management unit 13 performs a process for changing the map used by the storage pool 20 from the degenerate map (map M2) to the normal map (map M1). conduct. At this time, the RAID management unit 13 makes a copy made in the reverse direction when shifting to the map at the time of degeneration. That is, copying is performed by exchanging the copy source and the copy destination at the time of map migration at the time of degeneration. After that, the RAID management unit 13 changes the map to a normal map (map M1).

次に、ホスト30からデータの書き込みが行われる場合の動作について、説明する。
図6は、本発明の一実施形態に係るデータ書き込みを行う領域の判定処理の一例を示すフローチャートである。
Next, the operation when data is written from the host 30 will be described.
FIG. 6 is a flowchart showing an example of a determination process of a region for writing data according to an embodiment of the present invention.

ホスト制御部11は、ホスト30から書き込みを示す情報を受信すると、当該情報を物理ディスク制御部12に出力する。物理ディスク制御部12は入力された情報に基づいて、ライトデータが記憶域プール20のどの領域に記憶されているかを問い合わせる情報をRAID管理部13に出力する(ステップS201)。その後、処理をステップS202に進める。 When the host control unit 11 receives information indicating writing from the host 30, the host control unit 11 outputs the information to the physical disk control unit 12. Based on the input information, the physical disk control unit 12 outputs to the RAID management unit 13 information inquiring which area of the storage area pool 20 the write data is stored (step S201). After that, the process proceeds to step S202.

RAID管理部13は、物理ディスク制御部12から受け入れた情報と、マップ記憶部131から読み出したマップとに基づいて、ライトデータが記憶される領域を特定する(ステップS202)。その後、処理をステップS203に進める。
例えば、ライトデータが“D1”内に記憶されるデータであれば、RAID管理部13は、第1マップ(図2参照)に基づいて、ライトデータが記憶される領域は、物理ディスク#3のストライプ0と、物理ディスク#6のストライプ0とであることを特定する。なお、マップM1を参照するのは、縮退が起きていない(通常時の)場合、又は、縮退が起こっているが、データコピーが完了しておらずマップが変更されていない場合である。縮退時のマップ(マップM2)に変更されている場合には、RAID管理部13は、第2マップ(例えば、図3参照)に基づいて上述した処理を行う。
以下、ライトデータが“D1”内に記憶されるデータであり、縮退ディスクが、物理ディスク#3である場合について代表して説明するが、本実施形態はこれには限られない。
The RAID management unit 13 identifies an area in which write data is stored based on the information received from the physical disk control unit 12 and the map read from the map storage unit 131 (step S202). After that, the process proceeds to step S203.
For example, if the write data is data stored in "D1", the RAID management unit 13 determines that the area in which the write data is stored is the physical disk # 3 based on the first map (see FIG. 2). It is specified that it is stripe 0 and stripe 0 of physical disk # 6. The map M1 is referred to when the degeneracy has not occurred (normal time), or when the degeneracy has occurred but the data copy has not been completed and the map has not been changed. When the map is changed to the map at the time of degeneration (map M2), the RAID management unit 13 performs the above-mentioned processing based on the second map (for example, see FIG. 3).
Hereinafter, the case where the write data is the data stored in “D1” and the degenerate disk is the physical disk # 3 will be described as a representative, but the present embodiment is not limited to this.

RAID管理部13は、マップが変更中か否かを判定する(ステップS203)。RAID管理部13は、マップの変更が起きていない場合、マップ変更中ではないと判定する(ステップS203:NO)。この場合、RAID管理部13は処理をステップS205に進める。
RAID管理部13は、縮退が起きたことを示す情報を物理ディスク制御部12から取得している場合であって、縮退時のマップに変更になっていない場合、マップが変更中であると判定する(ステップS203:YES)。この場合、RAID管理部13は処理をステップS204に進める。
The RAID management unit 13 determines whether or not the map is being changed (step S203). If the map has not been changed, the RAID management unit 13 determines that the map is not being changed (step S203: NO). In this case, the RAID management unit 13 advances the process to step S205.
The RAID management unit 13 determines that the map is being changed if the information indicating that the degeneration has occurred is acquired from the physical disk control unit 12 and the map at the time of degeneration has not been changed. (Step S203: YES). In this case, the RAID management unit 13 advances the process to step S204.

RAID管理部13は、変更前後でライトデータが記憶される領域(以下、「対象領域」とも称する)の状態(「物理ディスク状態」とも称する)を仮決定する(ステップS204)。
物理ディスク状態は、「リード/ライト可」、「ライト可」、「アクセス不可」の3状態である。「リード/ライト可」は、当該領域からデータを読み出すことができ、また当該領域にデータを書き込むことができることを示す。「ライト可」は当該領域にデータを書き込むことはできるが、当該領域からデータを読み出すことができないことを示す。「アクセス不可」は縮退している、もしくはデータコピーが行われているなどの理由により、読み出しも書き込みも行えない状態であることを示す。
The RAID management unit 13 tentatively determines the state (also referred to as "physical disk state") of the area (hereinafter, also referred to as "target area") in which the write data is stored before and after the change (step S204).
There are three physical disk states: "read / write possible", "write possible", and "access inaccessible". "Read / write possible" indicates that data can be read from the area and data can be written to the area. "Writable" indicates that data can be written to the area, but data cannot be read from the area. "Inaccessible" indicates that reading and writing cannot be performed due to reasons such as degeneration or data copying.

RAID管理部13は、変更後のマップを読み出し、変更後のマップにおける対象領域を特定する。具体的には、RAID管理部13は、変更後のマップであるマップM2に基づいて、“D1”が物理ディスク#6のストライプ0と、物理ディスク#9のストライプ0に記憶されることを特定する。続いて、RAID管理部13は、変更前後の対象領域を比較し、物理ディスク状態を仮決定する。その後処理をステップS205に進める。
具体的には、RAID管理部13は、変更前後の両方の対象領域に含まれる領域について、当該領域を「リード/ライト可」と設定する。また、RAID管理部13は、変更前後のどちらかにしか含まれない領域については、当該領域を「ライト可」と設定する。上述した例では、物理ディスク#6のストライプ0は変更前後の両方に含まれるので、「リード/ライト可」である。また、物理ディスク#3のストライプ0、及び物理ディスク#9のストライプ0は、変更前または変更後にのみ含まれるので、どちらの領域も「ライト可」である。
The RAID management unit 13 reads out the changed map and specifies the target area in the changed map. Specifically, the RAID management unit 13 specifies that "D1" is stored in the stripe 0 of the physical disk # 6 and the stripe 0 of the physical disk # 9 based on the map M2 which is the changed map. do. Subsequently, the RAID management unit 13 compares the target areas before and after the change, and provisionally determines the physical disk state. After that, the process proceeds to step S205.
Specifically, the RAID management unit 13 sets the area included in both the target areas before and after the change as "read / write possible". Further, the RAID management unit 13 sets the area to be "lightable" for the area included only before and after the change. In the above example, stripe 0 of the physical disk # 6 is included both before and after the change, so that it is “read / write possible”. Further, since the stripe 0 of the physical disk # 3 and the stripe 0 of the physical disk # 9 are included only before or after the change, both areas are "writable".

RAID管理部13は、物理ディスク状態を仮決定すると、処理をステップS205に進める。 When the RAID management unit 13 provisionally determines the physical disk state, the RAID management unit 13 proceeds to the process in step S205.

RAID管理部13は、記憶域プール20に縮退の発生、復旧の実行のどちらかが行われているか否かを判定する(ステップS205)。RAID管理部13は、縮退を示す情報を物理ディスク制御部12から受信している場合、記憶域プール20に縮退が発生していると判定し(ステップS205:YES)、処理をステップS206に進める。また、RAID管理部13は、縮退が起きたことを示す情報を物理ディスク制御部12から取得している場合であり、縮退時のマップに変更になっていない場合、マップの変更が行われている、すなわち、復旧が実行されていることを判定する(ステップS205:YES)。この場合もRAID管理部13は処理をステップS206に進める。 The RAID management unit 13 determines whether or not the storage pool 20 has been degraded or restored (step S205). When the RAID management unit 13 receives the information indicating the degeneration from the physical disk control unit 12, the RAID management unit 13 determines that the degeneration has occurred in the storage pool 20 (step S205: YES), and proceeds to the process in step S206. .. Further, the RAID management unit 13 has acquired information indicating that degeneration has occurred from the physical disk control unit 12, and if the map at the time of degeneration has not been changed, the map has been changed. That is, it is determined that recovery is being performed (step S205: YES). In this case as well, the RAID management unit 13 advances the process to step S206.

一方、RAID管理部13は、縮退を起きたことを示す情報を物理ディスク制御部12から受信していない場合、または縮退が解除したことを示す情報を受信後、再度縮退が起きたことを示す情報を物理ディスク制御部12から受信していない場合、縮退も復旧もどちらも起きていないと判定する(ステップS205:NO)。この場合、RAID管理部13は処理をステップS207に進める。 On the other hand, the RAID management unit 13 indicates that the degeneration has occurred again when the information indicating that the degeneration has occurred has not been received from the physical disk control unit 12, or after receiving the information indicating that the degeneration has been released. When the information is not received from the physical disk control unit 12, it is determined that neither degeneration nor restoration has occurred (step S205: NO). In this case, the RAID management unit 13 advances the process to step S207.

RAID管理部13は、ステップS204で仮決定した物理ディスク状態のうち、縮退・復旧が進行中の物理ディスクに含まれる物理ディスク状態を「アクセス不可」に設定する(ステップS206)。上述した例では、物理ディスク#3は、縮退している物理ディスクである。従って、RAID管理部13は、物理ディスク#3のストライプ0を「アクセス不可」に変更し、物理ディスク状態の設定を完了する。また、例えば、物理ディスク#6のストライプ0のデータを物理ディスク#9のストライプ0にミラーリングしている場合、RAID管理部13は、どちらの物理ディスク状態も「アクセス不可」に変更し、物理ディスク状態の設定を完了する。RAID管理部13は物理ディスク状態の設定が完了すると、物理ディスク状態を物理ディスク制御部12に出力し、処理を終了する。 Among the physical disk states tentatively determined in step S204, the RAID management unit 13 sets the physical disk state included in the physical disk whose degeneration / recovery is in progress to "inaccessible" (step S206). In the above example, the physical disk # 3 is a degenerate physical disk. Therefore, the RAID management unit 13 changes the stripe 0 of the physical disk # 3 to "inaccessible" and completes the setting of the physical disk state. Further, for example, when the data of the stripe 0 of the physical disk # 6 is mirrored to the stripe 0 of the physical disk # 9, the RAID management unit 13 changes both physical disk states to "inaccessible" and changes the physical disk to "inaccessible". Complete the state setting. When the RAID management unit 13 completes the setting of the physical disk state, the RAID management unit 13 outputs the physical disk state to the physical disk control unit 12 and ends the process.

RAID管理部13は、縮退・復旧のどちらも行われていない場合、ステップS204で仮決定した物理ディスク状態で設定を完了する(ステップS207)。RAID管理部13は、RAID管理部13は物理ディスク状態の設定が完了すると、物理ディスク状態を物理ディスク制御部12に出力し、処理を終了する。 When neither degeneration nor restoration is performed, the RAID management unit 13 completes the setting in the physical disk state tentatively determined in step S204 (step S207). When the RAID management unit 13 completes the setting of the physical disk state, the RAID management unit 13 outputs the physical disk state to the physical disk control unit 12 and ends the process.

物理ディスク制御部12は、RAID管理部13から受信した情報に基づいて、「ライト可」の領域に、ライトデータを書き込む処理を実行する。上述した例の場合、データコピーが行われていないのであれば、物理ディスク制御部12は、物理ディスク#6のストライプ0と、物理ディスク#9のストライプ0に書き込みを行う。 The physical disk control unit 12 executes a process of writing write data to the "write possible" area based on the information received from the RAID management unit 13. In the case of the above example, if the data is not copied, the physical disk control unit 12 writes to the stripe 0 of the physical disk # 6 and the stripe 0 of the physical disk # 9.

また、ホスト30へのデータの読み込みが行われる場合についても、RAID管理部13は上述した書き込みが行われる場合と同様の処理を行う。この場合、物理ディスク制御部12は、RAID管理部13から受信した情報に基づいて、「リード可」の領域から、リードデータを読み出す。上述した例の場合、データコピーが行われていないのであれば、物理ディスク制御部12は、物理ディスク#6のストライプ0からリードデータの読み出しを行う。 Further, when the data is read to the host 30, the RAID management unit 13 performs the same processing as when the above-mentioned writing is performed. In this case, the physical disk control unit 12 reads read data from the "readable" area based on the information received from the RAID management unit 13. In the case of the above example, if the data is not copied, the physical disk control unit 12 reads the read data from the stripe 0 of the physical disk # 6.

以上説明したように、本発明の一実施形態による制御装置1は、複数の記憶装置を用いて構成される記憶域プールを制御する制御装置であって、前記記憶域プールに縮退が発生していない場合に、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域を示す第1保存領域情報(例えば、第1マップ:図2)と、前記縮退が発生した場合に、前記保存領域及び前記予備領域を示す第2保存領域情報(例えば、第2マップ:図3)と、を取得する取得部(例えば、RAID管理部13)と、前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記データを再配置するための制御を行う制御部(例えば、物理ディスク制御部12)と、を備える。 As described above, the control device 1 according to the embodiment of the present invention is a control device that controls a storage area pool configured by using a plurality of storage devices, and the storage area pool is degenerated. If not, the first storage area information (for example, the first map: FIG. 2) indicating the storage area of the data to be stored in the storage pool and the spare area in which the data can be stored, and the case where the contraction occurs. , The second storage area information indicating the storage area and the spare area (for example, the second map: FIG. 3), the acquisition unit (for example, the RAID management unit 13) for acquiring the storage area, and the contraction when the contraction occurs. A control unit (for example, a physical disk control unit 12) that controls for rearranging the data based on the first storage area information and the second storage area information is provided.

これにより、制御装置1は、第1保存領域情報と第2保存領域情報とに基づいて、再配置するデータを短時間に決定することができる。そのため、再配置を短時間で完了することができ、高速に冗長度を復旧させることができる。 Thereby, the control device 1 can determine the data to be rearranged in a short time based on the first storage area information and the second storage area information. Therefore, the relocation can be completed in a short time, and the redundancy can be restored at high speed.

また、本発明の一実施形態による制御装置1について、前記第1保存領域情報は、2つの前記記憶装置に設けられる保存領域のそれぞれに対して、同一の前記データを保存することを示す情報であって、前記保存領域ごとに当該保存領域が含まれる前記記憶装置の組み合わせが異なる情報である。
これにより、再配置するデータは、ミラーリングの対象となる記憶装置である複数の物理ディスクに分散する。これにより、多数の物理ディスクを同時に用いて再配置を行うことができるようになり、再配置を短時間で完了することができる。そのため、高速に冗長度を復旧させることができる。
Further, regarding the control device 1 according to the embodiment of the present invention, the first storage area information is information indicating that the same data is stored for each of the storage areas provided in the two storage devices. Therefore, the information is such that the combination of the storage devices including the storage area is different for each storage area.
As a result, the data to be rearranged is distributed to a plurality of physical disks that are storage devices to be mirrored. This makes it possible to perform relocation using a large number of physical disks at the same time, and the relocation can be completed in a short time. Therefore, the redundancy can be restored at high speed.

また、本発明の一実施形態による制御装置1について、前記第2保存領域情報は、前記記憶装置の少なくとも1つは全て前記予備領域であり、前記第1保存領域情報における当該記憶装置に記憶されるデータ領域が他の前記記憶装置に分散して再配置される情報である。
これにより、再配置前に予備領域となっている領域にデータコピーを行い再配置が完了すれば、他の処理を行うことなく、冗長性を回復させることができる。これにより、冗長度を再配置の処理のみで復旧させることができる。そのため、高速に冗長度を復旧させることができる。
Further, with respect to the control device 1 according to the embodiment of the present invention, at least one of the storage devices is the spare area, and the second storage area information is stored in the storage device in the first storage area information. This is information in which a data area is distributed and rearranged in other storage devices.
As a result, if the data is copied to the spare area before the relocation and the relocation is completed, the redundancy can be recovered without performing other processing. As a result, the redundancy can be restored only by the relocation process. Therefore, the redundancy can be restored at high speed.

また、本発明の一実施形態による制御装置1の前記制御部(例えば、物理ディスク制御部12やRAID管理部13)は、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退の発生前後において保存領域の異なる前記データを、前記縮退からの復旧において再配置が必要な再配置データと判定し、前記再配置データを再配置するための制御を行う。
これにより、制御装置1は、2つの保存領域情報に基づいて、再配置に必要なデータの保存領域を素早く決定することができる。そのため、高速に冗長度を復旧させることができる。
Further, the control unit (for example, the physical disk control unit 12 and the RAID management unit 13) of the control device 1 according to the embodiment of the present invention is said to be based on the first storage area information and the second storage area information. The data having different storage areas before and after the occurrence of the degeneracy is determined to be the relocation data that needs to be relocated in the recovery from the degeneration, and the control for relocating the relocation data is performed.
Thereby, the control device 1 can quickly determine the storage area of the data required for relocation based on the two storage area information. Therefore, the redundancy can be restored at high speed.

また、本発明の一実施形態による制御装置1は前記第1保存領域情報において前記再配置データが含まれる記憶装置と、前記第2保存領域情報において前記再配置データが含まれる記憶装置との組み合わせが、前記再配置データの保存領域ごとに異なる。
これにより、制御装置1は、再配置に必要な処理を、上述した物理ディスクが異なる組み合わせについては、同時に実行することができる。そのため、短時間で再配置を完了することができ、高速に冗長度を復旧させることができる。
Further, the control device 1 according to the embodiment of the present invention is a combination of a storage device in which the rearranged data is included in the first storage area information and a storage device in which the rearrangement data is included in the second storage area information. However, it differs depending on the storage area of the rearranged data.
As a result, the control device 1 can simultaneously execute the processes required for relocation for the above-mentioned combinations of different physical disks. Therefore, the relocation can be completed in a short time, and the redundancy can be restored at high speed.

なお、上述した実施形態では、スペア領域が合計で物理ディスク1台分となる例を説明したが、スペア領域はこれには限られない。以下、スペア領域が合計で物理ディスク2台分となる例を説明する。 In the above-described embodiment, an example in which the spare area is equivalent to one physical disk in total has been described, but the spare area is not limited to this. Hereinafter, an example in which the spare area is equivalent to two physical disks in total will be described.

図7は、本発明の一実施形態に係るマップの別の一例を示す図である。この図に示す一例では、記憶域プール20は10台の物理ディスク(#1~#10)を有する。また、この図におけるマップM3は、上述した第1マップの一例である。 FIG. 7 is a diagram showing another example of the map according to the embodiment of the present invention. In the example shown in this figure, the storage pool 20 has 10 physical disks (# 1 to # 10). Further, the map M3 in this figure is an example of the above-mentioned first map.

この図に示す例では、各物理ディスクは、10個に分割されたストライプによって管理される。また、各物理ディスクは、2つのスペア領域を有し、各ストライプも2つのスペア領域を有する。各物理ディスクが有するスペア領域が含まれるストライプの組み合わせは、全ての物理ディスクで異なる。また、各ストライプが有するスペア領域が含まれる物理ディスクの組み合わせも、全てのストライプで異なる。
また、マップM1と同様、全てのデータ領域はミラーリングされる。また、ミラーリングされる領域が含まれる物理ディスクの組み合わせは全て異なる。
In the example shown in this figure, each physical disk is managed by stripes divided into ten. Also, each physical disk has two spare areas, and each stripe also has two spare areas. The combination of stripes that includes the spare area of each physical disk is different for all physical disks. Also, the combination of physical disks including the spare area of each stripe is different for all stripes.
Also, as with map M1, all data areas are mirrored. Also, the combinations of physical disks that include the mirrored area are all different.

この図に示す例では、スペア領域が合計で2台分存在する。そのため、マップ記憶部131は、第2マップとして、縮退ディスクが1台の場合だけでなく、縮退ディスクが2台の場合の全ての組み合わせについて、第2マップを予め所持する。これにより、縮退ディスクが2台生じる場合であっても、1台の場合と同様の処理を行うことで、短時間で冗長度を復旧させることができる。 In the example shown in this figure, there are a total of two spare areas. Therefore, as the second map, the map storage unit 131 possesses the second map in advance not only when there is one degenerate disk but also for all combinations when there are two degenerate disks. As a result, even when two degenerate disks are generated, the redundancy can be restored in a short time by performing the same processing as in the case of one.

また、上述した実施形態では、全ての物理ディスクを記憶域プール20に初めから組み込む例について説明したが、これには限られない。例えば、縮退が生じていない場合には、記憶域プール20に組み込まれない物理ディスク(以下、「スペアディスク」とも称する)が存在してもよい。この場合、縮退が生じた時点でスペアディスクを縮退ディスクの代わりに組み込むことで、縮退を解消することができる。この場合、スペアディスクがある場合には、縮退ディスクとスペアディスクとの役割を交換する処理を優先する。以下、スペアディスクが存在する場合における、RAID管理部13の、縮退時の動作について図を用いて説明する。 Further, in the above-described embodiment, an example in which all physical disks are incorporated into the storage pool 20 from the beginning has been described, but the present invention is not limited to this. For example, if degeneration does not occur, there may be a physical disk (hereinafter, also referred to as “spare disk”) that is not included in the storage pool 20. In this case, the degeneracy can be eliminated by incorporating a spare disk instead of the degenerate disk when the degeneration occurs. In this case, if there is a spare disk, priority is given to the process of exchanging the roles of the degenerate disk and the spare disk. Hereinafter, the operation of the RAID management unit 13 at the time of degeneration when a spare disk is present will be described with reference to the drawings.

図8は、本発明の一実施形態に係る縮退時の動作の別の一例を示すフローチャートである。以下の説明では、記憶域プール20を構成する物理ディスクのうち物理ディスク#3が縮退する場合の例について説明するが、本発明の実施形態はこれには限られない。 FIG. 8 is a flowchart showing another example of the operation at the time of degeneracy according to the embodiment of the present invention. In the following description, an example in which the physical disk # 3 of the physical disks constituting the storage pool 20 is degenerated will be described, but the embodiment of the present invention is not limited to this.

物理ディスク制御部12は、記憶域プール20を構成する物理ディスク(#3)に縮退が発生したことを示す情報を記憶域プール20から取得する(ステップS301)。物理ディスク制御部12は取得した情報を、RAID管理部13に出力する。制御装置1はその後、処理をステップS302に進める。 The physical disk control unit 12 acquires information from the storage pool 20 indicating that degeneration has occurred in the physical disk (# 3) constituting the storage pool 20 (step S301). The physical disk control unit 12 outputs the acquired information to the RAID management unit 13. The control device 1 then proceeds to step S302.

RAID管理部13は、スペアディスクを用いた縮退復旧を行うか否かを判定する(ステップS302)。RAID管理部13は、物理ディスク制御部12からスペアディスクに関する情報を取得する。スペアディスクに関する情報は、スペアディスクの数を示す情報、記憶域プール20に組み込まれたスペアディスクの数を示す情報を含む。
RAID管理部13が取得した情報に基づき、組み込み可能なスペアディスクが存在する場合には、スペアディスクを用いた縮退復旧を行うと判定し(ステップS302:YES)、処理をステップS303に進める。
RAID管理部13は、物理ディスク制御部12から取得したスペアディスクに関する情報に基づき、組み込み可能なスペアディスクが存在しない場合は、スペアディスクを用いた縮退復旧を行わないと判定し(ステップS302:NO)、処理をステップS304に進める。
The RAID management unit 13 determines whether or not to perform degenerate recovery using a spare disk (step S302). The RAID management unit 13 acquires information about the spare disk from the physical disk control unit 12. The information about the spare disk includes information indicating the number of spare disks and information indicating the number of spare disks incorporated in the storage pool 20.
If there is a spare disk that can be embedded based on the information acquired by the RAID management unit 13, it is determined that the degenerate recovery using the spare disk is performed (step S302: YES), and the process proceeds to step S303.
Based on the information about the spare disk acquired from the physical disk control unit 12, the RAID management unit 13 determines that the degenerate recovery using the spare disk is not performed if there is no embedded spare disk (step S302: NO). ), The process proceeds to step S304.

RAID管理部13は、現状のマップを維持し、スペアディスクを用いた再構築を実施する(ステップS303)。具体的には、RAID管理部13は、現在使用しているマップの変更を行わず、そのまま使用することを決定する。また、RAID管理部13は、スペアディスクを縮退ディスク(#3)の代わりとして、データの再構成を示す情報を、物理ディスク制御部12に出力する。データの再構成を示す情報は、スペアディスクの各領域にコピーするデータのコピー元とコピー先(スペアディスク内の領域)を示す情報である。ここで、コピー元は、縮退ディスクに記憶されるデータがミラーリングされている領域である。例えば、図2の例では、ストライプ0の場合、縮退ディスクに含まれるデータがミラーリングされている領域は、物理ディスク#6である(どちらも同じ識別子“D1”が示されている)。そこで、RAID管理部13は、ストライプ0については、物理ディスク#6に記憶されているデータをコピー元とすることを示す情報を物理ディスク制御部12に出力する。 The RAID management unit 13 maintains the current map and carries out reconstruction using a spare disk (step S303). Specifically, the RAID management unit 13 decides to use the map as it is without changing the map currently used. Further, the RAID management unit 13 uses the spare disk as a degenerate disk (# 3), and outputs information indicating data reconstruction to the physical disk control unit 12. The information indicating the data reconstruction is information indicating the copy source and copy destination (area in the spare disk) of the data to be copied to each area of the spare disk. Here, the copy source is an area in which the data stored in the degenerate disk is mirrored. For example, in the example of FIG. 2, in the case of stripe 0, the area in which the data contained in the degenerate disk is mirrored is the physical disk # 6 (both have the same identifier “D1”). Therefore, the RAID management unit 13 outputs to the physical disk control unit 12 information indicating that the data stored in the physical disk # 6 is used as the copy source for the stripe 0.

RAID管理部13は、上述した処理を全てのストライプに対して行う。結果として、コピー元のディスクはストライプごとに全て異なるので、実際のコピー処理において、複数の物理ディスクからデータを読み込むことができるようになる。
物理ディスク制御部12は、RAID管理部13から入力される情報に従って、スペアディスクへのデータコピーを行う。物理ディスク制御部12は、データコピーが終了すると、縮退が解除されたことを示す情報をRAID管理部13に出力し、処理を終了する。
The RAID management unit 13 performs the above-mentioned processing for all stripes. As a result, since the copy source discs are all different for each stripe, data can be read from a plurality of physical discs in the actual copy process.
The physical disk control unit 12 copies data to a spare disk according to the information input from the RAID management unit 13. When the data copy is completed, the physical disk control unit 12 outputs information indicating that the degeneration has been released to the RAID management unit 13, and ends the process.

ステップS304~ステップS306までの処理は、図5におけるステップS102~ステップS104までの処理と同様であるので、ここでは説明を省略する。 Since the processing from step S304 to step S306 is the same as the processing from step S102 to step S104 in FIG. 5, description thereof will be omitted here.

このように、スペアディスクがある場合には、制御装置1は、スペアディスクを用いて復旧を行うことができ、スペアディスクがない場合には、上述した方法で、スペア領域にデータをコピーすることで、冗長度を短時間で復旧させることができる。 In this way, if there is a spare disk, the control device 1 can perform recovery using the spare disk, and if there is no spare disk, copy the data to the spare area by the method described above. Therefore, the redundancy can be restored in a short time.

図9は、本発明の一実施形態に係る制御装置の最小構成を示す図である。
この図に示すように、制御装置100は、少なくとも取得部101と制御部102とを備える。
取得部101は、記憶域プールに縮退が発生していない場合に、記憶域プールに記憶するデータの保存領域、及びデータを保存可能な予備領域を示す第1保存領域情報と、前記縮退が発生した場合に、保存領域及び前記予備領域を示す第2保存領域情報と、を取得する。
制御部102は、縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報と、に基づいて、前記データを再配置するための制御を行う。
FIG. 9 is a diagram showing a minimum configuration of a control device according to an embodiment of the present invention.
As shown in this figure, the control device 100 includes at least an acquisition unit 101 and a control unit 102.
The acquisition unit 101 has the first storage area information indicating the storage area of the data to be stored in the storage pool and the spare area in which the data can be stored when the degeneration has not occurred in the storage pool, and the degeneration has occurred. In this case, the storage area and the second storage area information indicating the spare area are acquired.
The control unit 102 controls to rearrange the data based on the first storage area information and the second storage area information when degeneration occurs.

なお、上述した実施形態において、記憶域プール20の物理ディスクに縮退が発生した場合に、縮退していない他の物理ディスクからデータをコピーして冗長度を復旧する例を説明したが、これには限られない。例えば、縮退ディスクから読み出し可能なデータがある場合は、当該データを縮退ディスクから読み出してコピーしてもよい。 In the above-described embodiment, when degeneration occurs in the physical disk of the storage pool 20, data is copied from another non-degenerate physical disk to recover the redundancy. Is not limited. For example, if there is data that can be read from the degenerate disk, the data may be read from the degenerate disk and copied.

また、上述した実施形態において、縮退時に、RAID管理部13が第2マップを参照して、データのミラーリング先を特定する例を説明したが、これには限られない。例えば、RAID管理部13は、第1マップにおいてスペア領域となっている領域をミラーリング先として決定してもよい。この場合、RAID管理部13は、コピー元のストライプと同一のストライプに存在するスペア領域を、ミラーリング先として決定する。 Further, in the above-described embodiment, the example in which the RAID management unit 13 specifies the mirroring destination of the data by referring to the second map at the time of degeneration has been described, but the present invention is not limited to this. For example, the RAID management unit 13 may determine an area that is a spare area in the first map as a mirroring destination. In this case, the RAID management unit 13 determines a spare area existing in the same stripe as the copy source stripe as the mirroring destination.

また、上述した実施形態において、制御装置1と記憶域プール20とが別の構成である例を説明したが、これには限られない。例えば、制御装置1と記憶域プール20とが同一のものであってもよい。また、ホスト制御部11が行う処理を実行する装置、RAID管理部13が行う処理を実行する装置が制御装置1の外部に備えられてもよい。 Further, in the above-described embodiment, an example in which the control device 1 and the storage pool 20 have different configurations has been described, but the present invention is not limited to this. For example, the control device 1 and the storage pool 20 may be the same. Further, a device for executing the process performed by the host control unit 11 and a device for executing the process performed by the RAID management unit 13 may be provided outside the control device 1.

なお、上述した実施形態における制御装置1の一部、例えば、ホスト制御部11、物理ディスク制御部12、RAID管理部13などをコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、制御装置1に内蔵されたコンピュータシステムであって、OS(Operating System)や周辺機器等のハードウェアを含むものとする。 A part of the control device 1 in the above-described embodiment, for example, the host control unit 11, the physical disk control unit 12, the RAID management unit 13, and the like may be realized by a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read by a computer system and executed. The "computer system" referred to here is a computer system built in the control device 1, and includes hardware such as an OS (Operating System) and peripheral devices.

また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよい。 Further, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, a magneto-optical disk, a ROM, or a CD-ROM, and a storage device such as a hard disk built in a computer system. Further, a "computer-readable recording medium" is a medium that dynamically holds a program for a short time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. In that case, a program may be held for a certain period of time, such as a volatile memory inside a computer system serving as a server or a client. Further, the above-mentioned program may be for realizing a part of the above-mentioned functions, and may be further realized by combining the above-mentioned functions with a program already recorded in the computer system.

また、上述した実施形態における制御装置1の一部、または全部を、LSI(Large Scale Integration)等の集積回路として実現してもよい。制御装置1の各機能部は個別にプロセッサ化してもよいし、一部、または全部を集積してプロセッサ化してもよい。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現してもよい。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いてもよい。 Further, a part or all of the control device 1 in the above-described embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional unit of the control device 1 may be individually made into a processor, or a part or all of them may be integrated into a processor. Further, the method of making an integrated circuit is not limited to the LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, when an integrated circuit technology that replaces an LSI appears due to advances in semiconductor technology, an integrated circuit based on this technology may be used.

以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。また、本発明の一態様は、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。また、上記各実施形態や変形例に記載された要素であり、同様の効果を奏する要素同士を置換した構成も含まれる。 Although one embodiment of the present invention has been described in detail with reference to the drawings, the specific configuration is not limited to the above, and various design changes and the like are made without departing from the gist of the present invention. It is possible to do. Further, one aspect of the present invention can be variously modified within the scope of the claims, and the technical aspects of the present invention can also be obtained by appropriately combining the technical means disclosed in the different embodiments. Included in the range. Further, the elements described in each of the above-described embodiments and modifications are included, and a configuration in which elements having the same effect are replaced with each other is also included.

1、1a・・・情報処理システム、10・・・スマートメータ、11、21、31・・・通信部、12、22、22a、34、34a・・・記憶部、13・・・電力測定部、14・・・制御部、20・・・サーバ、221・・・教師データ記憶部、222・・・学習モデル記憶部、223・・・スマートメータ情報記憶部、224・・・荷物情報記憶部、225・・・時刻情報記憶部、226・・・予測情報記憶部、227・・・地図情報記憶部、228・・・配送情報記憶部、23、23a、35、35a・・・処理部、231、231a、351、351a・・・情報取得部、232・・・学習部、233・・・時刻取得部、234・・・予測部、235、235a・・・配送先決定部、236、353、353a・・・出力処理部、30、30a・・・配送端末、32・・・位置情報取得部、33・・・入力部、341・・・表示関連情報記憶部、342・・・位置情報記憶部、343・・・配送情報記憶部、352・・・表示処理部、36・・・表示部 1, 1a ... Information processing system, 10 ... Smart meter, 11, 21, 31 ... Communication unit, 12, 22, 22a, 34, 34a ... Storage unit, 13 ... Power measurement unit , 14 ... Control unit, 20 ... Server, 221 ... Teacher data storage unit, 222 ... Learning model storage unit, 223 ... Smart meter information storage unit, 224 ... Luggage information storage unit , 225 ... Time information storage unit, 226 ... Prediction information storage unit, 227 ... Map information storage unit, 228 ... Delivery information storage unit, 23, 23a, 35, 35a ... Processing unit, 231 ... 231a, 351 and 351a ... Information acquisition unit 232 ... Learning unit 233 ... Time acquisition unit 234 ... Prediction unit 235, 235a ... Delivery destination determination unit 236, 353 , 353a ... Output processing unit, 30, 30a ... Delivery terminal, 32 ... Position information acquisition unit, 33 ... Input unit, 341 ... Display-related information storage unit, 342 ... Position information Storage unit, 343 ... Delivery information storage unit, 352 ... Display processing unit, 36 ... Display unit

Claims (8)

複数の記憶装置を用いて構成される記憶域プールを制御する制御装置であって、
通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎に同一の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得部と、
前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御部と、
を備える制御装置。
A control device that controls a storage pool configured using multiple storage devices.
First storage area information indicating a storage area of either a data storage area to be stored in the storage area pool or a spare area in which the data can be stored in a normal time, and identification information of each of the plurality of storage devices. For each storage area specified by the identification information of a plurality of groups provided in the same number in each of the storage devices, the data recorded in the data storage area is shown for each group. With the first storage area information indicating that at least one of the spare areas is set in the storage device different from the other groups and the same data is stored in at least two storage devices for each group. Second storage area information indicating the storage area and the spare area at the time of withdrawal , identification information of each of the plurality of storage devices, and identification information of a plurality of groups provided in the same number in each of the storage devices. And, for each storage area specified by, the acquisition unit for acquiring at least the second storage area information indicating at least the identification information of the data for each storage area of the data at the time of shrinkage, and
When the shrinkage occurs, based on the first storage area information and the second storage area information, the data recorded in the first storage area information corresponding to the identification information of the shrinkage storage device is stored. , The data is rearranged by copying from the storage area of another storage device in the same group as the data storage area to the spare area, and when the contracted state is released, the first storage area information is used. A control unit that controls to return the rearranged data to the original arrangement based on the second storage area information.
A control device equipped with.
前記第1保存領域情報は、2つの前記記憶装置に設けられる保存領域のそれぞれに対して、同一の前記データを保存することを示す情報であって、前記保存領域ごとに当該保存領域が含まれる前記記憶装置の組み合わせが異なる情報である、
請求項1に記載の制御装置。
The first storage area information is information indicating that the same data is stored for each of the storage areas provided in the two storage devices, and the storage area is included in each storage area. The combination of the storage devices is different information.
The control device according to claim 1.
前記第2保存領域情報は、前記記憶装置の少なくとも1つは全て前記予備領域であり、前記第1保存領域情報における当該記憶装置に記憶されるデータ領域が他の前記記憶装置に分散して再配置される情報である、
請求項1または請求項2のいずれか一項に記載の制御装置。
In the second storage area information, at least one of the storage devices is the spare area, and the data area stored in the storage device in the first storage area information is dispersed and regenerated in the other storage devices. Information to be placed,
The control device according to any one of claims 1 and 2.
前記制御部は、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退の発生前後において保存領域の異なる前記データを、前記縮退からの復旧において再配置が必要な再配置データと判定し、前記再配置データを再配置するための制御を行う、
請求項1から請求項3のいずれか一項に記載の制御装置。
Based on the first storage area information and the second storage area information, the control unit relocates the data having different storage areas before and after the occurrence of the degeneration, and the relocation data that needs to be rearranged in the recovery from the degeneration. Is determined, and control for rearranging the rearranged data is performed.
The control device according to any one of claims 1 to 3.
前記第1保存領域情報において前記再配置データが含まれる記憶装置と、前記第2保存領域情報において前記再配置データが含まれる記憶装置との組み合わせが、前記再配置データの保存領域ごとに異なる、
請求項4に記載の制御装置。
The combination of the storage device in which the relocation data is included in the first storage area information and the storage device in which the relocation data is included in the second storage area information is different for each storage area of the relocation data.
The control device according to claim 4.
複数の記憶装置と、
請求項1から請求項5のいずれか一項に記載の制御装置と、
を備えるディスクアレイ装置。
With multiple storage devices
The control device according to any one of claims 1 to 5.
A disk array device equipped with.
複数の記憶装置を用いて構成される記憶域プールを制御する制御装置において、
通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得ステップと、
前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御ステップと、
を含む、制御方法。
In a control device that controls a storage pool configured by using multiple storage devices,
First storage area information indicating a storage area of either a data storage area to be stored in the storage area pool or a spare area in which the data can be stored in a normal time, and identification information of each of the plurality of storage devices. For each storage area specified by the identification information of a plurality of groups provided in the same number in each of the storage devices, the data recorded in the data storage area is shown for each group. The first storage area information indicating that at least one of the spare areas is set in the storage device different from the other groups and the data for each group is stored in at least two storage devices, and the regression. Second storage area information indicating the storage area and the spare area at the time , the identification information of each of the plurality of storage devices, the identification information of a plurality of groups provided in the same number of the storage devices, and the identification information of the plurality of groups. For each storage area specified in, the acquisition step of acquiring at least the second storage area information indicating at least the identification information of the data for each storage area of the data at the time of shrinkage, and the acquisition step.
When the shrinkage occurs, based on the first storage area information and the second storage area information, the data recorded in the first storage area information corresponding to the identification information of the shrinkage storage device is stored. When the data is rearranged by copying from the storage area of another storage device in the same group as the data storage area to the spare area and the contracted state is released, the first storage area information and A control step that controls to return the rearranged data to the original arrangement based on the second storage area information, and
Control methods, including.
複数の記憶装置を用いて構成される記憶域プールを制御するコンピュータに、
複数の記憶装置を用いて構成される記憶域プールを制御する制御装置であって、
通常時の、前記記憶域プールに記憶するデータの保存領域及び前記データを保存可能な予備領域の何れかの記憶領域を示す第1保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記データの保存領域にはその領域に記録されるデータを示し、前記グループ毎の前記予備領域の少なくとも一つが他の前記グループとは異なる前記記憶装置に設定され、前記グループ毎の前記データが少なくとも2つの前記記憶装置に格納されたことを示す前記第1保存領域情報と、縮退時の、前記保存領域及び前記予備領域を示す第2保存領域情報であって、前記複数の記憶装置それぞれの識別情報と、それら記憶装置それぞれに同じ数設けられた複数のグループの識別情報と、で特定される各記憶領域について、前記縮退時の前記データの保存領域ごとの前記データの識別情報を少なくとも示す前記第2保存領域情報と、を取得する取得ステップと、
前記縮退が発生した場合に、前記第1保存領域情報及び前記第2保存領域情報に基づいて、前記縮退した記憶装置の識別情報に対応して前記第1保存領域情報に記録される前記データを、そのデータの保存領域と同じグループの他の記憶装置の保存領域から前記予備領域にコピーすることにより前記データを再配置し、前記縮退状態が解除される場合に、前記第1保存領域情報と前記第2保存領域情報に基づいて、前記再配置されたデータを元の配置に戻すための制御を行う制御ステップと、
を実行させるための、プログラム。
For computers that control storage pools that are configured with multiple storage devices,
A control device that controls a storage pool configured using multiple storage devices.
First storage area information indicating a storage area of either a data storage area to be stored in the storage area pool or a spare area in which the data can be stored in a normal time, and identification information of each of the plurality of storage devices. For each storage area specified by the identification information of a plurality of groups provided in the same number in each of the storage devices, the data recorded in the data storage area is shown for each group. The first storage area information indicating that at least one of the spare areas is set in the storage device different from the other groups and the data for each group is stored in at least two storage devices, and the regression. Second storage area information indicating the storage area and the spare area at the time , the identification information of each of the plurality of storage devices, the identification information of a plurality of groups provided in the same number of the storage devices, and the identification information of the plurality of groups. For each storage area specified in, the acquisition step of acquiring at least the second storage area information indicating at least the identification information of the data for each storage area of the data at the time of shrinkage, and the acquisition step.
When the shrinkage occurs, based on the first storage area information and the second storage area information, the data recorded in the first storage area information corresponding to the identification information of the shrinkage storage device is stored. When the data is rearranged by copying from the storage area of another storage device in the same group as the data storage area to the spare area and the contracted state is released, the first storage area information and A control step that controls to return the rearranged data to the original arrangement based on the second storage area information, and
A program to execute.
JP2019045456A 2019-03-13 2019-03-13 Controls, disk array devices, control methods, and programs Active JP7056874B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019045456A JP7056874B2 (en) 2019-03-13 2019-03-13 Controls, disk array devices, control methods, and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019045456A JP7056874B2 (en) 2019-03-13 2019-03-13 Controls, disk array devices, control methods, and programs

Publications (2)

Publication Number Publication Date
JP2020149267A JP2020149267A (en) 2020-09-17
JP7056874B2 true JP7056874B2 (en) 2022-04-19

Family

ID=72429670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019045456A Active JP7056874B2 (en) 2019-03-13 2019-03-13 Controls, disk array devices, control methods, and programs

Country Status (1)

Country Link
JP (1) JP7056874B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001344154A (en) 2000-06-05 2001-12-14 Fujitsu Ltd I / O control unit
JP2010277240A (en) 2009-05-27 2010-12-09 Nec Corp Data storage system, and data area management method
JP2018185757A (en) 2017-04-27 2018-11-22 富士通株式会社 Storage control device, storage control method, and storage control program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3155836B2 (en) * 1992-10-08 2001-04-16 富士通株式会社 Disk array device
JPH09269871A (en) * 1996-03-29 1997-10-14 Mitsubishi Electric Corp Data re-redundancy making system in disk array device
JPH11184643A (en) * 1997-12-22 1999-07-09 Nec Corp Managing method for disk array device and mechanically readable recording medium recording program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001344154A (en) 2000-06-05 2001-12-14 Fujitsu Ltd I / O control unit
JP2010277240A (en) 2009-05-27 2010-12-09 Nec Corp Data storage system, and data area management method
JP2018185757A (en) 2017-04-27 2018-11-22 富士通株式会社 Storage control device, storage control method, and storage control program

Also Published As

Publication number Publication date
JP2020149267A (en) 2020-09-17

Similar Documents

Publication Publication Date Title
US11163472B2 (en) Method and system for managing storage system
US7831768B2 (en) Method and apparatus for writing data to a disk array
US6898668B2 (en) System and method for reorganizing data in a raid storage system
US8880843B2 (en) Providing redundancy in a virtualized storage system for a computer system
US8839028B1 (en) Managing data availability in storage systems
US8433685B2 (en) Method and system for parity-page distribution among nodes of a multi-node data-storage system
US7788244B2 (en) Method and system for copying a snapshot tree
US8041891B2 (en) Method and system for performing RAID level migration
US20040123032A1 (en) Method for storing integrity metadata in redundant data layouts
KR101285900B1 (en) Controller, storage apparatus, and computer readable medium
US10210062B2 (en) Data storage system comprising an array of drives
KR20090073099A (en) How to Rebuild and Copy Back Failed Drives Using Global Hot Spare Disks
JP2007242018A (en) Distributed data-storage system
US20170300393A1 (en) Raid rebuild algorithm with low i/o impact
US7721143B2 (en) Method for reducing rebuild time on a RAID device
US10409682B1 (en) Distributed RAID system
CN111124262B (en) Method, apparatus and computer readable medium for managing Redundant Array of Independent Disks (RAID)
CN106168920A (en) Controlling a Redundant Array of Independent Disks (RAID) comprising read only flash data storage devices
US20160342470A1 (en) Separating a hybrid asymmetric mix of a raid 1 mirror and a parity-based raid array
US20050193273A1 (en) Method, apparatus and program storage device that provide virtual space to handle storage device failures in a storage system
US20060112221A1 (en) Method and Related Apparatus for Data Migration Utilizing Disk Arrays
US20180307427A1 (en) Storage control apparatus and storage control method
JP7056874B2 (en) Controls, disk array devices, control methods, and programs
JP2005107839A (en) Array controller and disk array rebuilding method
JPH06119126A (en) Disk array device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200707

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210323

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210519

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20211019

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220119

C60 Trial request (containing other claim documents, opposition documents)

Free format text: JAPANESE INTERMEDIATE CODE: C60

Effective date: 20220119

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20220131

C21 Notice of transfer of a case for reconsideration by examiners before appeal proceedings

Free format text: JAPANESE INTERMEDIATE CODE: C21

Effective date: 20220201

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220308

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220329

R150 Certificate of patent or registration of utility model

Ref document number: 7056874

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150