JP2012083980A - Disk controller and write failure detection method of disk controller - Google Patents

Disk controller and write failure detection method of disk controller Download PDF

Info

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
Application number
JP2010230336A
Other languages
Japanese (ja)
Inventor
Toshikazu Takai
利一 高井
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 Corp
Original Assignee
NEC 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 Corp filed Critical NEC Corp
Priority to JP2010230336A priority Critical patent/JP2012083980A/en
Publication of JP2012083980A publication Critical patent/JP2012083980A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable the pre-detection of a write failure even in an area in which valid data is written.SOLUTION: A disk controller 1 comprises: a hard disk drive 40 for storing data in an area on a disk; a cache memory 30 for temporarily storing the data; and a hard disk control part 10 for reading data stored in a predetermined area of the hard disk drive, temporarily storing it in the cache memory, writing the temporarily stored data in the predetermined area, and detecting the presence/absence of a data write failure.

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).

特開2008−152609号公報JP 2008-152609 A

既述の技術では、データの読み出し障害をパトロールリードにより検出することが可能であるが、既に有効なデータが書き込まれている領域への書き込み障害を事前に検出することができない。この点は、特許文献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 Patent Document 1 is used, and it is impossible to detect whether there is an abnormality in the recording medium in an area where valid data has already been written.

本発明は、上記事情に鑑みてなされたものであり、その目的は、有効なデータが書き込まれている領域であっても、書き込み障害の事前検出を可能にするディスク制御装置及びそのディスク制御装置の障害検出方法を提供することにある。   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.

本発明の実施の形態に係る書き込み障害検出装置の構成を示す図である。It is a figure which shows the structure of the write failure detection apparatus which concerns on embodiment of this invention. 同実施の形態に係る障害検出処理を示すフローチャートである。It is a flowchart which shows the failure detection process which concerns on the same embodiment.

以下、本発明の実施の形態について図面を参照しながら説明する。   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 disk control device 1 to which the present invention is applied. As shown in the figure, the hard disk control device 1 has a hard disk control unit 10, an interface control unit 20, a cache memory 30, and a hard disk drive 40 (HDD). The hard disk control unit 10 is connected to the cache memory 30 and the interface control unit 20, and the interface control unit 20 is further connected to the hard disk drive 40.

ハードディスク制御部10は、ハードディスクドライブ40の所定の領域に記憶されたデータを読み出し、キャッシュメモリ30に一時保存し、当該一時保存したデータを再度既述の所定の領域に書き込み、当該データの書き込み障害の有無を検出する。   The hard disk control unit 10 reads data stored in a predetermined area of the hard disk drive 40, temporarily stores it in the cache memory 30, writes the temporarily stored data again into the predetermined area, and writes the data to the failure. The presence or absence of is detected.

より詳細には、ハードディスク制御部10は、読み出し制御部11、及び書き込み制御部12を有しており、これら読み出し制御部11、及び書き込み制御部12によって、データの書き込み障害を検出する処理を実行する。   More specifically, the hard disk control unit 10 includes a read control unit 11 and a write control unit 12, and the read control unit 11 and the write control unit 12 execute processing for detecting a data write failure. To do.

読み出し制御部11は、インタフェース制御部20を介して、ハードディスクドライブ40内のディスクの所定の領域に記憶されているデータを読み出し、キャッシュメモリ30に一時保存する。   The read control unit 11 reads data stored in a predetermined area of the disk in the hard disk drive 40 via the interface control unit 20 and temporarily stores it in the cache memory 30.

