JP2017147014A - Recorded data recording device and recorded data recovering method - Google Patents

Recorded data recording device and recorded data recovering method Download PDF

Info

Publication number
JP2017147014A
JP2017147014A JP2016030390A JP2016030390A JP2017147014A JP 2017147014 A JP2017147014 A JP 2017147014A JP 2016030390 A JP2016030390 A JP 2016030390A JP 2016030390 A JP2016030390 A JP 2016030390A JP 2017147014 A JP2017147014 A JP 2017147014A
Authority
JP
Japan
Prior art keywords
data
hdd
recording
recorded
deterioration
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
JP2016030390A
Other languages
Japanese (ja)
Inventor
和久 續
Kazuhisa Tsuzuki
和久 續
貴行 原口
Takayuki Haraguchi
貴行 原口
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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Priority to JP2016030390A priority Critical patent/JP2017147014A/en
Publication of JP2017147014A publication Critical patent/JP2017147014A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To record data from an HDD onto another HDD when degradation in the HDD has been detected, without causing any burdens to the degraded HDD, recover recorded data efficiently, and improve the ease of use by users.SOLUTION: A recording unit holds a plurality of recording mediums. A recording processing unit divides recording target data and records the pieces of division data into the recording mediums, respectively. A degradation detection unit detects degradation in at least one of the recording mediums. A recovery processing unit generates the same recovery data as the data recorded in at least one of the recording mediums which has been detected to be degraded, using the pieces of division data respectively recorded in the recording mediums other than at least one recording medium with the detected degradation, and copies the recovery data to a new recording medium replacing the degraded recording medium.SELECTED DRAWING: Figure 4

Description

本発明は、録画対象となる元データを分散して複数のディスク装置に分散記録し、その分散記録されたデータのいずれかを復旧する録画データ記録装置及び録画データ復旧方法に関する。   The present invention relates to a recorded data recording apparatus and a recorded data recovery method for distributing original data to be recorded in a distributed manner to a plurality of disk devices and restoring one of the distributedly recorded data.

昨今、例えば防犯等のセキュリティを目的として、多数の監視カメラが屋内、屋外に限らず、様々な場所に設定されている。このような複数の監視カメラの撮像により得られた大容量の映像データを記録する記録装置として、RAID(Redundant Arrays of Inexpensive Disks)が知られている。RAIDは、複数台のディスク装置(例えばハードディスク)を組み合わせることによって、仮想的な1台のディスク装置として運用して冗長性を向上させる技術であり、主に信頼性・可用性の向上を目的として用いられる。   Recently, for the purpose of security such as crime prevention, a large number of surveillance cameras are set not only indoors and outdoors but in various places. RAID (Redundant Arrays of Inexpensive Disks) is known as a recording apparatus that records a large volume of video data obtained by imaging with a plurality of surveillance cameras. RAID is a technique for improving redundancy by operating as a single virtual disk device by combining multiple disk devices (for example, hard disks), and is mainly used for the purpose of improving reliability and availability. It is done.

大容量の録画データを記録する装置に関する先行技術として、例えば特許文献1に示す録画データ記録管理システムが知られている。特許文献1に示す録画データ記録管理システムでは、ローカル管理システムと補助記録装置とがネットワークを介して接続されている。ローカル管理システムは、監視カメラから取得された録画データを記録管理するローカル記録装置を備える。ローカル記録装置が備えるHDD(Hard Disk Drive)に異常が発生した場合、HDDが復旧するまでの間において取得される録画データは、一時待避データとして補助記録装置に送信され、補助記録装置にて一時的に記録される。   As a prior art relating to an apparatus for recording a large amount of recorded data, for example, a recorded data recording management system disclosed in Patent Document 1 is known. In the recorded data recording management system shown in Patent Document 1, a local management system and an auxiliary recording device are connected via a network. The local management system includes a local recording device that records and manages recording data acquired from the monitoring camera. When an abnormality occurs in an HDD (Hard Disk Drive) included in the local recording device, the recording data acquired until the HDD is restored is transmitted to the auxiliary recording device as temporary save data, and is temporarily stored in the auxiliary recording device. Recorded.

特開2011−114809号公報JP 2011-114809 A

HDDに異常が発生した場合に、そのHDDに対して新たに記録されるべき録画データが他の装置(具体的には、補助記録装置)に一時的に待避されて記録されることは、特許文献1において開示されている。しかしながら、特許文献1の構成では、その異常が発生するまでに、異常が発生したHDD自体に記録されている記録済みのデータを復旧することについては考慮がされていない。このため、異常が発生したHDDに記録されている記録済みのデータを他の装置(例えば、補助記録装置)に記録することはできないので、そのHDDがダウンしてしまってアクセス不能になると、その記録済みのデータを復旧することはできず、ユーザの使い勝手が良くなかった。   When an abnormality occurs in an HDD, the recording data to be newly recorded in the HDD is temporarily saved and recorded in another device (specifically, an auxiliary recording device). It is disclosed in Document 1. However, in the configuration of Patent Document 1, no consideration is given to restoring recorded data recorded in the HDD itself in which the abnormality has occurred before the abnormality occurs. For this reason, since the recorded data recorded in the HDD in which the abnormality has occurred cannot be recorded in another device (for example, an auxiliary recording device), if the HDD goes down and becomes inaccessible, The recorded data could not be recovered and the user convenience was not good.

本発明は、上述した従来の課題を解決するために、HDDの劣化が検知されると、その劣化が検知されたHDDに対して負担をかけることなく、その劣化が検知されるまでにHDDに記録されていた記録済みのデータを他のHDDに記録してその記録済みのデータの復旧を効率的に行い、ユーザの使い勝手を向上する録画データ記録装置及び録画データ復旧方法を提供することを目的とする。   In order to solve the above-described conventional problems, the present invention eliminates the burden on the HDD in which the deterioration is detected and detects the deterioration until the deterioration is detected. An object of the present invention is to provide a recorded data recording apparatus and a recorded data recovery method for recording recorded data in another HDD, efficiently recovering the recorded data, and improving user convenience. And

本発明は、複数の記録媒体を保持する記録部と、録画対象となるデータを分割し、前記分割により得た個々の分割データを前記複数の記録媒体にそれぞれ記録する録画処理部と、前記複数の記録媒体のうち少なくとも1つの記録媒体の劣化を検知する劣化検知部と、前記複数の記録媒体のうち前記劣化が検知された前記少なくとも1つの記録媒体を除く他の複数の記録媒体にそれぞれ記録されている個々の分割データを用いて、前記劣化が検知された前記少なくとも1つの記録媒体に記録されていた記録済みのデータと同一の復旧データを生成して、前記劣化が検知された前記少なくとも1つの記録媒体と交換される新たな記録媒体に対し、前記復旧データをコピーする復旧処理部と、を備える、録画データ記録装置を提供する。   The present invention includes a recording unit that holds a plurality of recording media, a recording processing unit that divides data to be recorded, and records each divided data obtained by the division on the plurality of recording media, and the plurality A deterioration detection unit that detects deterioration of at least one of the recording media, and a plurality of recording media other than the at least one recording medium in which the deterioration is detected among the plurality of recording media. Using the individual divided data, the recovery data identical to the recorded data recorded on the at least one recording medium in which the deterioration is detected is generated, and the at least the deterioration is detected. There is provided a recorded data recording apparatus comprising: a recovery processing unit that copies the recovery data to a new recording medium exchanged with one recording medium.

また、本発明は、複数の記録媒体を保持する録画データ記録装置における録画データ復旧方法であって、録画対象となるデータを分割し、前記分割により得た個々の分割データを前記複数の記録媒体にそれぞれ記録し、前記複数の記録媒体のうち少なくとも1つの記録媒体の劣化を検知し、前記複数の記録媒体のうち前記劣化が検知された前記少なくとも1つの記録媒体を除く他の複数の記録媒体にそれぞれ記録されている個々の分割データを用いて、前記劣化が検知された前記少なくとも1つの記録媒体に記録されていた記録済みのデータと同一の復旧データを生成し、前記劣化が検知された前記少なくとも1つの記録媒体と交換される新たな記録媒体に対し、生成された前記復旧データをコピーする、録画データ復旧方法を提供する。   The present invention is also a recorded data recovery method in a recorded data recording apparatus that holds a plurality of recording media, wherein the data to be recorded is divided, and the individual divided data obtained by the division is divided into the plurality of recording media. A plurality of other recording media excluding the at least one recording medium from which the deterioration has been detected among the plurality of recording media. Using the individual divided data recorded in each, the recovery data identical to the recorded data recorded on the at least one recording medium in which the deterioration has been detected is generated, and the deterioration has been detected. There is provided a recorded data recovery method for copying the generated recovery data to a new recording medium exchanged with the at least one recording medium.

本発明によれば、HDDの劣化が検知されると、その劣化が検知されたHDDに対して負担をかけることなく、その劣化が検知されるまでにHDDに記録されていた記録済みのデータを他のHDDに記録してその記録済みのデータの復旧を効率的に行うことができ、ユーザの使い勝手を向上できる。   According to the present invention, when HDD degradation is detected, recorded data that has been recorded on the HDD before the degradation is detected without imposing a burden on the HDD in which the degradation is detected. Data recorded on other HDDs and the recorded data can be efficiently restored, and user convenience can be improved.

本実施形態の録画データ記録装置(レコーダ17)を含む録画データ管理システムのシステム構成の一例を詳細に示すシステム構成図System configuration diagram showing in detail an example of a system configuration of a recording data management system including a recording data recording apparatus (recorder 17) of the present embodiment 録画データ記録装置(レコーダ17)に記録される元データとHDD毎の分割データとの関係を模式的に示す説明図Explanatory drawing which shows typically the relationship between the original data recorded on a recording data recording device (recorder 17), and the division | segmentation data for every HDD. 本実施形態の録画データ記録装置(レコーダ17)をHDD7台のRAID5で構成した場合の分割データの記録状況の一例を示す説明図Explanatory drawing which shows an example of the recording condition of the division | segmentation data at the time of comprising the recording data recording device (recorder 17) of this embodiment by RAID5 of seven HDDs. HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第1状況を示す説明図Explanatory drawing which shows the 1st condition of the recovery copy process to HDD # 8 in the video recording data recording apparatus (RAID5) of this embodiment when deterioration of HDD # 6 is detected. HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第2状況を示す説明図Explanatory drawing which shows the 2nd condition of the recovery copy process to HDD # 8 in the video recording data recording apparatus (RAID5) of this embodiment when degradation of HDD # 6 is detected. HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第3状況を示す説明図Explanatory drawing which shows the 3rd condition of the recovery copy process to HDD # 8 in the video recording data recording device (RAID5) of this embodiment when degradation of HDD # 6 is detected. HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第1状況を示す説明図Explanatory drawing which shows the 1st condition where video data recording processing is performed during restoration copy processing to HDD # 8 in the video recording data recording apparatus (RAID 5) of this embodiment when degradation of HDD # 6 is detected. HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第2状況を示す説明図Explanatory drawing which shows the 2nd condition where the video data recording process is performed during the recovery copy process to HDD # 8 in the video recording data recording apparatus (RAID5) of this embodiment when the deterioration of HDD # 6 is detected. HDD#6がダウンした後の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図Explanatory diagram showing a situation in which video data recording processing is being performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment after HDD # 6 is down HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図Explanatory drawing which shows the condition where video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of this embodiment when degradation of HDD # 6 is detected HDD#6,#7の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図An explanation showing a situation in which video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of the present embodiment when degradation of HDDs # 6 and # 7 is detected. Figure HDD#6の劣化が検知され、かつHDD#7がダウンした後の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第3状況を示す説明図Video image recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of the present embodiment after the deterioration of HDD # 6 is detected and HDD # 7 is down. Explanatory drawing showing the third situation 本実施形態の録画データ記録装置における、HDDの劣化検知から復旧コピー処理の開始までの動作手順の一例を説明するフローチャートThe flowchart explaining an example of the operation | movement procedure from the deterioration detection of HDD to the start of a restoration copy process in the video recording data recording apparatus of this embodiment. 本実施形態の録画データ記録装置における、復旧コピー処理の開始から復旧コピー処理の終了までの動作手順の一例を説明するフローチャートThe flowchart explaining an example of the operation | movement procedure from the start of a recovery copy process to the completion | finish of a recovery copy process in the video recording data recording apparatus of this embodiment. 本実施形態の録画データ記録装置における、復旧コピー処理中に映像データを書き込む(録画)処理を行う動作手順の一例を説明するフローチャートThe flowchart explaining an example of the operation | movement procedure which performs the video data writing (video recording) process during the recovery copy process in the video recording data recording apparatus of this embodiment.

