JP5426617B2 - Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive - Google Patents

Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive Download PDF

Info

Publication number
JP5426617B2
JP5426617B2 JP2011157087A JP2011157087A JP5426617B2 JP 5426617 B2 JP5426617 B2 JP 5426617B2 JP 2011157087 A JP2011157087 A JP 2011157087A JP 2011157087 A JP2011157087 A JP 2011157087A JP 5426617 B2 JP5426617 B2 JP 5426617B2
Authority
JP
Japan
Prior art keywords
data
storage medium
power
drive
storage
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
JP2011157087A
Other languages
Japanese (ja)
Other versions
JP2013025400A (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.)
Toshiba Corp
Toshiba Digital Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Solutions 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 Toshiba Corp, Toshiba Solutions Corp filed Critical Toshiba Corp
Priority to JP2011157087A priority Critical patent/JP5426617B2/en
Publication of JP2013025400A publication Critical patent/JP2013025400A/en
Application granted granted Critical
Publication of JP5426617B2 publication Critical patent/JP5426617B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Description

本発明の実施形態は、揮発性記憶媒体及び不揮発性記憶媒体を含む記憶ドライブを備えたストレージ装置、記憶ドライブ、及び記憶ドライブの電源遮断時データ移動動作を検証する方法に関する。   Embodiments described herein relate generally to a storage apparatus including a storage drive including a volatile storage medium and a nonvolatile storage medium, a storage drive, and a method for verifying data movement operation when the storage drive is powered off.

記憶ドライブとしてソリッドステートドライブ(SSD)が知られている。SSDは、不揮発性記憶媒体としてフラッシュメモリのような不揮発性メモリを用いている。一般に、不揮発性メモリに対するデータの書き込みでは、データのサイズや書き込み回数の制限を受ける。このような制限を考慮して、SSDでは、不揮発性メモリに書き込まれるべきデータが、一時的に揮発性メモリ(揮発性記憶媒体)に格納される。   A solid state drive (SSD) is known as a storage drive. The SSD uses a nonvolatile memory such as a flash memory as a nonvolatile storage medium. In general, data writing to a nonvolatile memory is limited by the size of data and the number of times of writing. In consideration of such restrictions, in the SSD, data to be written in the nonvolatile memory is temporarily stored in the volatile memory (volatile storage medium).

しかし、揮発性メモリに格納されているデータは、SSDの電源(主電源)が停電などに起因して突然遮断した場合に消失してしまう。そこで、SSDに、バッテリ、或いはキャパシタのような補助電源を備え、主電源の遮断時に当該補助電源に切り替えることにより、揮発性メモリに格納されているデータを不揮発性メモリに移動(保存)する技術が知られている。   However, data stored in the volatile memory is lost when the power supply (main power supply) of the SSD is suddenly shut down due to a power failure or the like. Therefore, the SSD is provided with an auxiliary power source such as a battery or a capacitor, and the data stored in the volatile memory is moved (saved) to the nonvolatile memory by switching to the auxiliary power source when the main power source is shut off. It has been known.

特開平7−191786号公報JP-A-7-191786

しかし、補助電源は、経年劣化等の要因で、電源容量が減少したり故障したりするおそれがある。つまり、補助電源は、出荷時の検査では正常に動作することが確認されても、使用されている間に徐々に劣化が進むおそれがある。補助電源が劣化すると、停電等の要因で記憶ドライブの主電源が遮断された場合、揮発性メモリから不揮発性メモリにデータを退避するのに十分な電源容量を確保できなくなる。このような状態では、揮発性メモリから不揮発性メモリにデータを移動する動作(電源遮断時データ移動動作)を正常に行うことができず、データを消失してしまう。   However, there is a risk that the power supply capacity may decrease or break down due to factors such as aging. That is, even if it is confirmed that the auxiliary power supply operates normally in the inspection at the time of shipment, the auxiliary power supply may be gradually deteriorated while being used. When the auxiliary power supply deteriorates, when the main power supply of the storage drive is shut off due to a power failure or the like, it is impossible to secure a power supply capacity sufficient to save data from the volatile memory to the nonvolatile memory. In such a state, the operation of moving data from the volatile memory to the non-volatile memory (data moving operation at power-off) cannot be performed normally, and data is lost.

本発明が解決しようとする課題は、電源遮断時データ移動動作を予め検証できる、揮発性記憶媒体及び不揮発性記憶媒体を含む記憶ドライブを備えたストレージ装置、記憶ドライブ、及び記憶ドライブの電源遮断時データ移動動作を検証する方法を提供することにある。   The problem to be solved by the present invention is to provide a storage device including a storage drive including a volatile storage medium and a nonvolatile storage medium, a storage drive, and a storage drive when the power of the storage drive is cut off. It is to provide a method for verifying data movement operation.

実施形態によれば、ストレージ装置は、電源制御手段と、揮発性記憶媒体と、不揮発性記憶媒体と、補助電源と、電源遮断時データ移動部と、検証部とを具備する。前記電源制御手段は、主電源を制御する。前記揮発性記憶媒体は、ライト要求で指定されたライトデータを一時格納する。前記不揮発性記憶媒体は、前記揮発性記憶媒体に格納されているデータを保存する。前記補助電源は、前記主電源の遮断に応じて電力を供給する。前記電源遮断時データ移動部は、前記揮発性記憶媒体に格納されているデータを前記主電源の遮断に応じて前記不揮発性記憶媒体に移動する。前記検証部は、前記揮発性記憶媒体にデータを書き込み、前記データの書き込み完了後に前記電源制御手段により前記主電源を遮断させ、所定時間後に前記電源制御手段により前記主電源を再投入させ、その後に前記不揮発性記憶媒体から前記データを読み出し、当該読み出されたデータに基づいて、前記電源遮断時データ移動部の動作を検証する。   According to the embodiment, the storage device includes a power control unit, a volatile storage medium, a nonvolatile storage medium, an auxiliary power supply, a power shutdown data moving unit, and a verification unit. The power supply control unit controls a main power supply. The volatile storage medium temporarily stores write data designated by a write request. The nonvolatile storage medium stores data stored in the volatile storage medium. The auxiliary power supply supplies power in response to the interruption of the main power supply. The data transfer unit at power-off moves data stored in the volatile storage medium to the nonvolatile storage medium in response to the main power-off. The verification unit writes data to the volatile storage medium, shuts down the main power source by the power source control unit after completion of writing the data, causes the power source control unit to turn on the main power source again after a predetermined time, and then Then, the data is read from the nonvolatile storage medium, and the operation of the data transfer unit at the time of power-off is verified based on the read data.

第1の実施形態に係るストレージ装置を備えたストレージシステムの構成を示すブロック図。1 is a block diagram showing a configuration of a storage system including a storage device according to a first embodiment. 第1の実施形態において、記憶ドライブの主電源が遮断された場合に実行される電源遮断時データ移動動作を検証する処理を説明するためのシーケンスチャート。FIG. 6 is a sequence chart for explaining processing for verifying a data movement operation at the time of power interruption performed when the main power of the storage drive is interrupted in the first embodiment. 第2の実施形態において、記憶ドライブの主電源が遮断された場合に実行される電源遮断時データ移動動作を検証する処理を説明するためのシーケンスチャート。FIG. 10 is a sequence chart for explaining processing for verifying a data movement operation at the time of power interruption executed when the main power of the storage drive is interrupted in the second embodiment.

以下、実施の形態につき図面を参照して説明する。
[第1の実施形態]
図1は第1の実施形態に係るストレージ装置を備えたストレージシステムの構成を示すブロック図である。
Hereinafter, embodiments will be described with reference to the drawings.
[First Embodiment]
FIG. 1 is a block diagram showing a configuration of a storage system including a storage apparatus according to the first embodiment.

図1に示すストレージシステムは、ストレージ装置10と、当該ストレージ装置10を利用するホスト(ホスト装置)20とから構成される。ストレージ装置10及びホスト20は、例えばSCSI(Small Computer System Interface)規格に準拠したインタフェースによって接続されているものとする。しかし、ストレージ装置10及びホスト20の接続がSCSIによる接続である必要はない。   The storage system shown in FIG. 1 includes a storage device 10 and a host (host device) 20 that uses the storage device 10. It is assumed that the storage apparatus 10 and the host 20 are connected by an interface compliant with, for example, a SCSI (Small Computer System Interface) standard. However, the connection between the storage apparatus 10 and the host 20 does not have to be a SCSI connection.