書き込み制御部12は、キャッシュメモリ30に一時保存したデータを、インタフェース制御部20を介してハードディスクドライブ40内の当該データを読み出した所定の領域に書き込む。また、書き込み制御部12は、データを書き込む場合、障害の発生の有無を検出する。障害の発生を検出した場合、書き込み制御部12は、書き込み障害が発生しない他の領域にそのデータを書き込む。なお、他の領域は、例えば、システム毎に予め設定されており、より具体的には、ハードディスクドライブ40内部における当該所定の領域以外の領域、又は、上位装置に接続されている他のハードディスクドライブにおける任意の領域である。   The write control unit 12 writes the data temporarily stored in the cache memory 30 to a predetermined area in the hard disk drive 40 where the data is read via the interface control unit 20. In addition, when writing data, the write control unit 12 detects whether or not a failure has occurred. When the occurrence of a failure is detected, the write control unit 12 writes the data in another area where no write failure occurs. The other area is set in advance for each system, for example, more specifically, an area other than the predetermined area in the hard disk drive 40 or another hard disk drive connected to the host device. Is an arbitrary area.

インタフェース制御部20は、ハードディスク制御部10の制御の下、ハードディスクドライブ40とハードディスク制御部10との間のデータの授受を制御する。   The interface control unit 20 controls data exchange between the hard disk drive 40 and the hard disk control unit 10 under the control of the hard disk control unit 10.

キャッシュメモリ30は、データを一時保存するメモリである。キャッシュメモリ30は、ハードディスク制御部10によりデータが一時保存され、また、一時保存したデータが読み出される。   The cache memory 30 is a memory that temporarily stores data. In the cache memory 30, data is temporarily stored by the hard disk control unit 10, and the temporarily stored data is read out.

次に、ハードディスク制御部10が実行する処理について、図2を参照しながら説明する。この図2を参照して説明する処理は、所定のタイミングで、或いは、定期的に実行される。   Next, processing executed by the hard disk control unit 10 will be described with reference to FIG. The process described with reference to FIG. 2 is executed at a predetermined timing or periodically.

読み出し制御部11は、インタフェース制御部20を介して、ハードディスクドライブ40から所定のテスト領域のデータを読み出し(S101)、読み出したデータをキャッシュメモリ30に一時保存する(S102)。なお、テスト領域は、読み出し制御部11により設定される。   The read control unit 11 reads data in a predetermined test area from the hard disk drive 40 via the interface control unit 20 (S101), and temporarily stores the read data in the cache memory 30 (S102). The test area is set by the read control unit 11.

次に、書き込み制御部12は、キャッシュメモリ30に一時保存したデータを用いて、テスト領域にデータを上書きする(S103)。   Next, the write control unit 12 overwrites the data in the test area using the data temporarily stored in the cache memory 30 (S103).

このデータを上書きするときに、書き込み制御部12は、データ書き込み時の障害発生の有無を検出したか否かを判定する(S104)。   When overwriting this data, the write control unit 12 determines whether or not a failure has occurred during data writing (S104).

書き込み制御部12がデータ書き込み時に障害の発生を検出しなかった場合(S104:NO)、書き込み制御部12は、テスト領域におけるデータ書き込み時に障害が発生しないことを確認できる。   If the write control unit 12 does not detect the occurrence of a failure when writing data (S104: NO), the write control unit 12 can confirm that no failure occurs when writing data in the test area.

一方、書き込み制御部12がデータ書き込み時に障害の発生を検出した場合(S104:NO)、書き込み制御部12は、インタフェース制御部20を介して、例えば、ハードディスクドライブ40内のテスト領域以外の書き込み可能な他の領域へデータを書き込む。   On the other hand, when the write control unit 12 detects the occurrence of a failure during data writing (S104: NO), the write control unit 12 can write data other than the test area in the hard disk drive 40, for example, via the interface control unit 20. Write data to other areas.

この実施の形態によると、ハードディスク制御装置1は、既に有効なデータが書き込まれている領域においても、既に書き込まれているデータを上書きすることができ、データ書き込み時に障害が発生するか否かを検出することができる。したがって、ハードディスク制御装置1は、データ書き込み時の障害発生の有無を事前に検出することができ、書き込まれているデータの信頼性を向上させることができる。   According to this embodiment, the hard disk control device 1 can overwrite already written data even in an area where valid data is already written, and whether or not a failure occurs during data writing. Can be detected. Therefore, the hard disk control device 1 can detect in advance whether or not a failure has occurred during data writing, and can improve the reliability of the written data.