以下、適宜図面を参照しながら、本発明に係る録画データ記録装置及び録画データ復旧方法を具体的に開示した実施形態(以下、「本実施形態」という)を詳細に説明する。但し、必要以上に詳細な説明は省略する場合がある。例えば、既によく知られた事項の詳細説明や実質的に同一の構成に対する重複説明を省略する場合がある。これは、以下の説明が不必要に冗長になるのを避け、当業者の理解を容易にするためである。なお、添付図面及び以下の説明は、当業者が本開示を十分に理解するために提供されるのであって、これらにより特許請求の範囲に記載の主題を限定することは意図されていない。   Hereinafter, an embodiment (hereinafter referred to as “this embodiment”) that specifically discloses a recorded data recording apparatus and a recorded data recovery method according to the present invention will be described in detail with reference to the drawings as appropriate. However, more detailed description than necessary may be omitted. For example, detailed descriptions of already well-known matters and repeated descriptions for substantially the same configuration may be omitted. This is to avoid the following description from becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. The accompanying drawings and the following description are provided to enable those skilled in the art to fully understand the present disclosure, and are not intended to limit the subject matter described in the claims.

図1は、本実施形態の録画データ記録装置(レコーダ17)を含む録画データ管理システム10のシステム構成の一例を詳細に示すシステム構成図である。以下の本実施形態では、図1に示すように、本発明に係る録画データ記録装置の一例として、例えば所定の広範な撮像エリア(例えば宅内、事業所内)を撮像する複数の監視カメラ14A,14B,14C,…,14Nから得られた映像データを記録(録画)するレコーダ17を例示して説明する。また、撮像エリアは、宅内や事業所内のような屋内に限らず、屋外でも構わない。   FIG. 1 is a system configuration diagram showing in detail an example of a system configuration of a recording data management system 10 including a recording data recording apparatus (recorder 17) of the present embodiment. In the following embodiment, as shown in FIG. 1, as an example of a recording data recording apparatus according to the present invention, for example, a plurality of monitoring cameras 14A and 14B that capture an image of a predetermined wide imaging area (for example, in a house or office). , 14C,..., 14N, the recorder 17 that records (records) video data will be described as an example. Further, the imaging area is not limited to being indoors, such as in a house or business office, and may be outdoors.

図1に示す録画データ管理システム10は、例えば4台の監視カメラ14A,14B,14C,14D、集線装置としてのハブ13、レコーダ17、モニタ19、及び外部I/F(Interface)23を含む構成である。ハブ13とレコーダ17とは、ネットワーク15を介して接続されている。ネットワーク15は、有線ネットワーク(例えばLAN(Local Area Network))でも無線ネットワーク(例えば無線LAN、wifi(登録商標))でもよい。レコーダ17は、監視カメラ14A〜14Dによりそれぞれ撮像されて得られた映像データを記録する録画データ記録装置の一例である。   A recorded data management system 10 shown in FIG. 1 includes, for example, four monitoring cameras 14A, 14B, 14C, and 14D, a hub 13 as a line concentrator, a recorder 17, a monitor 19, and an external I / F (Interface) 23. It is. The hub 13 and the recorder 17 are connected via a network 15. The network 15 may be a wired network (for example, a LAN (Local Area Network)) or a wireless network (for example, a wireless LAN, wifi (registered trademark)). The recorder 17 is an example of a recorded data recording apparatus that records video data obtained by imaging with the monitoring cameras 14A to 14D.

録画データ管理システム10では、ネットワーク15に接続されたハブ13に、4台の監視カメラ14A〜14Dが接続される。また、レコーダ17は、ネットワーク15に接続される。なお、監視カメラ14の台数は一例であり、4台以外でもよい。   In the recorded data management system 10, four monitoring cameras 14 </ b> A to 14 </ b> D are connected to the hub 13 connected to the network 15. The recorder 17 is connected to the network 15. Note that the number of surveillance cameras 14 is an example, and may be other than four.

監視カメラ14A〜14Dは、撮像により得た各映像データをそれぞれ符号化し、符号化された映像データを、ハブ13及びネットワーク15を介して、ストリーミング方式によりレコーダ17に送信する。なお、図1では監視カメラ14A〜14Dは同一の方向を撮像するように図示されているが、監視カメラ14A〜14Dはそれぞれ異なる方向を撮像してもよいし、一部の監視カメラ(例えば監視カメラ14A,14B)が同一の方向を撮像し、他の監視カメラ(例えば監視カメラ14C,14D)は他の方向を撮像してもよい。   The surveillance cameras 14 </ b> A to 14 </ b> D each encode each video data obtained by imaging, and transmit the encoded video data to the recorder 17 via the hub 13 and the network 15 by a streaming method. Although the monitoring cameras 14A to 14D are illustrated in FIG. 1 so as to capture the same direction, the monitoring cameras 14A to 14D may capture different directions, and some monitoring cameras (for example, monitoring cameras) The cameras 14A and 14B) may capture the same direction, and other surveillance cameras (for example, the surveillance cameras 14C and 14D) may capture the other direction.

レコーダ17は、制御部31、メモリ32、外部通知部33、電源部34、HDDスロット35、ネットワーク部37、及びHDD42を含む構成である。本実施形態のレコーダ17のHDD42は、例えばRAID5を用いて構成されている。なお、本実施形態のレコーダ17のHDD42は、RAID6を用いて構成されても構わない。以下、RAID5を用いて構成されているとして説明するが、必要に応じて、RAID6を用いた例についても説明する。   The recorder 17 includes a control unit 31, a memory 32, an external notification unit 33, a power supply unit 34, an HDD slot 35, a network unit 37, and an HDD 42. The HDD 42 of the recorder 17 of this embodiment is configured using, for example, RAID5. Note that the HDD 42 of the recorder 17 of the present embodiment may be configured using RAID6. In the following description, it is assumed that the system is configured using RAID 5, but an example using RAID 6 is also described as necessary.

レコーダ17は、例えば1つ以上のHDDが交換可能に接続され、監視カメラ14A〜14Dから送信された映像データ(以下、「元データ」ともいう)を、HDDの個数に応じて分割することで分割データを生成し、個々の分割データを順次、HDD42(つまり、HDD42A,42B,42C,…,42N)に録画(記録)できる。HDDは、記録媒体の一例である。   For example, one or more HDDs are interchangeably connected, and the recorder 17 divides video data (hereinafter also referred to as “original data”) transmitted from the monitoring cameras 14 </ b> A to 14 </ b> D according to the number of HDDs. Divided data can be generated, and each divided data can be recorded (recorded) in the HDD 42 (that is, HDDs 42A, 42B, 42C,..., 42N) sequentially. The HDD is an example of a recording medium.

制御部31は、例えばCPU(Central Processing Unit)、MPU(Micro Processing Unit)又はDSP(Digital Signal Processor)を用いて構成され、各種制御(例えば監視カメラ14A〜14Dにおける録音、録画の動作、動作開始、動作終了に関する制御)、判定、設定を行う。   The control unit 31 is configured using, for example, a central processing unit (CPU), a micro processing unit (MPU), or a digital signal processor (DSP), and performs various controls (for example, recording and recording operations in the monitoring cameras 14A to 14D, and operation start). , Control related to operation end), determination and setting.

例えば録画処理部の一例としての制御部31は、制御部31自身に接続されているHDD42の個数に応じて、録画対象となる元データを分割して分割データを生成し、HDDスロット35A〜35C,…,35Nを介して分割データをHDD42A〜42C,42Nに記録する。   For example, the control unit 31 as an example of the recording processing unit generates divided data by dividing the original data to be recorded according to the number of HDDs 42 connected to the control unit 31 itself, and generates HDD slots 35A to 35C. ,..., 35N, and the divided data is recorded in the HDDs 42A to 42C and 42N.

また、劣化検知部の一例としての制御部31は、複数のHDD42A〜42C,…,42Nとの間で、各HDDのS.M.A.R.T.(Self-Monitoring, Analysis and Reporting Technology)情報と言われるHDDの障害又は故障に関する診断情報を繰り返して取得することで、複数のHDD42A〜42C,…,42Nのうち少なくとも1つのHDDの性能又は動作に関する劣化を検知する。S.M.A.R.T.情報には、例えばHDDからデータを読み込むときに発生したエラーの割合を示すRaw Read Error Rateが含まれる。制御部31は、HDDから得たS.M.A.R.T.情報を参照してレート(Raw Read Error Rate)が予め決められた閾値より低いと、そのHDD内の磁気ディスク又は磁気ヘッドに異常があるとして、そのHDDの劣化を検知することができる。   In addition, the control unit 31 as an example of the deterioration detection unit includes the S.D. of each HDD among the plurality of HDDs 42A to 42C,. M.M. A. R. T. T. (Self-Monitoring, Analysis and Reporting Technology) Information regarding the performance or operation of at least one of the plurality of HDDs 42A to 42C,. Detect deterioration. S. M.M. A. R. T. T. The information includes, for example, Raw Read Error Rate indicating the rate of errors that occurred when reading data from the HDD. The control unit 31 obtains the S.D. M.M. A. R. T. T. If the rate (Raw Read Error Rate) is lower than a predetermined threshold with reference to the information, it is possible to detect the deterioration of the HDD because there is an abnormality in the magnetic disk or magnetic head in the HDD.

また、復旧処理部の一例としての制御部31は、複数のHDD42A〜42C,…,42Nのうち劣化が検知された少なくとも1つのHDD(例えばHDD42A)を除く他の複数のHDD(例えばHDD42B,42C,…,42N)にそれぞれ記録されている個々の分割データを用いて、劣化が検知された少なくとも1つのHDD(例えばHDD42A)に記録されていた記録済みのデータ(つまり、分割データ)と同一の復旧データを生成する。さらに、制御部31は、劣化が検知された少なくとも1つのHDD(例えばHDD42A)と交換される新たなHDDに対し、復旧データをコピーする。このコピーに関する動作の詳細については、図4を参照して説明する。   Further, the control unit 31 as an example of the recovery processing unit includes a plurality of other HDDs (for example, HDDs 42B and 42C) excluding at least one HDD (for example, the HDD 42A) in which deterioration is detected among the plurality of HDDs 42A to 42C,. ,..., 42N) using the respective divided data recorded in each of them, the same as the recorded data (that is, the divided data) recorded in at least one HDD (for example, HDD 42A) in which the deterioration is detected. Generate recovery data. Furthermore, the control unit 31 copies the recovery data to a new HDD that is replaced with at least one HDD (for example, HDD 42A) in which deterioration is detected. Details of the operation relating to this copy will be described with reference to FIG.