ストレージ装置10は、例えば2つの記憶ドライブ11-0及び11-1と、ストレージコントローラ12と、電源制御部13とから構成される。記憶ドライブ11-0及び11-1がRAID(Redundant Arrays of Inexpensive Disks)を構成していても構わない。なお、ストレージ装置10が備える記憶ドライブの数は2である必要はない。つまり、ストレージ装置10が、1つの記憶ドライブ、或いは2を超える記憶ドライブを備えていても構わない。   The storage device 10 includes, for example, two storage drives 11-0 and 11-1, a storage controller 12, and a power supply control unit 13. The storage drives 11-0 and 11-1 may constitute RAID (Redundant Arrays of Inexpensive Disks). Note that the number of storage drives provided in the storage apparatus 10 is not necessarily two. That is, the storage apparatus 10 may include one storage drive or more than two storage drives.

第1の実施形態において、記憶ドライブ11-0及び11-1はSSDである。記憶ドライブ11-0は、揮発性メモリ111と、不揮発性メモリ112と、ドライブコントローラ113と、補助電源115とから構成される。記憶ドライブ11-1も記憶ドライブ11-0と同様の構成を有しているものとする。但し、図1では、記憶ドライブ11-1の構成は省略されている。   In the first embodiment, the storage drives 11-0 and 11-1 are SSDs. The storage drive 11-0 includes a volatile memory 111, a nonvolatile memory 112, a drive controller 113, and an auxiliary power source 115. It is assumed that the storage drive 11-1 has the same configuration as the storage drive 11-0. However, in FIG. 1, the configuration of the storage drive 11-1 is omitted.

揮発性メモリ111は、DRAMのような揮発性記憶媒体である。揮発性メモリ111は、ストレージコントローラ12からのライト要求で指定されたライトデータ、つまり不揮発性メモリ112に書き込まれるべきデータを、ドライブコントローラ113の制御の下で一時格納するのに用いられる。第1の実施形態において、ライトデータを揮発性メモリ111に一時格納する理由は、背景技術の欄にも記載されているように、不揮発性メモリ112に対するデータの書き込みが、データのサイズや書き込み回数の制限を受けることを考慮しているためである。しかし、ライトデータを揮発性メモリ111に一時格納する理由が他の理由であっても構わない。   The volatile memory 111 is a volatile storage medium such as a DRAM. The volatile memory 111 is used to temporarily store write data designated by a write request from the storage controller 12, that is, data to be written to the nonvolatile memory 112 under the control of the drive controller 113. In the first embodiment, the reason why the write data is temporarily stored in the volatile memory 111 is that, as described in the background art section, the data write to the non-volatile memory 112 depends on the data size and the write count. This is because it is considered to be subject to restrictions. However, the reason for temporarily storing the write data in the volatile memory 111 may be another reason.

不揮発性メモリ112は、フラッシュメモリのような不揮発性記憶媒体である。不揮発性メモリ112は、揮発性メモリ111に一時格納されているデータを保存するのに用いられる。   The nonvolatile memory 112 is a nonvolatile storage medium such as a flash memory. The nonvolatile memory 112 is used to store data temporarily stored in the volatile memory 111.

第1の実施形態では、通常は、ブロックと呼ばれる一定サイズのデータを単位に、不揮発性メモリ112に一時格納されているデータが、不揮発性メモリ112に移動される。つまり通常は、一部のみがライトデータで更新されたブロックは、揮発性メモリ111から不揮発性メモリ112への移動の対象とならない。一方、記憶ドライブ11-0の主電源が遮断された場合には、揮発性メモリ111に格納されているデータが消失しないように、当該データが不揮発性メモリ112に移動(保存)される。ここでは、上述の通常時及び電源遮断時のデータの移動が、いずれもコピーによって行われるものとする。   In the first embodiment, normally, data temporarily stored in the nonvolatile memory 112 is moved to the nonvolatile memory 112 in units of data of a certain size called a block. That is, normally, a block in which only a part is updated with write data is not a target of movement from the volatile memory 111 to the nonvolatile memory 112. On the other hand, when the main power supply of the storage drive 11-0 is cut off, the data is moved (saved) to the nonvolatile memory 112 so that the data stored in the volatile memory 111 is not lost. Here, it is assumed that the above-described data movement at the normal time and at the power-off time is performed by copying.

ドライブコントローラ113は、ストレージコントローラ12との間で例えばSCSI規格に準拠した通信を行う。ドライブコントローラ113は、ストレージコントローラ12からのリード要求(リードコマンド)に応じて、記憶ドライブ11-0からのデータの読み出し(より詳細には、揮発性メモリ111または不揮発性メモリ112からのデータの読み出し)を行う。ドライブコントローラ113は、読み出されたデータをストレージコントローラ12に転送する。ドライブコントローラ113はまた、ストレージコントローラ12からのライト要求(ライトコマンド)に応じて、記憶ドライブ11-0へのデータの書き込み(より詳細には、揮発性メモリ111へのデータの書き込み)を行う。   The drive controller 113 communicates with the storage controller 12 in accordance with, for example, the SCSI standard. In response to a read request (read command) from the storage controller 12, the drive controller 113 reads data from the storage drive 11-0 (more specifically, reads data from the volatile memory 111 or the nonvolatile memory 112). )I do. The drive controller 113 transfers the read data to the storage controller 12. The drive controller 113 also writes data to the storage drive 11-0 (more specifically, writes data to the volatile memory 111) in response to a write request (write command) from the storage controller 12.

ドライブコントローラ113は、電源遮断時データ移動部113a及び通常時データ移動部113bを備えている。
電源遮断時データ移動部113aは、記憶ドライブ11-0の主電源が遮断された場合、揮発性メモリ111に一時格納されているデータを不揮発性メモリ112に移動(退避)するための電源遮断時データ移動動作を実行する。つまりドライブコントローラ113は、周知の電源遮断時データ移動機能を有している。
The drive controller 113 includes a power-off data moving unit 113a and a normal data moving unit 113b.
When the main power source of the storage drive 11-0 is shut off, the data moving unit 113a at the time of power shutoff is at the time of power shutoff for moving (saving) the data temporarily stored in the volatile memory 111 to the nonvolatile memory 112 Perform data movement operations. That is, the drive controller 113 has a well-known power transfer function.

通常時データ移動部113bは、記憶ドライブ11-0の主電源が投入されている通常状態において、揮発性メモリ111に一時格納されているデータを不揮発性メモリ112に自律的に移動するための通常時データ移動動作を実行する。つまりドライブコントローラ113は、周知の通常時データ移動機能を有している。
補助電源115は、バッテリ、或いはキャパシタであり、停電等により記憶ドライブ11-0の主電源が遮断された場合に、当該記憶ドライブ11-0内の揮発性メモリ111、不揮発性メモリ112及びドライブコントローラ113のような構成要素群に電力を供給する。補助電源115がキャパシタの場合、当該キャパシタは、記憶ドライブ11-0の主電源によって充電される。また、電源制御部13の制御によって記憶ドライブ11-0の主電源が強制的に遮断された場合にも、当該主電源から補助電源115に切り替えられる
ストレージコントローラ12は、例えばホスト20からのアクセス要求(リード要求またはライト要求)に応じて、記憶ドライブ11-0または11-1へのアクセスを制御する。ストレージコントローラ12は検証部120を備えている。検証部120は、記憶ドライブ11-0または11-1の通常状態(つまり、主電源が正常に機能している状態)において、当該主電源が停電等の要因で遮断された場合を模擬することにより、前述の電源遮断時データ移動動作を検証する。
The normal-time data moving unit 113b is used for autonomously moving data temporarily stored in the volatile memory 111 to the nonvolatile memory 112 in a normal state where the main power of the storage drive 11-0 is turned on. Executes data movement operation. That is, the drive controller 113 has a known normal data movement function.
The auxiliary power source 115 is a battery or a capacitor, and when the main power source of the storage drive 11-0 is cut off due to a power failure or the like, the volatile memory 111, the nonvolatile memory 112, and the drive controller in the storage drive 11-0. Power is supplied to a group of components such as 113. When the auxiliary power supply 115 is a capacitor, the capacitor is charged by the main power supply of the storage drive 11-0. Further, even when the main power supply of the storage drive 11-0 is forcibly cut off by the control of the power supply control unit 13, the storage controller 12 that is switched from the main power supply to the auxiliary power supply 115 receives an access request from the host 20, for example. The access to the storage drive 11-0 or 11-1 is controlled according to (read request or write request). The storage controller 12 includes a verification unit 120. The verification unit 120 simulates the case where the main power supply is shut down due to a power failure or the like in the normal state of the storage drive 11-0 or 11-1 (that is, the state where the main power supply functions normally). Thus, the above-described data transfer operation at power-off is verified.

