JP2011192303A - Control device and control method - Google Patents

Control device and control method Download PDF

Info

Publication number
JP2011192303A
JP2011192303A JP2011121837A JP2011121837A JP2011192303A JP 2011192303 A JP2011192303 A JP 2011192303A JP 2011121837 A JP2011121837 A JP 2011121837A JP 2011121837 A JP2011121837 A JP 2011121837A JP 2011192303 A JP2011192303 A JP 2011192303A
Authority
JP
Japan
Prior art keywords
data
hdd
reading
storage devices
storage device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011121837A
Other languages
Japanese (ja)
Other versions
JP5126389B2 (en
Inventor
Hideki Abe
秀樹 阿部
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 Infrontia Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Infrontia Corp filed Critical NEC Infrontia Corp
Priority to JP2011121837A priority Critical patent/JP5126389B2/en
Publication of JP2011192303A publication Critical patent/JP2011192303A/en
Application granted granted Critical
Publication of JP5126389B2 publication Critical patent/JP5126389B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a technique that improves a failure rate of a memory having a mirroring structure. <P>SOLUTION: A control device for controlling a plurality of memories having driving parts includes: a reader/writer which, on reception of a write instruction to write data to the memories, transmits a driving signal for driving the driving parts to all the memories to write the data into the memories and, on reception of a read instruction to read out the written data, transmits the driving signal to only one of the memories to read out the data from the memory; and a stop means which transmits a stop signal for stopping the driving parts to all the memories when a prescribed time passes after the end of data write or data read by the reader/writer. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、記憶装置の駆動部を制御する技術に関する。   The present invention relates to a technique for controlling a drive unit of a storage device.

HDD(Hard Disk Drive)は、内部の磁気ヘッドや磁性体の磨耗によって故障が発生することがあり、この故障の発生率はHDDのモータの稼動時間により大きく影響される。そして、POSのような24時間稼動する業務用端末では、モータ稼動時間が長くなる為に、HDDの故障発生率も大きくなってしまう。そこで、長時間駆動する端末は、データの保全のため、そして1台のHDDが故障しても連続して端末を運用する為に、特許文献1〜4に開示された構成のようにミラーリングを用いることが多い。ミラーリングとは、2台以上のHDDを1台のHDDとみなし、全てのHDDへ同一のデータを書き込むことによって、データ保全の信頼性を向上させる仕組みのことである。   An HDD (Hard Disk Drive) may fail due to wear of an internal magnetic head or a magnetic material, and the failure occurrence rate is greatly influenced by the operating time of the HDD motor. In a business terminal that operates for 24 hours such as POS, the motor operation time becomes long, and the failure occurrence rate of the HDD also increases. Therefore, a terminal that is driven for a long time is mirrored as in the configurations disclosed in Patent Documents 1 to 4 in order to maintain data and operate the terminal continuously even if one HDD fails. Often used. Mirroring is a mechanism that improves reliability of data integrity by regarding two or more HDDs as one HDD and writing the same data to all HDDs.

特開2005−71100号公報JP 2005-71100 A 特開2005−250644号公報JP-A-2005-250644 特開2006−252451号公報JP 2006-252451 A 特開2007−115270号公報JP 2007-115270 A

しかし、ミラーリングはデータ保全の信頼性を向上させるものの、HDD1台あたりのモータ稼働率はミラーリングを使用しない場合と同じである。データを書き込む場合も読み出す場合も、全てのHDDを稼働させているためである。   However, although mirroring improves the reliability of data maintenance, the motor operating rate per HDD is the same as when mirroring is not used. This is because all HDDs are operated both when data is written and when data is read.

各HDDのモータ稼働時間が同じとなるから、HDD1台あたりの故障率は、ミラーリングを使用しない場合とほとんど変わらず、故障率が改善しないという問題点があった。   Since the motor operating time of each HDD is the same, the failure rate per HDD is almost the same as when mirroring is not used, and the failure rate does not improve.

本発明は、ミラーリング構築された記憶装置の故障率を改善する技術を提供することを目的とする。   An object of the present invention is to provide a technique for improving the failure rate of a mirrored storage device.

上記目的を達成するために、本発明の制御装置は、駆動部を有する複数の記憶装置を制御する制御装置であって、前記記憶装置へのデータの書き込みを指示する書込命令を受信した場合、全ての該記憶装置に前記駆動部を駆動させる駆動信号を送信して該データを全ての該記憶装置に書き込み、書き込まれた該データの読み出しを指示する読出命令を受信した場合、複数の前記記憶装置のうち、いずれか1つの記憶装置にのみ該駆動信号を送信して該記憶装置から該データを読み出す読書手段と、前記読書手段による前記データの書き込み又は該データの読み出しが終了してから所定時間が経過したとき、前記駆動部を停止させる停止信号を全ての前記記憶装置に送信する停止手段と、を有し、前記読書手段は、書き込まれた該データの読み出しを指示する読出命令を受信した場合、前記記憶装置の状態を診断した結果を示す診断情報を取得し、取得した前記診断情報に基づいて、いずれか1つの記憶装置を選択し、前記診断情報は、前記記憶装置の通電時間を示す通電時間情報を含み、前記読書手段は、複数の前記記憶装置の中から該通電時間情報の示す前記通電時間が最小の記憶装置を選択する。   In order to achieve the above object, the control device of the present invention is a control device that controls a plurality of storage devices having a drive unit, and when a write command instructing writing of data to the storage device is received. A drive signal for driving the drive unit to all the storage devices, writing the data to all the storage devices, and receiving a read command instructing to read the written data, a plurality of the storage devices Reading means for transmitting the drive signal to only one of the storage devices and reading the data from the storage device, and after the writing or reading of the data by the reading means is completed Stop means for transmitting a stop signal for stopping the driving unit to all the storage devices when a predetermined time has elapsed, and the reading means reads the written data. When a read instruction is received, diagnostic information indicating a result of diagnosing the state of the storage device is acquired, and any one storage device is selected based on the acquired diagnostic information, and the diagnostic information Includes energization time information indicating the energization time of the storage device, and the reading means selects the storage device having the minimum energization time indicated by the energization time information from the plurality of storage devices.

また、本発明の制御方法は、駆動部を有する複数の記憶装置を制御する制御方法であって、前記記憶装置へのデータの書き込みを指示する書込命令を受信した場合、全ての該記憶装置に前記駆動部を駆動させる駆動信号を送信して該データを全ての該記憶装置に書き込み、書き込んだ該データの読み出しを指示する読出命令を受信した場合、複数の前記記憶装置のうち、いずれか1つの記憶装置にのみ該駆動信号を送信して該記憶装置から該データを読み出し、前記データの書き込み又は該データの読み出しが終了してから所定時間が経過したとき、前記駆動部を停止させる停止信号を全ての前記記憶装置に送信し、前記データの読み出しにおいて、書き込まれた該データの読み出しを指示する読出命令を受信した場合、前記記憶装置の状態を診断した結果として、前記記憶装置の通電時間を示す通電時間情報を含む診断情報を取得し、取得した前記診断情報に基づいて、複数の前記記憶装置の中から該通電時間情報の示す前記通電時間が最小の記憶装置を選択する。   The control method of the present invention is a control method for controlling a plurality of storage devices having a drive unit, and when a write command instructing writing of data to the storage device is received, all the storage devices A drive signal for driving the drive unit to write the data to all the storage devices, and when receiving a read command for instructing to read the written data, one of the plurality of storage devices Sending the drive signal to only one storage device, reading the data from the storage device, and stopping the drive unit when a predetermined time has elapsed after the writing or reading of the data is completed When a signal is transmitted to all of the storage devices and a read command instructing reading of the written data is received in the reading of the data, the state of the storage device As a result of diagnosis, diagnostic information including energization time information indicating the energization time of the storage device is acquired, and the energization time indicated by the energization time information from the plurality of storage devices based on the acquired diagnosis information Selects the smallest storage device.

本発明によれば、データを書き込む場合は全ての記憶装置を稼働させ、データを読み出す場合は、複数の記憶装置のうち、いずれか1つの記憶装置のみの駆動部を駆動させる。そして、データの読み書きが完了してから所定時間経過時に、全ての記憶装置の駆動部を停止させる。この結果、データを読み出している間は、1台の記憶装置のみが稼働するので、記憶装置1台当たりの稼働時間が減少し、ミラーリング構築された記憶装置の故障率が改善する。   According to the present invention, when writing data, all the storage devices are operated, and when reading data, the drive unit of only one of the storage devices is driven. Then, when a predetermined time elapses after the reading and writing of data is completed, the drive units of all the storage devices are stopped. As a result, since only one storage device operates while data is being read, the operation time per storage device is reduced, and the failure rate of the storage device constructed by mirroring is improved.

第1の実施形態のミラーリングシステムの構成を示す全体図である。1 is an overall view showing a configuration of a mirroring system of a first embodiment. 第1の実施形態のミラーリングシステムの外観図である。1 is an external view of a mirroring system according to a first embodiment. 第1の実施形態のコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the controller of 1st Embodiment. 第1の実施形態の読書処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the reading process of 1st Embodiment. 第1の実施形態の書込処理を示すフローチャートである。It is a flowchart which shows the write-in process of 1st Embodiment. 第1の実施形態の読出処理を示すフローチャートである。It is a flowchart which shows the read-out process of 1st Embodiment. 第1の実施形態のアイドリング処理を示すフローチャートである。It is a flowchart which shows the idling process of 1st Embodiment. 第1の実施形態のミラーリングシステムの動作結果を示す図である。It is a figure which shows the operation result of the mirroring system of 1st Embodiment. 第1の実施形態のミラーリングシステムの動作結果を示す図である。It is a figure which shows the operation result of the mirroring system of 1st Embodiment. 第1の実施形態のミラーリングシステムの動作結果を示す図である。It is a figure which shows the operation result of the mirroring system of 1st Embodiment. 第2の実施形態のミラーリングシステムの構成を示す全体図である。It is a general view which shows the structure of the mirroring system of 2nd Embodiment. 第2の実施形態の診断情報の構成を示す図である。It is a figure which shows the structure of the diagnostic information of 2nd Embodiment. 第2の実施形態の読出処理を示すフローチャートである。It is a flowchart which shows the read-out process of 2nd Embodiment.

(第1の実施形態)
本発明を実施するための第1の実施形態について図面を参照して詳細に説明する。
(First embodiment)
A first embodiment for carrying out the present invention will be described in detail with reference to the drawings.

図1は、本実施形態のミラーリングシステム1の構成を示すブロック図である。ミラーリングシステム1は、2以上のHDDに同一のデータを書き込み、データ保全の信頼性を向上させるシステムである。同図を参照すると、ミラーリングシステム1は、情報処理装置10およびRAID(Redundant Arrays of Inexpensive Disks)ユニット20を有する。   FIG. 1 is a block diagram showing a configuration of a mirroring system 1 of the present embodiment. The mirroring system 1 is a system that improves the reliability of data integrity by writing the same data to two or more HDDs. Referring to FIG. 1, the mirroring system 1 includes an information processing apparatus 10 and a RAID (Redundant Arrays of Inexpensive Disks) unit 20.

情報処理装置10は、パーソナルコンピュータ等のコンピュータである。情報処理装置10は、RAIDユニット20にデータを格納するとき、RAIDユニット20に「Write」命令を送信し、格納するデータを送信する。また、情報処理装置10はRAIDユニット20に格納されたデータを読み出すとき、RAIDユニット20に「Read」命令を送信する。そして、情報処理装置10は、読み出すデータのアドレスを示す情報をRAIDユニット20に送信し、読み出されたデータをRAIDユニット20から受信する。   The information processing apparatus 10 is a computer such as a personal computer. When storing data in the RAID unit 20, the information processing apparatus 10 transmits a “Write” command to the RAID unit 20 and transmits data to be stored. In addition, when the information processing apparatus 10 reads data stored in the RAID unit 20, the information processing apparatus 10 transmits a “Read” command to the RAID unit 20. The information processing apparatus 10 transmits information indicating the address of data to be read to the RAID unit 20 and receives the read data from the RAID unit 20.

RAIDユニット20は、情報処理装置10にRAID1のミラーリング機能を提供する外付け型の機器であり、コントローラ21、HDD22、およびHDD23を有する。   The RAID unit 20 is an external device that provides the information processing apparatus 10 with a RAID 1 mirroring function, and includes a controller 21, an HDD 22, and an HDD 23.

図2は、RAIDユニット20の外観図である。同図を参照すると、RAIDユニット20は、情報処理装置10とUSB(Universal Serial Bus)ケーブルやSATA(Serial Advanced Technology Attachment)ケーブルなどで接続される。また、RAIDユニット20は、HDD22およびHDD23を収納するケースを有する。HDD22およびHDD23は、コントローラ21とSATAケーブルやIDE(Integrated Drive Electronics)ケーブルなどで接続され、RAIDユニット20に収納される。   FIG. 2 is an external view of the RAID unit 20. Referring to the figure, the RAID unit 20 is connected to the information processing apparatus 10 by a USB (Universal Serial Bus) cable, a SATA (Serial Advanced Technology Attachment) cable, or the like. The RAID unit 20 has a case for housing the HDD 22 and the HDD 23. The HDD 22 and the HDD 23 are connected to the controller 21 by a SATA cable, an IDE (Integrated Drive Electronics) cable, or the like, and are stored in the RAID unit 20.

図1に戻り、コントローラ21は、RAIDユニット20全体を制御する。コントローラ21は、読書処理部211およびアイドリング処理部213を有する。   Returning to FIG. 1, the controller 21 controls the entire RAID unit 20. The controller 21 includes a reading processing unit 211 and an idling processing unit 213.

読書処理部211は、情報処理装置10から「Write」命令を受信したとき、HDD22およびHDD23にスタンバイ命令を送信し、HDD22およびHDD23を稼働させる。スタンバイ命令は、HDD22およびHDD23の駆動部分を駆動させる命令である。スタンバイ命令を受信したHDD22およびHDD23は、駆動部分を駆動させて、データを書き込み、または、データを読み出すことができる状態(スタンバイ)になる。そして、読書処理部211は、情報処理装置10から格納するデータを受信し、受信したデータをHDD22およびHDD23に書き込む。   When the reading processing unit 211 receives a “Write” command from the information processing apparatus 10, the reading processing unit 211 transmits a standby command to the HDD 22 and the HDD 23 to operate the HDD 22 and the HDD 23. The standby command is a command for driving the drive parts of the HDD 22 and the HDD 23. The HDD 22 and the HDD 23 that have received the standby command are in a state (standby) in which the drive portion is driven to write data or read data. The reading processing unit 211 receives data to be stored from the information processing apparatus 10 and writes the received data to the HDD 22 and the HDD 23.

また、読書処理部211は、情報処理装置10から「Read」命令を受信したとき、HDD22およびHDD23のいずれか一方のみにスタンバイ命令を送信して稼働させる。そして、読書処理部211は、情報処理装置10からデータのアドレスを示す情報を受信し、稼働させたHDDからデータを読み出す。読書処理部211は、読み出したデータを情報処理装置10へ送信する。「Read」命令受信時に稼働させるHDDは、コントローラ21が所定の順番に従って選択する。例えば、HDD22およびHDD23を交互に稼働させる。   Further, when receiving the “Read” command from the information processing apparatus 10, the reading processing unit 211 transmits a standby command to only one of the HDD 22 and the HDD 23 to operate. The reading processing unit 211 receives information indicating the data address from the information processing apparatus 10 and reads the data from the activated HDD. The reading processing unit 211 transmits the read data to the information processing apparatus 10. The HDD that is activated when the “Read” command is received is selected by the controller 21 in a predetermined order. For example, the HDD 22 and the HDD 23 are operated alternately.

アイドリング処理部213は、読書処理部211によるデータの書き込み、またはデータの読み出しが終了してから所定時間が経過したとき、HDD22およびHDD23に停止命令を送信して停止させる。   The idling processing unit 213 transmits a stop command to the HDD 22 and the HDD 23 to stop when a predetermined time has elapsed after the writing or reading of data by the reading processing unit 211 is completed.

なお、コントローラ21は、情報処理装置10のマザーボードとPCI(Peripheral Components Interconnect)バスを介して接続されるRAIDカードであってもよい。また、コントローラ21は、情報処理装置10のマザーボードに搭載される部品であってもよい。情報処理装置10が、ソフトウェアでコントローラ21の機能を実現することもできる。   The controller 21 may be a RAID card connected to the motherboard of the information processing apparatus 10 via a PCI (Peripheral Components Interconnect) bus. The controller 21 may be a component mounted on the motherboard of the information processing apparatus 10. The information processing apparatus 10 can also realize the function of the controller 21 with software.

また、コントローラ21は、2台に限らず、3台以上の記憶装置(HDDなど)を制御し、ミラーリング機能を提供することもできる。   In addition, the controller 21 is not limited to two, and can control three or more storage devices (such as HDDs) to provide a mirroring function.

HDD22およびHDD23は、コントローラ21の制御に従い、磁気ヘッド等を制御してプラッタにデータを格納し、格納したデータを読み出す記憶装置である。HDD22およびHDD23は、それぞれ駆動部221および駆動部231を有する。駆動部221および駆動部231は、記憶装置22および記憶装置23にデータを格納するとき、またはデータを読み出すときに駆動する。駆動部221および駆動部231は、例えば、プラッタを回転させるモータや磁気ヘッドを制御するモータである。   The HDD 22 and the HDD 23 are storage devices that store data in a platter by controlling a magnetic head or the like under the control of the controller 21 and read out the stored data. The HDD 22 and the HDD 23 have a drive unit 221 and a drive unit 231, respectively. The drive unit 221 and the drive unit 231 are driven when data is stored in the storage device 22 and the storage device 23 or when data is read out. The drive unit 221 and the drive unit 231 are, for example, a motor that rotates a platter and a motor that controls a magnetic head.

なお、HDD22およびHDD23は、駆動部分を有する記憶装置であれば、HDD以外の記憶装置を使用してもよい。HDD22およびHDD23は、例えば、ハイブリッドHDDや、DDS(Digital Data Storage)であってもよい。   The HDD 22 and the HDD 23 may use a storage device other than the HDD as long as the storage device has a drive part. The HDD 22 and the HDD 23 may be, for example, a hybrid HDD or a DDS (Digital Data Storage).

次に、コントローラ21の動作に図3〜図7を参照して説明する。図3は、コントローラ21の実行する制御処理を示すフローチャートである。この制御処理は、コントローラ21の電源が投入されたとき、または所定のアプリケーションが実行されたときに開始する。同図を参照すると、読書処理部211は、読書処理を実行し(ステップS1)、アイドリング処理部213はアイドリング処理を実行する(ステップS3)。   Next, the operation of the controller 21 will be described with reference to FIGS. FIG. 3 is a flowchart showing a control process executed by the controller 21. This control process starts when the controller 21 is powered on or when a predetermined application is executed. Referring to the figure, the reading processing unit 211 executes the reading process (step S1), and the idling processing unit 213 executes the idling process (step S3).

図4は、読書処理を示すフローチャートである。同図を参照すると、読書処理部211は、書込処理を実行し(ステップS10)、読出処理を実行する(ステップS20)。   FIG. 4 is a flowchart showing the reading process. Referring to the figure, the reading processing unit 211 executes a writing process (step S10) and executes a reading process (step S20).

図5は、書込処理を示すフローチャートである。同図を参照すると、読書処理部211は、情報処理装置10から「Write」命令を受信したか否かを判断する(ステップS101)。   FIG. 5 is a flowchart showing the writing process. Referring to the figure, the reading processing unit 211 determines whether or not a “Write” command is received from the information processing apparatus 10 (step S101).

「Write」命令を受信したのであれば(ステップS101:YES)、読書処理部211は、HDD22およびHDD23に対してスタンバイ命令を送信する。既にHDDが稼働中であれば、読書処理部211は、そのHDDに対してスタンバイ命令を送信しない。HDD22およびHDD23は、スタンバイ命令を受信して駆動部221および駆動部231を駆動する(ステップS103)。読書処理部211は、情報処理部10から格納するデータを受信し、受信したデータをHDD22およびHDD23に書き込む(ステップS105)。ステップS105の後、読書処理部211は、書込処理を終了する。   If the “Write” command is received (step S101: YES), the reading processing unit 211 transmits a standby command to the HDD 22 and the HDD 23. If the HDD is already in operation, the reading processing unit 211 does not transmit a standby command to the HDD. The HDD 22 and the HDD 23 receive the standby command and drive the drive unit 221 and the drive unit 231 (step S103). The reading processing unit 211 receives the data to be stored from the information processing unit 10, and writes the received data to the HDD 22 and the HDD 23 (step S105). After step S105, the reading processing unit 211 ends the writing process.

図6は、読出処理を示すフローチャートである。同図を参照すると、読書処理部211は、情報処理装置10から「Read」命令を受信したか否かを判断する(ステップS201)。   FIG. 6 is a flowchart showing the reading process. Referring to the drawing, the reading processing unit 211 determines whether or not a “Read” command is received from the information processing apparatus 10 (step S201).

「Read」命令を受信したのであれば(ステップS201:YES)、読書処理部211は、前回「Read」命令を受信したときにHDD22からデータを読み出したか否かを判断する(ステップS203)。   If the “Read” command has been received (step S201: YES), the reading processing unit 211 determines whether or not data has been read from the HDD 22 when the “Read” command was received last time (step S203).

前回HDD22からデータを読み出したのであれば(ステップS203:YES)、読書処理部211は、HDD23に対してスタンバイ命令を送信してHDD23を稼働させる(ステップS205)。前回HDD22からデータを読み出したのでなければ(ステップS203:NO)、読書処理部211は、HDD22に対してスタンバイ命令を送信してHDD23を稼働させる(ステップS207)。ステップS205またはステップS207において、既にHDDが稼働中であれば、読書処理部211は、そのHDDに対してスタンバイ命令を送信しない。   If data was read from the HDD 22 last time (step S203: YES), the reading processing unit 211 transmits a standby command to the HDD 23 to operate the HDD 23 (step S205). If no data has been read from the HDD 22 last time (step S203: NO), the reading processing unit 211 transmits a standby command to the HDD 22 to operate the HDD 23 (step S207). If the HDD is already operating in step S205 or step S207, the reading processing unit 211 does not transmit a standby command to the HDD.

ステップS205又はステップS207の後、読書処理部211は、情報処理装置10からデータのアドレスを示す情報を受信し、スタンバイ状態にあるHDD(22または23)からデータを読み出す。読書処理部211は、読み出したデータを情報処理装置10へ送信する(ステップS209)。ステップS209の後、読書処理部211は、読出処理を終了する。   After step S205 or step S207, the reading processing unit 211 receives information indicating the data address from the information processing apparatus 10, and reads the data from the HDD (22 or 23) in the standby state. The reading processing unit 211 transmits the read data to the information processing apparatus 10 (step S209). After step S209, the reading processing unit 211 ends the reading process.

図7は、アイドリング処理を示すフローチャートである。同図を参照すると、アイドリング処理部213は、データを書き込む処理(ステップS10)を実行中であるか否かを判断する(ステップS31)。データを書き込む処理を実行中でなければ(ステップS31:NO)、アイドリング処理部213は、データを読み出す処理(ステップS20)を実行中であるか否かを判断する(ステップS33)。データを書き込む処理を実行中でなければ(ステップS33:NO)、所定時間を経過したとき、アイドリング処理部213は、HDD22およびHDD23に停止命令を送信し、これらのHDDを停止させる(ステップS35)。ステップS35において、HDDが既に停止しているときは、アイドリング処理部213は、そのHDDに対して停止命令を送信しない。データを書き込む処理を実行中であるとき(ステップS31:YES)、またはデータを読み込む処理を実行中であるとき(ステップS33:YES)、あるいはステップS35の後、アイドリング処理部213は、アイドリング処理を終了する。   FIG. 7 is a flowchart showing the idling process. Referring to the figure, the idling processing unit 213 determines whether or not a data writing process (step S10) is being executed (step S31). If the data writing process is not being executed (step S31: NO), the idling processing unit 213 determines whether the data reading process (step S20) is being executed (step S33). If the data writing process is not being executed (step S33: NO), when a predetermined time has elapsed, the idling processing unit 213 transmits a stop command to the HDD 22 and the HDD 23 to stop these HDDs (step S35). . In step S35, when the HDD has already been stopped, the idling processing unit 213 does not transmit a stop command to the HDD. When the data writing process is being executed (step S31: YES), when the data reading process is being executed (step S33: YES), or after step S35, the idling processing unit 213 performs the idling process. finish.

このように、データを読み出すとき、一方のHDDにのみ稼働させるので、双方を稼働させてデータを読み出す場合と比較してHDD1台あたりの稼働時間が減少し、その結果、故障率が低減する。   As described above, when data is read, only one HDD is operated, so that the operation time per HDD is reduced as compared with the case where both are operated and data is read, and as a result, the failure rate is reduced.

続いて、図8〜図10を参照して、ミラーリングシステム1の動作結果の一例について説明する。コントローラ21は、HDD22およびHDD23にデータを書き込む場合、図8に示すように、HDD22およびHDD23にスタンバイ命令を送信して稼働させ、同一のデータをこれらのHDDに書き込む(ステップS105)。同図において、矢印はデータの流れを示し、網掛けのHDD(22および23)は、稼働しているHDDである。   Next, an example of the operation result of the mirroring system 1 will be described with reference to FIGS. When writing data to the HDD 22 and the HDD 23, the controller 21 sends a standby command to the HDD 22 and the HDD 23 to operate as shown in FIG. 8, and writes the same data to these HDDs (step S105). In the figure, arrows indicate the flow of data, and the shaded HDDs (22 and 23) are operating HDDs.

一方、HDD22またはHDD23からデータを読み出す場合、コントローラ21は、図9に示すように、HDD22、HDD23のいずれか1つのみを稼働させる(ステップS205またはS207)。同図において、矢印はデータの流れを示し、網掛けのHDD(22)は、稼働しているHDDであり、網掛けのないHDD(23)は、停止しているHDDである。   On the other hand, when reading data from the HDD 22 or the HDD 23, the controller 21 operates only one of the HDD 22 and the HDD 23 as shown in FIG. 9 (step S205 or S207). In the figure, arrows indicate the flow of data. A shaded HDD (22) is an active HDD, and an unshaded HDD (23) is a stopped HDD.

そして、アイドリング時は、コントローラ21は、図10に示すように、全てのHDD(22および23)を停止させる(ステップS211)。同図において、網掛けのないHDD(22および23)は、停止しているHDDである。   During idling, the controller 21 stops all HDDs (22 and 23) as shown in FIG. 10 (step S211). In the figure, HDDs without shading (22 and 23) are stopped HDDs.

以上説明したように、本実施形態によればデータを書き込む場合はHDD22およびHDD23を稼働させ、データを読み出す場合は、HDD22およびHDD23のうち、いずれか1つのHDDのみを稼働させる。そして、データの読み書きが終了後、所定時間経過時に、全てのHDDを停止させる。この結果、データを読み出している間は、1台のHDDのみが稼働するので、HDD1台当たりの稼働時間が減少し、ミラーリング構築されたHDDの故障率が改善する。   As described above, according to this embodiment, when writing data, the HDD 22 and the HDD 23 are operated, and when reading data, only one of the HDD 22 and the HDD 23 is operated. Then, after the reading / writing of data is completed, all HDDs are stopped when a predetermined time has elapsed. As a result, since only one HDD operates while data is being read, the operation time per HDD is reduced, and the failure rate of the mirrored HDD is improved.

また、所定の順番に従って稼働させるHDDを選択するので、複数のHDD(22および23)の稼働時間が均等になり、故障のリスクを分散できる。   In addition, since the HDDs to be operated are selected according to a predetermined order, the operation times of the plurality of HDDs (22 and 23) are equalized, and the risk of failure can be distributed.

(第2の実施形態)
本発明の第2の実施形態について図11〜図13を参照して説明する。図11は、本実施形態のミラーリングシステム2の構成を示す全体図である。同図を参照するとミラーリングシステム2は、HDD22、HDD23がそれぞれ診断情報223、診断情報233を格納する以外は、第1の実施形態のミラーリングシステム1と同様の構成である。
(Second Embodiment)
A second embodiment of the present invention will be described with reference to FIGS. FIG. 11 is an overall view showing the configuration of the mirroring system 2 of the present embodiment. Referring to the figure, the mirroring system 2 has the same configuration as that of the mirroring system 1 of the first embodiment, except that the HDD 22 and the HDD 23 store diagnostic information 223 and diagnostic information 233, respectively.

診断情報223は、所定の項目についてのHDD22の状態の診断結果が数値化された情報である。診断情報223は、例えば、HDD22のS.M.A.R.T(Self Monitoring Analysis reporting Technology)機能により取得された情報である。図10は、診断情報223の構成を示す図である。同図を参照すると、診断情報223は、項目ID、項目名、現在値、閾値を示す情報を含む。項目IDは、項目名に一意に割り当てられた番号であり、項目名はHDD22の状態についての診断項目である。診断項目は、HDDの障害の早期発見、故障の予測を目的として診断される項目であり、例えば、HDD22がデータを読み込むときに生じたエラーの割合を示す読込エラー率、HDD22の全体的なスループットを示すHDD処理能力、HDD22の通電時間を示すPOH(Power On Hours)などである。現在値は、項目名についてのリアルタイムの診断結果を数値化した値である。閾値は、HDD22の故障や障害を検出するための閾値である。診断情報233も診断情報223と同様の構成である。   The diagnosis information 223 is information in which the diagnosis result of the state of the HDD 22 for a predetermined item is digitized. The diagnostic information 223 is, for example, the S.D. M.M. A. Information acquired by the RT (Self Monitoring Analysis reporting Technology) function. FIG. 10 is a diagram showing the configuration of the diagnostic information 223. As shown in FIG. Referring to the figure, diagnostic information 223 includes information indicating item ID, item name, current value, and threshold. The item ID is a number uniquely assigned to the item name, and the item name is a diagnostic item regarding the state of the HDD 22. The diagnosis items are items that are diagnosed for the purpose of early detection of HDD failures and prediction of failures. For example, the read error rate indicating the rate of errors that occur when the HDD 22 reads data, and the overall throughput of the HDD 22 HDD processing capability indicating the power on time, POH (Power On Hours) indicating the energization time of the HDD 22, and the like. The current value is a value obtained by quantifying the real-time diagnosis result for the item name. The threshold value is a threshold value for detecting a failure or failure of the HDD 22. The diagnosis information 233 has the same configuration as the diagnosis information 223.

図11に戻り、コントローラ21は、HDD22およびHDD23から診断情報223および233を取得する。この診断情報223および233に基づき、各HDDの障害や故障の発生率を分析し、比較する。そして、コントローラ21は、HDD22またはHDD23からデータを読み出すとき、障害や故障の発生率が小さいHDDを優先して稼働させる。例えば、コントローラ21はPOHの最も少ないHDDを選択して稼働させる。   Returning to FIG. 11, the controller 21 acquires diagnostic information 223 and 233 from the HDD 22 and the HDD 23. Based on the diagnosis information 223 and 233, the failure rate and failure rate of each HDD are analyzed and compared. Then, when reading data from the HDD 22 or the HDD 23, the controller 21 preferentially operates an HDD with a small failure or failure occurrence rate. For example, the controller 21 selects and operates the HDD with the least POH.

図13を参照して本実施形態のミラーリングシステム2の動作について説明する。同図は、本実施形態の読出処理を示すフローチャートである。同図を参照すると、本実施形態の読出処理は、ステップS203の代わりにステップS203aを実行するほかは、第1の実施形態の読出処理と同様である。   The operation of the mirroring system 2 of this embodiment will be described with reference to FIG. This figure is a flowchart showing the reading process of the present embodiment. Referring to the figure, the reading process of the present embodiment is the same as the reading process of the first embodiment, except that step S203a is executed instead of step S203.

「Read」命令を受信したのであれば(ステップS201:YES)、読書処理部211は、診断情報223および診断情報233を取得し、これらの診断情報の示すPOHを比較する。そして、読書処理部211は、HDD22の通電時間(POH)がHDD23の通電時間より長いか否かを判断する(ステップS203a)。HDD22の通電時間の方が長いのであれば(ステップS203a:YES)、読書処理部211は、HDD23を稼働させる(ステップS205)。HDD22の通電時間の方が短いのであれば(ステップS203a:NO)、読書処理部211は、HDD22を稼働させる(ステップS207)。   If the “Read” command is received (step S201: YES), the reading processing unit 211 acquires the diagnostic information 223 and the diagnostic information 233, and compares the POH indicated by these diagnostic information. Then, the reading processing unit 211 determines whether or not the energization time (POH) of the HDD 22 is longer than the energization time of the HDD 23 (step S203a). If the energization time of the HDD 22 is longer (step S203a: YES), the reading processing unit 211 operates the HDD 23 (step S205). If the energization time of the HDD 22 is shorter (step S203a: NO), the reading processing unit 211 operates the HDD 22 (step S207).

なお、コントローラ21は、POHを示す情報以外の項目の診断結果、またはPOHも含め複数の項目の診断結果に基づいて、各HDDの故障や障害の発生確率を予測し、故障や障害の少ないHDDを優先して稼働させる構成とすることもできる。   The controller 21 predicts the probability of occurrence of a failure or failure of each HDD based on the diagnosis result of an item other than information indicating POH or the diagnosis result of a plurality of items including POH, and the HDD having few failures and failures. It can also be configured to operate with priority.

本実施形態によれば、診断情報(223および233)に基づいて稼働させるHDDを選択するので、故障の発生確率の小さいHDDを優先的に選択して、故障のリスクを分散できる。   According to the present embodiment, since the HDD to be operated is selected based on the diagnosis information (223 and 233), it is possible to preferentially select an HDD with a low failure occurrence probability and distribute the failure risk.

また、稼働時間の少ないHDD(22または23)を選択して稼働させるので、故障したHDDを交換するなどした結果、各HDDの通電時間が大きく異なる場合であっても、HDDの稼働時間が均等に分散されていき、故障のリスクを分散できる。   Further, since the HDD (22 or 23) having a short operation time is selected and operated, even if the energization time of each HDD is greatly different as a result of replacing the failed HDD, the operation time of the HDD is equal. The risk of failure can be distributed.

なお、図3〜図5および図11で示した処理の全部または一部は、コンピュータがソフトウェアプログラムを実行することにより実現することもできる。   Note that all or part of the processing shown in FIGS. 3 to 5 and FIG. 11 can also be realized by a computer executing a software program.

1、2 ミラーリングシステム
10 情報処理装置
20 RAIDユニット
21 コントローラ
22、23 HDD
211 読書処理部
213 アイドリング処理部
221、231 駆動部
223、233 診断情報
S10〜S20、S101〜S105、S201〜S211、S203a ステップ
1, 2 Mirroring system 10 Information processing device 20 RAID unit 21 Controller 22, 23 HDD
211 Reading processing unit 213 Idling processing unit 221, 231 Driving unit 223, 233 Diagnostic information S10 to S20, S101 to S105, S201 to S211, S203a Step

Claims (4)

駆動部を有する複数の記憶装置を制御する制御装置であって、
前記記憶装置へのデータの書き込みを指示する書込命令を受信した場合、全ての該記憶装置に前記駆動部を駆動させる駆動信号を送信して該データを全ての該記憶装置に書き込み、書き込まれた該データの読み出しを指示する読出命令を受信した場合、複数の前記記憶装置のうち、いずれか1つの記憶装置にのみ該駆動信号を送信して該記憶装置から該データを読み出す読書手段と、
前記読書手段による前記データの書き込み又は該データの読み出しが終了してから所定時間が経過したとき、前記駆動部を停止させる停止信号を全ての前記記憶装置に送信する停止手段と、
を有し、
前記読書手段は、書き込まれた該データの読み出しを指示する読出命令を受信した場合、前記記憶装置の状態を診断した結果を示す診断情報を取得し、取得した前記診断情報に基づいて、いずれか1つの記憶装置を選択し、
前記診断情報は、前記記憶装置の通電時間を示す通電時間情報を含み、前記読書手段は、複数の前記記憶装置の中から該通電時間情報の示す前記通電時間が最小の記憶装置を選択する、制御装置。
A control device for controlling a plurality of storage devices having a drive unit,
When a write command instructing writing of data to the storage device is received, a drive signal for driving the drive unit is transmitted to all the storage devices, and the data is written and written to all the storage devices. In addition, when a read command instructing reading of the data is received, reading means for transmitting the drive signal to only one of the plurality of storage devices and reading the data from the storage device;
Stop means for transmitting a stop signal for stopping the drive unit to all the storage devices when a predetermined time has elapsed after the writing of the data by the reading means or reading of the data is completed;
Have
When the reading means receives a read command for instructing reading of the written data, the reading means acquires diagnostic information indicating a result of diagnosing the state of the storage device, and based on the acquired diagnostic information, Select one storage device,
The diagnostic information includes energization time information indicating the energization time of the storage device, and the reading means selects the storage device with the minimum energization time indicated by the energization time information from among the plurality of storage devices. Control device.
前記記憶装置は、HDD(Hard Disk Drive)である、請求項1に記載の制御装置。   The control device according to claim 1, wherein the storage device is an HDD (Hard Disk Drive). 前記制御装置は、RAID(Redundant Arrays of Inexpensive Disks)1の規格に対応する制御装置である、請求項1に記載の制御装置。   The control device according to claim 1, wherein the control device is a control device corresponding to a standard of RAID (Redundant Arrays of Inexpensive Disks) 1. 駆動部を有する複数の記憶装置を制御する制御方法であって、
前記記憶装置へのデータの書き込みを指示する書込命令を受信した場合、全ての該記憶装置に前記駆動部を駆動させる駆動信号を送信して該データを全ての該記憶装置に書き込み、
書き込んだ該データの読み出しを指示する読出命令を受信した場合、複数の前記記憶装置のうち、いずれか1つの記憶装置にのみ該駆動信号を送信して該記憶装置から該データを読み出し、
前記データの書き込み又は該データの読み出しが終了してから所定時間が経過したとき、前記駆動部を停止させる停止信号を全ての前記記憶装置に送信し、
前記データの読み出しにおいて、書き込まれた該データの読み出しを指示する読出命令を受信した場合、前記記憶装置の状態を診断した結果として、前記記憶装置の通電時間を示す通電時間情報を含む診断情報を取得し、取得した前記診断情報に基づいて、複数の前記記憶装置の中から該通電時間情報の示す前記通電時間が最小の記憶装置を選択する、制御方法。
A control method for controlling a plurality of storage devices having a drive unit,
When receiving a write command for instructing writing of data to the storage device, a drive signal for driving the drive unit to all the storage devices is transmitted to write the data to all the storage devices,
When receiving a read command instructing reading of the written data, the drive signal is transmitted to only one of the plurality of storage devices to read the data from the storage device,
When a predetermined time elapses after the data writing or data reading ends, a stop signal for stopping the driving unit is transmitted to all the storage devices,
In the reading of the data, when a read command instructing reading of the written data is received, diagnosis information including energization time information indicating the energization time of the storage device is obtained as a result of diagnosing the state of the storage device. A control method for acquiring a storage device having a minimum energization time indicated by the energization time information from a plurality of the storage devices based on the acquired diagnostic information.
JP2011121837A 2011-05-31 2011-05-31 Control apparatus and control method Active JP5126389B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011121837A JP5126389B2 (en) 2011-05-31 2011-05-31 Control apparatus and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011121837A JP5126389B2 (en) 2011-05-31 2011-05-31 Control apparatus and control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2008077638A Division JP2009230643A (en) 2008-03-25 2008-03-25 Controller, control method, and program

Publications (2)

Publication Number Publication Date
JP2011192303A true JP2011192303A (en) 2011-09-29
JP5126389B2 JP5126389B2 (en) 2013-01-23

Family

ID=44797062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011121837A Active JP5126389B2 (en) 2011-05-31 2011-05-31 Control apparatus and control method

Country Status (1)

Country Link
JP (1) JP5126389B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02280221A (en) * 1989-04-21 1990-11-16 Mitsubishi Electric Corp System for controlling disk
JP2000311423A (en) * 1999-04-23 2000-11-07 Canon Inc Data storage controller
JP2003303052A (en) * 2002-04-10 2003-10-24 Hitachi Ltd Method and system for operation and management of storage
JP2005071100A (en) * 2003-08-25 2005-03-17 Fujitsu Ltd Storage controller and its control method
JP2007164912A (en) * 2005-12-15 2007-06-28 Konica Minolta Business Technologies Inc Information-processing device
JP2007219703A (en) * 2006-02-15 2007-08-30 Fujitsu Ltd Hard disk storage control program, hard disk storage device and hard disk storage control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02280221A (en) * 1989-04-21 1990-11-16 Mitsubishi Electric Corp System for controlling disk
JP2000311423A (en) * 1999-04-23 2000-11-07 Canon Inc Data storage controller
JP2003303052A (en) * 2002-04-10 2003-10-24 Hitachi Ltd Method and system for operation and management of storage
JP2005071100A (en) * 2003-08-25 2005-03-17 Fujitsu Ltd Storage controller and its control method
JP2007164912A (en) * 2005-12-15 2007-06-28 Konica Minolta Business Technologies Inc Information-processing device
JP2007219703A (en) * 2006-02-15 2007-08-30 Fujitsu Ltd Hard disk storage control program, hard disk storage device and hard disk storage control method

Also Published As

Publication number Publication date
JP5126389B2 (en) 2013-01-23

Similar Documents

Publication Publication Date Title
Allen Monitoring hard disks with smart
US8943358B2 (en) Storage system, apparatus, and method for failure recovery during unsuccessful rebuild process
CN105468484B (en) Method and apparatus for locating a fault in a storage system
US20050262385A1 (en) Low cost raid with seamless disk failure recovery
JP2007213721A (en) Storage system and control method thereof
JP2005071068A (en) Storage device
CN111656446A (en) Hard disk drive life prediction
US9251016B2 (en) Storage system, storage control method, and storage control program
CN108170375B (en) Overrun protection method and device in distributed storage system
US7457990B2 (en) Information processing apparatus and information processing recovery method
JP4775843B2 (en) Storage system and storage control method
JP2005107838A (en) Disk array controller and log information recording method
US11237893B2 (en) Use of error correction-based metric for identifying poorly performing data storage devices
JP5849491B2 (en) Disk control device, disk device abnormality detection method, and program
JP2008257411A (en) Disk control system
US9343113B2 (en) Control apparatus and control method
JP5126389B2 (en) Control apparatus and control method
US20150067252A1 (en) Communicating outstanding maintenance tasks to improve disk data integrity
JP2009230643A (en) Controller, control method, and program
JP2007233915A (en) Disk array controller, error monitoring method and program
US20120215966A1 (en) Disk array unit and control method thereof
US9990382B1 (en) Secure erasure and repair of non-mechanical storage media
US20200264946A1 (en) Failure sign detection device, failure sign detection method, and recording medium in which failure sign detection program is stored
JP2011191906A (en) Data storage apparatus, data monitoring apparatus, control method and program
JP2009003557A (en) Device start time diagnostic method, diagnostic program, and start time diagnostic device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120417

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120613

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: 20121002

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121015

R150 Certificate of patent or registration of utility model

Ref document number: 5126389

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151109

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350