メモリ32は、例えば各種データ(例えば、監視カメラ14A〜14Dにおける録音、録画の動作、動作開始、動作終了に関する情報や設定値)、プログラムを記憶する。   The memory 32 stores, for example, various data (for example, information and setting values related to recording and recording operations, operation start and operation end in the monitoring cameras 14A to 14D), and programs.

外部通知部33は、例えばモニタ19又は外部I/F23に接続され、録画データ管理システム10のユーザに通知される所定情報を出力する。外部通知部33は、例えば表示部の一例としてのモニタ19に画像出力させ、スピーカ(不図示)により音声出力させ、又は通信部(不図示)により他の通信装置へ送信させることにより、所定情報(例えば警告情報)を外部に通知する。外部通知部33は、モニタ19や外部I/F23との間で、有線通信してもよいし、無線通信してもよい。外部通知部33は、例えば制御部31により1つのHDD(例えばHDD42A)の劣化が検知された場合に、検知結果を制御部31から取得すると、HDD(例えばHDD42A)の劣化が検知された旨のメッセージをモニタ19に表示することでユーザに通知してもよい。   The external notification unit 33 is connected to the monitor 19 or the external I / F 23, for example, and outputs predetermined information notified to the user of the recording data management system 10. The external notification unit 33 outputs predetermined images by causing the monitor 19 as an example of a display unit to output an image, outputting sound by a speaker (not shown), or transmitting to another communication device by a communication unit (not shown). (For example, warning information) is notified to the outside. The external notification unit 33 may perform wired communication or wireless communication with the monitor 19 or the external I / F 23. For example, when the control unit 31 detects deterioration of one HDD (for example, HDD 42A), the external notification unit 33 obtains a detection result from the control unit 31, and indicates that the deterioration of the HDD (for example, HDD 42A) has been detected. You may notify a user by displaying a message on the monitor 19.

電源部34は、例えば商用電源又は二次電池から電力を取得し、レコーダ17内の各部へ電力を供給する。   The power supply unit 34 acquires power from, for example, a commercial power supply or a secondary battery, and supplies the power to each unit in the recorder 17.

外部I/F23は、ユーザによって設定され、メモリ32に記憶される各種の設定値を入力する。外部I/F23は、例えばキーボード、タッチパネル、マイクロホンを含む。   The external I / F 23 inputs various setting values set by the user and stored in the memory 32. The external I / F 23 includes, for example, a keyboard, a touch panel, and a microphone.

HDDスロット35(HDDスロット35A〜35N)は、それぞれHDD42(HDD42A〜42C,…,42N)の接続端子が挿抜自在に装着される接続端子を有し、HDD42A〜42C,…,42Nを制御部31に接続する。従って、制御部31は、HDDスロット35(HDDスロット35A〜35C,…,35N)を介して、HDDの挿抜を容易に検知することができる。   The HDD slots 35 (HDD slots 35A to 35N) have connection terminals into which the connection terminals of the HDDs 42 (HDDs 42A to 42C,..., 42N) can be inserted and removed, and the HDDs 42A to 42C,. Connect to. Therefore, the control unit 31 can easily detect the insertion / removal of the HDD via the HDD slot 35 (HDD slots 35A to 35C,..., 35N).

ネットワーク部37は、レコーダ17の外部のネットワーク15に接続され、監視カメラ14A〜14Dからの映像を受信して入力し、制御部31に出力する。   The network unit 37 is connected to the network 15 outside the recorder 17, receives and inputs video from the monitoring cameras 14 </ b> A to 14 </ b> D, and outputs the video to the control unit 31.

記録媒体としてのHDD42(HDD42A〜42C,…,42N)は、例えば初期時点において、所定の記録容量(例えば2TB(テラバイト))を有する。HDDは、複数(例えば7個又は8個)用意され、全体として記録映像保持期間(例えば2年〜3年程度)以上の映像データを記録及び保持可能である。記録映像保持期間の初期時点は、例えばHDDが袋に封入され、開封される前の時点である。各HDD42(HDD42A〜42C,…,42N)は、対応するHDDスロット35(HDDスロット35A〜35C,…,35N)に搭載され、さらに、監視カメラ14A〜14Dからの映像データを順次記録する。また、HDD42は、レコーダ17の記録部を構成する。   The HDD 42 (HDD 42A to 42C,..., 42N) as a recording medium has a predetermined recording capacity (for example, 2 TB (terabyte)) at an initial time point, for example. A plurality of HDDs (e.g., 7 or 8) are prepared, and can record and hold video data for a recording video holding period (e.g., about 2 to 3 years) or more as a whole. The initial time point of the recorded video holding period is, for example, a time point before the HDD is sealed in the bag and opened. Each HDD 42 (HDD 42A to 42C,..., 42N) is mounted in a corresponding HDD slot 35 (HDD slot 35A to 35C,..., 35N), and further records video data from the monitoring cameras 14A to 14D sequentially. The HDD 42 constitutes a recording unit of the recorder 17.

図2は、録画データ記録装置(レコーダ17)に記録される元データとHDD毎の分割データとの関係を模式的に示す説明図である。本実施形態のレコーダ17のHDD42がRAID5を用いて構成され、かつHDDが7台設けられる場合、制御部31は、書き込み対象(言い換えると、録画対象)となる元データを分割し、分割データ1a,1b,1c,1d,1e,1f及びパリティ情報1pを生成する。なお、パリティ情報1pは、制御部31が分割データを生成する際に、公知技術の計算処理によって導出される。つまり、制御部31は、HDDの接続数(つまり、7)に対し、1個のパリティ情報1pと6個の分割データ1a,1b,1c,1d,1e,1fを生成する。なお、本実施形態において、パリティ情報1pも分割データの一例として考えてもよい。   FIG. 2 is an explanatory diagram schematically showing the relationship between the original data recorded in the recording data recording device (recorder 17) and the divided data for each HDD. When the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 5 and seven HDDs are provided, the control unit 31 divides the original data to be written (in other words, the recording target) and divides the data 1a. , 1b, 1c, 1d, 1e, 1f and parity information 1p. Note that the parity information 1p is derived by calculation processing of a known technique when the control unit 31 generates divided data. That is, the control unit 31 generates one piece of parity information 1p and six pieces of divided data 1a, 1b, 1c, 1d, 1e, and 1f for the number of connected HDDs (that is, 7). In the present embodiment, the parity information 1p may also be considered as an example of divided data.

図3は、本実施形態の録画データ記録装置(レコーダ17)をHDD7台のRAID5で構成した場合の分割データの記録状況の一例を示す説明図である。図3〜図12では、7台又は8台のHDDを識別するために、それぞれのHDDは、HDD#1、HDD#2、HDD#3、HDD#4、HDD#5、HDD#6、HDD#7、HDD#8のように示されている。また、図3では、HDDの上部がHDDのセクタの先頭であり、HDDの下部がHDDのセクタの終端である。   FIG. 3 is an explanatory diagram showing an example of a recording state of divided data when the recorded data recording apparatus (recorder 17) of this embodiment is configured with RAID 5 of seven HDDs. 3 to 12, in order to identify 7 or 8 HDDs, the HDDs are HDD # 1, HDD # 2, HDD # 3, HDD # 4, HDD # 5, HDD # 6, HDD. It is shown as # 7, HDD # 8. In FIG. 3, the upper part of the HDD is the head of the HDD sector, and the lower part of the HDD is the end of the HDD sector.

制御部31は、図2を参照して説明したように、1個のパリティ情報1pと6個の分割データ1a,1b,1c,1d,1e,1fを7台のHDD#1,#2,#3,#4,#5,#6,#7にそれぞれ分散して記録する。つまり、図3の例では、制御部31は、分割データ1aをHDD#1に記録し、分割データ1bをHDD#2に記録し、分割データ1cをHDD#3に記録し、分割データ1dをHDD#4に記録し、分割データ1eをHDD#5に記録し、分割データ1fをHDD#6に記録し、パリティ情報1pをHDD#7に記録する。分割データ2a以降についても同様であるため、説明を省略する。図3では、HDD先頭のセクタからHDD終端のセクタまで、分割データやパリティ情報が分散して記録されている。   As described with reference to FIG. 2, the control unit 31 converts one piece of parity information 1p and six pieces of divided data 1a, 1b, 1c, 1d, 1e, 1f into seven HDDs # 1, # 2, It is distributed and recorded in # 3, # 4, # 5, # 6, and # 7. That is, in the example of FIG. 3, the control unit 31 records the divided data 1a on the HDD # 1, records the divided data 1b on the HDD # 2, records the divided data 1c on the HDD # 3, and stores the divided data 1d. The data is recorded in HDD # 4, the divided data 1e is recorded in HDD # 5, the divided data 1f is recorded in HDD # 6, and the parity information 1p is recorded in HDD # 7. Since the same applies to the divided data 2a and thereafter, the description thereof is omitted. In FIG. 3, divided data and parity information are distributed and recorded from the head sector of the HDD to the sector at the end of the HDD.

本実施形態のレコーダ17のHDD42がRAID5を用いて構成され、かつHDDが7台設けられる場合、7台のHDDのうち1台のHDDが故障(ダウン)して制御部31がアクセス不能になった場合でも、複数の分割データ1a〜1fに対応するように生成されたパリティ情報1pが1つ存在するので、制御部31は、そのダウンしたHDDに記録されていた記録済みのデータ(つまり、分割データ)を復旧して復元することができる。例えばHDD#6がダウンしてしまった場合、制御部31は分割データ1fを読み出すことができなくなるが、RAID5の既存技術により、他の分割データ1a,1b,1c,1d,1e及びパリティ情報1pを用いて、分割データ1fを生成することができる。同様に、制御部31は、他の5個の分割データ及び1個のパリティ情報を用いることで、HDD#6に記録されていた他の分割データについても復元することができる。   When the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 5 and seven HDDs are provided, one of the seven HDDs fails (down) and the control unit 31 becomes inaccessible. Even in this case, since there is one parity information 1p generated so as to correspond to the plurality of divided data 1a to 1f, the control unit 31 has recorded data (that is, recorded in the down HDD (that is, Can be recovered and restored. For example, when HDD # 6 goes down, the control unit 31 cannot read the divided data 1f, but other divided data 1a, 1b, 1c, 1d, 1e and parity information 1p can be obtained by the existing technology of RAID5. Can be used to generate the divided data 1f. Similarly, the control unit 31 can restore other divided data recorded in the HDD # 6 by using the other five pieces of divided data and one piece of parity information.

RAID5により構成されたHDD#1〜#7には、図1に示す監視カメラ14A〜14Dの撮像により得られた映像データ等の大容量のデータが記録されるので、1つのHDD(例えばHDD#6)がダウンしてしまった場合でも、そのHDD#6に記録されていた記録済みのデータを復元することは可能である。なお、RAID6により構成されていた場合には、多くて2つのHDD(例えばHDD#6,#7)までがダウンしてしまった場合でも、それらのHDD#6,#7に記録されていた記録済みのデータを復元することは可能である。   Since HDDs # 1 to # 7 configured by RAID 5 store a large amount of data such as video data obtained by imaging by the monitoring cameras 14A to 14D shown in FIG. 1, one HDD (for example, HDD #) is recorded. Even if 6) goes down, it is possible to restore the recorded data recorded in the HDD # 6. In the case of being configured with RAID 6, even if at most two HDDs (for example, HDD # 6 and # 7) are down, the records recorded in those HDDs # 6 and # 7 are recorded. It is possible to restore already used data.