電源制御部13は、記憶ドライブ11-0及び11-1の主電源を個別に投入(オン)/遮断(オフ)する。第1の実施形態において電源制御部13は、検証部120が記憶ドライブ11-0または11-1の電源遮断時データ移動動作を検証する場合に、当該検証部120からの指示に従い、記憶ドライブ11-0または11-1の主電源の遮断/投入(再投入)を制御する。   The power supply control unit 13 individually turns on (turns on) / cuts off (off) the main power supply of the storage drives 11-0 and 11-1. In the first embodiment, when the verification unit 120 verifies the data movement operation at the time of power-off of the storage drive 11-0 or 11-1, the power supply control unit 13 follows the instruction from the verification unit 120 in accordance with the instruction from the verification unit 120. Controls the shutdown / turn-on (re-turn-on) of the main power supply at -0 or 11-1.

次に、第1の実施形態の動作について、記憶ドライブ(SSD)11-0の主電源が遮断された場合に実行される電源遮断時データ移動動作を検証する処理を例に、図2のシーケンスチャートを参照して説明する。   Next, with regard to the operation of the first embodiment, the sequence of FIG. 2 will be described by taking as an example the process of verifying the data movement operation at the time of power shutdown performed when the main power of the storage drive (SSD) 11-0 is shut off. This will be described with reference to the chart.

記憶ドライブ11-0の補助電源115は、発明が解決しようとする課題の欄に記載されているように、使用されている間に徐々に劣化が進むおそれがある。補助電源115の劣化が進むと、停電等の要因で記憶ドライブ11-0の主電源が遮断された場合、揮発性メモリ111から不揮発性メモリ112にデータを移動するのに十分な電源容量を確保できなくなる。また、補助電源115の劣化が進むと、やがて当該補助電源115が故障するおそれもある。もし、補助電源115の電源容量が減少したり、或いは当該補助電源115が故障している状態で記憶ドライブ11-0の主電源が遮断された場合、揮発性メモリ111から不揮発性メモリ112にデータを移動する電源遮断時データ移動動作を正常に行うことができずに、データが消失してしまう。   As described in the column of the problem to be solved by the invention, the auxiliary power source 115 of the storage drive 11-0 may gradually deteriorate while being used. As the auxiliary power supply 115 deteriorates, if the main power supply of the storage drive 11-0 is cut off due to a power failure or the like, sufficient power supply capacity is secured to move data from the volatile memory 111 to the nonvolatile memory 112. become unable. Further, as the auxiliary power supply 115 deteriorates, the auxiliary power supply 115 may eventually break down. If the power supply capacity of the auxiliary power supply 115 decreases or the main power supply of the storage drive 11-0 is cut off while the auxiliary power supply 115 is broken, data is transferred from the volatile memory 111 to the nonvolatile memory 112. The data movement operation cannot be performed normally when the power is turned off, and data is lost.

そこで、第1の実施形態では、通常状態において、ストレージコントローラ12の検証部120が、当該主電源の停電等の要因による遮断を模擬し、記憶ドライブ11-0において補助電源115からの電力の供給を受けて実行される電源遮断時データ移動動作を事前に検証するようにしている。   Therefore, in the first embodiment, in the normal state, the verification unit 120 of the storage controller 12 simulates the interruption due to a power failure or the like of the main power supply, and the storage drive 11-0 supplies power from the auxiliary power supply 115. In response to this, the data movement operation at the time of power-off is verified in advance.

ストレージコントローラ12の検証部120は、例えばストレージ装置10の立ち上げ時に起動される。検証部120はまず、記憶ドライブ11-0に主電源が投入されている状態で、記憶ドライブ11-0にデータを書き込むためのライト要求を、当該記憶ドライブ11-0に送出する(ステップ201)。なお、検証部120は、必ずしもストレージ装置10の立ち上げ時に起動される必要はない。例えば、ストレージ装置10が一定時間稼動される毎に、検証部120が起動されても構わない。また、検証部120が起動される稼動時間間隔が、ストレージ装置10の総稼動時間に応じて徐々に短くなるように予め定められていても構わない。また、例えばホスト20を介してのユーザからの指定に応じて、任意のタイミングで検証部120が起動されても構わない。   The verification unit 120 of the storage controller 12 is activated when the storage device 10 is started up, for example. First, the verification unit 120 sends a write request for writing data to the storage drive 11-0 to the storage drive 11-0 in a state where the main power is turned on to the storage drive 11-0 (step 201). . The verification unit 120 does not necessarily have to be activated when the storage apparatus 10 is started up. For example, the verification unit 120 may be activated every time the storage apparatus 10 is operated for a certain period of time. In addition, the operation time interval at which the verification unit 120 is activated may be determined in advance so as to be gradually shortened according to the total operation time of the storage apparatus 10. For example, the verification unit 120 may be activated at an arbitrary timing in accordance with a designation from the user via the host 20.

上記ライト要求で指定されるライトデータにはテストデータが用いられる。このテストデータは、後述するように、記憶ドライブ11-0に書き込まれた後に主電源が遮断され、しかる後に当該主電源が再投入されて読み出された際に、データ化けの有無を判別するのに用いられる。上記ライト要求は、当該ライト要求で指定されるライトデータが書き込まれるべき記憶ドライブ11-0のアドレスAtと当該ライトデータのデータ長(サイズ)Ltを示す情報とを含む。第1の実施形態において、データ長Ltは、説明の簡略化のために、不揮発性メモリ112の消去単位である1ブロックの長さ(ブロック長)であるとするが、これに限らない。例えばデータ長Ltが、記憶管理の最小単位であるセクタ長であっても構わない。   Test data is used as the write data specified by the write request. As will be described later, when this test data is written in the storage drive 11-0, the main power supply is shut off, and then the main power supply is turned on again and read out, thereby determining whether or not the data is garbled. Used for The write request includes the address At of the storage drive 11-0 to which the write data specified by the write request is to be written and information indicating the data length (size) Lt of the write data. In the first embodiment, the data length Lt is assumed to be the length (block length) of one block, which is an erasing unit of the nonvolatile memory 112, for the sake of simplification, but is not limited thereto. For example, the data length Lt may be a sector length that is the minimum unit of storage management.

記憶ドライブ11-0のドライブコントローラ113は、ストレージコントローラ12の検証部120からのライト要求に応じて、指定のライトデータ(ここでは、1ブロック長のテストデータ)を、揮発性メモリ111に書き込む(ステップ202)。このように、ストレージコントローラ12の検証部120からのライト要求に応じて、テストデータが揮発性メモリ111に格納される。   In response to a write request from the verification unit 120 of the storage controller 12, the drive controller 113 of the storage drive 11-0 writes designated write data (here, one block length test data) to the volatile memory 111 ( Step 202). In this way, test data is stored in the volatile memory 111 in response to a write request from the verification unit 120 of the storage controller 12.

揮発性メモリ111は一種のキャッシュメモリとして管理され、テストデータは、当該揮発性メモリ111内の空きのキャッシュブロックに格納される。周知のようにドライブコントローラ113は、ライトデータが格納されているキャッシュブロックを、当該ライトデータが本来書き込まれるべき記憶ドライブ11-0(より詳細には、記憶ドライブ11-0内の不揮発性メモリ112)のアドレスと対応付けて管理する。ドライブコントローラ113は、上記テストデータが格納されたキャッシュブロックについても同様に管理する。   The volatile memory 111 is managed as a kind of cache memory, and the test data is stored in an empty cache block in the volatile memory 111. As is well known, the drive controller 113 converts the cache block in which the write data is stored into the storage drive 11-0 to which the write data is originally written (more specifically, the nonvolatile memory 112 in the storage drive 11-0). ) And managed in association with the address. The drive controller 113 similarly manages the cache block storing the test data.

