JP2012083980A - Disk controller and write failure detection method of disk controller - Google Patents
Disk controller and write failure detection method of disk controller Download PDFInfo
- Publication number
- JP2012083980A JP2012083980A JP2010230336A JP2010230336A JP2012083980A JP 2012083980 A JP2012083980 A JP 2012083980A JP 2010230336 A JP2010230336 A JP 2010230336A JP 2010230336 A JP2010230336 A JP 2010230336A JP 2012083980 A JP2012083980 A JP 2012083980A
- Authority
- JP
- Japan
- Prior art keywords
- data
- area
- control unit
- hard disk
- failure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
本発明は、ディスク制御装置及びディスク制御装置の書き込み障害検出方法に関する。 The present invention relates to a disk controller and a write failure detection method for the disk controller.
ディスク制御装置におけるデータの読み出し障害を検出する技術が知られている。この技術は、例えば、パトロールリードと称され、該当領域を通常のデータアクセスとは独立して読み出すことにより、事前に読み出し障害を検出している。 A technique for detecting a data read failure in a disk controller is known. This technique is called patrol read, for example, and a read failure is detected in advance by reading the relevant area independently of normal data access.
また、ワークエリアに生成した検査ファイルを、検査を実施する記憶媒体の所定の領域に書き込み、その検査ファイルを当該領域から読み出し、読み出した検査ファイルとワークエリアに生成した検査ファイルとを比較することにより、記憶媒体の異常の有無を検出する技術が知られている。(例えば、特許文献1参照。)。 In addition, the inspection file generated in the work area is written in a predetermined area of the storage medium to be inspected, the inspection file is read from the area, and the read inspection file is compared with the inspection file generated in the work area. Thus, a technique for detecting the presence or absence of an abnormality in a storage medium is known. (For example, refer to Patent Document 1).
既述の技術では、データの読み出し障害をパトロールリードにより検出することが可能であるが、既に有効なデータが書き込まれている領域への書き込み障害を事前に検出することができない。この点は、特許文献1に記載の技術を用いても同様であり、既に有効なデータが書き込まれている領域については記録媒体の異常の有無を検出することができない。
In the technique described above, a data read failure can be detected by patrol read, but a write failure to an area where valid data has already been written cannot be detected in advance. This point is the same even when the technique described in
本発明は、上記事情に鑑みてなされたものであり、その目的は、有効なデータが書き込まれている領域であっても、書き込み障害の事前検出を可能にするディスク制御装置及びそのディスク制御装置の障害検出方法を提供することにある。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a disk control device that enables prior detection of a write failure even in an area where valid data is written, and the disk control device. It is to provide a failure detection method.
本発明は、データをディスク上の領域に記憶する記憶部と、データを一時的に保存する保存部と、前記記憶部の所定の領域に記憶されたデータを読み出し、前記保存部に一時保存し、当該一時保存したデータを前記所定の領域に書き込み、前記データの書き込み障害の有無を検出する制御部と、を備えるディスク制御装置である。 The present invention provides a storage unit that stores data in an area on a disk, a storage unit that temporarily stores data, and reads data stored in a predetermined area of the storage unit and temporarily stores the data in the storage unit. And a control unit for writing the temporarily stored data in the predetermined area and detecting the presence or absence of a write failure of the data.
本発明によると、有効なデータが書き込まれている領域であっても、書き込み障害の事前検出を可能にするディスク制御装置及びそのディスク制御装置の障害検出方法を提供できる。 According to the present invention, it is possible to provide a disk control device and a failure detection method for the disk control device that enable prior detection of a write failure even in an area where valid data is written.
以下、本発明の実施の形態について図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明を適用したハードディスク制御装置1の構成を示す図である。同図に示すように、ハードディスク制御装置1は、ハードディスク制御部10、インタフェース制御部20、キャッシュメモリ30、及びハードディスクドライブ40(HDD)を有している。また、ハードディスク制御部10は、キャッシュメモリ30、及びインタフェース制御部20と接続されており、インタフェース制御部20は更に、ハードディスクドライブ40と接続されている。
FIG. 1 is a diagram showing a configuration of a hard
ハードディスク制御部10は、ハードディスクドライブ40の所定の領域に記憶されたデータを読み出し、キャッシュメモリ30に一時保存し、当該一時保存したデータを再度既述の所定の領域に書き込み、当該データの書き込み障害の有無を検出する。
The hard
より詳細には、ハードディスク制御部10は、読み出し制御部11、及び書き込み制御部12を有しており、これら読み出し制御部11、及び書き込み制御部12によって、データの書き込み障害を検出する処理を実行する。
More specifically, the hard
読み出し制御部11は、インタフェース制御部20を介して、ハードディスクドライブ40内のディスクの所定の領域に記憶されているデータを読み出し、キャッシュメモリ30に一時保存する。
The
書き込み制御部12は、キャッシュメモリ30に一時保存したデータを、インタフェース制御部20を介してハードディスクドライブ40内の当該データを読み出した所定の領域に書き込む。また、書き込み制御部12は、データを書き込む場合、障害の発生の有無を検出する。障害の発生を検出した場合、書き込み制御部12は、書き込み障害が発生しない他の領域にそのデータを書き込む。なお、他の領域は、例えば、システム毎に予め設定されており、より具体的には、ハードディスクドライブ40内部における当該所定の領域以外の領域、又は、上位装置に接続されている他のハードディスクドライブにおける任意の領域である。
The
インタフェース制御部20は、ハードディスク制御部10の制御の下、ハードディスクドライブ40とハードディスク制御部10との間のデータの授受を制御する。
The
キャッシュメモリ30は、データを一時保存するメモリである。キャッシュメモリ30は、ハードディスク制御部10によりデータが一時保存され、また、一時保存したデータが読み出される。
The
次に、ハードディスク制御部10が実行する処理について、図2を参照しながら説明する。この図2を参照して説明する処理は、所定のタイミングで、或いは、定期的に実行される。
Next, processing executed by the hard
読み出し制御部11は、インタフェース制御部20を介して、ハードディスクドライブ40から所定のテスト領域のデータを読み出し(S101)、読み出したデータをキャッシュメモリ30に一時保存する(S102)。なお、テスト領域は、読み出し制御部11により設定される。
The
次に、書き込み制御部12は、キャッシュメモリ30に一時保存したデータを用いて、テスト領域にデータを上書きする(S103)。
Next, the
このデータを上書きするときに、書き込み制御部12は、データ書き込み時の障害発生の有無を検出したか否かを判定する(S104)。
When overwriting this data, the
書き込み制御部12がデータ書き込み時に障害の発生を検出しなかった場合(S104:NO)、書き込み制御部12は、テスト領域におけるデータ書き込み時に障害が発生しないことを確認できる。
If the
一方、書き込み制御部12がデータ書き込み時に障害の発生を検出した場合(S104:NO)、書き込み制御部12は、インタフェース制御部20を介して、例えば、ハードディスクドライブ40内のテスト領域以外の書き込み可能な他の領域へデータを書き込む。
On the other hand, when the
この実施の形態によると、ハードディスク制御装置1は、既に有効なデータが書き込まれている領域においても、既に書き込まれているデータを上書きすることができ、データ書き込み時に障害が発生するか否かを検出することができる。したがって、ハードディスク制御装置1は、データ書き込み時の障害発生の有無を事前に検出することができ、書き込まれているデータの信頼性を向上させることができる。
According to this embodiment, the hard
また、ハードディスク制御装置1は、書き込み時に障害が発生した場合は、テスト領域以外の書き込み可能な領域にデータを書き込むことができる。このデータの書き込みは、例えば、ハードディスクドライブ40内部における他の領域、又は上位装置に接続された他のハードディスクドライブおける所定の領域に行われる。このようにデータ書き込み時に書き込み障害が発生することが検出された場合は、テスト領域以外の代替領域へデータを移動することができるため、ハードディスク制御装置1は、データ書き込み時に書き込み障害の発生によって生じる処理性能の低下を回避することができる。
Further, the hard
このようにテスト領域以外の代替領域へデータを移動する処理を、所定のタイミング、或いは、定期的に実行する結果、ハードディスク制御装置1は、データ書き込み時に障害が発生する可能性がある領域を事前に検出し、書き込み障害が発生する領域へデータを書き込む事態を回避することが可能になる。
As a result of executing the process of moving the data to the alternative area other than the test area at a predetermined timing or periodically, the hard
更に、読み出し制御部11がハードディスクドライブ40のテスト領域から読み出したデータと初期フォーマットパターンとが同一であった場合、書き込み制御部12が初期フォーマットパターンを当該テスト領域へ書き込む処理を行うことで、読み出したデータをキャッシュメモリ30に一時保存する処理を行わなくても、ハードディスク制御装置1は、既述の効果と同様の効果を奏することができる。
Further, when the data read from the test area of the
なお、本発明は上述の実施の形態に限定されるものではなく、その実施に際して様々な変形が可能である。 In addition, this invention is not limited to the above-mentioned embodiment, A various deformation | transformation is possible in the case of the implementation.
上記実施の形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。 A part or all of the above embodiment can be described as in the following supplementary notes, but is not limited thereto.
(付記1)
データをディスク上の領域に記憶する記憶部と、
データを一時的に保存する保存部と、
前記記憶部の所定の領域に記憶されたデータを読み出し、前記保存部に一時保存し、当該一時保存したデータを前記所定の領域に書き込み、前記データの書き込み障害の有無を検出する制御部と、
を備えることを特徴とするディスク制御装置。
(Appendix 1)
A storage unit for storing data in an area on the disk;
A storage unit for temporarily storing data;
A controller that reads out data stored in a predetermined area of the storage unit, temporarily stores the data in the storage unit, writes the temporarily stored data in the predetermined region, and detects the presence or absence of a writing failure of the data;
A disk control device comprising:
(付記2)
前記制御部は、前記データの書き込み障害を検出した場合、前記所定の領域以外の領域に前記データを書き込む、ことを特徴とする付記1に記載のディスク制御装置。
(Appendix 2)
The disk control device according to
(付記3)
前記制御部は、前記所定の領域から読み出したデータが初期フォーマットデータであった場合、当該データの前記保存部への一時処理を行わず、初期フォーマットデータを前記所定の領域へ書き込む、ことを特徴とする付記1又は2記載のディスク制御装置。
(Appendix 3)
When the data read from the predetermined area is initial format data, the control unit writes the initial format data to the predetermined area without performing temporary processing of the data to the storage unit. The disk controller according to
(付記4)
ディスクの所定の領域に記憶されたデータを読み出すステップと、
読み出したデータを一時保存するステップと、
当該一時保存したデータを前記所定の領域に書き込むステップと、
前記データの書き込み障害の有無を検出するステップと、
を有することを特徴とするディスク制御装置の障害検出方法。
(Appendix 4)
Reading data stored in a predetermined area of the disk;
Temporarily storing the read data; and
Writing the temporarily stored data in the predetermined area;
Detecting the presence or absence of a data write failure;
A failure detection method for a disk controller characterized by comprising:
本発明は、データの書き込み障害を検出するディスク制御装置及びディスク制御装置の障害検出方法に広く適用可能である。 The present invention can be widely applied to a disk control device for detecting a data write failure and a failure detection method for the disk control device.
1・・・ハードディスク制御装置
10・・・ハードディスク制御部
11・・・読み出し制御部
12・・・書き込み制御部
20・・・インタフェース制御部
30・・・キャッシュメモリ
40・・・ハードディスクドライブ(HDD)
DESCRIPTION OF
Claims (4)
データを一時的に保存する保存部と、
前記記憶部の所定の領域に記憶されたデータを読み出し、前記保存部に一時保存し、当該一時保存したデータを前記所定の領域に書き込み、前記データの書き込み障害の有無を検出する制御部と、
を備えることを特徴とするディスク制御装置。 A storage unit for storing data in an area on the disk;
A storage unit for temporarily storing data;
A controller that reads out data stored in a predetermined area of the storage unit, temporarily stores the data in the storage unit, writes the temporarily stored data in the predetermined region, and detects the presence or absence of a writing failure of the data;
A disk control device comprising:
読み出したデータを一時保存するステップと、
当該一時保存したデータを前記所定の領域に書き込むステップと、
前記データの書き込み障害の有無を検出するステップと、
を有することを特徴とするディスク制御装置の障害検出方法。 Reading data stored in a predetermined area of the disk;
Temporarily storing the read data; and
Writing the temporarily stored data in the predetermined area;
Detecting the presence or absence of a data write failure;
A failure detection method for a disk controller characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010230336A JP2012083980A (en) | 2010-10-13 | 2010-10-13 | Disk controller and write failure detection method of disk controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010230336A JP2012083980A (en) | 2010-10-13 | 2010-10-13 | Disk controller and write failure detection method of disk controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012083980A true JP2012083980A (en) | 2012-04-26 |
Family
ID=46242772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010230336A Pending JP2012083980A (en) | 2010-10-13 | 2010-10-13 | Disk controller and write failure detection method of disk controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012083980A (en) |
-
2010
- 2010-10-13 JP JP2010230336A patent/JP2012083980A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8711500B1 (en) | Disk drive to enable defect margining | |
US7859784B2 (en) | Data storage device and adjacent track rewrite processing method | |
JP2006269006A (en) | Storage device, control method and program | |
JP2007317282A (en) | Storage device, self diagnosis control device, and self diagnosis method | |
JP2004206795A (en) | Disk storage device and light control method | |
US8516341B2 (en) | Method, apparatus, and storage medium for processing write defect in data storage apparatus | |
JP5181795B2 (en) | RAID system and error sector repair method | |
KR20110039416A (en) | Data storage method, apparatus and system for interrupted write recovery | |
JP2012083980A (en) | Disk controller and write failure detection method of disk controller | |
US20070101189A1 (en) | Storage apparatus, and control method and program | |
JP2008165695A (en) | Data recording device and control method thereof | |
JP2003228925A (en) | Write data guaranteeing method for magnetic disk device | |
JP2007148536A (en) | Ram-diagnosing device and method | |
US20230306990A1 (en) | Disk device and control method | |
JP4336981B2 (en) | Backup system and method | |
JP2006276965A (en) | Defective block detecting method and defective block detecting device | |
US10460760B2 (en) | Shingled magnetic recording storage system | |
JP2008234358A (en) | Storage device, information processor, and unauthorized writing detection method | |
JP2006085797A (en) | Optical disk device and alternation processing method of optical disk device | |
JP5293542B2 (en) | Storage device and storage device data erasing method | |
JP2013130995A (en) | Ati preventing function for magnetic disk device with mirroring configuration | |
JP2008310846A (en) | Precheck device, method and program for hard disk drive failure of general-purpose server | |
JP2010157278A (en) | Disk storage device and method for processing defect | |
JP2021092877A (en) | Server system, detection method and program | |
JP2010176752A (en) | Lifetime detection method for storage device |