また、ハードディスク制御装置1は、書き込み時に障害が発生した場合は、テスト領域以外の書き込み可能な領域にデータを書き込むことができる。このデータの書き込みは、例えば、ハードディスクドライブ40内部における他の領域、又は上位装置に接続された他のハードディスクドライブおける所定の領域に行われる。このようにデータ書き込み時に書き込み障害が発生することが検出された場合は、テスト領域以外の代替領域へデータを移動することができるため、ハードディスク制御装置1は、データ書き込み時に書き込み障害の発生によって生じる処理性能の低下を回避することができる。   Further, the hard disk control device 1 can write data in a writable area other than the test area when a failure occurs during writing. This data writing is performed, for example, in another area in the hard disk drive 40 or a predetermined area in another hard disk drive connected to the host device. In this way, when it is detected that a write failure occurs during data writing, the data can be moved to an alternative area other than the test area, so the hard disk control device 1 is caused by the occurrence of a write failure during data writing. A decrease in processing performance can be avoided.

このようにテスト領域以外の代替領域へデータを移動する処理を、所定のタイミング、或いは、定期的に実行する結果、ハードディスク制御装置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 disk control device 1 predetermines an area where a failure may occur when writing data. It is possible to avoid a situation where data is detected and data is written to an area where a write failure occurs.

更に、読み出し制御部11がハードディスクドライブ40のテスト領域から読み出したデータと初期フォーマットパターンとが同一であった場合、書き込み制御部12が初期フォーマットパターンを当該テスト領域へ書き込む処理を行うことで、読み出したデータをキャッシュメモリ30に一時保存する処理を行わなくても、ハードディスク制御装置1は、既述の効果と同様の効果を奏することができる。   Further, when the data read from the test area of the hard disk drive 40 by the read control unit 11 is the same as the initial format pattern, the write control unit 12 performs a process of writing the initial format pattern to the test area, thereby reading Even if the process of temporarily storing the data in the cache memory 30 is not performed, the hard disk control device 1 can achieve the same effects as those described above.

なお、本発明は上述の実施の形態に限定されるものではなく、その実施に際して様々な変形が可能である。   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 appendix 1, wherein the control unit writes the data in an area other than the predetermined area when the data writing failure is detected.

(付記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 Supplementary Note 1 or 2,

(付記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 SYMBOLS 1 ... Hard disk control apparatus 10 ... Hard disk control part 11 ... Read control part 12 ... Write control part 20 ... Interface control part 30 ... Cache memory 40 ... Hard disk drive (HDD)

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:
前記制御部は、前記データの書き込み障害を検出した場合、前記所定の領域以外の領域に前記データを書き込む、ことを特徴とする請求項1記載のディスク制御装置。   2. The disk control apparatus according to claim 1, wherein the control unit writes the data in an area other than the predetermined area when the data writing failure is detected. 前記制御部は、前記所定の領域から読み出したデータが初期フォーマットデータであった場合、当該データの前記保存部への一時処理を行わず、初期フォーマットデータを前記所定の領域へ書き込む、ことを特徴とする請求項1又は2記載のディスク制御装置。   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 control device according to claim 1 or 2. ディスクの所定の領域に記憶されたデータを読み出すステップと、
読み出したデータを一時保存するステップと、
当該一時保存したデータを前記所定の領域に書き込むステップと、
前記データの書き込み障害の有無を検出するステップと、
を有することを特徴とするディスク制御装置の障害検出方法。
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:
JP2010230336A 2010-10-13 2010-10-13 Disk controller and write failure detection method of disk controller Pending JP2012083980A (en)

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)

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