ドライブコントローラ113は、要求されたライトデータの揮発性メモリ111への書き込みを完了すると、ストレージコントローラ12に対してライト完了通知を返す(ステップ203)。   When the drive controller 113 completes the writing of the requested write data to the volatile memory 111, it returns a write completion notification to the storage controller 12 (step 203).

ストレージコントローラ12の検証部120は、ドライブコントローラ113からのライト完了通知に応じて、電源制御部13に対して記憶ドライブ11-0の主電源の遮断を要求する(ステップ204)。すると電源制御部13は、記憶ドライブ11-0の主電源を遮断する(ステップ205)。つまり検証部120は、記憶ドライブ11-0の主電源を電源制御部13によって強制的に遮断させることにより、当該主電源の停電等の要因による遮断を模擬する。   In response to the write completion notification from the drive controller 113, the verification unit 120 of the storage controller 12 requests the power supply control unit 13 to shut off the main power supply of the storage drive 11-0 (step 204). Then, the power supply controller 13 shuts off the main power supply of the storage drive 11-0 (step 205). In other words, the verification unit 120 simulates the interruption of the main power source due to factors such as a power failure by forcibly shutting off the main power source of the storage drive 11-0 by the power source control unit 13.

記憶ドライブ11-0は、主電源の遮断を検出すると、補助電源115からの電力供給に切り替える(ステップ206)。このときドライブコントローラ113の電源遮断時データ移動部113aが起動される。   When the storage drive 11-0 detects the interruption of the main power supply, it switches to the power supply from the auxiliary power supply 115 (step 206). At this time, the data transfer unit 113a at the time of power-off of the drive controller 113 is activated.

すると電源遮断時データ移動部113aは、揮発性メモリ111に格納されているライトデータ(より詳細には、揮発性メモリ111に書き込まれたライトデータのうち、不揮発性メモリ112に未書き込みのライトデータ)を、不揮発性メモリ112の本来書き込まれるべき領域に移動(退避)する周知の電源遮断時データ移動動作を実行する(ステップ207)。もし、電源遮断時データ移動動作が正常に行われたならば、上記テストデータは、ストレージコントローラ12の検証部120からステップ201で送出されたライト要求の指定するアドレスAtの領域、つまり不揮発性メモリ112の本来書き込まれるべきアドレスAtから始まる1ブロックの領域に移動される。   Then, the data transfer unit 113a at the time of power-off performs write data stored in the volatile memory 111 (more specifically, write data that has not been written to the nonvolatile memory 112 among write data written to the volatile memory 111). ) Is moved to (removed from) the area to be originally written in the non-volatile memory 112, and a well-known power-off data movement operation is executed (step 207). If the data movement operation at power-off is normally performed, the test data is stored in the area of the address At specified by the write request sent from the verification unit 120 of the storage controller 12 in step 201, that is, a nonvolatile memory. It is moved to an area of 1 block starting from an address At to be originally written at 112.

これに対し、例えば補助電源115が劣化しているならば、電源遮断時データ移動動作は正常に行われないおそれがある。また、補助電源115が故障しているならば、電源遮断時データ移動動作は正常に行われない。同様に、主電源から補助電源115に切り替えられなかった場合にも、電源遮断時データ移動動作は正常に行われない。   On the other hand, for example, if the auxiliary power supply 115 is deteriorated, there is a possibility that the data movement operation at the time of power-off is not normally performed. Further, if the auxiliary power supply 115 is out of order, the data movement operation at the time of power interruption is not normally performed. Similarly, even when the main power source is not switched to the auxiliary power source 115, the data movement operation at the time of power interruption is not normally performed.

検証部120は、電源制御部13に対して記憶ドライブ11-0の主電源の遮断を要求した時点から所定時間待機する(ステップ208)。この所定時間は、記憶ドライブ11-0における電源遮断時データ移動動作が正常に行われる場合に、当該電源遮断時データ移動動作が完了するのに十分な時間に予め設定されている。   The verification unit 120 waits for a predetermined time from when the power supply control unit 13 is requested to shut off the main power supply of the storage drive 11-0 (step 208). The predetermined time is set in advance to a time sufficient for completing the data movement operation at power-off when the data movement operation at power-off in the storage drive 11-0 is normally performed.

検証部120は所定時間を待機すると、電源制御部13に対して記憶ドライブ11-0の主電源の投入を要求する(ステップ209)。すると電源制御部13は、記憶ドライブ11-0の主電源を再投入する(ステップ210)。   When the verification unit 120 waits for a predetermined time, it requests the power supply control unit 13 to turn on the main power supply of the storage drive 11-0 (step 209). Then, the power controller 13 turns on the main power of the storage drive 11-0 again (step 210).

この状態で検証部120は、ステップ201で送出したライト要求に応じて記憶ドライブ11-0に書き込まれているべきライトデータ(つまり1ブロック長のテストデータ)をアドレスAtの領域から読み出すためのリード要求を、当該記憶ドライブ11-0に送出する(ステップ211)。   In this state, the verification unit 120 reads the write data (that is, one block length test data) to be written in the storage drive 11-0 in response to the write request sent in step 201 from the area of the address At. The request is sent to the storage drive 11-0 (step 211).

すると記憶ドライブ11-0のドライブコントローラ113は、検証部120からのリード要求に応じて、指定されたアドレスAtの領域からのデータ(つまり記憶ドライブ11-0の主電源が遮断される直前に当該記憶ドライブ11-0に書かれたライトデータ)の読み出しを行う(ステップ212)。もし、先の電源遮断時データ移動動作が正常に行われたならば、たとえ当該電源遮断時データ移動動作の完了後に揮発性メモリ111のデータが全て消失していたとしても、記憶ドライブ11-0の主電源が遮断される直前に当該記憶ドライブ11-0に書かれたライトデータが、不揮発性メモリ112のアドレスAtの領域から読み出されることになる。   Then, in response to the read request from the verification unit 120, the drive controller 113 of the storage drive 11-0 performs the data from the area of the designated address At (that is, immediately before the main power supply of the storage drive 11-0 is shut off). The write data) written to the storage drive 11-0 is read (step 212). If the data movement operation at the time of power-off is performed normally, even if all the data in the volatile memory 111 is lost after the data movement operation at the time of power-off is completed, the storage drive 11-0 The write data written to the storage drive 11-0 immediately before the main power supply is cut off is read from the area of the address At of the nonvolatile memory 112.

ドライブコントローラ113は、リード要求に応じて読み出されたリードデータをストレージコントローラ12に返す(ステップ213)。ストレージコントローラ12の検証部120は、ドライブコントローラ113から返されたリードデータに基づき、記憶ドライブ11-0の主電源を強制的に遮断した際に当該記憶ドライブ11-0において電源遮断時データ移動動作が正常に行われているかを確認する(ステップ214)。つまり検証部120は、ドライブコントローラ113から返されたリードデータを、ステップ201で記憶ドライブ11-0に送出したライト要求によりライトデータとして指定したテストデータと比較することにより、当該ライトデータが電源遮断時データ移動動作によって不揮発性メモリ112に正常に移動(保存)されているかを確認する。   The drive controller 113 returns the read data read in response to the read request to the storage controller 12 (step 213). Based on the read data returned from the drive controller 113, the verification unit 120 of the storage controller 12 performs a data movement operation at power-off in the storage drive 11-0 when the main power of the storage drive 11-0 is forcibly cut off. Is confirmed to be normally performed (step 214). That is, the verification unit 120 compares the read data returned from the drive controller 113 with the test data specified as the write data by the write request sent to the storage drive 11-0 in step 201, so that the write data is turned off. It is confirmed whether or not it is normally moved (saved) in the nonvolatile memory 112 by the hour data movement operation.