しかしながら、その復元のためには、早ければ1週間程度で終わるが、記録状況によっては2〜3か月かかることもあり得る。データ復元に長時間を要すると、ダウンしたHDD#6に記録されていた記録済みのデータの復元(復旧)中に、他のHDDが故障してしまう可能性がある。つまり、例えば本実施形態のレコーダ17のHDD42がRAID5を用いて構成されていた場合には、2台以上のHDDが故障してしまうと、ダウンした各HDDに記録されていた記録済みのデータの復元ができなくなり、元データの復元が不可となる。   However, it takes about one week for restoration, but it may take two to three months depending on the recording situation. If a long time is required for data restoration, another HDD may break down during restoration (restoration) of recorded data recorded in the down HDD # 6. In other words, for example, when the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 5, if two or more HDDs fail, the recorded data recorded in each down HDD is stored. Restoration becomes impossible and restoration of original data becomes impossible.

このため、HDD#6がダウンするまでの間にダウン(故障)の予兆(つまり、動作や性能の劣化)が検知されたら、その検知時点以降は、できるだけHDD#6がダウンしないように(言い換えると、HDD#6に余計な処理負荷がかからないように)、HDD#6に記録されていた記録済みのデータを復元することが求められる。   For this reason, if a sign of a down (failure) (that is, deterioration in operation or performance) is detected before the HDD # 6 is down, the HDD # 6 will not be down as much as possible after the detection time (in other words, in other words). Therefore, it is required to restore the recorded data recorded in the HDD # 6 so that an extra processing load is not applied to the HDD # 6.

