明 細 書 データ記録再生装置および方法ならびに A Vサーバ 技術分野
本発明は、 ビデオデータやオーディオデータ等を記録、 再生するデータ記録再 生装置および方法ならびに A V (オーディオ ' ビデオ) サーバに関する。 背景技術
近年、 C A T V (ケーブル 'テレビジョン) 等の普及による情報提供の多チヤ ネル化に伴い、 関連技術の V T R (ビデオ 'テープ · レコーダ) とは異なり、 1 台の映像 ·音声データ記録再生装置から複数の映像 ·音声データを同時に再生す るという要求が高まりつつある。 そして、 この要求を満たすために、 ハードディ スク等のランダムアクセスが可能な記録再生メディアを使用して、 映像 ·音声デ ータを記録再生するビデオサーバと呼ばれる装置が普及しつつある。
一般的に、 例えば放送局内におけるビデオサーバにおいては、 画質 '音質に対 する要求から、 必要とされるデータの転送レートが高い上に、 長時間のデータを 記録するために大容量である必要がある。 そこで、 映像 ·音声データを蓄積する と共に並列運転可能な複数のハードディスク装置を含むデータ記録再生装置を用 いることによりデータ転送レー卜の高速化と大容量化を図る試みや、 更にパリテ ィデータを記録しておくことにより、 万一いずれかのハードディスク装置が故障 しても信頼性を確保できるようにする試みがなされている。 これにより、 放送局 が提供しようとしている番組の内容や放送形態により要求されるチャネル数が異 なる場合であっても、 複数の素材データを分散的に記録しておいて多チャネルの 送出を同時に行ったり、 同一の素材データを再生時間をずらして多チャネルで再 生することによりニァ ' ビデオ 'オン 'デマンド (N V O D ) システムを構築す る等、 多様な使用形態に対応し得るマルチチャネルビデオサーバを実現すること ができる。
このようなマルチチャネルビデオサーバに用いられるデータ記録再生装置には、
1 988年に Patterson 等により発表された論文の中で提唱されている R A I D (Redundant Arrays of Inexpensive Disks ) 技 亍力使用 れてレヽる。 上記論 文の中では、 RA I Dは RA I D— 1から RA I D— 5まで 5つに分類されてい る。 このうち、 代表的なものは R A I D— 1、 RA I D— 3および RA I D— 5 である。 RA I D—:!は、 2つのハードディスクに同じ内容を書き込む方式であ る。
RA I D— 3は、 入力データを一定の長さに分割して、 複数のハードディスク 装置に記録すると共に、 パリティデータを生成して、 他の 1台のハードディスク 装置に書き込む方式である。
第 1 1図は、 RA I D— 3を用いたデータ記録再生装置の構成の一例を示すブ ロック図である。 このデータ記録再生装置 101は、 入力データを記録するため の複数のハードディスク装置 (以下、 HDDと言う。) I O S I O S N と
(Nは 2以上の整数値) と、 冗長符号としてパリティデータ Pを記録するための HDD 1 09と、 入力データ を一定の長さに分割して複数の分割データを 生成し、 各分割データを各 HDD 1 02 〜102 N に分配するデータ分配器 106と、 データ分配器 1 06より出力される分割データからパリティデータ P を生成するためのパリティ生成器 1 07と、 データ分配器 106より出力される 各分割データを一時的に保持する入力メモリ 104 i 〜104 N と、 パリティ 生成器 107より出力されるパリティデータ Pを一時的に保持する入力メモリ 1 08と、 それぞれ HDD l O S i l O S N , 109に接続され、 入力メモリ I O A ! I O A N , 1 0 8によって保持されたデータの HDD 1 0 2 丄 〜 1 02 N , 1 09への記録と HDD 102 〜 102 N , 109からのデータの 再生とを制御するコントローラ 1 03 1 〜103 N , 1 1 0と、 各 HDD 10 2 i 〜1 02 Ν , 1 09から読み出されたデータを一時的に保持する出力メモ リ l O S i i o s N , i l lと、 出力メモリ I O S I O S N , 1 1 1に よって保持されたデータと後述するエラー情報とに基づいてエラー検出およびェ ラー訂正を行って分割データの修復を行うエラー訂正器 1 1 2と、 エラー訂正器 1 1 2の出力データを多重化して、 出力データ D。 として出力するデータ多重 器 1 1 3と、 これら装置全体を制御する CPU 1 14とを備えている。
次に、 データ記録再生装置 1 0 1のデータの書き込み動作について説明する。 入力データ D は、 データ分配器 1 06に入力されて複数の分割データが生成 され、 各分割データは、 入力メモリ 1 0 4 〜 1 0 4 N に分配されて一旦記録 されると共に、 パリティ生成器 1 0 7に入力される。 このとき、 データの分配方 法としては、 例えば、 ビット単位あるいはバイ ト単位でデータ列 D 1, D 2, D 3, D 4 , D 5 , …のように並んでいるとして、 データ D 1を 1台目の HDD 1 0 2 ! に分配し、 データ D 2を 2台目の HDD 1 0 2 2 に分配するというよう に、 データを順番に分配していき、 データ DNを最後の N台目の HDD 1 0 2 N に分配し終えたら、 再度、 最初の HDD 1 0 2 ί から順にデータを分配してい く方法がある。
パリティ生成器 1 0 7は、 データ分配器 1 06から出力される分割データに基 づいて、 パリティデータ Ρを生成して出力する。 入力メモリ 1 08は、 このパリ ティデータ Ρを一旦記録する。 その後、 各 HDD l O S i l O S w , 1 09 のコントローラ I O S I O S N , 1 1 0は、 CPU 1 1 4の制御に基づい て、 入力メモリ l O A i l O N , 1 08から分割データおよびパリティデ ータ Pを読み出して、 各1^001 0 2 1 〜1 0 2 1^ , 1 09に書き込む。
次に、 データ記録再生装置 1 0 1のデータの読み出し動作について説明する。 各コントローラ 1 03 1 〜 1 03 Ν , 1 1 0は、 各 HDD 1 02 〜 1 02 N ,
1 0 9から分割データおよびパリティデータ Pを読み出し、 それぞれ出力メモリ
1 05 1 〜 1 05 N , 1 1 1に書き込む。 このとき、 HDD 1 02 1 〜1 02 N , 1 09におけるデータの読み出し動作にエラー (以下、 読み出しエラーと言 う。) が発生した場合には、 その旨を表すエラー情報が、 HDD l O S i l O
2 N , 1 09内の制御部より、 ステータスデータとしてコントローラ 1 0 3 〜 1 0 3 N , 1 1 0に送られ、 更に、 コントローラ I O S L I O S N , 1 1
0から C PU 1 1 4へ、 エラー情報 E r 〜E r N , E r P として送られる。 出力メモリ Ι Ο δ , Ι Ο δ Ν , 1 1 1に記録された各データは、 同期がと られてエラ一訂正器 1 1 2に出力される。 このとき、 読み出しエラーが発生して いた場合には、 その旨を表すエラー情報が、 CPU 1 1 4よりエラー訂正器 1 1
2に送られる。 このエラー情報は、 読み出しエラーが発生した HDDを特定する
情報を含んでいる。 エラー訂正器 1 1 2は、 エラー情報とパリティデータ Pとを 用いて、 分割データを修復して、 データ多重器 1 1 3に出力する。 なお、 エラー 訂正器 1 1 2によってデータを修復できるのは、 1台の HDDで読み出しエラー があった場合のみである。 複数の HDDで読み出しエラーがあった場合には、 ェ ラ一訂正器 1 1 2は、 エラーの検出はできるが、 データの修復はできない。 デー タ多重器 1 1 3は、 エラー訂正器 1 1 2から出力された分割データを元のデータ 列に並べ替えて、 出力データ D。 として外部へ出力する。
一方、 RA I D— 5は、 データの分割の単位 (ブロック) を大きくして、 1つ の分割データをデータブロックとして 1つの HDDに記録すると共に、 各 HDD の互いに対応するデータプロックの排他的論理和をとつた結果 (パリテイデー タ) をパリティブロックとして他の HDDに記録すると共に、 ノ リティブロック を全 HDDに分散する方式である。
第 1 2図は、 RA I D— 5を用いたデータ記録再生装置の構成の一例を示すブ ロック図である。 このデータ記録再生装置 2 0 1は、 入力データを記録するため の複数の HDD 2 0 2 2 0 2 N (Nは 2以上の整数値) と、 入力データ D ! と HD D S O S S O S N に記録されたデータとに基づいてパリティデー タを生成すると共に、 各 HDD 2 0 2 2 0 2 N から読み出されたデータと ェラ一情報とに基づいてエラ一訂正を行つてデータの修復を行うパリティ生成 ' エラ一訂正器 2 1 2と、 パリティ生成 'エラー訂正器 2 1 2の出力データを一時 的に保持する入力メモリ S O A S O A N と、 それぞれ HD D 2 0 2 i 2 0 2 N に接続され、 入力メモリ S O A i S O A N によって保持されたデータ の HDD S O S i S O S N への記録と HDD S O S S O S N からのデー タの再生とを制御するコントローラ 2 0 3 1 2 0 3 N と、 各 HDD S O S i 2 0 2 N から読み出されたデータを一時的に保持する出力メモリ 2 0 5 i 2 0 5 N と、 これら装置全体を制御する C PU 2 1 4とを備えている。 なお、 HDD 2 0 2 : 2 0 2 N において読み出しエラーが発生した場合には、 その 旨を表すエラー情報が、 HDD 2 0 2 , 2 0 2 N 内の制御部より、 ステータ スデータとしてコン ト ローラ 2 0 3 1 2 0 3 N に送られ、 更に、 コン トロー ラ 2 0 3 , 2 0 3 N 力、ら C PU 2 1 4 エラー情報 E r i E r N として
送られる。
次に、 データ記録再生装置 20 1のデータの書き込み動作について説明する。 例えば HDD 202 , にあるア ドレス Aにデータ Dを書き込む場合に、 データ Dに対応するパリティデータ Pが HDD 202 z に記録されていたとすると、 C PU 2 1 4は HDD S O S i から既に記録されているデータ D x を読み出し、 HDD 2 0 2 2 からパリティデータ Pを読み出すようにコントローラ 203 i
203 2 を制御する。 このとき、 、。リティ生成 ·エラー訂正器 2 1 2は、 デー タ0 とパリティデータ Pの排他的論理和を計算して、 データ がない状態 のパリティデータ を復元する。 その後、 パリティ生成 'エラー訂正器 2 1 2は、 データ Dとパリティデータ P との排他的論理和を計算して、 新たなパ リティデータ P 2 を求める。 C PU 2 1 4は、 データ Dを HDD 20 2 i に書 き込み、 リティデータ P 2 を HDD 20 2 2 に書き込むようにコントローラ 2ひ 3 i , 203 2 を制御する。
次に、 データ記録再生装置 20 1のデータの読み出し動作について説明する。 例えば HDD S O S i にあるアドレス Aからデータ Dを読み出す場合は、 CP U 2 1 4は、 HDD S O S i からデータ Dを読み出すようにコントローラ 20
3 ! を制御し、 このとき、 読み出しエラーが発生しなければ、 HDD 202 i から読み出したデータ Dを、 出力メモリ 205 およびパリティ生成 'エラー 訂正器 2 1 2を経て出力データ D。 として出力するようにパリティ生成 ·エラ 訂正器 2 1 2を制御する。 このとき、 パリティ生成 'エラー訂正器 2 1 2では 特に処理を行わない。
一方、 データ記録再生装置 2 0 1のデータの読み出しが正常に行われなかった 場合、 例えば HDD 2 02 にあるァドレス Aからデータ Dを読み出そうとし たが、 欠陥セクタ等によりデータ Dを読み出すことができなかった場合には、 C PU 2 1 4は、 コントローラ 20 3 よりエラー情報 E r ! を受ける。 この場 合、 CPU 2 1 4は、 他の HDD 202 2 202 N の対応するァドレスから データを読み出して、 パリティ生成 ·エラー訂正器 2 1 2に送り、 _これらのデー タに基づいてパリティ生成 ·エラー訂正器 2 1 2によってデータ Dを再生し、 出 力データ D。 として出力するようにパリティ生成 ·エラー訂正器 2 1 2を制御
する。
このように、 R A I D— 5を用いたデータ記録再生装置 2 0 1では、 入力デー タの書き込みの際には、 データブロックの読み出しおよび書き込み、 パリティブ 口ックの読み出しおよび書き込みを行う必要があるため、 アクセス回数が多くな る。 また、 データの読み出しの際にエラーが発生したときには、 他の H D Dより データを読み出してデータを復元するため、 やはりアクセス回数が多くなる。 従 つて、 R A I D— 5を用いたデータ記録再生装置 2 0 1は、 決まった大きさの論 理ブロックをランダムにアクセスする処理には適しているが、 リアルタイム性が 要求される処理には適さない。
一方、 R A I D— 3を用いたデータ記録再生装置 1 0 1は、 入力データの書き 込みは、 1回のアクセスで可能であり、 データの読み出し後のエラー訂正も即座 に行うことができる。 そのため、 R A I D— 3を用いたデータ記録再生装置 1 0 1は、 データを高速に記録、 再生する処理に適している。 従って、 マルチチヤネ ルビデオサーバ等のリアルタイム性が要求される装置では、 R A I D— 3を用い たデータ記録再生装置が適している。
しかしながら、 上述の R A I D— 3を用いたデータ記録再生装置では、 データの 修復が可能なのは、 1台の H D Dで読み出しエラーがあった場合のみであるため、 1台の H D Dが故障すると、 データの誤り検出および訂正の能力のない装置になつ てしまうという問題点があった。
更に、 R A I D— 3を用いたデータ記録再生装置では、 読み出しエラーが発生せ ずに、 1台の H D Dが不正なデータを読み出した場合には、 データの誤りは検出で きるが、 どの H D Dが読み出したデータが誤りであるか分からないので、 データの 修復はできないという問題点があつた。
更に、 R A I D— 3を用いたデータ記録再生装置では、 2台以上の H D Dが故障 した場合には、 データの誤りは検出できるが、 データの修復はできないという問題 点があった。
また、 データ記録再生装置内のいずれかの H D Dにおいて、 書き—込み動作にお いてエラー (以下、 書き込みエラーと言う。) が発生した場合、 書き込みエラー が発生したデータを修復する必要がある。 このような記録媒体 (ハードデイス
ク) における記録領域の一部についてのデータの修復処理を、 本出願において部 分再構築処理 (部分 Rebuild ) と呼ぶ。 また、 データ記録再生装置内のいずれ かの HDDが交換された場合には、 新しい HDDに元のデータを再構築していく 必要がある。 このような記録媒体 (ハードディスク) における記録領域全体につ いてのデータの修復処理を、 本出願において全体再構築処理 (全体 Rebuild ) と呼ぶ。 以下、 第 1 1図に示した RA I D— 3を用いたデータ記録再生装置 1 0 1におけるデータの修復処理の動作について説明する。
まず、 部分再構築処理の動作について説明する。 ここでは、 CPU 1 1 4が、 書き込みエラーが発生した HDDおよびア ドレス (セクタ) を記憶しており、 そ の HDDおよびァドレスについて部分再構築処理を行うものとする。 この部分再 構築処理では、 まず、 C PU 1 1 4は、 部分再構築処理を行うべきア ドレスを指 定して、 各コントローラ I O S L I O S N , 1 1 0に対して読み出し動作を 行わせる。 これに応じて、 各コントローラ l O S i l O S w , 1 1 0は、 各 HDD l O S i l O S w , 1 09より、 指定されたァドレスのデータを読み 出す。 読み出された各データは、 出力メモリ Ι Ο δ Ι Ο δ Ν , 1 1 1を経 て、 エラー訂正器 1 1 2に入力される。 このとき、 CPU 1 1 4は、 エラー訂正 器 1 1 2に対して、 部分再構築処理を行うべき HDDから読み出されたデータは 使用しないように指示を与えておく。 エラー訂正器 1 1 2は、 出力メモリ 1 05 Ι Ο δ Ν , 1 1 1より出力されるデータのうち、 部分再構築処理を行うベ き H D Dから読み出されたデータ以外のデータを用いて、 分割データの修復を行 レ、、 修復後の分割データをデータ多重器 1 1 3に出力する。 データ多重器 1 1 3 は、 エラー訂正器 1 1 2から出力された分割データを元のデータ列に並べ替えて、 出力データ D。 として出力する。 次に、 CPU 1 1 4の制御により、 データ多 重器 1 1 3からの出力データ D。 をデータ分配器 1 06に入力し、 入力データ D I の書き込み時と同様の書き込み動作を行って、 部分再構築処理を行うべき HDDに対して、 修復された分割データを書き込んで、 部分再構築処理を終了す る。 ―
次に、 全体再構築処理の動作について説明する。 ここでは、 所定の 1台の HD Dが交換されたとし、 データ記録再生装置 1 0 1に対して、 上位の装置から全体
再構築処理を行うよう指示があつたとする。 C PU 1 1 4は、 この指示を受ける と、 各コントローラ l O S i l O S w , 1 1 0に対して読み出し動作を行わ せる。 これに応じて、 各コントローラ 1 03 〜 1 0 3 , 1 1 0は、 各 HD D l O S i l O S w , 1 09よりデータを読み出す。 読み出された各データ は、 出力メモリ Ι Ο δ χ Ι Ο δ Ν , 1 1 1を経て、 エラ一訂正器 1 1 2に入 力される。 このとき、 C PU 1 1 4は、 エラー訂正器 1 1 2に対して、 全体再構 築処理を行うべき HDDから読み出されたデータは使用しないように指示を与え ておく。 エラー訂正器 1 1 2は、 出力メモリ I O S I O S N , 1 1 1より 出力されるデータのうち、 全体再構築処理を行うべき HDDから読み出されたデ ータ以外のデータを用いて、 分割データの修復を行い、 修復後の分割データをデ ータ多重器 1 1 3に出力する。 データ多重器 1 1 3は、 エラー訂正器 1 1 2から 出力された分割データを元のデータ列に並べ替えて、 出力データ D。 として出 力する。 次に、 C PU 1 1 4の制御により、 データ多重器 1 1 3からの出力デー タ13。 をデータ分配器 1 06に入力し、 入力データ の書き込み時と同様の 書き込み動作を行って、 全体再構築処理を行うべき HDDに対して、 修復された 分割データを書き込む。 以上の処理をハードディスクの記録領域全体について行 9。
しかしながら、 上述の部分再構築処理、 全体再構築処理のいずれの場合も、 再 構築処理中にデータを修復できるのは、 再構築処理を行うべき HDD以外の全て の HDDにおいて正しいデータが読み出せた場合のみであり、 もし、 再構築処理 を行うべき HDD以外の HDDで、 1台でも読み出しエラーがあった場合には、 エラー訂正器 1 1 2では、 エラーの検出はできるが、 データの修復はできない。 すなわち、 RA I D— 3を用いたデータ記録再生装置 1 0 1では、 再構築処理中 は、 データの誤り検出および訂正の能力のない装置になってしまうため、 新たな 障害が発生するとデータを修復することができなくなるという問題点があつた。 ところで、 ハードディスク上には、 同心円状に複数のトラックが設定され、 トラ ックは放射状に区切られて、 データの記録単位である複数のセクタが設定される。 これらのセクタには、 データの書き込みや読み出しの際に、 常にエラーが発生する ようなセクタが存在する場合がある。 このようなセクタは、 欠陥セクタと呼ばれ、
物理的な傷等により正しくデータの読み出しあるいは書き込みができない状態とな つていると考えられる。 このような欠陥セクタの発生に備えて、 ハードディスク上 に予備のセクタを予め確保しておき、 必要に応じて、 欠陥セクタの代わりに予備の セクタにデータを記録する方法がある。 このような予備のセクタは代替セクタと呼 ばれる。 この代替セクタを有する HDDでは、 HDD内の制御部は、 欠陥セクタの 代わりに代替セクタが用いられても、 上位からは同じセクタ番号で参照できるよう に、 論理的なセクタ番号 (LBA) と物理的なセクタ番号を対応付ける対応表を内 部で持っており、 欠陥セクタが発生した場合には、 L B Aとハードディスク上の記 録領域における物理的なセクタ番号との対応関係を変える再割り付け処理 (Reas s i g n) を行うようになっている。
上述のような再割り付け処理は、 比較的長い時間 (数秒) を要し、 従来、 一般的 には、 データ記録再生装置の運用中には行われなかった。 しかしながら、 マルチチ ャネルビデオサーバ等のリアルタイム性が要求される装置では、 再割り付け処理に よって装置の運用が中断するのは好ましくないため、 装置の運用中でも再割り付け 処理を行うことができることが望まれる。
そこで、 以下で説明するように、 データ記録再生装置の運用中に再割り付け処理 を行うことも考えられる。 以下、 第 1 1図に示した RA I D— 3を用いたデータ記 録再生装置 1 01において、 運用中に再割り付け処理を行うようにした場合の再割 り付け処理の動作について説明する。
ここでは、 データ記録再生装置 1 0 1に対して、 上位の装置から再割り付け処理 を行うよう指示があつたとする。 CPU 1 1 4は、 この指示を受けると、 再割り付 けを行う HDDにおける書き込み動作および読み出し動作を停止する。 次に、 CP U 1 1 4は、 再割り付けを行う HDDに対して、 再割り付けを行うセクタを指定し て、 再割り付け処理を開始させる。 再割り付け処理は、 前述のように、 LBAと物 理的なセクタ番号との対応関係を変えることである。 C PU 1 1 4は、 再割り付け 処理中に、 書き込みを指示するコマンドを受信した場合には、 再割り付けを行う H DD以外の HDDにおいて書き込み動作を行わせると共に、 再割り付けを行う HD Dと書き込みが指示された L B Aとを記憶しておく。 CPU 1 1 4は、 再割り付け 処理中に、 読み出しを指示するコマンドを受信した場合には、 再割り付けを行う H
DD以外の HDDにおいて読み出し動作を行わせると共に、 エラー訂正器 1 1 2に 対して、 再割り付けを行う HDDからのデータを無効としてエラー訂正を行うよう に指示を与える。 CPU 1 1 4は、 再割り付け処理が終了したら、 再割り付けを行 う HDDにおける書き込み動作および読み出し動作の停止を解除する。
このように、 再割り付け処理を行った後には、 再割り付け処理を行った HDDお よびァドレスと、 再割り付け処理における書き込み動作停止中に記憶しておいた H DDおよびア ドレスについて、 データを修復する必要がある。 このデータの修復処 理に関しては、 上述したとおりである。
したがって、 RA I D— 3を用いたデータ記録再生装置 1 0 1では、 再割り付 け処理中は、 データの誤り検出および訂正の能力のない装置になってしまうため、 運用中に再割り付け処理を行うことは、 信頼性を著しく低下させることになるため、 実現が困難であった。
なお、 文献 「喜連川 :最近の二次記憶装置:デイスアレイ」 (情報処理, Vol.3 4, No5, pp.642-651 (May 1993)) に示されるように、 RA I D— 5を拡張した方 式も提案されている。 この方式は、 リードソロモン符号化に基づいたパリティブ 口ックを 2つ用意して、 パリティグループ内で最大 2個の HDDの障害に対応可 能としたものである。
しかしながら、 この R A I D— 5を拡張した方式では、 入力データの書き込み 時や、 データの読み出し時にエラーが発生したときには、 RA I D— 5よりもァ クセス回数が増えるため、 RA I D— 5以上に、 リアルタイム性が要求される処 理には適さない。 従って、 マルチチャネルビデオサーバ等のリアルタイム性が要 求される装置では、 上述の RA I D- 5を拡張した方式を用いることは困難であ る。
また、 複数の HDDを用いる一般的なデータ記録再生装置では、 上述の部分再 構築処理や全体再構築処理のようなデータの修復処理は、 その必要が生じたとき に随時行われ、 修復処理中は、 データ記録再生装置に対して外部からアクセスす ることができなかった。 しかしながら、 マルチチャネルビデオサーバ等のリアル タイム性が要求される装置では、 データの修復処理によって装置の運用が中断さ れるのは好ましくないという問題点があつた。
発明の開示
本発明はかかる問題点に鑑みてなされたもので、 その第 1の目的は、 データの 誤り検出および訂正の能力に優れ、 且つ、 リアルタイム性が要求される処理に適 したデータ記録再生装置および方法ならびに A Vサーバを提供することにある。 本発明の第 2の目的は、 データの修復処理中でもデータの誤り検出および訂正 が可能であり、 且つ、 リアルタイム性が要求される処理に適したデータ記録再生 装置および方法ならびに A Vサーバを提供することにある。
本発明の第 3の目的は、 上記第 2の目的に加え、 データ記録再生の運用を中断 することなく、 データの修復処理を行うことができるようにしたデータ記録再生 装置および方法ならびに A Vサーバを提供することにある。
本発明の第 4の目的は、 再割り付け処理中でもデータの誤り検出および訂正を可 能として、 データ記録再生の運用を中断することなく再割り付け処理を行うことを 可能とし、 且つ、 リアルタイム性が要求される処理に適したデータ記録再生装置お よび方法ならびに A Vサーバを提供することにある。
本発明の第 5の目的は、 上記第 4の目的に加え、 再割り付け処理後におけるデー タの修復処理においてもデータの誤り検出および訂正を可能としたデータ記録再生 装置および方法ならびに A Vサーバを提供することにある。
本発明のデータ記録再生装置は、 入力データを所定単位で分割して得られる複 数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録するとともに、 前記第 1の記録媒体に記録された前記分割データを再生する分割データ記録再生 手段と、
前記分割データの誤り訂正符号データを生成して、 第 2のノンリニアアクセス 可能な記録媒体に前記複数の誤り訂正符号データを記録するとともに、 前記第 2 のノンリニアアクセス可能な記録媒体に記録された前記誤り訂正符号データを再 生する誤り訂正符号データ記録再生手段とを備えたものである。
本発明のデータ記録再生装置においては、 分割データ記録再生手段によって、 入力データを所定単位で分割して得られる複数の分割データが第 1のノンリニア アクセス可能な記録媒体に記録されるとともに、 前記第 1の記録媒体に記録され
た前記分割データの再生が行われ、 また、 誤り訂正符号データ記録再生手段によ つて、 前記分割データの誤り訂正符号データが生成され、 第 2のノンリニアァク セス可能な記録媒体に前記複数の誤り訂正符号データが記録されるとともに、 前 記第 2のノンリニアアクセス可能な記録媒体に記録された前記誤り訂正符号デー タの再生が行われる。
本発明の A Vサーバは、 外部から入力された映像および音声データを含むデータ をノンリニァアクセス可能な記録媒体に記録可能なデータに変換するとともに、 前 記記録媒体から出力された前記データを外部に出力可能なデータに変換して出力す る複数の入出力処理手段と、
前記複数の入出力処理手段それぞれから出力されたデータを所定単位で分割して 得られる複数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録する とともに、 前記第 1のノンリニアアクセス可能な記録媒体に記録された前記分割デ 一タを再生する分割データ記録再生手段と、
前記分割データの誤り訂正符号データを生成して、 第 2のノンリニアアクセス可 能な記録媒体に前記複数の誤り訂正符号データを記録するとともに、 前記第 2のノ ンリニァアクセス可能な記録媒体に記録された前記誤り訂正符号データを再生する 誤り訂正符号データ記録再生手段とを備えたものである。
本発明の A Vサーバにおいては、 複数の入出力処理手段によって、 外部から入力 された映像および音声データを含むデータがノンリニアアクセス可能な記録媒体に 記録可能なデータに変換されるとともに、 前記記録媒体から出力された前記データ が外部に出力可能なデータに変換されて出力され、 また、 分割データ記録再生手段 によって、 前記複数の入出力処理手段それぞれから出力されたデ一タを所定単位で 分割して得られる複数の分割データが第 1のノンリニアアクセス可能な記録媒体に 記録されるとともに、 前記第 1のノンリニアアクセス可能な記録媒体に記録された 前記分割データの再生が行われ、 さらに、 誤り訂正符号データ記録再生手段によつ て、 前記分割データの誤り訂正符号データが生成され、 第 2のノンリニアアクセス 可能な記録媒体に前記複数の誤り訂正符号データが記録されるとともに、 前記第 2 のノンリニアアクセス可能な記録媒体に記録された前記誤り訂正符号データの再生 が行われる。
本発明のデータ記録再生方法は、 入力データを所定単位で分割して得られる複 数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録するとともに、 前記分割データに対する複数の誤り訂正符号データを生成して第 2のノンリニア アクセス可能な記録媒体に記録する第 1のステップと、
前記第 1のステップで第 1のノンリニアアクセス可能な記録媒体に記録された 前記分割データを再生するとともに、 前記第 2のノンリニアアクセス可能な記録 媒体に記録された前記複数の誤り訂正符号デ一タを再生する第 2のステップとを 備えたものである。
本発明の他のデータ記録再生装置は、 入力データを所定単位で分割して複数の 分割データを生成する分割手段と、
前記分割データが入力されて、 前記分割データに対する複数の誤り訂正符号デ ータを生成する誤り訂正符号データ生成手段と、
前記複数の分割データが入力されて、 第 1のノンリニアアクセス可能な記録媒 体にそれぞれ前記分割データを記録するとともに、 前記第 1のノンリニアァクセ ス可能な記録媒体に記録された前記分割データを再生する分割データ記録再生手 段と、
前記誤り訂正符号データ生成手段で生成された前記誤り訂正符号データが入力 されて、 第 2のノンリニアアクセス可能な記録媒体に前記複数の誤り訂正符号デ ータそれぞれを記録するとともに、 前記第 2のノンリニアアクセス可能な記録媒 体に記録された前記誤り訂正符号データを再生する誤り訂正符号データ記録再生 手段と、
前記誤り訂正符号データ記録再生手段から再生された前記誤り訂正符号データ と、 前記分割データ記録再生手段から再生された前記分割データとが入力されて、 前記誤り訂正符号データを用レ、て前記分割デ一タに対する誤り訂正処理を行う誤 り訂正手段と、
前記誤り訂正手段から出力された前記複数の分割データが入力されて、 前記複 数の分割データを多重化して出力する多重化手段とを備えたものである。
本発明の他のデータ記録再生装置は、 入力データを所定単位で分割して得られ る複数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録するとと
もに、 前記第 1のノンリニアアクセス可能な記録媒体に記録された前記分割デー タを再生する分割データ記録再生手段と、
前記分割データの誤り訂正符号データを生成して、 第 2のノンリニアアクセス 可能な記録媒体に複数の前記誤り訂正符号データを記録するとともに、 前記第 2 のノンリニアアクセス可能な記録媒体に記録された前記誤り訂正符号データを再 生する誤り訂正符号データ記録再生手段と、
前記誤り訂正符号データ記録再生手段から再生された前記誤り訂正符号データ を用いて、 前記分割データ記録再生手段から再生された前記複数の分割データに 対する誤り訂正処理を行う誤り訂正手段と、
前記第 1のノンリニアアクセス可能な記録媒体および前記第 2のノンリニアァ クセス可能な記録媒体に記録された、 互いに対応する複数の前記分割データと前 記誤り訂正符号データのうち修復対象となる分割データ以外のデータを前記分割 データ記録再生手段と前記誤り訂正符号データ記録再生手段とを制御して再生さ せ、 これら前記分割データと前記誤り訂正符号データとに基づいて前記分割デー タに対する誤り訂正処理を行わせるよう前期誤り訂正手段を制御し、 誤り訂正し た修復対象の前記分割データを前記第 1のノンリニァアクセス可能な記録媒体に 記録させるよう前記分割データ記録再生手段を制御することで前記分割データの 修復処理を行うデータ修復処理制御手段を備えたものである。
本発明の他のデータ記録再生装置は、 入力データを所定単位で分割して得られ る複数の分割データを複数の第 1のノンリニアアクセス可能な記録媒体にそれぞ れ記録するとともに、 前記第 1の記録媒体に記録された前記分割データを再生す る分割データ記録再生手段と、
前記分割データの誤り訂正符号データを生成して、 第 2のノンリニアアクセス 可能な記録媒体に複数の前記誤り訂正符号データを記録するとともに、 前記第 2 の記録媒体に記録された前記誤り訂正符号データを再生する誤り訂正符号データ 記録再生手段と、
前記第 1の記録媒体の記録領域における論理ァドレスと物理ァドレスとの対応 関係を変更する再割り付け処理を行うべき第 1の記録媒体について、 前記分割デ ータ記録再生手段において記録再生を行う他の第 1の記録媒体から除外して、 前
記再割り付け処理を行わせるよう前記分割データ記録再生手段を制御する再割り 付け処理制御手段とを備えたものである。
本発明の他のデータ記録再生方法は、 入力データを所定単位で分割して複数の 分割データを生成する第 1のステップと、
前記分割データが入力されて、 前記分割データに対する複数の誤り訂正符号デ ータを生成する第 2のステップと、
前記複数の分割データが入力されて、 複数の第 1のノンリニアアクセス可能な 記録媒体に前記複数の分割データをそれぞれ記録するとともに、 複数の第 2のノ ンリニアアクセス可能な記録媒体に前記複数の誤り訂正符号データをそれぞれ記 録する第 3のステップと、
前記第 1のノンリニアアクセス可能な記録媒体から前記分割データを再生する とともに、 前記第 2のノンリニアアクセス可能な記録から前記誤り訂正符号デー タを再生する第 4のステップと、
前記第 4のステップで再生された前記複数の分割データと前記複数の誤り訂正 符号データとが入力されて、 前記第 4のステツプで再生できない前記分割データ があったときは、 前記誤り訂正符号データを用いて前記分割データに対する誤り 訂正処理を行う第 5のステップと、
前記第 5のステップから出力された前記複数の分割データが入力されて、 前記 複数の分割データを多重化して出力する第 6のステツプとを備えたものである。 本発明の他のデータ記録再生方法は、 入力データを所定単位で分割して得られ る複数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録するとと もに、 前記分割データに対する複数の誤り訂正符号データを生成して第 2のノン リニァアクセス可能な記録媒体に記録する第 1のステップと、
前記第 1のステップで第 1の記録媒体に記録された前記分割データを再生する とともに前記第 2の記録媒体に記録された前記誤り訂正符号データを再生する第 2のステップと、
前記第 2のステツプで再生された前記誤り訂正符号データから、 前記第 2のス テップで再生された前記複数の分割データに対する誤り訂正処理を行う第 3のス テツプと、
前記第 1のステップで前記複数の分割データのうち前記第 1の記録媒体への記 録ができず、 記録できない前記分割データを修復して再び前記第 1の記録媒体へ 記録し直すとき、 前記第 1の記録媒体および前記第 2の記録媒体にそれぞれ記録 された互いに対応する前記分割データと前記誤り訂正符号データのうち修復対象 となる前記分割データ以外の前記分割データと前記誤り訂正符号データとをそれ ぞれ前記第 1の記録媒体と前記第 2の記録媒体とから再生させ、 再生された前記 分割データと前記誤り訂正符号データとから少なくとも前記修復対象となる前記 分割データに対して誤り訂正処理を行い、 誤り訂正処理で誤り訂正された前記修 復対象の前記分割データを再び前記第 1の記録媒体に記録することで前記分割デ —タの修復処理を行う第 4のステップとを備えたものである。
本発明の他のデータ記録再生方法は、 入力データを所定単位で分割して得られ る複数の分割データを第 1のノンリニアアクセス可能な記録媒体に記録するとと もに、 前記分割データに対する複数の誤り訂正符号データを生成して第 2のノン リニァアクセス可能な記録媒体に記録する第 1のステップと、
前記第 1のステップで前記第 1の記録媒体に記録された前記分割データを再生 するとともに、 前記第 2の記録媒体に記録された前記誤り訂正符号データを再生 する第 2のステップと、
前記第 1の記録媒体の記録領域における論理ァドレスと物理ァドレスとの対応 関係を変更する再割り付け処理を行うとき、 前記第 1のステップおよび第 2のス テップにおいて記録再生を行う他の第 1の記録媒体から除外して、 前記再割り付 け処理を行う第 3のステップを備えたものである。
本発明の他の A Vサーバは、 外部から入力された映像および音声データを含む データをノンリニアアクセス可能な記録媒体に記録可能なデータに変換するととも に、 前記記録媒体から出力された前記データを外部に出力可能なデータに変換して 出力する複数の入出力処理手段と、
前記複数の入出力処理手段のそれぞれから出力された前記データを所定単位に分 割して得られる複数の分割デ一タを第 1のノンリニアアクセス可能な記 媒体に記 録させるとともに、 前記第 1の記録媒体に記録された前記分割データを再生する分 割データ記録再生手段と、
前記分割データの誤り訂正符号データを生成して第 2のノンリニアアクセス可能 な記録媒体に前記複数の誤り訂正符号データを記録するとともに、 前記第 2の記録 媒体に記録された前記誤り訂正符号データを再生する誤り訂正符号データ記録再生 手段と、
前記誤り訂正符号データ記録再生手段から再生された前記誤り訂正符号データを 用いて、 前記分割データ記録再生手段から再生された前記複数の分割データに対す る誤り訂正処理を行う誤り訂正処理手段と、
前記第 1の記録媒体および前記第 2の記録媒体に記録された、 互いに対応する複 数の前記分割データと前記誤り訂正符号データのうち修復対象となる分割データ以 外のデータを前記分割データ記録再生手段と前記誤り訂正符号データ記録再生手段 とを制御して再生させ、 再生された前記分割データと前記誤り訂正符号データとに 基づいて前記分割データに対する誤り訂正処理を行わせるよう前記誤り訂正処理手 段を制御し、 誤り訂正した修復対象の前記分割データを前記第 1の記録媒体に記録 させるよう前記分割データ記録再生手段を制御することで前記分割データの修復処 理を行うデータ修復処理制御手段とを備えたものである。
本発明の他の A Vサーバは、 外部から入力された映像および音声データを含む データをノンリニァアクセス可能な記録媒体に記録可能なデータに変換して出力す るとともに、 前記記録媒体から出力された前記データを外部に出力可能なフォーマ ッ卜に変換して出力する複数の入出力処理手段と、
前記複数の入出力処理手段のそれぞれから出力された前記データを所定単位に分 割して得られる複数の分割データを第 1のノンリニアアクセス可能な記録媒体に記 録させるとともに、 前記第 1の記録媒体に記録された前記分割データを再生する分 割データ記録再生手段と、
前記分割データの誤り訂正符号データを生成して第 2のノンリニアアクセス可能 な記録媒体に記録させるとともに、 前記第 2の記録媒体に記録された前期誤り訂正 符号データを再生する誤り訂正符号データ記録再生手段と、
前記第 1の記録媒体の記録領域における論理ァドレスと物理ァドレスとの対応関 係を変更する再割り付け処理を行うべき第 1の記録媒体について、 前記分割データ 記録再生手段において記録再生を行う他の第 1の記録媒体から除外して、 前記再割
り付け処理を行わせるよう前記分割データ記録再生手段を制御する再割り付け処理 制御手段とを備えたものである。 図面の簡単な説明
第 1図は、 本発明の一実施の形態に係るデータ記録再生装置を含むビデオサー バの構成の一例を示すブロック図である。
第 2図は、 本発明の一実施の形態に係るデータ記録再生装置の構成を示すプロ ック図である。
第 3図は、 本発明の一実施の形態に係るデータ記録再生装置の通常モード時の 1タイムスロットにおける動作を示す流れ図である。
第 4図は、 第 3図に続く流れ図である。
第 5図は、 第 4図における部分再構築処理の動作を示す流れ図である。
第 6図は、 本発明の一実施の形態に係るデータ記録再生装置の再割り付け処理 モード時の動作を示す流れ図である。
第 7図は、 本発明の一実施の形態に係るデータ記録再生装置の全体再構築処理 モード時の 1タイムス口ットにおける動作を示す流れ図である。
第 8図は、 本発明の一実施の形態におけるハードディスク上のフォーマツ卜に ついて説明するための説明図である。
第 9図 Aおよび Bは、 論理ァドレスと物理的なセクタ番号との対応関係を説明 するための説明図である。
第 1 0図は、 本発明の一実施の形態に係るデータ記録再生装置と R A I D— 3 を用いたデータ記録再生装置とで信頼性を比較した結果の一例を示す特性図であ る。
第 1 1図は、 R A I D— 3を用いたデータ記録再生装置の構成の一例を示すブ 口ック図である。
第 1 2図は、 R A I D— 5を用いたデータ記録再生装置の構成の一例を示すブ ロック図である。 ― 発明を実施するための最良の形態
以下、 本発明を実施するための最良の形態について図面を参照して詳細に説明 する。
第 1図は、 本発明の一実施の形態に係るデータ記録再生装置を含むビデオサー バの構成の一例を示すブロック図である。 このビデオサーバ 1 0は、 マルチチヤ ネルビデオサーバとして使用されるものである。 このビデオサーバ 1 0は、 ビデ ォデータを含むデータの記録と再生を行う、 本実施の形態に係る複数のデータ記 録再生装置 (図では、 R A I Dと記す。) l l t l l n ( nは 2以上の整数 値) と、 各データ記録再生装置 1 1 〜1 1 に記録するデータの入力および 各データ記録再生装置 1 1 〜1 1 „ より再生したデータの出力を行う入出力 プロセッサ部 1 2とを備えている。
入出力プロセッサ部 1 2は、 一定時間間隔を複数に分割した時間的区切りであ るタイムスロット単位で各データ記録再生装置 1 1 〜1 1 „ に対するデータ の記録または再生のためのアクセスを時分割的に実行する複数の入出力プロセッ サ装置 (図では I O Pと記す。) l S i l S ." ( mは 2以上の整数値) と、 素 材情報等を管理する管理装置 1 4と、 入出力プロセッサ装置 1 3 i 〜1 3 m お よび管理装置 1 4とデータ記録再生装置 1 1 , 〜1 1 n との間を接続する上り データバス 1 5および下りデータバス 1 6とを有している。 なお、 上りデータバ ス 1 5および下りデータバス 1 6は、 データ記録再生装置 1 1 〜 1 1 n の台 数分存在し、 1つの上りデ一タバス 1 5および 1つの下りデータバス 1 6には、 1つのデータ記録再生装置 1 1 i ( iは 1以上 n以下の任意の整数値) と入出 力プロセッサ装置 1 3 i 〜 1 3 m および管理装置 1 4が接続されている。 すな わち、 1つの入出力プロセッサ装置 1 3」 ( jは 1以上 m以下の任意の整数 値) および管理装置 1 4は、 複数の上りデータバス 1 5および複数の下りデータ バス 1 6に接続されている。 なお、 本実施の形態では、 下りデータバス 1 6は、 入出力プロセッサ装置 1 3 i ~ 1 3 ,,, および管理装置 1 4からデータ記録再生 装置 1 1 , 〜1 1 „ に向かう方向のデータを転送するためのバスとし、 その逆 方向のデータを転送するためのバスを上りデータバス 1 5とする。 ―
各入出力プロセッサ装置 1 3 は、 データの記録の際には、 ビデオ信号等の 入力信号 S I .,· を所定の形式のデータに変換し、 このデータおよびこのデータ
の記録を指示するコマンドを、 下りデータバス 1 6を介して、 各データ記録再生 装置 1 1 i 〜 1 1 r, に送信するようになっている。 また、 各入出力プロセッサ 装置 1 3 は、 データの再生の際には、 データの再生を指示するコマンドを、 下りデータバス 1 6を介して、 各データ記録再生装置 1 1 i 〜1 1 „ に送信し て、 各データ記録再生装置 1 1 i 〜1 1 „ より再生され、 上りデータバス 1 5 を介して転送されたデータを所定の信号に変換して、 出力信号 S O j として外 部に出力するようになっている。
各データ記録再生装置 1 1 i は、 入力データおよび冗長符号データを記録す るための複数の H D Dを備えている。 各データ記録再生装置 1 1 i は、 データ の記録の際には、 下りデータバス 1 6を介して、 入出力プロセッサ装置 1 3 j より入力データおよびコマンドを受信し、 入力データを所定単位で分割して複数 の分割データを生成すると共に、 入力データに基づいて冗長符号データを生成し、 コマンドに従って、 分割データおよび冗長符号データを複数の H D Dに記録する ようになつている。 また、 各データ記録再生装置 1 1 i は、 データの再生の際 には、 下りデータバス 1 6を介して、 入出力プロセッサ装置 1 3 j よりコマン ドを受信し、 このコマンドに従って複数の H D Dを制御して、 分割データおよび 冗長符号データを再生し、 冗長符号データを用いて分割データに対して誤り訂正 処理を行い、 この誤り訂正処理後の分割データを多重化して、 出力データとして、 上りデータバス 1 5を介して入出力プロセッサ装置 1 3 に対して出力するよ うになっている。
第 2図は、 本実施の形態に係るデータ記録再生装置の構成を示すプロック図で ある。 このデータ記録再生装置 1 1 ( 1 1 〜1 1 „ を代表する。) は、 入力デ ータを記録するための複数の H D D 2 1 i 〜2 1 κ と (Κは 2以上の整数値) と、 誤り訂正符号データとしての冗長符号データを記録するための 2つの H D D 2 8 ! , 2 8 2 と、 入力データ D! を一定の長さに分割して複数の分割データ を生成し、 各分割データを各 H D D 2 1 i 〜2 1 κ に分配するデータ分配器 2 2と、 データ分配器 2 2より出力される分割データから冗長符号データ P 1, P 2を生成し、 出力するための冗長符号生成器 2 6と、 データ分配器 2 2より出力 される各分割データを一時的に保持する入力メモリ 2 3 i 〜2 3 κ と、 冗長符
号生成器 2 6より出力される冗長符号データ P 1, P 2を一時的に保持する入力 メモリ 2 7 1 ; 2 7 2 と、 それぞれ HD D 2 1 1 〜2 1 κ , 2 8 ι , 2 8 2 に接続され、 入力メモリ S S S S K , 2 7 ! , 2 7 2 によって保持された データの HD D 2 1 , 〜2 1 κ , 2 8 i , 2 8 2 への記録 (以下、 書き込みと も言う。) と HDD S l i S l K , 2 8 1 , 2 8 2 からのデータの再生 (以 下、 読み出しとも言う。) とを制御するコントローラ S i S K , 2 9 ! , 2 9 2 と、 各 HD D 2 1 〜2 1 κ , 2 8 ι , 2 8 2 から読み出されたデータ を一時的に保持する出力メモリ S S i S S K , 3 0 ! , 3 0 2 と、 出力メモ リ Ζ δ Ζ δ κ , 3 0 1 , 3 0 2 によって保持されたデータと後述するエラ 一情報とを用いてエラー検出およびエラー訂正を行って分割データの修復を行う エラー訂正器 3 1 と、 エラー訂正器 3 1の出力データを多重化して、 出力データ D。 として出力するデータ多重器 3 2と、 これら装置全体を制御する C P U 3 3とを備えている。 なお、 データ多重器 3 2の出力データは、 C P U 3 3の制御 により、 データ分配器 2 2に入力することも可能となっている。 また、 C P U 3 3は、 プログラムが格納された R OM (リード ·オンリ . メモリ) とワーキング エリアとなる RAM (ランダム 'アクセス ' メモリ) とを含んでいる。
HD D 2 1 i 〜2 1 , 2 8 ! , 2 8 2 は、 ランダムアクセス可能な記録媒 体であるハードディスク (磁気ディスク) における任意の記録領域にアクセスし て、 ハードディスクに対するデータの記録動作またはデータの再生動作を行うよ うになっている。 また、 HD D 2 1 1 〜2 1 K , 2 8 ! , 2 8 2 内の図示しな い制御部は、 データの読み出しエラーが発生した場合には、 その旨を表すエラー 情報を、 ステータスデータとしてコントローラ 24 1 〜24 κ , 2 9 1 , 2 9 2 に送るようになつている。 このエラー情報は、 更に、 コントローラ 2 4 i 〜 2 4 κ , 2 9 ! , 2 9 2 から C P U 3 3へ、 エラ一情報 E R E R K , E R PI, E R P2として送られるようになつている。
ここで、 第 8図を参照して、 ハードディスク上のフォーマッ トについて説明す る。 ハードディスク上には、 同心円状に複数のトラックが設定ざれる。 第 8図で は、 1つのトラックのみを示している。 トラックは放射状に区切られて、 データ の記録単位である複数のセクタが設定される。 これらのセクタには、 データの書
き込みや読み出しの際に、 常にエラーが発生するようなセクタが存在する場合が ある。 このようなセクタは、 欠陥セクタと呼ばれ、 物理的な傷等により正しくデ ータの読み出しあるいは書き込みができない状態となっていると考えられる。 こ のような欠陥セクタの発生に備えて、 ハードディスク上に予備のセクタを予め確 保しておき、 必要に応じて、 欠陥セクタの代わりに予備のセクタにデータを記録 する方法がある。 このような予備のセクタは代替セクタと呼ばれる。 この代替セ クタを有する HDDでは、 HDD内の制御部は、 欠陥セクタの代わりに代替セク タが用いられても、 上位からは同じセクタ番号で参照できるように、 論理的なセ クタ番号 (L BA) と物理的なセクタ番号を対応付ける対応表を内部で持ってい る。
第 8図に示した例では、 1つのトラックに対して、 N個のセクタ (Sector- 1〜 Sector - N) が物理的に割り付けられ、 更に、 2つの代替セクタ (Spare - 1 , Spar e-2 ) が用意されている。 第 9図は、 上述の対応表で表される L B Aと物理的な セクタ番号との対応関係を示したものである。 欠陥セクタがない正常な場合には、 第 9図 Aに示したように、 L B Aと物理的なセクタ番号は一致している。 正常な 場合には、 HDD内の制御部は、 第 9図 Aに示した対応関係の対応表に基づいて ハードディスク上の記録領域を管理している。 これに対し、 例えば、 セクタ Sec tor- 5に欠陥がある場合には、 セクタ Sector- 5の代わりに、 代替セクタ Spare- 1 が使用される。 この場合、 第 9図 Bに示したように、 LBAにおける "5" に 対して、 代替セクタ Spare- 1 が対応付けられ、 HDD内の制御部は、 第 9図 B に示した対応関係の対表表に基づいてハードディスク上の記録領域を管理するこ とになる。 このように、 欠陥セクタの発生に応じて、 LBAと物理的なセクタ番 号との対応関係を変えることを、 再割り付け処理 (Reassign) と呼ぶ。
C PU 3 3は、 下りデータバス 1 6を介して、 入出力プロセッサ装置 1 3 j よりコマンドを受信し、 このコマンドに従って、 コントローラ 24 , 〜 24 k , 2 9 , 2 9 2 に指示を与えて、 各 HDD 2 1 1 〜2 1 k , 28 , , 28 2 を制御するようになっている。 また、 CPU 3 3は、 データの読み出しエラーが 発生していた場合には、 その旨を表すエラ一情報を、 エラー訂正器 3 1に送るよ うになつている。 このエラ一情報は、 読み出しエラーが発生した HDDを特定す
る情報を含んでいる。
エラー訂正器 3 1は、 必要に応じて、 C PU 33からのエラー情報と出力メモ リ S S a S S K , 30 , 3 0 2 によって保持されたデータとを用いて、 ェ ラー検出およびェラ一訂正を行つて分割データの修復を行って、 修復後の分割デ ータをデータ多重器 3 2に出力するようになっている。 データ多重器 3 2は、 ェ ラー訂正器 3 1より出力される分割データを元のデータ列に並べ替えて、 出力デ 一タ0。 として出力するようになっている。
HDD 2 1 ,〜2 1 は、 本発明における分割データ記録再生手段に対応し、 HDD 28 , , 28 2 は、 本発明における誤り訂正符号データ記録再生手段に 対応し、 データ分配器 2 2は、 本発明における分割手段に对応し、 冗長符号生成 器 2 6は、 本発明における誤り訂正符号データ生成手段に対応し、 エラー訂正器 3 1は、 本発明における誤り訂正手段に対応し、 データ多重器 32は、 本発明に おける多重化手段に対応する。
本実施の形態では、 誤り訂正符号として、 複数の分割データの誤り訂正が可能 な符号を用いる。 このような符号として B CH符号がある。 本実施の形態では、 誤り訂正符号として、 特に、 BCH符号の一種であるリードソロモン符号を用い る。 ここで、 リードソロモン符号について簡単に説明する。
まず、 リードソロモン符号では、 1バイ トすなわち 8ビットを 1つの数として 扱い、 O O hから FF h (hは 1 6進数を表す。) までの 2 56個の数が用いら れ、 また、 四則演算に関しても整数の世界とは異なる演算法則が用いられる。 リードソロモン符号では、 符号多項式や生成多項式と呼ばれる多項式が用いら れる。 ここでは、 1 4バイ トのデータバイ トに対して、 2バイ トのパリティバイ トを用いる場合を例にとって説明する。 この場合、 1 4バイ トのデータバイ トと 2バイ 卜のパリティバイ 卜の合計 1 6バイ トをまとめて処理する。 そこで、 1 4 バイ トのデータバイトを、 それぞれ W 15, W ■··, W2 とし、 2バイ トのノ、° リテイノくィ トを、 それぞれ W , W。 とする。 なお、 W i ( iは 0から 1 5ま での整数値) は、 すべてバイ トという形式の 00 hから F F hまで^いずれかの 数である。
符号多項式 W (X) は次の式 (1 ) のように定義される。
W (X) =W isX X 15 + W 14X X 14 + --- + W 2 XX 2 +W i XX+Wo … (1 )
な; fc、 Xもバイ トという形式の 00 hから F F hまでのいずれかの数である。 ここで、 式 ( 1 ) の W (X) において、 W! X X+W。 は、 W 15X X 15 + W
14XX 14 + --- + W2 XX 2 を、 次の式 (2) で表される生成多項式 G (X) で 割った余りとして求められる。
G (X) = (X- 02 h) X (X— O l h) … (2)
従って、 次の式 (3) および式 (4) が成り立つように、 ノ リティバイ , W。 の値を定める。
W (02 h) = 00 h ··· (3)
W (O l h) = 00 h ··■ (4)
リードソロモン符号における符号化では、 このような関係に基づいて、 データ バイ 卜からパリティバイ トを求める。
次に、 リードソロモン符号における誤り訂正について説明する。 まず、 データ バイ W 15, W ι4, ···, W 2 およびパリティバイ , W。 に対応するデー タが、 それぞれ HDD (1 5), HDD (1 4), ···, HDD (1 ), HDD
(0) から V 15, V 14, …, V i , V。 として読み出されたとする。 ここで、 HDD ( i ) の読み出しデータ V i における誤りの有無により、 読み出しデー タ は次の式 (5), (6) によって表される。 なお、 E i は誤りの大きさを 表す。
HDD ( i ) に誤りがない場合: V i =W i ··· (5)
HDD ( i ) に誤りがある場合: V ; =W + E ··· (6)
次に、 符号多項式 W (X) に対して、 V (X) を次の式 (7) のように定義す る。
V (X) = V is X X 15+ V 14X X 14+··· + V 2 XX 2 + V X X + V ο
·- (7)
更に、 シンドロームと呼ばれる値 S , S。 を、 次の式 (8), (9) のよう に定義する。
S n = V (02 h) ··· (8)
S o = V (0 1 h) ··· (9)
ここで、 どの HDDの読み出しデータにも誤りがない場合には、 V (X) =W (X) なので、 シンドロームは次の式 ( 1 0), ( 1 1 ) のようになる。
S i = 00 h ··· (1 0)
S o = 00 h ··■ (1 1 )
次に、 HDD ( i ) の読み出しデータに誤りがあるが、 HDD ( i ) からはェ ラー情報の通知がない場合には、 式 (6), (7) に基づいて、 V (X) =W
(X) +E XX 1 となり、 シンドロームは次の式 (1 2), (1 3) のように なる。
S ! = E . X 02 h 1 ··· (1 2)
S o =E i X O l h 1 =E i ··· ( 1 3)
従って、 式 (1 3) により、 誤りの大きさ E i が求まり、 この誤りの大きさ E i と式 (1 2) とによって、 どの HDD ( i ) の読み出しデータが誤りかを 示す添え字 iが求まり、 これにより、 読み出しデータの誤り訂正が可能となる。 これを 1誤り訂正と呼ぶ。
次に、 2つの HDD ( i ) と HDD ( j ) ( j は 0から 1 5までの整数値) の 読み出しデータに誤りがあり、 HDD ( i ) と HDD ( j ) からエラー情報の通 知があった場合には、 式 (6), (7) に基づいて、 V (X) =W (X) +E i X X i + E j XX となるので、 シンドロームは次の式 (1 4), (1 5) のよ うになる。
S x =E i X 02 h i +E j X 02 h J ·'· (1 4)
S 。 =E i X 0 1 h i +E j X 0 1 h J =E i +E j … (1 5) ここでは、 HDD ( i ) と HDD (j ) からエラー情報の通知があったものと しているので、 添え字 i , j の値は既知である。 従って、 式 (1 4) における 0 2 h 1 と 02 h J の値を計算することができ、 E i と E 」· の値は、 2元連立方 程式により求まり、 これにより、 読み出しデータの誤り訂正が可能となる。 これ を 2誤り消失訂正と呼ぶ。 ―
リ一ドソロモン符号における複号化では、 このようにしてシンドロームの値を 求めて、 このシンドロームの値を用いて、 誤りの位置や大きさを求めるようにな
つている。
なお、 以上のリードソロモン符号の説明におけるデータバイ ト W 15, W 14 ···, W 2 は、 本実施の形態における分割データに対応し、 パリティバイ , W。 は、 本実施の形態における冗長符号データ P 1 , P 2に対応する。
次に、 本実施の形態に係るデータ記録再生装置 1 1の動作について説明する。 なお、 以下の説明は、 本実施の形態に係るデータ記録再生方法の説明を兼ねてい る。
まず、 データ記録再生装置 1 1の書き込み動作について説明する。 入力データ D は、 データ分配器 22に入力されて複数の分割データが生成され、 各分割 データは、 入力メモリ 2 3 i 2 3 κ に分配されてー且記録されると共に、 冗 長符号生成器 2 6に入力される。 このとき、 データの分配方法としては、 例えば、 ビット単位あるいはバイ ト単位でデータ列 D 1 D 2, D 3, D 4, D 5 , …の ように並んでいるとして、 データ D 1を 1台目の HDD 2 1 ! に分配し、 デー タ D 2を 2台目の HDD 2 1 2 に分配するというように、 データを順番に分配 していき、 データ DKを最後の K台目の HDD 2 1 κ に分配し終えたら、 再度、 最初の HDD 2 1 ! から順にデータを分配していく方法がある。
冗長符号生成器 26は、 データ分配器 22から出力される分割データに基づい て、 リードソロモン符号における冗長符号データ P 1 P 2を生成して出力する。 入力メモリ 2 7 i 2 7 2 は、 この冗長符号データ P I , P 2を一旦記録する。 その後、 各 HDD 2 1 2 1 κ 28 , 28 2 のコントローラ 24 2 4 κ , 2 9 ! , 29 2 は、 CPU 3 3の制御に基づいて、 入力メモリ 2 3 23 κ , 2 7 , 2 7 2 から分割データおよび冗長符号データ P 1 P 2を読 み出して、 各 HDD 2 1 2 1 κ 28 , 28 2 に書き込む。
次に、 データ記録再生装置 1 1のデータの読み出し動作について説明する。 C PU 3 3の制御の下で、 各コントローラ S i S K , 29 , 2 9 2 は、 各 HDD 2 l i S l x , 28 ! , 28 2 から分割データおよび冗長符号デー タ Ρ 1 , Ρ 2を読み出し、 それぞれ出力メモリ 25 25 κ , 3_0 χ , 30 に書き込む。 このとき、 HDD 2 1 i 2 1 K , 28 , , 28 2 において読 み出しエラーが発生した場合には、 その旨を表すエラー情報が、 HDD 2 1 1
〜2 1 κ , 28 ! , 28 内の制御部より、 ステータスデータとしてコント口 ーラ? 〜? !^ , 29 , 2 9 2 に送られ、 更に、 コントローラ 24 ! 〜 24 κ , 2 9 2 9 2 力 ら C PU 3 3へ、 エラー情報 E R 〜E R K , E R P1, E R P2として送られる。
出力メモリ ? 〜 ^ , 30 , , 30 2 に記録された各データは、 同期 がとられてエラー訂正器 3 1に出力される。 このとき、 読み出しエラーが発生し ていた場合には、 その旨を表すエラー情報が、 CPU 3 3よりエラー訂正器 3 1 に送られる。 このエラー情報は、 読み出しエラーが発生した HDDを特定する情 報を含んでいる。 エラー訂正器 3 1は、 必要に応じて、 エラ一情報と冗長符号デ ータ P l, P 2とに基づいて、 分割データを修復して、 データ多重器 3 2に出力 する。 データ多重器 3 2は、 エラー訂正器 3 1から出力された分割データを元の データ列に並べ替えて、 出力データ D。 として外部へ出力する。
本実施の形態では、 誤り訂正符号として、 複数の分割データの誤り訂正が可能 なリードソロモン符号を用いているので、 以下のような場合に、 分割データの修 復が可能である。
(1 ) 1台の HDDの読み出しデータに誤りがある場合
この場合は、 その HDDで読み出しエラーが発生した旨のエラー情報の通知が あった場合はもちろん、 エラー情報の通知がなかった場合でも、 分割データの修 復が可能である。
(2) 2台の HDDの読み出しデータに誤りがあり、 且つそれらの HDDで読み 出しエラーが発生した旨のエラー情報の通知があった場合
ところで、 いずれかの HDDにおいて、 書き込み動作においてエラー (以下、 書き込みエラーと言う。) が発生した場合、 書き込みエラーが発生したデータを 修復する必要がある。 このような記録媒体 (ハードディスク) における記録領域 の一部についてのデータの修復処理を、 本実施の形態にぉレ、て部分再構築処理 (部分 Rebuild ) と呼ぶ。 また、 書き込み動作や読み出し動作において、 いつ もエラーとなってしまうような欠陥セクタが発生した場合には、 前述のように、 L B Aと物理的なセクタ番号との対応関係を変える再割り付け処理 (Reassign) を行う必要がある。 更に、 いずれかの HDDが交換された場合には、 新しい HD
Dに元のデータを再構築していく必要がある。 このような記録媒体 (ハードディ スク) における記録領域全体についてのデータの修復処理を、 本実施の形態にお いて全体再構築処理 (全体 Rebuild ) と呼ぶ。
以下、 上述の部分再構築処理、 再割り付け処理および全体再構築処理を含むデ ータ記録再生装置 1 1の全体的な動作の一例について説明する。 以下の例では、 データ記録再生装置 1 1の動作モードには、 通常モードと、 再割り付け処理モー ドと、 全体再構築処理モードとがある。 通常モードから再割り付け処理モードへ の移行は、 通常モードにおいて所定の条件が満たされた場合や、 データ記録再生 装置 1 1に対して上位の装置、 すなわち第 1図における入出力プロセッサ部 1 2 からの指示があった場合に発生する。 再割り付け処理モードにおける処理が完了 したら、 通常モードへ移行する。 また、 通常モードから全体再構築処理モードへ の移行は、 データ記録再生装置 1 1に対して上位の装置、 すなわち第 1図におけ る入出力プロセッサ部 1 2からの指示があった場合や、 データ記録再生装置 1 1 自身が、 いずれかの HDDが交換されたことを検知した場合に発生する。 全体再 構築処理モードにおける処理が完了したら、 通常モードへ移行する。
第 3図および第 4図は、 通常モードの 1タイムスロッ 卜におけるデータ記録再 生装置 1 1の動作を示す流れ図である。 この動作では、 まず、 C PU 3 3は、 書 き込みを指示するコマンドを受信したか否かを判断し (ステップ S 1 0 1)、 書 き込みを指示するコマンドを受信した場合 (Y) は、 前述の書き込み動作を行う (ステップ S 1 0 2)。 C PU 3 3が書き込み指示コマンドを受信したか否かの 判断は、 例えば、 上位入出力プロセッサ部 1 3 t〜 1 36からバス 1 6を介して 転送されたコマンドを C PU 3 3が受信して、 このコマンドが書き込み指示のコ マンドであるか否かを判断することによって行うことができる。 書き込み動作の 終了後、 C PU 3 3は、 各 HDD S l i S l K , 2 8 χ , 2 8 2 からの情報 に基づいて、 データの書き込みが成功したか否かを判断する (ステップ S 1 0 3)。 データの書き込みが成功した場合 (Υ) には、 1タイムスロットにおける 動作を終了する。 データの書き込みが失敗した場合 (ステップ S 1 0 3 ; Ν) に は、 C PU 3 3は、 書き込みが失敗した HDDおよびアドレスを記憶して (ステ ップ S 1 04)、 1タイムスロッ 卜における動作を終了する。
CPU 3 3は、 書き込みを指示するコマンドを受信していない場合 (ステップ S 1 0 1 ; N) は、 読み出しを指示するコマンドを受信したか否かを判断し (ス テツプ S 1 05)、 読み出しを指示するコマンドを受信した場合 (Y) は、 前述 の読み出し動作を行う (ステップ S 1 06)。 この読み出しコマンドを受信した か否かの判断も、 上位入出力プロセッサ部 1 3 〜 1 36からバス 1 6を介して 転送されたコマンドを C PU 3 3が受信することで行うことができる。 読み出し 動作の終了後、 C PU 3 3は、 各 HDD S l i S l K , 28 , 28 2 から のエラー情報 Ε R 〜Ε R κ, ER P1, E R P2の有無に基づいて、 データの読 み出しが成功したか否かを判断する (ステップ S 1 0 7)。 データの読み出しが 成功した場合 (Y) には、 1タイムスロットにおける動作を終了する。 データの 読み出しが失敗した場合 (ステップ S 1 07 ; N) には、 CPU 3 3は、 読み出 しが失敗した HDDおよびァドレスと、 その HDDおよびァドレスにおける読み 出し失敗の回数を記憶する (ステップ S 1 08)。 次に、 CPU 3 3は、 ステツ プ S 1 08で記憶した読み出し失敗の回数が所定値 N 1 (N 1は 1以上の任意の 整数値) 以上か否かを判断し (ステップ S 1 09)、 読み出し失敗の回数が所定 値 N 1以上でなければ (N;)、 1タイムスロッ トにおける動作を終了する。 読み 出し失敗の回数が所定値 N 1以上の場合 (Y)、 C PU 3 3は、 後述する再割り 付け処理モードへ移行する (ステップ S 1 1 5)。
CPU 3 3は、 書き込みを指示するコマンドも読み出しを指示するコマンドも 受信しなかった場合 (ステップ S 1 05 ; N) には、 部分再構築処理を行うべき HDDおよびアドレスがあるか否かを判断する (ステップ S 1 1 0)。 ここで、 部分再構築処理を行うべき HDDおよびア ドレスには、 次の 3種類がある。 すな わち、 第 1は、 ステップ S 1 04で記憶した書き込みが失敗した HDDおよぴァ ドレスである。 第 2は、 再割り付け処理を行った HDDおよびアドレスである。 第 3は、 後で詳しく説明するが、 再割り付け処理における書き込み動作停止中に 記憶しておいた HDDおよびァドレスである。 部分再構築処理を行うべき HDD およびア ドレスは、 C PU 3 3が記憶している。 なお、 部分再構築処理を行うベ き HDDおよびア ドレスを、 データ記録再生装置 1 1に対して上位の装置、 すな わち第 1図における入出力プロセッサ部 1 2が記憶するようにしてもよレ、。 ちな
みに、 書き込み指示がなく (ステップ S 1 0 1 ; N)、 かつ読み出し指示もない
(ステップ S 1 05 ; N) ときは、 上位プロセッサ 1 2側からは動作の指示がな いときである。 つまり、 割り当てられたタイムスロッ トで上位プロセッサ 1 2側 が動作するのは、 上位からデータの書き込み指示やデータの読み出し指示がある ときで、 これらの指示がないときは、 割り当てられたタイムスロッ トでの動作が すでに終了しているときである。
部分再構築処理を行うべき HDDおよびア ドレスがない場合 (ステップ S I 1 0 ; N) は、 処理を終了させる。 部分再構築処理を行うべき HDDおよびァドレ スがある場合 (ステップ S 1 1 0 ; Y) は、 部分再構築処理を行う (ステップ S 1 1 1)。 この部分再構築処理については、 後で詳しく説明する。
C PU 3 3は、 部分再構築処理の終了後、 部分再構築処理が成功したか否かを 判断する (ステップ S 1 1 2)。 部分再構築処理が成功した場合 (Y) は、 処理 動作を終了する。 部分再構築処理が失敗した場合 (N) には、 CPU 33は、 部 分再構築処理が失敗した HDD、 ァドレスおよび部分再構築処理が失敗した回数 を記憶する (ステップ S 1 1 3)。 次に、 CPU 3 3は、 ステップ S 1 1 3で記 憶した部分再構築処理の失敗の回数が所定値 N 2 (N 2は 1以上の任意の整数 値) 以上か否かを判断し (ステップ S 1 1 4)、 部分再構築処理の失敗の回数が 所定値 N 2以上でなければ (N)、 1タイムスロットにおける動作を終了する。 部分再構築処理の失敗の回数が所定値 N 2以上の場合 (Y)、 C PU 3 3は、 後 述する再割り付け処理モードへ移行する (ステップ S 1 1 5)。
このように、 本実施の形態では、 部分再構築処理は、 上位側から転送されたデ ータに対する書き込み動作や上位側に出力すべき記録されたデータの読み出し動 作を中断することなく、 上位からの書き込み指示や読み出し指示のないタイムス ロット、 すなわち空き動作時間において実行される。
次に、 第 5図の流れ図を参照して、 部分再構築処理 (ステップ S 1 1 1 ) につ いて、 詳しく説明する。 この部分再構築処理は、 セクタ単位で行われる。 この部 分再構築処理では、 まず、 CPU 33は、 部分再構築処理を行うべきア ドレス (セクタ) を指定して、 各コントローラ S i S x , 2 9 ! , 29 2 に対 して読み出し動作を行わせる。 これに応じて、 各コントローラ 24 〜24 κ ,
2 9 i , 2 9 2 は、 各 HDD 2 1 i 〜 2 1 κ , 2 8 ι , 2 8 2 より、 指定さ れたア ドレスのデータを読み出す (ステップ S 2 0 1)。 読み出された各データ は、 出力メモリ S S S S K , 3 0 1 , 3 0 2 を経て、 エラー訂正器 3 1に 入力される。 このとき、 C PU 3 3は、 エラー訂正器 3 1に対して、 部分再構築 処理を行うべき HDDから読み出されたデータは使用しないように指示を与えて おく。 エラー訂正器 3 1は、 出力メモリ S S i S S , 3 0 1 , 3 0 2 より 出力されるデータのうち、 部分再構築処理を行うべき HDDから読み出されたデ ータ以外のデータを用いて、 部分データの修復を行い (ステップ S 2 0 2)、 修 復後の部分データをデータ多重器 3 2に出力する。 データ多重器 3 2は、 エラー 訂正器 3 1から出力された分割データを元のデータ列に並べ替えて、 出力データ D。 として出力する。
次に、 C PU 3 3の制御により、 データ多重器 3 2からの出力データ D。 を データ分配器 2 2に入力し、 入力データ Ό τ の書き込み時と同様の書き込み動 作を行って、 部分再構築処理を行うべき HDDに対して、 修復された部分データ を書き込んで (ステップ S 2 0 3)、 部分再構築処理を終了する。 なお、 書き込 み動作では、 部分再構築処理を行うべき HDDのみにおいてデータの書き込みを 行えばよいが、 簡易的には、 全ての HDD 2 1 丄 〜 2 1 κ , 2 8 1 , 2 8 2 に おいて書き込みを行ってもよい。
本実施の形態では、 誤り訂正符号として、 複数の分割データの誤り訂正が可能 なリードソロモン符号を用いているので、 部分再構築処理中であっても、 RA I
D- 3を用いたデ一タ記録再生装置と同様のデータの誤り検出および訂正の能力 を保つことができる。 すなわち、 部分再構築処理中に、 部分再構築処理を行うベ き HDD以外のもう 1台の HDDにおいて読み出しエラーが発生しても、 データ を正しく修復することが可能である。
なお、 上記説明では、 部分再構築処理において、 データ多重器 3 2の出力デー タ0。 をデータ分配器 2 2に送って書き込み処理を行うようにしたが、 エラー 訂正器 3 1より出力される各分割データを各入力メモリ 2 3 〜2 3 κ および 冗長符号生成器 2 6に送って書き込み処理を行うようにしてもよい。
また、 上記説明では、 部分再構築処理を行うべき HDDおよびア ドレスを、 C
PU 3 3が検知し、 記憶しておくようにしたが、 データ記録再生装置 1 1に対し て上位の装置、 すなわち第 1図における入出力プロセッサ部 1 2が、 部分再構築 処理を行うべき HDDおよびア ドレスを記憶し、 データ記録再生装置 1 1に対し て、 部分再構築処理を行うべき HDDおよびァドレスを指定して部分再構築処理 の指示を送り、 この指示に応じてデータ記録再生装置 1 1が部分再構築処理を行 うようにしてもよい。 この場合も、 部分再構築処理は、 書き込み指示や読み出し 指示のないタイムスロッ卜において実行するようにする。
次に、 第 6図の流れ図を参照して、 再割り付け処理モード時の動作について説 明する。 なお、 通常モードから再割り付け処理モードへの移行は、 第 3図および 第 4図に示した通常モードにおいて所定の条件が満たされた場合 (ステップ S 1 1 5) や、 データ記録再生装置 1 1に対して上位の装置、 すなわち第 1図におけ る入出力プロセッサ部 1 2からの指示があった場合に発生する。
再割り付け処理モードの動作では、 まず、 CPU 3 3は、 再割り付けを行う H DDにおける書き込み動作および読み出し動作を停止する (ステップ S 30 1)。 次に、 CPU 3 3は、 再割り付けを行う HDDに対して、 再割り付けを行うセク タを指定して、 再割り付け処理を開始させる (ステップ S 302)。 なお、 再割 り付けを行うセクタは、 読み出しの失敗回数が N 1以上となったセクタおよび部 分再構築処理の失敗回数が N 2以上となったセクタである。 再割り付け処理は、 前述のように、 LB Aと物理的なセクタ番号との対応関係を変えることである。 CPU 3 3は、 再割り付け処理中に、 書き込みを指示するコマンドを受信した場 合には、 再割り付けを行う HD D以外の HDDにおいて書き込み動作を行わせる と共に、 再割り付けを行う H D Dと書き込みが指示された L B Aとを記憶してお く。 CPU 3 3は、 再割り付け処理中に、 読み出しを指示するコマンドを受信し た場合には、 再割り付けを行う HDD以外の HDDにおいて読み出し動作を行わ せると共に、 エラー訂正器 3 1に対して、 再割り付けを行う HDDからのデータ を無効としてエラー訂正を行うように指示を与える。
次に、 CPU 33は、 再割り付け処理が終了したか否かを判断し (ステップ S 303)、 終了していなければ (N)、 この判断を繰り返す。 再割り付け処理が 終了したら (Y)、 再割り付けを行う HDDにおける書き込み動作および読み出
し動作の停止を解除し (ステップ S 304)、 通常モードへ移行する (ステップ S 305)0
このように、 本実施の形態では、 再割り付け処理中であっても、 書き込み動作 や読み出し動作は中断することなく実行される。 しかも、 本実施の形態では、 誤 り訂正符号として、 複数の分割データの誤り訂正が可能なリードソロモン符号を 用いているので、 再割り付け処理中であっても、 R A I D— 3を用いたデータ記 録再生装置と同様のデータの誤り検出および訂正の能力を保つことができる。 す なわち、 再割り付け処理中の読み出し動作において、 再割り付け処理を行ってい る HDD以外のもう 1台の HDDにおいて読み出しエラーが発生しても、 データ を正しく修復することが可能である。
次に、 全体再構築処理について説明する。 全体再構築処理は、 いずれかの HD Dが交換された場合に実行される。 通常モードから全体再構築処理モードへの移 行は、 前述のように、 データ記録再生装置 1 1に対して上位の装置、 すなわち第 1図における入出力プロセッサ部 1 2からの指示があった場合や、 データ記録再 生装置 1 1自身が、 いずれかの HDDが交換されたことを検知した場合に発生す る。 入出力プロセッサ部 1 2からの指示には、 全体再構築処理を行うべき HDD を特定する情報が含まれる。 データ記録再生装置 1 1自身が、 いずれかの HDD が交換されたことを検知する方法としては、 次のような方法が用いられる。 すな わち、 まず、 検知動作は、 データ記録再生装置 1 1が起動するときや HDDを抜 き差しするときに、 C PU 3 3によって行われる。 HDDの抜き差しがあったこ とは、 コントローラ 24 1 〜24 κ , 29 , 29 2 が検知し、 C PU 3 3に 伝える。 HDDが交換されたか否かの判断は、 コントローラ 24 i 〜 24 κ , 2 9 ! , 29 2 によって検知される HDDのシリアル番号を用いて、 あるいは HDDの所定の領域に HDDの固有の情報を記録しておいて、 その情報を用いて 行う。
次に、 第 7図の流れ図を参照して、 全体再構築処理モード時の 1タイムスロッ 卜における動作について説明する。 この動作では、 まず、 CPU 3 3—は、 書き込 みを指示するコマンドを受信したか否かを判断し (ステップ S 40 1)、 書き込 みを指示するコマンドを受信した場合 (Y) は、 書き込み動作を行う (ステップ
S 4 0 2)0 このときの書き込み動作は、 通常モード時と同様である。 書き込み 動作の終了後、 C PU 3 3は、 各 HD D S l i S l , 2 8 i , 2 8 2 から の情報に基づいて、 データの書き込みが成功したか否かを判断する (ステップ S
4 0 3)。 データの書き込みが成功した場合 (Υ) には、 1タイムスロッ トにお ける動作を終了する。 データの書き込みが失敗した場合 (ステップ S 4 0 3 ; Ν) には、 C P U 3 3は、 書き込みが失敗した HDDおよびア ドレスを記憶して
(ステップ S 4 0 4)、 1タイムスロッ 卜における動作を終了する。
C P U 3 3は、 書き込みを指示するコマンドを受信していない場合 (ステップ
5 4 0 1 ; N) は、 読み出しを指示するコマンドを受信したか否かを判断し (ス テツプ S 4 0 5)、 読み出しを指示するコマンドを受信した場合 (Y) は、 読み 出し動作を行う (ステップ S 4 0 6)。 ただし、 このときの読み出し動作では、 C P U 3 3は、 エラー訂正器 3 1に対して、 全体再構築処理を行うべき HDDか ら読み出されたデータは使用しないように指示を与えておく。 エラ一訂正器 3 1 は、 出力メモリ S S ! S S K , 3 0 ! , 3 0 2 より出力されるデータのうち、 全体再構築処理を行うべき HDDから読み出されたデータ以外のデータを用いて、 部分データの修復を行い、 修復後の部分データをデータ多重器 3 2に出力する。 読み出し動作の終了後、 C PU 3 3は、 各 HDD S I S I K , 2 8 i , 2
8 2 からのエラー情報 Ε R 〜Ε R κ , ER P1, E R P2の有無に基づいて、 データの読み出しが成功したか否かを判断する (ステップ S 4 0 7)。 データの 読み出しが成功した場合 (Y) には、 1タイムスロッ トにおける動作を終了する。 データの読み出しが失敗した場合 (ステップ S 4 0 7 ; N) には、 C PU 3 3は、 読み出しが失敗した HD Dおよびァ ドレスと、 その HDDおよびァドレスにおけ る読み出し失敗の回数を記憶して (ステップ S 4 0 8)、 1タイムスロッ トにお ける動作を終了する。
C P U 3 3は、 書き込みを指示するコマンドも読み出しを指示するコマンドも 受信しなかった場合 (ステップ S 4 0 5 ; N) には、 全体再構築処理を行う (ス テツプ S 4 0 9)。 全体再構築処理は、 部分再構築処理と同様の処理を、 ハード ディスクの記録領域全体について行うものである。 次に、 C P U 3 3は、 全体再 構築処理が全て終了したか否かを判断し (ステップ S 4 1 0)、 全体再構築処理
が全て終了していなければ (N)、 1タイムスロッ トにおける動作を終了する。 全体再構築処理が全て終了したら (Y)、 通常モードへ移行する (ステップ S 4 1 1)。
このように、 本実施の形態では、 全体再構築処理は、 書き込み動作や読み出し 動作を中断することなく、 書き込み指示や読み出し指示のないタイムスロッ卜に おいて実行される。
また、 本実施の形態では、 誤り訂正符号として、 複数の分割データの誤り訂正 が可能なリードソロモン符号を用いているので、 全体再構築処理モード中であつ ても、 RA I D— 3を用いたデータ記録再生装置と同様のデータの誤り検出およ び訂正の能力を保つことができる。 すなわち、 全体再構築処理中に、 全体再構築 処理を行うべき HDD以外のもう 1台の HDDにおいて読み出しエラーが発生し ても、 データを正しく修復することが可能である。 また、 全体再構築処理モード 中における読み出し動作において、 全体再構築処理を行うべき HDD以外のもう 1台の HDDにおいて読み出しエラーが発生した場合も、 データを正しく修復す ることが可能である。
なお、 全体再構築処理においても、 部分再構築処理と同様に、 修復後のデータ の書き込み動作では、 全体再構築処理を行うべき HDDのみにおいてデータの書 き込みを行えばよいが、 簡易的には、 全ての HDD 2 1 i 〜2 1 K, 28 ! , 28 において書き込みを行ってもよい。
また、 上記説明では、 全体再構築処理において、 データ多重器 3 2の出力デー タ13。 をデータ分配器 2 2に送って書き込み処理を行うようにしたが、 エラー 訂正器 3 1より出力される各分割データを各入力メモリ 23 i 〜23 κ および 冗長符号生成器 26に送って書き込み処理を行うようにしてもよい。
以上説明したように、 本実施の形態に係るデータ記録再生装置 1 1では、 デー タの記録時には、 入力データを所定単位で分割して、 複数の分割データを生成す ると共に、 入力データに基づいて、 入力データに対して複数の分割データの誤り 訂正が可能な誤り訂正符号 (リードソロモン符号) による誤り訂正符号データ
(冗長符号データ P l, P 2) を生成し、 これら複数の分割データおよび誤り訂 正符号データをそれぞれ別個の HDD 2 1 i 〜2 1 κ , 28 : , 28 2 によつ
て記録し、 データの再生時には、 各 HDD Ζ Ι Ζ Ι κ , 28 i , 28 2 力、 ら、 複数の分割データと誤り訂正符号データとを再生し、 再生された誤り訂正符 号データを用いて、 再生された複数の分割データに対する誤り訂正処理を行い、 この誤り訂正処理後の各分割データを多重化して出力するようにしている。 従つ て、 本実施の形態に係るデータ記録再生装置 1 1は、 RA I D— 3や RA I D— 5を用いたデータ記録再生装置に比べてデータの誤り検出および訂正の能力に優 れ、 システムの信頼性を向上させることができ、 且つ、 RA I D— 3を用いたデ ータ記録再生装置と同様に、 入力データの書き込みは、 1回のアクセスで可能で あり、 データの読み出し後のエラー訂正も即座に行うことができ、 リアルタイム 性が要求される処理に適し、 マルチチャネルビデオサーバ等のリアルタイム性が 要求される装置に適している。
具体的には、 本実施の形態に係るデータ記録再生装置 1 1では、 2つの分割デ ータの誤り訂正が可能な冗長符号データ P 1 , P 2を生成するようにしたので、 1台の HDDが故障しても、 RA I D— 3を用いたデータ記録再生装置と同様の データの誤り検出および訂正の能力を保つことができる。 また、 読み出しエラー が発生せずに、 1台の HDDが不正なデータを読み出した場合でも、 それを検知 して、 データを修復することができる。 更に、 2台の HDDが不正なデータを読 み出した場合でも、 各 HDDにおける読み出しエラーが検出されれば、 データを 修復することができる。
また、 本実施の形態に係るデータ記録再生装置 1 1によれば、 部分再構築処理 中であっても、 RA I D— 3を用いたデータ記録再生装置と同様のデータの誤り 検出および訂正の能力を保つことができ、 システムの信頼性、 保守性を向上させ ることができる。
更に、 本実施の形態に係るデータ記録再生装置 1 1によれば、 部分再構築処理 を、 書き込み指示や読み出し指示のないタイムス口ッ卜において実行するように したので、 マルチチャネルビデオサーバ等のリアルタイム性が要求される装置を 運用しながら、 部分再構築処理を行うことができる。 ―
また、 本実施の形態に係るデータ記録再生装置 1 1によれば、 全体再構築処理 中であっても、 RA I D— 3を用いたデータ記録再生装置と同様のデータの誤り
検出および訂正の能力を保つことができ、 システムの信頼性、 保守性を向上させ ることができる。
更に、 本実施の形態に係るデータ記録再生装置 1 1によれば、 全体再構築処理 を、 書き込み指示や読み出し指示のないタイムスロッ トにおいて実行するように したので、 マルチチャネルビデオサーバ等のリアルタイム性が要求される装置を 運用しながら、 全体再構築処理を行うことができる。
また、 本実施の形態に係るデータ記録再生装置 1 1によれば、 再割り付け処理 中であっても、 書き込み動作や読み出し動作を中断することなく実行するように したので、 マルチチャネルビデオサーバ等のリアルタイム性が要求される装置を 運用しながら、 再割り付け処理を行うことができる。
更に、 本実施の形態に係るデータ記録再生装置 1 1によれば、 再割り付け処理 中であっても、 RA I D— 3を用いたデータ記録再生装置と同様のデータの誤り 検出および訂正の能力を保つことができ、 システムの信頼性、 保守性を向上させ ることができる。
最後に、 第 1 0図を参照して、 本実施の形態に係るデータ記録再生装置と RA I D— 3を用いたデータ記録再生装置とで信頼性を比較した結果の一例について 説明する。 この例では、 本実施の形態に係るデータ記録再生装置は、 1 4台の分 割データ記録用の HDDと 2台のリードソロモン符号による冗長符号データ記録 用の HDDとを備えた構成としている。 これに対し、 RA I D— 3を用いたデー タ記録再生装置は、 7台の分割データ記録用の HDDと 1台のパリティデータ記 録用の HDDとを 1組とし、 この組み合わせを 2組設けた構成としている。 この 例では、 本実施の形態に係るデータ記録再生装置と R A I D— 3を用いたデータ 記録再生装置とは、 共に 1 6台の HDDを使用しておりハ一ドウエアの規模が同 等であり、 且つ冗長度も共に 8分の 1で等しくなつている。
第 1 0図において、 横軸は、 HDD単体でのエラー発生確率 P u を表し、 縦 軸はデータ記録再生装置全体でのエラー発生確率 P s を表している。 また、 第 1 0図において、 符号 R 6で示した線は、 本実施の形態に係るデータ _記録再生装 置における HDD単体でのエラー発生確率 P u と装置全体でのエラー発生確率 P s との関係を表し、 符号 R 3で示した線は、 RA I D— 3を用いたデータ記
録再生装置における H D D単体でのエラー発生確率 P u と装置全体でのエラー 発生確率 P s との関係を表している。
なお、.符号 R 6で示した線は、 以下の式で表される。
P s = 1S C P υ 3 ( 1 - Ρ u ) 13
同様に、 符号 R 3で示した線は、 以下の式で表される。
P s = 2 X s C 2 P u 2 ( 1 - P u ) 6
第 1 0図において、 符号 Dは、 本実施の形態に係るデータ記録再生装置と R A I D - 3を用いたデータ記録再生装置との間での、 同じ H D D単体でのエラー発 生確率 P u に対する装置全体でのエラー発生確率 P s の差を表している。 この ような差 Dから分かるように、 R A I D — 3を用いたデータ記録再生装置に比べ て本実施の形態に係るデータ記録再生装置の方が、 同じ H D D単体でのエラー発 生確率 P u に対する装置全体でのエラー発生確率 P s が小さくなつており、 信 頼性が高いと言える。
また、 第 1 0図において、 符号 Cで示した線は、 R A I Dを用いない場合の P u = P s となる関係を表している。 この線 Cよりも下側の領域では、 R A I D を用いない場合に比べて、 同じ H D D単体でのエラー発生確率 P u に対するデ ータ記録再生装置全体でのエラー発生確率 P s が小さくなつて、 信頼性が向上 する。 線 R 6 , R 3が線 Cと交差する点は、 R A I Dを用いない場合に比べて信 頼性が向上し始める分岐点となる。 線 R 6, R 3が線 Cと交差する点、 すなわち 分岐点をそれぞれ A, Bとすると、 本実施の形態に係るデータ記録再生装置は、 分岐点 Aよりも確率 P u が小さいときに、 R A I Dを用いない場合に比べて信 頼性が向上し、 R A I D — 3を用いたデータ記録再生装置は、 分岐点 Bよりも確 率 P u が小さいときに、 R A I Dを用いない場合に比べて信頼性が向上する。 分岐点 Bにおける確率 P u に比べて分岐点 Aにおける確率 P u の方が大きい ことから、 R A I D— 3を用いたデータ記録再生装置に比べて本実施の形態に係 るデータ記録再生装置の方が、 非定常誤り (ランダムエラー) に対する耐性が大 きく、 信頼性が高いことが分かる。 ―
以上の比較結果より、 本実施の形態に係るデータ記録再生装置によれば、 R A I D - 3を用いたデータ記録再生装置に比べて、 同等のハードウエアの規模およ
び冗長度としながら、 信頼性を向上させることができる。
なお、 本発明は上記実施の形態に限定されず、 例えば、 上記実施の形態では、 分割データおよび誤り訂正符号データを記録する記録媒体としてハードディスク を用いたが、 記録媒体は、 これに限らず、 光磁気ディスクや半導体メモリ等でも よい。
また、 誤り訂正符号データは、 リードソロモン符号によるデータに限らず、 複 数の分割データの誤り訂正が可能なものであれば他の誤り訂正符号によるデータ でもよい。
また、 上記実施の形態では、 誤り訂正符号データ (冗長符号データ) を 2バイ トとして、 2台の H D Dに記録する例を挙げたが、 誤り訂正符号データを 3バイ ト以上として、 3台以上の H D Dに記録するようにしてもよレ、。 誤り訂正符号デ ータのバイ ト数を多くするほど、 冗長度は大きくなるが、 誤り訂正が可能な分割 データの数が増え、 信頼性は向上する。
また、 上記実施の形態は、 例えば放送局等においてビデオ ·オーディオデータ の記録 ·再生に使用されるマルチチャネルビデオサ一バを想定して説明したが、 本発明はこれに限定されるものではなく、 その他の種類のデータの記録および再 生に使用される装置にも適用することが可能である。 以上説明したように、 本発明によれば、 データの誤り検出および訂正の能力に 優れ、 且つ、 リアルタイム性が要求される処理に適したデータ記録再生装置およ ぴ方法ならびに A Vサーバを実現することが可能となるという効果を奏する。 また、 本発明によれば、 データの修復処理中でもデータの誤り検出および訂正 が可能であり、 且つ、 リアルタイム性が要求される処理に適したデータ記録再生 装置おょぴ方法ならびに A Vサーバを実現することが可能になるという効果を奏 する。
また、 本発明によれば、 データ記録再生の運用を中断することなく、 データの 修復処理を行うことができるデータ記録再生装置および方法ならびに A Vサーバ を実現することが可能になるという効果を奏する。
また、 本発明によれば、 再割り付け処理中でもデータの誤り検出および訂正を
可能として、 データ記録再生の運用を中断することなく再割り付け処理を行うこ とを可能とし、 かつ、 リアルタイム性が要求される処理に適したデータ記録再生 装置および方法ならびに A Vサーバを実現することが可能になるという効果を奏 する。
また、 本発明によれば、 再割り付け処理後におけるデータの修復処理において もデータの誤り検出および訂正を可能としたデータ記録再生装置および方法を実 現することが可能になるという効果を奏する。