もし、上記両データの一致が検出されたならば、検証部120は、記憶ドライブ11-0の主電源を強制的に遮断した際に電源遮断時データ移動動作が正常に行われて、揮発性メモリ111から不揮発性メモリ112にライトデータが正しく移動されたとことを確認する。これに対し、上記両データの不一致が検出されたならば、検証部120は、上述の電源遮断時データ移動動作が正常に行われず、揮発性メモリ111から不揮発性メモリ112にライトデータが正しく移動されなかったことを確認する。ストレージコントローラ12は、この電源遮断時データ移動動作の検証結果を例えばホスト20を介してユーザに通知する。ストレージコントローラ12の検証部120は、以上のような電源遮断時データ移動動作の検証を、記憶ドライブ11-1に対しても行う。   If the coincidence of the two data is detected, the verification unit 120 performs the data movement operation when the power source is shut off normally when the main power source of the storage drive 11-0 is forcibly shut down, and the volatile It is confirmed that the write data has been correctly moved from the memory 111 to the nonvolatile memory 112. On the other hand, if a mismatch between the two data is detected, the verification unit 120 does not perform the above-described data movement operation when the power is shut down, and the write data is correctly moved from the volatile memory 111 to the nonvolatile memory 112. Make sure it was not. The storage controller 12 notifies the user of the verification result of the data movement operation at the time of power-off via the host 20, for example. The verification unit 120 of the storage controller 12 also verifies the data movement operation at power-off as described above for the storage drive 11-1.

第1の実施形態によれば、記憶ドライブ11-0及び11-1側に特別な機能を持たせることなく、当該記憶ドライブ11-0及び11-1の主電源の遮断時に実行される電源遮断時データ移動動作を事前に検証する機能を持ったストレージ装置10を実現できる。また、この機能をストレージ装置10が持つことにより、当該ストレージ装置10の立ち上げ時など任意の時期に、記憶ドライブ11-0及び11-1の電源遮断時データ移動動作を検証することができる。このため第1の実施形態によれば、経年劣化による補助電源の故障等に起因する電源遮断時データ移動動作の異常を、記憶ドライブ11-0及び11-1の主電源が停電等のために実際に遮断してデータが消失する前に検出することができる。   According to the first embodiment, the power cut-off executed when the main power of the storage drives 11-0 and 11-1 is cut off without giving a special function to the storage drives 11-0 and 11-1 side. It is possible to realize the storage apparatus 10 having a function of verifying the time data movement operation in advance. In addition, since the storage apparatus 10 has this function, it is possible to verify the data movement operation when the storage drives 11-0 and 11-1 are turned off at any time such as when the storage apparatus 10 is started up. For this reason, according to the first embodiment, an abnormality in the data movement operation at the time of power-off caused by a failure of the auxiliary power source due to deterioration over time is caused by the main power supply of the storage drives 11-0 and 11-1 due to a power failure or the like It can be detected before the data is lost due to actual interruption.

[第2の実施形態]
次に、第2の実施形態について説明する。第2の実施形態に係るストレージ装置を備えたストレージシステムの構成は、第1の実施形態と同様である。したがって、第2の実施形態の説明に図1を援用する。
[Second Embodiment]
Next, a second embodiment will be described. The configuration of the storage system including the storage apparatus according to the second embodiment is the same as that of the first embodiment. Therefore, FIG. 1 is used to describe the second embodiment.

第2の実施形態は、次の2つの点で第1の実施形態と相違する。第1は、ストレージコントローラ12の検証部120が記憶ドライブ11-0の電源遮断時データ移動動作を検証するに際し、その旨を前記ステップ201に先行して当該記憶ドライブ11-0に明示的に通知する点である。第2は、検証部120からの電源遮断時データ移動動作の検証の通知に応じて、記憶ドライブ11-0がデータ移動禁止モードに設定される点である。   The second embodiment is different from the first embodiment in the following two points. First, when the verification unit 120 of the storage controller 12 verifies the data movement operation at the time of power-off of the storage drive 11-0, this is explicitly notified to the storage drive 11-0 prior to the step 201. It is a point to do. The second point is that the storage drive 11-0 is set to the data movement prohibition mode in response to the notification of verification of the data movement operation at power-off from the verification unit 120.

以下、第2の実施形態の動作について、記憶ドライブ11-0の主電源が遮断された場合に実行される電源遮断時データ移動動作を検証する処理を例に、図3のシーケンスチャートを参照して説明する。なお、図3のシーケンスチャートにおいて、図2のシーケンスチャートと等価なステップには同一参照番号を付してある。具体的には、第2の実施形態においても、第1の実施形態と同様に、ステップ201乃至214が実行される。第2の実施形態が第1の実施形態と相違する動作は、以下に述べるように、ステップ201に先行して実行される。   Hereinafter, with respect to the operation of the second embodiment, referring to the sequence chart of FIG. 3 as an example of the process of verifying the data movement operation at the time of power shutdown performed when the main power of the storage drive 11-0 is shut off I will explain. In the sequence chart of FIG. 3, steps equivalent to those in the sequence chart of FIG. Specifically, also in the second embodiment, steps 201 to 214 are executed as in the first embodiment. The operation in which the second embodiment differs from the first embodiment is executed prior to step 201 as described below.

ストレージコントローラ12の検証部120は、第1の実施形態で適用されたような、記憶ドライブ11-0の電源遮断時データ移動動作を検証しようとする際には、まず当該記憶ドライブ11-0に対し、電源遮断時データ移動動作を検証することを明示的に通知する(ステップ301)。この通知は、例えば記憶ドライブ11-0内の入出力レジスタに割り当てられている所定のアドレスに所定のデータを書き込むこと、つまり所定の入出力レジスタに所定のデータを書き込むことによって実現される。しかし、電源遮断時データ移動動作の検証が行われることを、記憶ドライブ11-0のドライブコントローラ113が認識できる通知の手法であれば、他の手法であっても構わない。   When the verification unit 120 of the storage controller 12 tries to verify the data movement operation at the time of power-off of the storage drive 11-0 as applied in the first embodiment, first, the verification is performed on the storage drive 11-0. On the other hand, it is explicitly notified that the data movement operation at power-off is to be verified (step 301). This notification is realized, for example, by writing predetermined data to a predetermined address assigned to the input / output register in the storage drive 11-0, that is, writing predetermined data to the predetermined input / output register. However, any other method may be used as long as the drive controller 113 of the storage drive 11-0 can recognize that the verification of the data movement operation at power-off is performed.

記憶ドライブ11-0のドライブコントローラ113は、電源遮断時データ移動動作の検証の通知を検出すると、当該記憶ドライブ11-0を当該記憶ドライブ11-0の主電源が遮断されるまでデータ移動禁止モードに設定する(ステップ302)。このデータ移動禁止モードの期間、ドライブコントローラ113は、揮発性メモリ111に格納されているライトデータを通常時データ移動部113bが不揮発性メモリ112に移動するのを抑止する。つまりドライブコントローラ113はデータ移動禁止手段として機能して、通常時データ移動部113bによる通常時データ移動動作を抑止する。なお、制御の簡略化のために、データ移動禁止モードの期間、電源遮断時データ移動部113aの電源遮断時データ移動動作も抑止される構成であっても構わない。   When the drive controller 113 of the storage drive 11-0 detects the notification of verification of the data movement operation at the time of power interruption, the drive controller 113 keeps the storage drive 11-0 in the data movement prohibition mode until the main power of the storage drive 11-0 is cut off. (Step 302). During this data movement prohibition mode, the drive controller 113 prevents the normal data movement unit 113b from moving the write data stored in the volatile memory 111 to the nonvolatile memory 112. That is, the drive controller 113 functions as a data movement prohibiting unit and inhibits the normal data movement operation by the normal data movement unit 113b. For simplification of control, the data movement operation at the time of power interruption of the data movement unit 113a at the time of power interruption may be suppressed during the data movement prohibition mode.

次に検証部120は、第1の実施形態と同様に、電源遮断時データ移動動作の検証に必要なライト要求、つまり記憶ドライブ11-0にデータ(テストデータ)を書き込むためのライト要求を、当該記憶ドライブ11-0に送出する(ステップ201)。記憶ドライブ11-0のドライブコントローラ113は、ストレージコントローラ12の検証部120からのライト要求に応じて、第1の実施形態と同様に、指定のライトデータ(テストデータ)を揮発性メモリ111に書き込む(ステップ202)。   Next, as in the first embodiment, the verification unit 120 performs a write request necessary for verifying the data movement operation at power-off, that is, a write request for writing data (test data) to the storage drive 11-0. The data is sent to the storage drive 11-0 (step 201). The drive controller 113 of the storage drive 11-0 writes designated write data (test data) to the volatile memory 111 in response to a write request from the verification unit 120 of the storage controller 12 as in the first embodiment. (Step 202).