本実施形態のレコーダ17のHDD42はRAID5を用いて構成されているので、各HDD42(つまり、図3のHDD#1〜#7)では、それぞれの内部の磁気ヘッドは、同様に動作を行い、同じ磁性体(プラッタ)の位置(セクタ)にデータを書き込んだり読み出したりする。従って、例えばHDD#6が劣化している場合、HDD#6内の磁気ヘッドの移動が他のHDD内の磁気ヘッドに比べて遅い。例えば10秒間に2回ほど磁気ヘッドの遅れを制御部31が検知した場合には、制御部31は、HDD#6が劣化していると検知する。なお、10秒間に2回というのはあくまでも一例であって、ユーザに応じて任意に決められても構わない。   Since the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 5, in each HDD 42 (that is, HDDs # 1 to # 7 in FIG. 3), the internal magnetic heads perform the same operation, Data is written to or read from the position (sector) of the same magnetic material (platter). Therefore, for example, when HDD # 6 is deteriorated, the movement of the magnetic head in HDD # 6 is slower than the magnetic heads in other HDDs. For example, when the control unit 31 detects a delay of the magnetic head about twice in 10 seconds, the control unit 31 detects that the HDD # 6 has deteriorated. Note that twice in 10 seconds is merely an example, and may be arbitrarily determined according to the user.

図4は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第1状況を示す説明図である。図5は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第2状況を示す説明図である。図6は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理の第3状況を示す説明図である。   FIG. 4 is an explanatory diagram showing a first situation of the recovery copy process to the HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment when the deterioration of the HDD # 6 is detected. FIG. 5 is an explanatory diagram showing a second situation of the recovery copy process to the HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment when the deterioration of the HDD # 6 is detected. FIG. 6 is an explanatory diagram showing a third situation of the recovery copy process to the HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment when the deterioration of the HDD # 6 is detected.

図4以降の説明において、あるHDD(例えばHDD#6)に動作又は性能の劣化が制御部31により検知された場合に、その劣化が検知されるまでにHDD(例えばHDD#6)に記録されていた記録済みのデータ(具体的には、分割データ又はパリティ情報)と同一のデータを生成し、その生成されたデータを、劣化が検知されたHDD(例えばHDD#6)に代わって新たに交換されるHDD(例えばHDD#8)にコピーする処理を、「復旧コピー処理」という。復旧コピー処理は制御部31により実行される。   In the description of FIG. 4 and subsequent figures, when a deterioration in operation or performance in a certain HDD (for example, HDD # 6) is detected by the control unit 31, it is recorded in the HDD (for example, HDD # 6) until the deterioration is detected. The same data as the recorded data (specifically, divided data or parity information) that has been recorded is generated, and the generated data is newly replaced with the HDD (for example, HDD # 6) in which the deterioration is detected. The process of copying to the replaced HDD (for example, HDD # 8) is called “recovery copy process”. The recovery copy process is executed by the control unit 31.

図4〜図6では、HDD#1〜#7のHDD先頭からHDD終端において、元データが分割されて得られた分割データやパリティ情報が分散して記憶されている。使用年数等によってHDD#6において劣化が検知されると、HDD#6が新たなHDD#8に交換される。   4 to 6, the divided data and the parity information obtained by dividing the original data are distributed and stored from the head of the HDD # 1 to # 7 to the end of the HDD. When deterioration is detected in HDD # 6 due to the years of use, etc., HDD # 6 is replaced with a new HDD # 8.

ここで、図4を参照して制御部31が行う復旧コピー処理の詳細について説明する。制御部31は、HDD#6の劣化を検知すると、HDD先頭からHDD終端に向かって、それぞれのHDDのセクタ毎に、劣化が検知されたHDD#6を除く他のHDD#1〜#5,#7に記録されていた記録済みのデータ(つまり、分割データ1a〜1e、パリティ情報1p)を読み出して、RAID5における既存のデータ復旧技術により、HDD#6に記録されていた記録済みのデータ(つまり、分割データ1f)と同一のデータ(つまり、分割データ1f)を生成する。さらに、制御部31は、生成した分割データ1fをHDD#8にコピーする。この生成されたデータは、復旧データと呼ぶこともできる。   Here, the details of the recovery copy process performed by the control unit 31 will be described with reference to FIG. When the control unit 31 detects the deterioration of the HDD # 6, the HDDs # 1 to # 5 other than the HDD # 6 other than the detected HDD # 6 are detected for each sector of each HDD from the head of the HDD toward the end of the HDD. The recorded data (that is, the divided data 1a to 1e and the parity information 1p) recorded in # 7 is read, and the recorded data (recorded in HDD # 6 is recorded by the existing data recovery technology in RAID5). That is, the same data (that is, the divided data 1f) as the divided data 1f) is generated. Further, the control unit 31 copies the generated divided data 1f to the HDD # 8. This generated data can also be called recovery data.

なお、図4以降では、xxxRは、それぞれのHDD内の磁気ヘッドの読み出し位置を示している。具体的には、1aR,1bR,1cR,1dR,1eR,1pRは、HDD#1,#2,#3,#4,#5,#7のそれぞれの磁気ヘッドが分割データ1a,1b,1c,1d,1e,1pを読み出していることを示す。また、図4以降では、xxxWは、それぞれのHDD内の磁気ヘッドの書き込み位置を示している。具体的には、図4では、HDD#8の磁気ヘッドは、第1番目のセクタに分割データ1fを書き込んでいる。   In FIG. 4 and subsequent figures, xxxR indicates the read position of the magnetic head in each HDD. Specifically, 1aR, 1bR, 1cR, 1dR, 1eR, and 1pR are divided into divided data 1a, 1b, 1c, and HDD # 1, # 2, # 3, # 4, # 5, and # 7, respectively. It shows that 1d, 1e, and 1p are being read out. In FIG. 4 and subsequent figures, xxxW indicates the write position of the magnetic head in each HDD. Specifically, in FIG. 4, the magnetic head of HDD # 8 writes the divided data 1f in the first sector.

図5に示すように、制御部31は、HDD#1〜#5,#7の第1番目のセクタに対する復旧コピー処理を終えると、次にそれぞれのHDD#1〜#5,#7の磁気ヘッドを第2番目のセクタに移動させ、同様にして第2番目のセクタに対する復旧コピー処理を行う。つまり、制御部31は、第2番目のセクタに対する復旧コピー処理用のパリティ情報2pを生成し、このパリティ情報2pをHDD#8にコピーする。以降、制御部31の復旧コピー処理はHDD終端に向かって繰り返される。つまり、制御部31の復旧コピー処理では、劣化が検知されたHDD#6内の磁気ヘッドは分割データ1fの読み出しのために移動することが無く、後述するように映像データの録画のために分割データやパリティ情報の書き込みに使用されるだけであるため、HDD#6内に余計な処理負荷(例えば磁気ヘッドの過度の往復移動)がかからなく、HDD#6のダウンの助長を阻むことが可能となる。なお、図6に示すように、制御部31による復旧コピー処理が終了すると、HDD#6はもはや不要となるので、制御部31との接続が切り離される。   As shown in FIG. 5, when the control unit 31 finishes the recovery copy process for the first sector of HDDs # 1 to # 5 and # 7, the magnetic fields of the respective HDDs # 1 to # 5 and # 7 are next. The head is moved to the second sector, and the recovery copy process for the second sector is similarly performed. That is, the control unit 31 generates parity information 2p for recovery copy processing for the second sector, and copies this parity information 2p to the HDD # 8. Thereafter, the recovery copy process of the control unit 31 is repeated toward the end of the HDD. That is, in the restoration copy process of the control unit 31, the magnetic head in the HDD # 6 in which the deterioration is detected does not move for reading the divided data 1f, but is divided for recording the video data as will be described later. Since it is only used for writing data and parity information, an extra processing load (for example, excessive reciprocal movement of the magnetic head) is not applied to the HDD # 6, and it is possible to prevent the HDD # 6 from being brought down. It becomes possible. As shown in FIG. 6, when the recovery copy process by the control unit 31 is completed, the HDD # 6 is no longer necessary, and the connection with the control unit 31 is disconnected.

次に、復旧コピー処理とは独立して映像データの録画処理が実行されている場合の動作例について、図7〜図9を参照して説明する。図7は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第1状況を示す説明図である。図8は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第2状況を示す説明図である。図9は、HDD#6がダウンした後の、本実施形態の録画データ記録装置(RAID5)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図である。   Next, an operation example in the case where the video data recording process is executed independently of the restoration copy process will be described with reference to FIGS. FIG. 7 shows a first situation in which video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment when degradation of HDD # 6 is detected. It is explanatory drawing which shows. FIG. 8 shows a second situation in which video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment when degradation of HDD # 6 is detected. It is explanatory drawing which shows. FIG. 9 is an explanatory diagram showing a situation in which video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 5) of the present embodiment after HDD # 6 is down. is there.

図7では、HDD#1〜#7のHDD先頭からHDD終端において、元データが分割されて得られた分割データやパリティ情報が分散して記憶されている。使用年数等によってHDD#6において劣化が検知されると、HDD#6が新たなHDD#8に交換される。   In FIG. 7, the divided data and the parity information obtained by dividing the original data are distributed and stored from the head of the HDD # 1 to # 7 to the end of the HDD. When deterioration is detected in HDD # 6 due to the years of use, etc., HDD # 6 is replaced with a new HDD # 8.

図7では、制御部31は、HDD#6の劣化を検知すると、HDD#1〜#5,#7の第1番目のセクタに対する復旧コピー処理を終えると、それぞれのHDD#1〜#5、#7の第2番目のセクタに記録されていた記録済みのデータ(つまり、分割データ2a〜2e,2f)を読み出して、RAID5における既存のデータ復旧技術により、HDD#6に記録されていた記録済みのデータ(つまり、パリティ情報2p)と同一のデータ(つまり、パリティ情報2p)を生成する。さらに、制御部31は、生成したパリティ情報2pをHDD#8にコピーする。   In FIG. 7, when the control unit 31 detects the deterioration of the HDD # 6, when the recovery copy processing for the first sector of the HDDs # 1 to # 5 and # 7 is finished, each of the HDDs # 1 to # 5, Recorded data (that is, divided data 2a to 2e, 2f) recorded in the second sector of # 7 is read, and the data recorded in HDD # 6 by the existing data recovery technology in RAID5 The same data (that is, parity information 2p) as generated data (that is, parity information 2p) is generated. Further, the control unit 31 copies the generated parity information 2p to the HDD # 8.

また、制御部31は、映像データである元データを分割し、分割データ10a,10b,10c,10d,10e,10f及びパリティ情報10pを生成する。制御部31は、それぞれのHDD#1〜#7の第10番目のセクタに、分割データ10a,10b、パリティ情報10p、分割データ10c,10d,10e,10fをそれぞれHDD#1,#2,#3,#4,#5,#6,#7に書き込む(つまり、録画処理する)。   Further, the control unit 31 divides the original data which is video data, and generates divided data 10a, 10b, 10c, 10d, 10e, 10f and parity information 10p. The control unit 31 assigns the divided data 10a and 10b, the parity information 10p, and the divided data 10c, 10d, 10e, and 10f to the tenth sector of each HDD # 1 to # 7, respectively. 3, writes to # 4, # 5, # 6, and # 7 (that is, performs recording processing).

さらに、制御部31は、劣化が検知されたHDD#6に書き込んだ(つまり、録画処理した)データ(具体的には、分割データ10e)と同一のデータ(つまり、分割データ10e)をHDD#8にコピーする。HDD#8に分割データ10eがコピーされる理由は、HDD#6がダウンしてHDD#8に交換された後に、HDD#8と他のHDD#1〜#5,#7の同セクタに記録された記録済みのデータを用いて元データの復元ができるようにするためである。さらに、HDD#8に分割データ10eがコピーされていると、分割データ10eが書き込まれる第10番目のセクタに対し、HDD#8への復旧コピー処理を省略することもできる。   Further, the control unit 31 sets the same data (that is, the divided data 10e) as the data (that is, the divided data 10e) written (that is, the recorded data) to the HDD # 6 where the deterioration is detected. Copy to 8. The reason why the divided data 10e is copied to the HDD # 8 is that the HDD # 6 is down and replaced with the HDD # 8, and then recorded in the same sector of the HDD # 8 and the other HDDs # 1 to # 5 and # 7. This is because the original data can be restored using the recorded data. Further, when the divided data 10e is copied to the HDD # 8, the recovery copy process to the HDD # 8 can be omitted for the tenth sector in which the divided data 10e is written.

図7に示されるように、本実施形態のレコーダ17は、劣化が検知されたHDD#6に対しては、極力磁気ヘッドの移動を行わないように、録画処理でデータを書き込む場合には磁気ヘッドを移動させ、復旧コピー処理の際には、磁気ヘッドを移動させず、既にHDD#6に記録されている記録済みのデータの読み出しを行わない。これにより、レコーダ17は、HDD#6に対して余計な負担をかけることなく、HDD#6が検知されるまでに記録されていた記録済みのデータを他のHDD(例えばHDD#8)に記録して復旧コピー処理を効率的に行うことができ、ユーザの使い勝手を向上できる。   As shown in FIG. 7, the recorder 17 according to the present embodiment does not move the magnetic head as much as possible to the HDD # 6 in which deterioration has been detected. When the recovery copy process is performed by moving the head, the magnetic head is not moved, and the recorded data already recorded in the HDD # 6 is not read. As a result, the recorder 17 records the recorded data recorded until the HDD # 6 is detected in another HDD (for example, the HDD # 8) without imposing an extra burden on the HDD # 6. Thus, the recovery copy process can be performed efficiently, and user convenience can be improved.

図8では、復旧コピー処理が継続している間に、録画処理によって分割データやパリティ情報がHDD終端のセクタまで書き込まれて一周してHDD先頭のセクタに書き込まれた状態が示されている。図8〜図12では、「−(ハイフン)」は、録画処理によって分割データやパリティ情報がHDD終端のセクタまで書き込まれて一周した結果、同セクタに書き込まれた以前のデータが上書きされたことを示している。   FIG. 8 shows a state in which the divided data and parity information are written up to the HDD end sector and written in the HDD head sector by the recording process while the recovery copy process continues. In FIG. 8 to FIG. 12, “-(hyphen)” indicates that the divided data and parity information are written to the sector at the end of the HDD by the recording process and as a result, the previous data written in the sector is overwritten. Is shown.

図8では、図7に示す状態の後に、制御部31における録画処理が進み、HDD終端のセクタまで書き込まれて一周してHDD先頭のセクタに書き込まれ、制御部31は、映像データである元データを分割し、分割データ3a−,3b−,3c−,3d−,3e−,3f−及びパリティ情報3p−を生成する。制御部31は、それぞれのHDD#1〜#7の第3番目のセクタに、分割データ3a−,3b−、パリティ情報3p−、分割データ3c−,3d−,3e−,3f−をそれぞれHDD#1,#2,#3,#4,#5,#6,#7に書き込む(つまり、録画処理する)。さらに、制御部31は、劣化が検知されたHDD#6に書き込んだ(つまり、録画処理した)データ(具体的には、分割データ3e−)と同一のデータ(つまり、分割データ3e−)をHDD#8にコピーする。   In FIG. 8, after the state shown in FIG. 7, the recording process in the control unit 31 proceeds, and the write is performed up to the sector at the end of the HDD and is written in the sector at the beginning of the HDD. The data is divided to generate divided data 3a-, 3b-, 3c-, 3d-, 3e-, 3f- and parity information 3p-. The control unit 31 assigns the divided data 3a-, 3b-, the parity information 3p-, the divided data 3c-, 3d-, 3e-, 3f- to the third sector of each HDD # 1 to # 7, respectively. Write to # 1, # 2, # 3, # 4, # 5, # 6, # 7 (that is, recording process). Furthermore, the control unit 31 uses the same data (that is, the divided data 3e−) as the data (specifically, the divided data 3e−) written (that is, recorded) to the HDD # 6 where the deterioration is detected. Copy to HDD # 8.

また、制御部31は、HDD#1〜#5,#7の第4番目のセクタに対する復旧コピー処理を終えると、それぞれのHDD#1〜#5、#7の第5番目のセクタに記録されていた記録済みのデータ(つまり、分割データ5a,5b,5p,5c,5d,5f)を読み出して、RAID5における既存のデータ復旧技術により、HDD#6に記録されていた記録済みのデータ(つまり、分割データ5e)と同一のデータ(つまり、分割データ5e)を生成する。さらに、制御部31は、生成した分割データ5eをHDD#8にコピーする。   In addition, when the recovery copy processing for the fourth sector of HDDs # 1 to # 5 and # 7 is completed, the control unit 31 is recorded in the fifth sector of each of HDDs # 1 to # 5 and # 7. The recorded data (that is, the divided data 5a, 5b, 5p, 5c, 5d, and 5f) that has been recorded is read, and the recorded data that is recorded on the HDD # 6 by the existing data recovery technology in RAID 5 (that is, , The same data as the divided data 5e) (that is, the divided data 5e) is generated. Further, the control unit 31 copies the generated divided data 5e to the HDD # 8.

なお、制御部31は、HDD終端のセクタに記録されていた記録済みのデータに対する復旧コピー処理が終了した場合又は復旧コピー処理の位置(セクタ)が録画処理の位置(セクタ)に追いつかれた場合には、復旧コピー処理を行う必要がなくなるので、復旧コピー処理を終了する。   Note that the control unit 31 determines that the recovery copy process for the recorded data recorded in the sector at the end of the HDD is completed or the position (sector) of the recovery copy process is overtaken by the position (sector) of the recording process. In this case, it is not necessary to perform the recovery copy process, so the recovery copy process is terminated.

また、図9に示すように、HDD#6がダウン(故障)して制御部31がHDD#6にアクセス不能になると、制御部31は、HDD#6に対する録画処理を実行することができないので、HDD#6を除いた他のHDD(つまり、HDD#1〜#5,#7)に対して録画処理を継続する。さらに、制御部31は、HDD#6を除いた他のHDD(つまり、HDD#1〜#5,#7)に記録されていた記録済みのデータを用いて、HDD#6に記録されていた記録済みのデータと同一のデータを生成してHDD#8に復旧コピー処理を行う。   Further, as shown in FIG. 9, when the HDD # 6 is down (failed) and the control unit 31 becomes inaccessible to the HDD # 6, the control unit 31 cannot execute the recording process for the HDD # 6. , The recording process is continued for the other HDDs except HDD # 6 (that is, HDDs # 1 to # 5 and # 7). Further, the control unit 31 is recorded in the HDD # 6 by using the recorded data recorded in the other HDDs except the HDD # 6 (that is, the HDDs # 1 to # 5 and # 7). The same data as the recorded data is generated and a recovery copy process is performed on HDD # 8.

次に、本実施形態のレコーダ17のHDD42がRAID6を用いて構成され、かつHDD7が同様に7台設けられる場合の動作例について、図10〜図12を参照して説明する。図10は、HDD#6の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図である。図11は、HDD#6,#7の劣化が検知された場合の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている状況を示す説明図である。図12は、HDD#6の劣化が検知され、かつHDD#7がダウンした後の、本実施形態の録画データ記録装置(RAID6)におけるHDD#8への復旧コピー処理中に映像データの録画処理を行っている第3状況を示す説明図である。   Next, an operation example when the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 6 and seven HDDs 7 are similarly provided will be described with reference to FIGS. FIG. 10 shows a situation in which video data recording processing is performed during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of this embodiment when degradation of HDD # 6 is detected. It is explanatory drawing. FIG. 11 shows video data recording processing during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of this embodiment when degradation of HDDs # 6 and # 7 is detected. It is explanatory drawing which shows a condition. FIG. 12 shows video data recording processing during recovery copy processing to HDD # 8 in the recording data recording apparatus (RAID 6) of the present embodiment after HDD # 6 is detected to be degraded and HDD # 7 is down. It is explanatory drawing which shows the 3rd condition which is performing.

本実施形態のレコーダ17のHDD42がRAID6を用いて構成されていると、それぞれのHDDの第n番目(n:自然数)のセクタには、2個のパリティ情報が記録されている。図10では、図8と同様に、制御部31における録画処理が進み、HDD終端のセクタまで書き込まれて一周してHDD先頭のセクタに書き込まれ、制御部31は、映像データである元データを分割し、分割データ3a−,3b−,3c−、パリティ情報3p−,3p−、分割データ3d−,3e−を生成する。制御部31は、それぞれのHDD#1〜#7の第3番目のセクタに、分割データ3a−,3b−,3c−、パリティ情報3p−,3p−、分割データ3d−,3e−をそれぞれHDD#1,#2,#3,#4,#5,#6,#7に書き込む(つまり、録画処理する)。さらに、制御部31は、劣化が検知されたHDD#6に書き込んだ(つまり、録画処理した)データ(具体的には、分割データ3d−)と同一のデータ(つまり、分割データ3d−)をHDD#8にコピーする。   When the HDD 42 of the recorder 17 of the present embodiment is configured using RAID 6, two pieces of parity information are recorded in the nth (n: natural number) sector of each HDD. In FIG. 10, as in FIG. 8, the recording process in the control unit 31 proceeds, and writing is performed up to the sector at the end of the HDD, and the circuit is written in the sector at the top of the HDD. The divided data 3a-, 3b-, 3c-, parity information 3p-, 3p-, and divided data 3d-, 3e- are generated. The control unit 31 assigns the divided data 3a-, 3b-, 3c-, the parity information 3p-, 3p-, and the divided data 3d-, 3e- to the third sectors of the HDDs # 1 to # 7, respectively. Write to # 1, # 2, # 3, # 4, # 5, # 6, # 7 (that is, recording process). Furthermore, the control unit 31 uses the same data (that is, the divided data 3d−) as the data (specifically, the divided data 3d−) that has been written (that is, recorded) to the HDD # 6 where the deterioration is detected. Copy to HDD # 8.

また、制御部31は、HDD#1〜#5,#7の第4番目のセクタに対する復旧コピー処理を終えると、それぞれのHDD#1〜#5、#7の第5番目のセクタに記録されていた記録済みのデータ(つまり、分割データ5a、パリティ情報5p,5p、分割データ5b,5c,5d,5e)を読み出して、RAID6における既存のデータ復旧技術により、HDD#6に記録されていた記録済みのデータ(つまり、分割データ5d)と同一のデータ(つまり、分割データ5d)を生成する。さらに、制御部31は、生成した分割データ5dをHDD#8にコピーする。   In addition, when the recovery copy processing for the fourth sector of HDDs # 1 to # 5 and # 7 is completed, the control unit 31 is recorded in the fifth sector of each of HDDs # 1 to # 5 and # 7. Previously recorded data (that is, divided data 5a, parity information 5p, 5p, divided data 5b, 5c, 5d, 5e) was read and recorded in HDD # 6 by the existing data recovery technology in RAID6. The same data (that is, divided data 5d) as the recorded data (that is, divided data 5d) is generated. Further, the control unit 31 copies the generated divided data 5d to the HDD # 8.

また、図11に示すように、制御部31は、HDD#6の劣化を検知した後に、他のHDD(例えばHDD#7)の劣化を新しく検知した場合には、録画処理については図10と同様に行う。なお、HDD#7の劣化が新しく検知された場合には、HDD#7がダウンした後に交換される新たなHDD#9が制御部31に接続される。   Also, as shown in FIG. 11, when the control unit 31 newly detects the deterioration of another HDD (for example, HDD # 7) after detecting the deterioration of the HDD # 6, the recording process is as shown in FIG. Do the same. If a new degradation of HDD # 7 is detected, a new HDD # 9 to be replaced after HDD # 7 goes down is connected to control unit 31.

具体的には、制御部31は、映像データである元データを分割し、分割データ3a−,3b−,3c−、パリティ情報3p−,3p−、分割データ3d−,3e−を生成する。制御部31は、それぞれのHDD#1〜#7の第3番目のセクタに、分割データ3a−,3b−,3c−、パリティ情報3p−,3p−、分割データ3d−,3e−をそれぞれHDD#1,#2,#3,#4,#5,#6,#7に書き込む(つまり、録画処理する)。さらに、制御部31は、劣化が検知されたHDD#6,#7に書き込んだ(つまり、録画処理した)データ(具体的には、分割データ3d−,3e−)と同一のデータ(つまり、分割データ3d−,3e−)をHDD#8,#9にコピーする。   Specifically, the control unit 31 divides original data that is video data, and generates divided data 3a−, 3b−, 3c−, parity information 3p−, 3p−, and divided data 3d−, 3e−. The control unit 31 assigns the divided data 3a-, 3b-, 3c-, the parity information 3p-, 3p-, and the divided data 3d-, 3e- to the third sectors of the HDDs # 1 to # 7, respectively. Write to # 1, # 2, # 3, # 4, # 5, # 6, # 7 (that is, recording process). Further, the control unit 31 has the same data (that is, the divided data 3d−, 3e−) (that is, the divided data 3d−, 3e−) written in the HDDs # 6 and # 7 in which deterioration is detected (that is, the video recording process). The divided data 3d-, 3e-) are copied to the HDDs # 8, # 9.

また、制御部31は、それぞれのHDD#1〜#5の第5番目のセクタに記録されていた記録済みのデータ(つまり、分割データ5a、パリティ情報5p,5p、分割データ5b,5c)を読み出して、RAID6における既存のデータ復旧技術により、HDD#6,#7にそれぞれ記録されていた記録済みのデータ(つまり、分割データ5d,5e)と同一のデータ(つまり、分割データ5d,5e)を生成する。さらに、制御部31は、生成した分割データ5d,5eをHDD#8,#9にそれぞれコピーする。   In addition, the control unit 31 records the recorded data (that is, the divided data 5a, the parity information 5p and 5p, and the divided data 5b and 5c) recorded in the fifth sector of each HDD # 1 to # 5. Read and the same data (that is, divided data 5d and 5e) as the recorded data (that is, divided data 5d and 5e) recorded in HDDs # 6 and # 7, respectively, by the existing data recovery technique in RAID6 Is generated. Further, the control unit 31 copies the generated divided data 5d and 5e to the HDDs # 8 and # 9, respectively.

なお、制御部31は、HDD終端のセクタに記録されていた記録済みのデータに対する復旧コピー処理が終了した場合又は復旧コピー処理の位置(セクタ)が録画処理の位置(セクタ)に追いつかれた場合には、復旧コピー処理を行う必要がなくなるので、復旧コピー処理を終了する。   Note that the control unit 31 determines that the recovery copy process for the recorded data recorded in the sector at the end of the HDD is completed or the position (sector) of the recovery copy process is overtaken by the position (sector) of the recording process. In this case, it is not necessary to perform the recovery copy process, so the recovery copy process is terminated.

また、図12に示すように、HDD#6の劣化が検知されてからHDD#7がダウン(故障)して制御部31がHDD#7にアクセス不能になると、制御部31は、HDD#7に対する録画処理を実行することができないので、HDD#7を除いた他のHDD(つまり、HDD#1〜#6)に対して録画処理を継続する。この時、制御部31は、HDD#6に記録した分割データ3d−と同一の分割データ3d−を生成してHDD#8にコピーし、さらに、HDD#7に記録するべき分割データ3e−と同一の分割データ3e−を生成してHDD#9にコピーする。また、制御部31は、HDD#6,#7を除いた他のHDD(つまり、HDD#1〜#5)に記録されていた記録済みのデータを用いて、HDD#6,#7に記録されていた記録済みのデータと同一のデータを生成してHDD#8,#9に復旧コピー処理を行う。   Also, as shown in FIG. 12, when the deterioration of HDD # 6 is detected and HDD # 7 is down (failed) and control unit 31 becomes inaccessible to HDD # 7, control unit 31 causes HDD # 7 to become inaccessible. Since the recording process cannot be executed, the recording process is continued for the other HDDs (that is, HDDs # 1 to # 6) excluding the HDD # 7. At this time, the control unit 31 generates the same divided data 3d− as the divided data 3d− recorded in the HDD # 6, copies it to the HDD # 8, and further generates the divided data 3e− to be recorded in the HDD # 7. The same divided data 3e- is generated and copied to the HDD # 9. In addition, the control unit 31 uses the recorded data recorded in the other HDDs (that is, HDDs # 1 to # 5) except for the HDDs # 6 and # 7 to record in the HDDs # 6 and # 7. The same data as the recorded data that has been recorded is generated, and recovery copy processing is performed on HDDs # 8 and # 9.

次に、本実施形態のレコーダ17における動作手順を、図13〜図15を参照して説明する。図13は、本実施形態の録画データ記録装置における、HDDの劣化検知から復旧コピー処理の開始までの動作手順の一例を説明するフローチャートである。図14は、本実施形態の録画データ記録装置における、復旧コピー処理の開始から復旧コピー処理の終了までの動作手順の一例を説明するフローチャートである。図15は、本実施形態の録画データ記録装置における、復旧コピー処理中に映像データを書き込む(録画)処理を行う動作手順の一例を説明するフローチャートである。
Next, an operation procedure in the recorder 17 of the present embodiment will be described with reference to FIGS. FIG. 13 is a flowchart for explaining an example of an operation procedure from detection of HDD degradation to the start of recovery copy processing in the recorded data recording apparatus of this embodiment. FIG. 14 is a flowchart for explaining an example of an operation procedure from the start of the recovery copy process to the end of the recovery copy process in the recorded data recording apparatus of the present embodiment. FIG. 15 is a flowchart for explaining an example of an operation procedure of performing video data writing (recording) processing during the recovery copy processing in the recording data recording apparatus of the present embodiment.

図13において、制御部31は、復旧コピー処理が必要なHDD(言い換えると、動作又は性能の劣化が見られるHDD)があるか否かを判断する(S1)。制御部31は、例えば図4に示すHDD#6内の磁気ヘッドの読み書きスピードが所定の閾値より下回った頻度が10秒間で2回あった場合に、HDD#6の劣化を検知する。復旧コピー処理が必要なHDDがないと判断された場合には(S1、NO)、制御部31の処理はステップS1に戻る。   In FIG. 13, the control unit 31 determines whether there is an HDD that needs a recovery copy process (in other words, an HDD that exhibits degradation in operation or performance) (S <b> 1). For example, when the frequency at which the read / write speed of the magnetic head in the HDD # 6 shown in FIG. 4 falls below a predetermined threshold is twice in 10 seconds, the control unit 31 detects the deterioration of the HDD # 6. If it is determined that there is no HDD that needs the recovery copy process (S1, NO), the process of the control unit 31 returns to step S1.

一方、制御部31は、復旧コピー処理が必要なHDDがあると判断した場合(S1、YES)、復旧コピー処理先のHDDがあるか(言い換えると、復旧コピー処理先のHDDが接続されているか)どうかを判断する(S2)。制御部31は、復旧コピー処理先のHDDがあると判断した場合には(S2、YES)、復旧コピー処理を開始する。   On the other hand, if the control unit 31 determines that there is an HDD that needs the recovery copy process (S1, YES), is there a recovery copy processing destination HDD (in other words, is the recovery copy processing destination HDD connected? It is determined whether or not (S2). When the control unit 31 determines that there is a recovery copy processing destination HDD (S2, YES), it starts the recovery copy process.

一方、復旧コピー処理先のHDDがあると判断されない場合には(S2、NO)、制御部31は、復旧コピー処理先のHDDが接続(例えば増設)されたかどうかを判断する(S3)。復旧コピー処理先のHDDが接続(例えば増設)されたと判断された場合には(S3、YES)、制御部31の処理はステップS2に進む。一方、復旧コピー処理先のHDDが接続(例えば増設)されないと判断された場合には(S3、NO)、制御部31の処理はステップS1に戻る。つまり、制御部31は、復旧コピー処理が必要となるようなHDDの劣化を検知すると、そのHDDに代わって交換されるべき新たなHDDが増設された場合に、その劣化が検知された時までにHDDに記録されていた記録済みのデータを新たに接続されたHDDにコピーするための復旧コピー処理を開始する。   On the other hand, when it is not determined that there is a recovery copy processing destination HDD (S2, NO), the control unit 31 determines whether the recovery copy processing destination HDD is connected (for example, added) (S3). If it is determined that the recovery copy processing destination HDD is connected (for example, added) (S3, YES), the process of the control unit 31 proceeds to step S2. On the other hand, when it is determined that the recovery copy processing destination HDD is not connected (for example, added) (S3, NO), the process of the control unit 31 returns to step S1. In other words, when the control unit 31 detects the deterioration of the HDD that requires the recovery copy process, when a new HDD to be replaced is added in place of the HDD, until the deterioration is detected. The recovery copy processing for copying the recorded data recorded in the HDD to the newly connected HDD is started.

図14において、制御部31は、HDD先頭から順に、劣化のために交換が必要なHDD(例えば図4に示すHDD#6)と復旧コピー処理先のHDD(例えば図4に示すHDD#8)とを除く他のHDD(例えば図4に示すHDD#1〜#5,#7)に記録されている分割データを用いて、交換が必要なHDD(例えばHDD#6)のRAID5用の復旧データを1セクタ分生成する(S11)。言い換えると、制御部31は、HDD#1〜#5,#7の第1番目のセクタに記録されている分割データ1a,1b,1c,1d,1e及びパリティ情報1pを用いて、HDD#6の第1番目のセクタに記録されていた分割データ(例えば図4に示す分割データ1f)と同一の分割データ1fを生成する。   In FIG. 14, the control unit 31 sequentially starts from the head of the HDD, the HDD that needs to be replaced due to deterioration (for example, HDD # 6 shown in FIG. 4), and the HDD for the recovery copy processing destination (for example, HDD # 8 shown in FIG. 4) Recovery data for RAID 5 of an HDD (for example, HDD # 6) that needs to be replaced using divided data recorded in other HDDs (for example, HDD # 1 to # 5, # 7 shown in FIG. 4) except Are generated for one sector (S11). In other words, the control unit 31 uses the divided data 1a, 1b, 1c, 1d, 1e and parity information 1p recorded in the first sector of the HDDs # 1 to # 5 and # 7 to use the HDD # 6. The same divided data 1f as the divided data recorded in the first sector (for example, the divided data 1f shown in FIG. 4) is generated.

制御部31は、生成した復旧データ(つまり、分割データ1f)を復旧コピー処理先のHDD(つまり、HDD#8)の第1番目のセクタに書き込む(S12)。制御部31は、ステップS11,S12において説明した方法で、HDD先頭からHDD終端に向かって、復旧コピー処理を継続する。制御部31は、復旧コピー処理がHDD終端のセクタに対して終了したかどうかを判断する(S13)。復旧コピー処理がHDD終端のセクタに対して終了したと判断されない場合には(S13、NO)、制御部31の処理はステップS11に戻る。   The control unit 31 writes the generated recovery data (that is, the divided data 1f) to the first sector of the recovery copy processing destination HDD (that is, HDD # 8) (S12). The control unit 31 continues the recovery copy process from the beginning of the HDD toward the end of the HDD by the method described in steps S11 and S12. The control unit 31 determines whether or not the recovery copy process has been completed for the sector at the end of the HDD (S13). If it is not determined that the recovery copy process has been completed for the sector at the end of the HDD (S13, NO), the process of the control unit 31 returns to step S11.

一方、制御部31は、復旧コピー処理がHDD終端のセクタに対して終了したと判断した場合には(S13、YES)、劣化のために交換が必要なHDD(例えばHDD#6)と復旧コピー処理先のHDD(例えばHDD#8)とを、復旧コピー処理を行うためのRAID5を構成するHDDとして入れ替える(S14)。ステップS14の時点では、制御部31は、劣化が検知されたHDD(例えばHDD#6)の接続を切り離すことはしないで、復旧コピー処理においてHDD#6を使用しない。つまり、劣化が検知されたHDD#6内の磁気ヘッドを復旧コピー処理のために移動させない。これにより、HDD#6にかかる処理負荷を低減でき、ダウンの助長を防ぐことができる。ステップS14が終了すると、制御部31は、復旧コピー処理を終了する。ステップS14により、制御部31は、レコーダ17のHDD42がRAID5を構成するためのHDDとして、HDD#1〜#5,#7,#8であると認識することができる。   On the other hand, if the control unit 31 determines that the recovery copy process has been completed for the sector at the end of the HDD (S13, YES), the control unit 31 determines that the HDD (for example, HDD # 6) that needs to be replaced for deterioration and the recovery copy The processing destination HDD (for example, HDD # 8) is replaced as the HDD constituting RAID 5 for performing the recovery copy process (S14). At the time of step S14, the control unit 31 does not disconnect the HDD (for example, HDD # 6) in which deterioration is detected, and does not use the HDD # 6 in the recovery copy process. That is, the magnetic head in HDD # 6 where the deterioration is detected is not moved for the recovery copy process. As a result, the processing load on the HDD # 6 can be reduced, and the promotion of down can be prevented. When step S14 ends, the control unit 31 ends the recovery copy process. By step S14, the control unit 31 can recognize that the HDD 42 of the recorder 17 is HDD # 1 to # 5, # 7, # 8 as HDDs for configuring RAID5.

図15において、制御部31は、先ず録画処理のためにHDD42に書き込む対象となる録画データ(例えば映像データ)を準備する(S21)。言い換えると、制御部31は、録画対象となる映像データをHDD42に記録するために、図2を参照して説明したように、映像データを分割することで複数の分割データとパリティ情報とを生成する(S21)。   In FIG. 15, the control unit 31 first prepares recording data (for example, video data) to be written to the HDD 42 for recording processing (S21). In other words, the control unit 31 generates a plurality of pieces of divided data and parity information by dividing the video data as described with reference to FIG. 2 in order to record the video data to be recorded in the HDD 42. (S21).

制御部31は、録画データ(例えば映像データ)から、RAID5を構成する全てのHDD(具体的には、HDD#1〜#6,#7,#8)に対するRAID5用の書き込みデータを生成する(S22)。つまり、制御部31は、録画対象となる元データである映像データを分割し、分割により得られた分割データ及びパリティ情報を生成する(S22)。   The control unit 31 generates write data for RAID 5 for all HDDs (specifically, HDDs # 1 to # 6, # 7, and # 8) constituting RAID 5 from the recorded data (for example, video data) ( S22). That is, the control unit 31 divides video data that is original data to be recorded, and generates divided data and parity information obtained by the division (S22).

制御部31は、ステップS22において生成した分割データ及びパリティ情報を、RAID5を構成するそれぞれのHDD(例えばHDD#1〜#6,#7,#8)に書き込む(S23)。上述したように、ステップS23では、制御部31は、劣化を検知したHDD#6に対しても、分割データ又はパリティ情報を書き込む。   The control unit 31 writes the divided data and parity information generated in step S22 to each HDD (for example, HDD # 1 to # 6, # 7, and # 8) that constitutes RAID5 (S23). As described above, in step S23, the control unit 31 writes the divided data or parity information to the HDD # 6 that has detected the deterioration.

制御部31は、HDD#6の代わりに交換されるために接続されたHDD#8に対しては、HDD#6と同一の分割データ又はパリティ情報を書き込む(S24)。つまり、劣化が検知されたHDD#6とそのHDD#6の代わりに交換されるHDD#8とには同一の分割データ又はパリティ情報が記録される。ステップS24が終了すると、制御部31は、録画処理を終了する。   The control unit 31 writes the same divided data or parity information as the HDD # 6 to the HDD # 8 connected to be replaced instead of the HDD # 6 (S24). That is, the same divided data or parity information is recorded in HDD # 6 in which deterioration is detected and HDD # 8 that is replaced in place of HDD # 6. When step S24 ends, the control unit 31 ends the recording process.

以上により、本実施形態の録画データ管理システム10では、録画データ記録装置の一例としてのレコーダ17は、録画対象となるデータを分割し、分割により得られた個々の分割データ(パリティ情報も含む)を複数のHDD#1〜#7に分散して記録する。レコーダ17は、複数のHDDのうち少なくとも1つのHDD(例えばHDD#6)の動作又は性能の劣化を検知すると、そのHDDを除く他の複数のHDDに記録されていた記録済みのデータを用いて、劣化が検知されたHDDに記録されていたデータと同一の復旧データを生成して新たなHDD(例えばHDD#8)にコピーする。つまり、レコーダ17は、復旧データを生成するために、劣化を検知したHDD(例えばHDD#6)内に記録されているデータの読み出しを行わないので、HDD#6内の磁気ヘッドの移動を抑制する。   As described above, in the recording data management system 10 of the present embodiment, the recorder 17 as an example of the recording data recording apparatus divides the data to be recorded, and individual divided data (including parity information) obtained by the division. Are distributed and recorded in a plurality of HDDs # 1 to # 7. When the recorder 17 detects a deterioration in operation or performance of at least one HDD (for example, HDD # 6) among the plurality of HDDs, the recorder 17 uses the recorded data recorded in the other HDDs other than the HDD. Then, the same recovery data as the data recorded in the HDD in which the deterioration is detected is generated and copied to a new HDD (for example, HDD # 8). That is, since the recorder 17 does not read data recorded in the HDD (for example, HDD # 6) in which deterioration is detected in order to generate recovery data, the movement of the magnetic head in the HDD # 6 is suppressed. To do.

これにより、レコーダ17は、HDD(例えばHDD#6)の劣化を検知すると、その劣化が検知されたHDD(例えばHDD#6)に対して負担をかけることなく、その劣化が検知されるまでにHDD(例えばHDD#6)に記録されていた記録済みのデータを他のHDD(例えばHDD#8)に記録してその記録済みのデータの復旧を効率的に行うことができ、ユーザの使い勝手を向上できる。   Thus, when the recorder 17 detects the deterioration of the HDD (for example, HDD # 6), the recorder 17 does not place a burden on the HDD (for example, the HDD # 6) in which the deterioration has been detected until the deterioration is detected. The recorded data recorded on the HDD (for example, HDD # 6) can be recorded on the other HDD (for example, HDD # 8), and the recorded data can be efficiently restored. It can be improved.

また、レコーダ17は、HDD(例えばHDD#6)の劣化を検知すると、少なくとも1つのHDDの劣化の検知の旨のメッセージをモニタ19に表示する。レコーダ17は、そのメッセージを見たユーザの操作があると、その操作に応じた信号を受信し、復旧コピー処理を開始してもよい。これにより、レコーダ17は、ユーザからの明確な復旧コピー処理の開始の指示があって初めて復旧コピー処理を開始するので、ユーザの意図に即した復旧コピー処理を開始することができ、ユーザの使い勝手を向上できる。   Further, when the recorder 17 detects deterioration of the HDD (for example, HDD # 6), the recorder 17 displays a message on the monitor 19 indicating that the deterioration of at least one HDD is detected. When there is an operation of the user who sees the message, the recorder 17 may receive a signal corresponding to the operation and start the recovery copy process. Thereby, since the recorder 17 starts the recovery copy process only when there is a clear instruction from the user to start the recovery copy process, the recorder 17 can start the recovery copy process in accordance with the user's intention. Can be improved.

また、レコーダ17は、録画対象となる映像データの分割により得られた個々の分割データやパリティ情報をそれぞれのHDDに記録する際、劣化を検知したHDD(例えばHDD#6)に記録される分割データ又はパリティ情報と同一の分割データ又はパリティ情報を、新たに交換されるHDD(例えばHDD#8)にコピーする。これにより、レコーダ17は、HDD#6がダウンしてHDD#8に交換された後でも、HDD#8と他のHDD#1〜#5,#7の同セクタに記録された記録済みのデータを用いて、元データの復元ができる。   In addition, when the recorder 17 records individual divided data and parity information obtained by dividing the video data to be recorded in each HDD, the division recorded in the HDD (for example, HDD # 6) in which deterioration is detected. The same divided data or parity information as the data or parity information is copied to the newly exchanged HDD (for example, HDD # 8). Thereby, the recorder 17 has recorded data recorded in the same sector of the HDD # 8 and the other HDDs # 1 to # 5 and # 7 even after the HDD # 6 is down and replaced with the HDD # 8. Can be used to restore the original data.

また、レコーダ17の複数のHDD42は、RAID5により構成されている。これにより、レコーダ17は、複数のHDD42のうちいずれか1個のHDD(例えばHDD#6)に障害や異常が発生してダウンしてしまった場合でも、残りのHDD(例えばHDD#1〜#5,#7)に記録されていた記録済みのデータを用いて、ダウンしたHDD#6に記録されている記録済みのデータを復元することができ、元データの再現も可能となる。   Further, the plurality of HDDs 42 of the recorder 17 are configured by RAID5. As a result, even if one of the plurality of HDDs 42 (for example, HDD # 6) is down due to a failure or an abnormality, the recorder 17 remains down (for example, HDD # 1 to ##). 5, the recorded data recorded in the down HDD # 6 can be restored using the recorded data recorded in # 7), and the original data can be reproduced.

また、レコーダ17の複数のHDD42は、RAID6により構成されている。これにより、レコーダ17は、複数のHDD42のうち最大2個のHDD(例えばHDD#6,#7)に障害や異常が発生してダウンしてしまった場合でも、残りのHDD(例えばHDD#1〜#5)に記録されていた記録済みのデータを用いて、ダウンしたHDD#6,#7に記録されている記録済みのデータを復元することができ、元データの再現も可能となる。   Further, the plurality of HDDs 42 of the recorder 17 are configured by RAID6. Thus, even if the recorder 17 goes down due to a failure or abnormality in a maximum of two HDDs (for example, HDD # 6 and # 7) among the plurality of HDDs 42, the recorder 17 remains (for example, HDD # 1). The recorded data recorded in down HDDs # 6 and # 7 can be restored using the recorded data recorded in .about. # 5), and the original data can be reproduced.

以上、図面を参照しながら各種の実施形態について説明したが、本発明はかかる例に限定されないことは言うまでもない。当業者であれば、特許請求の範囲に記載された範疇内において、各種の変更例又は修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。   While various embodiments have been described above with reference to the drawings, it goes without saying that the present invention is not limited to such examples. It will be apparent to those skilled in the art that various changes and modifications can be made within the scope of the claims, and these are naturally within the technical scope of the present invention. Understood.

本発明は、HDDの劣化が検知されると、その劣化が検知されたHDDに対して負担をかけることなく、その劣化が検知されるまでにHDDに記録されていた記録済みのデータを他のHDDに記録してその記録済みのデータの復旧を効率的に行い、ユーザの使い勝手を向上する録画データ記録装置及び録画データ復旧方法として有用である。   In the present invention, when the degradation of the HDD is detected, the recorded data recorded in the HDD until the degradation is detected is not applied to the HDD in which the degradation is detected. The present invention is useful as a recorded data recording apparatus and a recorded data recovery method for efficiently recovering the recorded data recorded on the HDD and improving the usability of the user.

10 録画データ管理システム
13 ハブ
14A、14B、14C、14D 監視カメラ
15 ネットワーク
17 レコーダ(録画データ記録装置)
19 モニタ
23 外部I/F
31 制御部
32 メモリ
33 外部通知部
34 電源部
35、35A、35B、35C、35N HDDスロット
37 ネットワーク部
42、42A、42B、42C、42N HDD
DESCRIPTION OF SYMBOLS 10 Recording data management system 13 Hub 14A, 14B, 14C, 14D Monitoring camera 15 Network 17 Recorder (recording data recording device)
19 Monitor 23 External I / F
31 Control Unit 32 Memory 33 External Notification Unit 34 Power Supply Unit 35, 35A, 35B, 35C, 35N HDD Slot 37 Network Unit 42, 42A, 42B, 42C, 42N HDD

Claims (6)

複数の記録媒体を保持する記録部と、
録画対象となるデータを分割し、前記分割により得た個々の分割データを前記複数の記録媒体にそれぞれ記録する録画処理部と、
前記複数の記録媒体のうち少なくとも1つの記録媒体の劣化を検知する劣化検知部と、
前記複数の記録媒体のうち前記劣化が検知された前記少なくとも1つの記録媒体を除く他の複数の記録媒体にそれぞれ記録されている個々の分割データを用いて、前記劣化が検知された前記少なくとも1つの記録媒体に記録されていた記録済みのデータと同一の復旧データを生成して、前記劣化が検知された前記少なくとも1つの記録媒体と交換される新たな記録媒体に対し、前記復旧データをコピーする復旧処理部と、を備える、
録画データ記録装置。
A recording unit for holding a plurality of recording media;
A recording processing unit that divides data to be recorded, and records each of the divided data obtained by the division on the plurality of recording media;
A deterioration detector that detects deterioration of at least one of the plurality of recording media;
The at least one in which the deterioration is detected by using individual divided data respectively recorded on a plurality of other recording media other than the at least one recording medium in which the deterioration is detected among the plurality of recording media. The recovery data identical to the recorded data recorded on one recording medium is generated, and the recovery data is copied to a new recording medium exchanged with the at least one recording medium in which the deterioration is detected. A recovery processing unit
Recording data recording device.
請求項1に記載の録画データ記録装置であって、
前記劣化検知部は、前記少なくとも1つの記録媒体の劣化の検知の旨のメッセージを表示部に表示し、
前記復旧処理部は、前記表示部に表示された前記メッセージに対するユーザの操作に応じて、前記復旧データの前記新たな記録媒体へのコピーを開始する、
録画データ記録装置。
The recorded data recording device according to claim 1,
The deterioration detection unit displays a message indicating detection of deterioration of the at least one recording medium on a display unit,
The recovery processing unit starts copying the recovery data to the new recording medium in response to a user operation on the message displayed on the display unit.
Recording data recording device.
請求項1に記載の録画データ記録装置であって、
前記録画処理部は、前記個々の分割データを前記複数の記録媒体にそれぞれ記録する場合に、前記劣化が検知された前記少なくとも1つの記録媒体に記録される分割データと同一の分割データを、前記新たな記録媒体にコピーする、
録画データ記録装置。
The recorded data recording device according to claim 1,
The recording processing unit records the same divided data as the divided data recorded on the at least one recording medium in which the deterioration is detected when the individual divided data is recorded on the plurality of recording media, respectively. Copy to a new recording medium,
Recording data recording device.
請求項1に記載の録画データ記録装置であって、
前記記録部は、前記複数の記録媒体を用いたRAID(Redundant Arrays of Inexpensive Disks)5により構成される、
録画データ記録装置。
The recorded data recording device according to claim 1,
The recording unit is configured by RAID (Redundant Arrays of Inexpensive Disks) 5 using the plurality of recording media.
Recording data recording device.
請求項1に記載の録画データ記録装置であって、
前記記録部は、前記複数の記録媒体を用いたRAID(Redundant Arrays of Inexpensive Disks)6により構成される、
録画データ記録装置。
The recorded data recording device according to claim 1,
The recording unit is configured by RAID (Redundant Arrays of Inexpensive Disks) 6 using the plurality of recording media.
Recording data recording device.
複数の記録媒体を保持する録画データ記録装置における録画データ復旧方法であって、
録画対象となるデータを分割し、前記分割により得た個々の分割データを前記複数の記録媒体にそれぞれ記録し、
前記複数の記録媒体のうち少なくとも1つの記録媒体の劣化を検知し、
前記複数の記録媒体のうち前記劣化が検知された前記少なくとも1つの記録媒体を除く他の複数の記録媒体にそれぞれ記録されている個々の分割データを用いて、前記劣化が検知された前記少なくとも1つの記録媒体に記録されていた記録済みのデータと同一の復旧データを生成し、
前記劣化が検知された前記少なくとも1つの記録媒体と交換される新たな記録媒体に対し、生成された前記復旧データをコピーする、
録画データ復旧方法。
A recording data recovery method in a recording data recording apparatus holding a plurality of recording media,
Dividing the data to be recorded, and recording each divided data obtained by the division on each of the plurality of recording media,
Detecting deterioration of at least one of the plurality of recording media;
The at least one in which the deterioration is detected by using individual divided data respectively recorded on a plurality of other recording media other than the at least one recording medium in which the deterioration is detected among the plurality of recording media. Generate recovery data identical to the recorded data that was recorded on one recording medium,
Copying the generated recovery data to a new recording medium to be replaced with the at least one recording medium in which the deterioration is detected;
Recorded data recovery method.
JP2016030390A 2016-02-19 2016-02-19 Recorded data recording device and recorded data recovering method Pending JP2017147014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016030390A JP2017147014A (en) 2016-02-19 2016-02-19 Recorded data recording device and recorded data recovering method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016030390A JP2017147014A (en) 2016-02-19 2016-02-19 Recorded data recording device and recorded data recovering method

Publications (1)

Publication Number Publication Date
JP2017147014A true JP2017147014A (en) 2017-08-24

Family

ID=59683105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016030390A Pending JP2017147014A (en) 2016-02-19 2016-02-19 Recorded data recording device and recorded data recovering method

Country Status (1)

Country Link
JP (1) JP2017147014A (en)

Similar Documents

Publication Publication Date Title
US20160357649A1 (en) System and method for managing raid storage system having a hot spare drive
US6892276B2 (en) Increased data availability in raid arrays using smart drives
JP2006236001A (en) Disk array device
US9740440B2 (en) Separating a hybrid asymmetric mix of a RAID 1 mirror and a parity-based RAID array
JP4456626B2 (en) Disk array device, disk array device control program, and disk array device control method
JP2008165455A (en) Storage system with backup function
JP5248669B2 (en) File processing apparatus and file processing method
WO2023226380A1 (en) Disk processing method and system, and electronic device
JP5586712B2 (en) Disk array control device and disk array device
CN106933707B (en) Data recovery method and system of data storage device based on raid technology
WO2019072004A1 (en) Data processing method, device and distributed storage system
JP6012460B2 (en) Video recording apparatus and surveillance camera system
JP2017147014A (en) Recorded data recording device and recorded data recovering method
JP4774400B2 (en) Monitoring system
JP6055262B2 (en) Video recording apparatus and program thereof
JP5519573B2 (en) Video processing apparatus, video processing method, and video processing program
JP2009282735A (en) Information recording system and information recording method
JP6347668B2 (en) Recording apparatus and control method thereof
JP2009104410A (en) Data recording device, internal control method thereof, and data recording system
JP5585930B2 (en) Disk array device and data control method
KR101048997B1 (en) Disk array recording device and recording control method thereof
JP2013105387A (en) File processing apparatus and file processing method
JP2022088186A (en) Electronic apparatus, restoration device, computer program, data writing method, and data restoration method
JPH09258914A (en) Data transfer system for computer system
JP2010135034A (en) Information recording/reproducing device