ドライブコントローラ113は、要求されたライトデータの揮発性メモリ111への書き込みを完了すると、ストレージコントローラ12に対してライト完了通知を返す(ステップ203)。   When the drive controller 113 completes the writing of the requested write data to the volatile memory 111, it returns a write completion notification to the storage controller 12 (step 203).

ストレージコントローラ12の検証部120は、ドライブコントローラ113からのライト完了通知に応じて、電源制御部13に対して記憶ドライブ11-0の主電源の遮断を要求する(ステップ204)。すると電源制御部13は、記憶ドライブ11-0の主電源を遮断する(ステップ205)。   In response to the write completion notification from the drive controller 113, the verification unit 120 of the storage controller 12 requests the power supply control unit 13 to shut off the main power supply of the storage drive 11-0 (step 204). Then, the power supply controller 13 shuts off the main power supply of the storage drive 11-0 (step 205).

記憶ドライブ11-0は、主電源の遮断を検出すると、補助電源115からの電力供給に切り替える(ステップ206)。このときドライブコントローラ113は、データ移動禁止モードを解除する。同時に電源遮断時データ移動部113aが起動される。すると電源遮断時データ移動部113aは、第1の実施形態と同様に、揮発性メモリ111に格納されているライトデータを、不揮発性メモリ112の本来書き込まれるべき領域に移動する(ステップ207)。以後、第1の実施形態と同様に、ステップ208乃至214が実行される。   When the storage drive 11-0 detects the interruption of the main power supply, it switches to the power supply from the auxiliary power supply 115 (step 206). At this time, the drive controller 113 cancels the data movement prohibition mode. At the same time, the data moving unit 113a is activated when the power is turned off. Then, similarly to the first embodiment, the power shut-off data moving unit 113a moves the write data stored in the volatile memory 111 to the area where the nonvolatile memory 112 should be originally written (step 207). Thereafter, similarly to the first embodiment, steps 208 to 214 are executed.

第2の実施形態によれば、記憶ドライブ11-0での電源遮断時データ移動動作の検証に必要なライト要求(ステップ201)に先行して、記憶ドライブ11-0がデータ移動禁止モードに設定される(ステップ302)。このデータ移動禁止モードは、電源遮断時データ移動動作の検証のために記憶ドライブ11-0の主電源が遮断されるまで設定される。このため、上記ライト要求時から記憶ドライブ11-0の主電源が遮断されるまでの間、ドライブコントローラ113の通常時データ移動部113bが動作するのが抑止される。よって、上記ライト要求に応じて揮発性メモリ111に書き込まれたライトデータ(テストデータ)が、記憶ドライブ11-0の主電源が遮断される前に不揮発性メモリ112に移動されること(いわゆるデステージング)が抑止される。以上は、記憶ドライブ11-1における電源遮断時データ移動動作を検証する場合にも同様に行われる。   According to the second embodiment, the storage drive 11-0 is set to the data movement prohibition mode prior to the write request (step 201) necessary for verifying the data movement operation at the time of power-off in the storage drive 11-0. (Step 302). This data movement prohibition mode is set until the main power supply of the storage drive 11-0 is cut off in order to verify the data movement operation when the power is cut off. Therefore, the operation of the normal time data moving unit 113b of the drive controller 113 is suppressed from the time when the write request is made until the main power supply of the storage drive 11-0 is cut off. Therefore, the write data (test data) written to the volatile memory 111 in response to the write request is moved to the nonvolatile memory 112 before the main power supply of the storage drive 11-0 is shut off (so-called data storage). Staging) is suppressed. The above is similarly performed when verifying the data movement operation at the time of power-off in the storage drive 11-1.

一方、第1の実施形態では、上記ライト要求時から記憶ドライブ11-0の主電源が遮断されるまでの間に通常時データ移動部113bが動作する可能性がある。通常時データ移動部113bが動作する場合、ライト要求に応じて揮発性メモリ111に書き込まれたライトデータ(テストデータ)が、上記主電源の遮断前に不揮発性メモリ112に移動される可能性がある。もし、主電源の遮断前にテストデータが不揮発性メモリ112に移動されたならば、電源遮断時データ移動部113aによる電源遮断時データ移動動作が正常に行われなくてもテストデータが消失することはない。この場合、検証部120は、電源遮断時データ移動動作が正常に行われていると確認してしまう。   On the other hand, in the first embodiment, there is a possibility that the normal time data moving unit 113b operates between the time when the write request is made and the time when the main power supply of the storage drive 11-0 is cut off. When the normal data moving unit 113b operates, there is a possibility that write data (test data) written in the volatile memory 111 in response to a write request is moved to the nonvolatile memory 112 before the main power supply is shut off. is there. If the test data is moved to the non-volatile memory 112 before the main power supply is cut off, the test data is lost even if the data movement operation at the time of power cut-off by the data move unit 113a at the time of power cut-off is not performed normally. There is no. In this case, the verification unit 120 confirms that the data movement operation is normally performed when the power is shut off.

つまり第1の実施形態では、ライト要求の実行後から主電源の遮断までの間に、当該ライト要求の実行により揮発性メモリ111に書き込まれたライトデータが不揮発性メモリ112に移動されているかを確認できない。このため第1の実施形態では、ライト要求の実行後から主電源の遮断までの間にライトデータが移動されていない場合には電源遮断時データ移動動作を正しく検証できるものの、移動されている場合には電源遮断時データ移動動作を正しく検証することは難しい。   In other words, in the first embodiment, whether or not the write data written to the volatile memory 111 by the execution of the write request is moved to the nonvolatile memory 112 between the execution of the write request and the cutoff of the main power supply. I can't confirm. For this reason, in the first embodiment, when the write data is not moved between the execution of the write request and the main power supply is cut off, the data movement operation at the time of power supply cutoff can be correctly verified, but the data is moved. Therefore, it is difficult to correctly verify the data movement operation when the power is turned off.

これに対して第2の実施形態では、ライト要求の実行後から主電源の遮断までの間に、当該ライト要求の実行により揮発性メモリ111に書き込まれたライトデータが不揮発性メモリ112に移動されるのが抑止される。つまり、ライト要求の実行後から主電源の遮断までの間、揮発性メモリ111から不揮発性メモリ112にデータが移動されないことが保証され、テストデータが不揮発性メモリ112に移動されることなく揮発性メモリ111内に保持される。このため、第2の実施形態では、常に電源遮断時データ移動動作を正しく検証できる。   On the other hand, in the second embodiment, the write data written in the volatile memory 111 by the execution of the write request is moved to the nonvolatile memory 112 between the execution of the write request and the cutoff of the main power supply. Is deterred. That is, it is guaranteed that data is not moved from the volatile memory 111 to the nonvolatile memory 112 from the execution of the write request until the main power supply is cut off, and the test data is volatile without being moved to the nonvolatile memory 112. It is held in the memory 111. For this reason, in the second embodiment, it is possible to always correctly verify the data movement operation at the time of power-off.

第1及び第2の実施形態では、補助電源115が正常な場合、検証部120からの主電源投入要求(ステップ209)に応じて電源制御部13が記憶ドライブ11-0の主電源を再投入する(ステップ210)時点まで、補助電源115から記憶ドライブ11-0に対して電力が十分に供給されている可能性がある。この場合、電源遮断時データ移動部113a自体の要因で電源遮断時データ移動動作が正常に行われなくても、揮発性メモリ111のデータは消失しないため、電源遮断時データ移動動作は正常であると見なされることになる。そこで、補助電源115の故障等に起因する電源遮断時データ移動動作の異常に加えて、電源遮断時データ移動部113a自体の要因による電源遮断時データ移動動作の異常も検出することが必要ならば、前述の所定時間として、補助電源115から供給される電力が減少して揮発性メモリ111のデータが消失するのに十分な時間を設定すればよい。   In the first and second embodiments, when the auxiliary power supply 115 is normal, the power supply control unit 13 turns on the main power supply of the storage drive 11-0 in response to the main power supply turn-on request from the verification unit 120 (step 209). There is a possibility that sufficient power is supplied from the auxiliary power supply 115 to the storage drive 11-0 until the time (step 210). In this case, even if the data transfer operation at the time of power shutoff is not normally performed due to the data transfer unit 113a at the time of power shutoff, the data in the volatile memory 111 is not lost, so the data move operation at the time of power shutoff is normal. Will be considered. Therefore, if it is necessary to detect an abnormality in the data movement operation at the time of power-off due to the factor of the data movement unit 113a at the time of power-off in addition to the abnormality in the data movement operation at the time of power-off due to the failure of the auxiliary power supply 115 As the above-mentioned predetermined time, a time sufficient for the power supplied from the auxiliary power supply 115 to decrease and the data in the volatile memory 111 to disappear may be set.

なお、上記第1及び第2の実施形態では、記憶ドライブ11-0及び11-1がSSDである場合を想定している。しかし、記憶ドライブ11-0及び11-1がハードディスクドライブ(HDD)であっても構わない。つまり、例えば記憶ドライブ11-0の不揮発性メモリ112に代えて、不揮発性記憶媒体としてHDDの磁気ディスクが用いられても構わない。この場合、揮発性メモリ111はHDDのキャッシュメモリとして、周知のライトバックモードで用いられるものとする。   In the first and second embodiments, it is assumed that the storage drives 11-0 and 11-1 are SSDs. However, the storage drives 11-0 and 11-1 may be hard disk drives (HDD). That is, for example, instead of the nonvolatile memory 112 of the storage drive 11-0, an HDD magnetic disk may be used as a nonvolatile storage medium. In this case, it is assumed that the volatile memory 111 is used as a cache memory of the HDD in a known write back mode.

また、上記第1及び第2の実施形態では、検証部120がストレージコントローラ12に備えられている。しかし、記憶ドライブ11-0のドライブコントローラ113に、検証部120と同様の検証部が備えられていても構わない。つまり、記憶ドライブ11-0のドライブコントローラ113に備えられた検証部が、ストレージコントローラ12から独立に電源遮断時データ移動部を検証してもよい。この場合、検証部は、揮発性メモリ111にテストデータを書き込み、テストデータの書き込み完了後に主電源を遮断させて、電源遮断時データ移動部113aによる電源遮断時データ移動動作を行わせるとよい。また検証部は、主電源の遮断から所定時間後に当該主電源を再投入させ、しかる後に不揮発性メモリ112からテストデータを読み出し、当該読み出されたテストデータに基づいて、電源遮断時データ移動動作を検証すればよい。   In the first and second embodiments, the verification unit 120 is provided in the storage controller 12. However, the drive controller 113 of the storage drive 11-0 may include a verification unit similar to the verification unit 120. That is, the verification unit provided in the drive controller 113 of the storage drive 11-0 may verify the data transfer unit at the time of power-off independently from the storage controller 12. In this case, the verification unit may write the test data to the volatile memory 111, shut off the main power supply after the completion of the writing of the test data, and perform the data movement operation at the time of power interruption by the data movement part 113a at the time of power interruption. In addition, the verification unit causes the main power supply to be turned on again after a predetermined time from the main power shut-off, and then reads the test data from the nonvolatile memory 112, and based on the read test data, the data moving operation at the time of power shut-off Can be verified.

以上説明した少なくとも1つの実施形態によれば、電源遮断時データ移動動作を予め検証できる、揮発性記憶媒体及び不揮発性記憶媒体を含む記憶ドライブを備えたストレージ装置、記憶ドライブ、及び記憶ドライブの電源遮断時データ移動動作を検証する方法を提供することができる。   According to at least one embodiment described above, a storage device including a storage drive including a volatile storage medium and a nonvolatile storage medium, a storage drive, and a power supply for the storage drive, which can verify in advance the data movement operation when the power is shut off It is possible to provide a method for verifying the data movement operation at the time of interruption.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although several embodiments of the present invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

10…ストレージ装置、11-0,11-1…記憶ドライブ、12…ストレージコントローラ、13…電源制御部、20…ホスト、111…揮発性メモリ(揮発性記憶媒体)、112…不揮発性メモリ(不揮発性記憶媒体)、113…ドライブコントローラ、113a…電源遮断時データ移動部、113b…通常時データ移動部、115…補助電源、120…検証部。   DESCRIPTION OF SYMBOLS 10 ... Storage apparatus, 11-0, 11-1 ... Storage drive, 12 ... Storage controller, 13 ... Power supply control part, 20 ... Host, 111 ... Volatile memory (volatile storage medium), 112 ... Nonvolatile memory (nonvolatile) 113) drive controller, 113a ... data transfer unit at power-off, 113b ... data transfer unit at normal time, 115 ... auxiliary power supply, 120 ... verification unit.

Claims (4)

主電源を制御する電源制御手段と、
ライト要求で指定されたライトデータを一時格納する揮発性記憶媒体と、
前記揮発性記憶媒体に格納されているデータを保存する不揮発性記憶媒体と、
前記主電源の遮断に応じて電力を供給する補助電源と、
前記揮発性記憶媒体に格納されているデータを前記主電源の遮断に応じて前記不揮発性記憶媒体に移動するための電源遮断時データ移動動作を実行する電源遮断時データ移動部と、
前記揮発性記憶媒体にデータを書き込み、前記データの書き込み完了後に前記電源制御手段により前記主電源を遮断させ、所定時間後に前記電源制御手段により前記主電源を再投入させ、その後に前記不揮発性記憶媒体から前記データを読み出し、当該読み出されたデータに基づいて、前記電源遮断時データ移動動作を検証する検証部と、
前記主電源が投入されている状態において、前記揮発性記憶媒体に格納されているデータを前記不揮発性記憶媒体に移動するための通常時データ移動動作を実行する通常時データ移動部とを具備し
前記検証部は、前記データの書き込みの前に、前記電源遮断時データ移動動作を検証することを前記通常時データ移動部に通知し、
前記通常時データ移動部は、前記電源遮断時データ移動動作の検証の通知に応じ、前記主電源が遮断されるまで、前記通常時データ移動動作を抑止する
トレージ装置。
Power control means for controlling the main power;
A volatile storage medium for temporarily storing the write data specified in the write request;
A non-volatile storage medium for storing data stored in the volatile storage medium;
An auxiliary power supply for supplying power in response to the shutoff of the main power supply;
A power shut-off data moving unit for performing a power shut-off data moving operation for moving data stored in the volatile storage medium to the non-volatile storage medium in response to the main power shut-off;
Write data to the volatile storage medium, shut down the main power supply by the power supply control means after completion of writing the data, re-turn on the main power supply by the power supply control means after a predetermined time, and then the nonvolatile storage A verification unit that reads the data from the medium and verifies the data movement operation at the time of power-off based on the read data;
A normal-time data moving unit that executes a normal-time data moving operation for moving data stored in the volatile storage medium to the non-volatile storage medium in a state where the main power is turned on. ,
The verification unit notifies the normal data movement unit to verify the data movement operation at the time of power-off before writing the data;
The normal data movement unit suppresses the normal data movement operation until the main power supply is cut off in response to the notification of the verification of the data movement operation at the time of power interruption.
Storage devices.
前記検証部は、前記ストレージ装置の立ち上げ時に起動される請求項1記載のストレージ装置。 The verification unit, the storage device according to claim 1 Symbol placement of the storage device is activated when starting. 記憶ドライブにおいて、
ライト要求で指定されたライトデータを一時格納する揮発性記憶媒体と、
前記揮発性記憶媒体に格納されているデータを保存する不揮発性記憶媒体と、
前記記憶ドライブの主電源の遮断に応じて前記記憶ドライブに電力を供給する補助電源と、
ドライブコントローラとを具備し、
前記ドライブコントローラは、
前記揮発性記憶媒体に格納されているデータを前記主電源の遮断に応じて前記不揮発性記憶媒体に移動するための電源遮断時データ移動動作を実行する電源遮断時データ移動部と、
記揮発性記憶媒体にテストデータを書き込み、前記テストデータの書き込み完了後に前記主電源を遮断させ、所定時間後に前記主電源を再投入させ、その後に前記不揮発性記憶媒体から前記テストデータを読み出し、当該読み出されたテストデータに基づいて、前記電源遮断時データ移動動作を検証する検証部と、
前記主電源が投入されている状態において、前記揮発性記憶媒体に格納されているデータを前記不揮発性記憶媒体に移動するための通常時データ移動動作を実行する通常時データ移動部とを具備し
前記ドライブコントローラは、前記テストデータの書き込みのためのライト要求に先行して前記記憶ドライブをデータ移動禁止モードに設定し、且つ前記主電源の遮断に応じて前記データ移動禁止モードを解除し、
前記通常時データ移動部は、前記データ移動禁止モードが設定されている期間、前記通常時データ移動動作を抑止する
記憶ドライブ。
In the storage drive,
A volatile storage medium for temporarily storing the write data specified in the write request;
A non-volatile storage medium for storing data stored in the volatile storage medium;
An auxiliary power supply that supplies power to the storage drive in response to a shutoff of the main power supply of the storage drive
A drive controller,
The drive controller
A power shut-off data moving unit for performing a power shut-off data moving operation for moving data stored in the volatile storage medium to the non-volatile storage medium in response to the main power shut-off ;
Before SL write test data to the volatile storage medium, wherein to cut off the main power supply after completion of the writing of the test data, to reconnect the said main power supply after a predetermined time, reading the test data from subsequent to said non-volatile storage medium A verification unit for verifying the data movement operation at power-off based on the read test data ;
A normal-time data moving unit that executes a normal-time data moving operation for moving data stored in the volatile storage medium to the non-volatile storage medium in a state where the main power is turned on. ,
The drive controller sets the storage drive in a data movement prohibition mode prior to a write request for writing the test data, and cancels the data movement prohibition mode in response to the main power being cut off,
The normal-time data movement unit is a storage drive that inhibits the normal-time data movement operation during a period in which the data movement prohibition mode is set .
記憶ドライブと、前記記憶ドライブの主電源を制御する電源制御手段と、前記記憶ドライブへのアクセスを制御するストレージコントローラとを具備し、前記記憶ドライブが、前記ストレージコントローラからのライト要求で指定されたライトデータを一時格納する揮発性記憶媒体と、前記揮発性記憶媒体に格納されているデータを保存する不揮発性記憶媒体と、前記主電源の遮断に応じて前記記憶ドライブに電力を供給する補助電源と、前記揮発性記憶媒体に格納されているデータを前記主電源の遮断に応じて前記不揮発性記憶媒体に移動するための電源遮断時データ移動動作、及び前記主電源が投入されている状態において、前記揮発性記憶媒体に格納されているデータを前記不揮発性記憶媒体に移動するための通常時データ移動動作を実行するドライブコントローラとを具備するストレージ装置において、電源遮断時データ移動動作を検証する方法であって、
前記ストレージコントローラの検証手段が、前記記憶ドライブの前記不揮発性記憶媒体へのテストデータの書き込みの前に、前記電源遮断時データ移動動作を検証することを前記記憶ドライブに通知し、
前記記憶ドライブの前記ドライブコントローラは、前記電源遮断時データ移動動作の検証の通知に応じ、前記主電源が遮断されるまで、前記通常時データ移動動作を抑止し、
前記電源遮断時データ移動動作の検証の通知後に、前記検証手段が前記記憶ドライブに前記テストデータの書き込みを要求し、
前記テストデータの書き込み完了後に、前記検証手段が前記電源制御手段により前記主電源を遮断させ、
所定時間後に、前記検証手段が前記電源制御手段により前記主電源を再投入させ、
その後に、前記検証手段が前記記憶ドライブから前記テストデータを読み出し、
前記読み出されたテストデータに基づいて、前記検証手段が前記記憶ドライブにおける前記電源遮断時データ移動動作を検証する
電源遮断時データ移動動作を検証する方法。
A storage drive; power control means for controlling a main power supply of the storage drive; and a storage controller for controlling access to the storage drive, wherein the storage drive is designated by a write request from the storage controller A volatile storage medium for temporarily storing write data, a non-volatile storage medium for storing data stored in the volatile storage medium, and an auxiliary power source for supplying power to the storage drive in response to the main power being cut off And a data movement operation at power-off for moving data stored in the volatile storage medium to the nonvolatile storage medium in response to the main power-off , and in a state where the main power is on. the normal data movement operation for moving the data stored in the volatile storage medium in the nonvolatile storage medium A storage apparatus comprising a drive controller for a row, a method of verifying a power-off time of data movement operations,
The storage controller verification means notifies the storage drive to verify the data transfer operation at the time of power-off before writing the test data to the nonvolatile storage medium of the storage drive,
The drive controller of the storage drive suppresses the normal data movement operation until the main power is cut off in response to the notification of the verification of the data movement operation at the time of power interruption.
Wherein after the notification of the validation of the power shutdown during the data movement operation, the verification means requests the writing of the test data to the storage drive,
After the completion of the writing of the test data, the verification means shuts off the main power supply by the power supply control means,
After a predetermined time, the verification means causes the power control means to turn on the main power again,
Thereafter, the verification means reads the test data from the storage drive,
A method in which the verification unit verifies the data movement operation at power-off in the storage drive based on the read test data.
JP2011157087A 2011-07-15 2011-07-15 Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive Active JP5426617B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011157087A JP5426617B2 (en) 2011-07-15 2011-07-15 Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011157087A JP5426617B2 (en) 2011-07-15 2011-07-15 Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive

Publications (2)

Publication Number Publication Date
JP2013025400A JP2013025400A (en) 2013-02-04
JP5426617B2 true JP5426617B2 (en) 2014-02-26

Family

ID=47783717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011157087A Active JP5426617B2 (en) 2011-07-15 2011-07-15 Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive

Country Status (1)

Country Link
JP (1) JP5426617B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6278618A (en) * 1985-10-02 1987-04-10 Hitachi Ltd Battery device
JPH0322063A (en) * 1989-06-19 1991-01-30 Pfu Ltd Diagnosing system for memory backup function
JPH04215156A (en) * 1990-12-14 1992-08-05 Fujitsu Ltd Automatic test method for restore and backup function
JPH08220198A (en) * 1995-02-13 1996-08-30 Nec Corp Battery backup memory unit and backup function testing method
US20020156983A1 (en) * 2001-04-19 2002-10-24 International Business Machines Corporation Method and apparatus for improving reliability of write back cache information
JP4501868B2 (en) * 2006-02-17 2010-07-14 村田機械株式会社 Memory system control method
JP5026102B2 (en) * 2007-02-07 2012-09-12 株式会社日立製作所 Storage control device and data management method

Also Published As

Publication number Publication date
JP2013025400A (en) 2013-02-04

Similar Documents

Publication Publication Date Title
US7818556B2 (en) Storage apparatus, control method, and control device which can be reliably started up when power is turned on even after there is an error during firmware update
US8943358B2 (en) Storage system, apparatus, and method for failure recovery during unsuccessful rebuild process
US8103825B2 (en) System and method for providing performance-enhanced rebuild of a solid-state drive (SSD) in a solid-state drive hard disk drive (SSD HDD) redundant array of inexpensive disks 1 (RAID 1) pair
JP4930555B2 (en) Control device, control method, and storage system
US20050229033A1 (en) Disk array controller and information processing apparatus
US20080126784A1 (en) Storage apparatus, control method, and control device
US20150378858A1 (en) Storage system and memory device fault recovery method
JP2012014415A (en) Information processing apparatus, raid controller card, and mirroring method
JP2007310974A (en) Storage device and controller
JP2007272496A (en) Storage device, active program exchange method for storage control firmware and program for storage control program active exchange
US10198198B2 (en) Storage device that stores setting values for operation thereof
JP2011028430A (en) Information processing apparatus, control method for information processing apparatus, and program
US20100115310A1 (en) Disk array apparatus
JP2014096072A (en) Disk array having mirror configuration and rebuild method of the same
JP2012063884A (en) Storage device, electronics and control method of storage device
JP4829370B1 (en) MEMORY CONTROL DEVICE, MEMORY DEVICE, AND STOP CONTROL METHOD
JP2009187450A (en) Disk array system, disk array control method, and disk array control program
CN103049407B (en) Date storage method, Apparatus and system
JP2009104369A (en) Disk sub-system
US9298635B2 (en) Storage device and rebuild process method for storage device
JP5181795B2 (en) RAID system and error sector repair method
JP5218147B2 (en) Storage control device, storage control method, and storage control program
JP5426617B2 (en) Storage device including storage drive including volatile storage medium and nonvolatile storage medium, storage drive, and method of verifying data movement operation at power-off of storage drive
JP2008059007A (en) Semiconductor storage device
JP2009176101A (en) Information processing apparatus and system, and method and program for managing storage area

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130927

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131128

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5426617

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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