JP4155842B2 - Data transfer apparatus and memory replacement method thereof - Google Patents

Data transfer apparatus and memory replacement method thereof Download PDF

Info

Publication number
JP4155842B2
JP4155842B2 JP2003055692A JP2003055692A JP4155842B2 JP 4155842 B2 JP4155842 B2 JP 4155842B2 JP 2003055692 A JP2003055692 A JP 2003055692A JP 2003055692 A JP2003055692 A JP 2003055692A JP 4155842 B2 JP4155842 B2 JP 4155842B2
Authority
JP
Japan
Prior art keywords
data
memory
storage medium
nonvolatile storage
area
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.)
Expired - Fee Related
Application number
JP2003055692A
Other languages
Japanese (ja)
Other versions
JP2004265198A (en
Inventor
裕介 佐藤
力哉 荒川
剛 佐藤
裕 増子
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Communication Technologies Ltd
Original Assignee
Hitachi Communication Technologies 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 Hitachi Communication Technologies Ltd filed Critical Hitachi Communication Technologies Ltd
Priority to JP2003055692A priority Critical patent/JP4155842B2/en
Publication of JP2004265198A publication Critical patent/JP2004265198A/en
Application granted granted Critical
Publication of JP4155842B2 publication Critical patent/JP4155842B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は上位装置のコマンドに基づいて不揮発性記憶媒体に指定されたデータの書込み、または不揮発性記憶媒体から指定されたデータの読出しを実行し、読み出したデータを上位装置に転送するデータ転送装置に係り、特に不揮発性記憶媒体のデータ記憶領域(システム使用領域)に欠陥がある場合に、不揮発性記憶媒体の予備記憶領域(メモリ交替領域)にデータを格納することにより、データを補償するデータ転送装置に関する。
【0002】
【従来の技術】
従来の関連する技術は、「特許文献1」(交替セクタ管理方式)に開示されているように、上位システムから論理アドレスによってアクセスする際、欠陥等による不良セクタを交替処理によって上位システムに関与させないことを目的としたものが知られている。
【0003】
このような交替セクタ管理方式は、タプル指示オフセットを追加した交替管理テーブルを用いて、初期化以降にセクタに欠陥が発生しても高速にセクタの交換処理を行うことができる。
【0004】
また、従来の交替セクタ管理方式は、記憶媒体にオフセット管理テーブルおよび交替管理テーブルを記述することにより、記憶媒体自体の交換を補償するとともに、論理アドレスから物理アドレスの変換処理を行う制御部にテーブルを展開するためのメモリを必要としないものである。
【0005】
一般的に、記憶媒体は、大容量化し、高密度化しており、セクタの初期欠陥を避けることが難しくなっており、また、経年変化などによって新たなセクタ欠陥が発生するケースもあり、欠陥に伴うデータ領域の交替管理が不可欠となっている。
【0006】
このような交替管理の基本は、管理テーブルを書き替えることによってなされている。
【0007】
【特許文献1】
特開平7−36789号公報
【0008】
【発明が解決しようとする課題】
「特許文献1」(交替セクタ管理方式)は、管理テーブルの書替えが高速に処理できるが、管理テーブル書替えに時間を費やし、管理テーブル書替えが頻繁に発生すると、上位システムの運用に影響を及ぼす課題がある。
【0009】
この発明はこのような課題を解決するためになされたもので、その目的は上位装置の運用時間に影響を及ぼさず、欠陥が発生したデータ領域を交替できるとともに、保存データをバックアップすることができる信頼性ならびに利便性の高いデータ転送装置を提供することにある。
【0010】
【課題を解決するための手段】
前記課題を解決するためにこの発明に係るデータ転送装置は、上位装置のコマンドに基づいて不揮発性記憶媒体に指定されたデータの書込み、または不揮発性記憶媒体から指定されたデータの読出しを実行し、読み出したデータを上位装置に転送するデータ転送装置であって、上位装置からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体のシステム使用領域から順次データを読み出し、読み出したデータを再度システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して不揮発性記憶媒体のメモリ交替領域にデータを書き込むとともに、不揮発性記憶媒体に書き込まれたデータと同一のデータを他の不揮発性記憶媒体にバックアップデータとして書き込むデータ補償手段を備えたことを特徴とする。
【0011】
この発明に係るデータ転送装置は、上位装置からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体のシステム使用領域から順次データを読み出し、読み出したデータを再度システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して不揮発性記憶媒体のメモリ交替領域にデータを書き込むとともに、不揮発性記憶媒体に書き込まれたデータと同一のデータを他の不揮発性記憶媒体にバックアップデータとして書き込むデータ補償手段を備えたので、不揮発性記憶媒体のシステム使用領域に欠陥が発生しても、運用停止時間にメモリ交替領域にデータを保存するとともに、不揮発性記憶媒体に保存されたデータと同一のデータを他の不揮発性記憶媒体にバックアップすることができ、上位装置の運用に影響を及ぼすことなく、保存データの信頼性を高めて利便性の向上を図ることができる。
【0012】
また、この発明に係るデータ補償手段は、不揮発性記憶媒体のメモリ交替領域にデータを書き込むメモリ交替手段と、他の不揮発性記憶媒体にバックアップデータを書き込むメモリバックアップ手段と、不揮発性記憶媒体から読み出したデータを一時記憶するデータ一時記憶手段と、メモリ交替およびメモリバックアップの動作を制御するデータ補償制御手段とを備えたことを特徴とする。
【0013】
この発明に係るデータ補償手段は、不揮発性記憶媒体のメモリ交替領域にデータを書き込むメモリ交替手段と、他の不揮発性記憶媒体にバックアップデータを書き込むメモリバックアップ手段と、不揮発性記憶媒体から読み出したデータを一時記憶するデータ一時記憶手段と、メモリ交替およびメモリバックアップの動作を制御するデータ補償制御手段とを備えたので、不揮発性記憶媒体のシステム使用領域に不具合が発生した場合には、メモリ交替領域にデータを書き込んで保存するとともに、データを他の不揮発性記憶媒体に保存してバックアップすることができ、データの信頼性を高め、データの書替え作業や記憶媒体の交換作業を最小限に抑制することができる。
【0014】
さらに、この発明に係るデータ補償手段は、装置の運用時間および運用停止時間を計測して統計的に演算し、メモリ交替またはメモリバックアップの動作時間を設定する動作時間設定手段を備えたことを特徴とする。
【0015】
この発明に係るデータ補償手段は、装置の運用時間および運用停止時間を計測して統計的に演算し、メモリ交替またはメモリバックアップの動作時間を設定する動作時間設定手段を備えたので、装置の運用に影響を与えることなくメモリ交替またはメモリバックアップを実行することができ、装置の運用上の安定性を実現することができる。
【0016】
また、この発明に係るデータ補償手段は、運用停止時間帯に、メモリ交替とメモリバックアップを交互に切替える切替手段を備えたことを特徴とする。
【0017】
この発明に係るデータ補償手段は、運用停止時間帯に、メモリ交替とメモリバックアップを交互に切替える切替手段を備えたので、運用停止時間毎にメモリ交替とメモリバックアップを交互に動作することができ、運用停止時間帯にメモリ交替とメモリバックアップをバランスよく実行することができる。
【0018】
さらに、この発明に係る不揮発性記憶媒体は、上位装置に要求されるメモリ容量であるシステム使用領域のアドレスとメモリ交替領域のアドレスとのアドレス対応テーブル領域を備えたことを特徴とする。
【0019】
この発明に係る不揮発性記憶媒体は、上位装置に要求されるメモリ容量であるシステム使用領域のアドレスとメモリ交替領域のアドレスとのアドレス対応テーブル領域を備えたので、システム使用領域に欠陥が発生してもアドレスを変換してデータをメモリ交替領域に格納することができ、システム使用領域からメモリ交替領域へのデータの書替えを運用停止時間帯にスムーズに実行することができる。
【0020】
また、この発明に係るデータ転送装置のメモリ交替方法は、上位装置のコマンドに基づいて不揮発性記憶媒体に指定されたデータの書込み、または不揮発性記憶媒体から指定されたデータの読出しを実行し、読み出したデータを上位装置に転送する方法であって、コマンド処理間隔の運用停止時間を認識するステップ(S1)と、不揮発性記憶媒体のシステム使用領域からデータを読み出すステップ(S2)と、読み出したデータをシステム使用領域に再度書き込むステップ(S3)と、再度書き込んだデータが正常か否かを判定するステップ(S4)と、データ異常の場合、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納するステップ(S5)と、該当するデータをメモリ交替領域から読み出して転送するステップ(S6)とを備えたことを特徴とする。
【0021】
この発明に係るデータ転送装置のメモリ交替方法は、読み出したデータを上位装置に転送する方法であって、コマンド処理間隔の運用停止時間を認識するステップ(S1)と、不揮発性記憶媒体のシステム使用領域からデータを読み出すステップ(S2)と、読み出したデータをシステム使用領域に再度書き込むステップ(S3)と、再度書き込んだデータが正常か否かを判定するステップ(S4)と、データ異常の場合、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納するステップ(S5)と、該当するデータをメモリ交替領域から読み出して転送するステップ(S6)とを備えたので、上位装置の運用停止時間に、欠陥の発生したシステム使用領域に代えてデータをメモリ交替領域に保存することができ、上位装置の運用に影響を及ぼすことなく、保存データの信頼性を高めることができる。
【0022】
【発明の実施の形態】
以下、この発明の実施の形態を添付図面に基づいて説明する。図1はこの発明に係るデータ転送装置の実施の形態基本ブロック構成図である。図1において、データ転送装置1は、上位装置(システム)14からのコマンドに基づいて上位装置(システム)14の運用時間に、不揮発性記憶媒体7aに指定されたデータの書込み、または不揮発性記憶媒体7aから指定されたデータの読出しを実行し、読み出したデータを上位装置14に転送する。
【0023】
また、データ転送装置1は、上位装置14からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体7aのシステム使用領域から順次データを読み出し、読み出したデータを再度、システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して不揮発性記憶媒体7aのメモリ交替領域にデータを書き込むとともに、不揮発性記憶媒体7aに書き込まれたデータと同一のデータを他の不揮発性記憶媒体7bにバックアップデータとして書き込むデータ補償手段5を備える。
【0024】
データ補償手段5は、上位装置(システム)14からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体7aのシステム使用領域に格納されているデータを読み出し、読み出したデータを再度、システム使用領域の同じ領域(同一アドレス)に書き込んで、データが正常に格納されたか否かを判定する。
【0025】
また、データ補償手段5は、再度書き込まれたデータが異常の場合(メモリセクタの欠陥)には、不揮発性記憶媒体7aのシステム使用領域のアドレスとメモリ交替領域(予備記憶領域)のアドレスとのアドレス対応テーブル(予備記憶領域に格納)に基づいてシステム使用領域からメモリ交替領域(予備記憶領域)にデータの交替処理を実行する。このようなシステム使用領域のメモリセクタ欠陥のチェックとメモリ交替領域へのデータ交替処理を順次実行する。
【0026】
さらに、データ補償手段5は、コマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体7aに格納されたデータを順次不揮発性記憶媒体7bに書き込んで、不揮発性記憶媒体7aに格納されたデータのバックアップを実行する。
【0027】
なお、不揮発性記憶媒体7aのデータ交替処理および不揮発性記憶媒体7aから不揮発性記憶媒体7bへのデータバックアップ処理は、コマンド処理間隔の運用停止時間帯毎に、交互に実行する。
【0028】
このように、この発明に係るデータ転送装置1は、上位装置14からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体7aのシステム使用領域から順次データを読み出し、読み出したデータを再度システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して不揮発性記憶媒体7aのメモリ交替領域にデータを書き込むとともに、不揮発性記憶媒体7aに書き込まれたデータと同一のデータを他の不揮発性記憶媒体7bにバックアップデータとして書き込むデータ補償手段5を備えたので、不揮発性記憶媒体7aのシステム使用領域に欠陥が発生しても、運用停止時間にメモリ交替領域にデータを保存するとともに、不揮発性記憶媒体7aに保存されたデータと同一のデータを他の不揮発性記憶媒体7bにバックアップすることができ、上位装置(システム)14の運用に影響を及ぼすことなく、保存データの信頼性を高めて利便性の向上を図ることができる。
【0029】
データ転送装置1は、制御手段2、記憶手段3、転送インタフェース手段4、データ補償手段5、メモリインタフェース手段6、不揮発性記憶媒体7a,7bを備える。なお、制御手段2、記憶手段3、転送インタフェース手段4、データ補償手段5およびメモリインタフェース手段6相互間は、内部バスBUを介して接続する。
【0030】
制御手段2は、マイクロプロセッサを基本に構成し、上位装置(システム)14のコマンドに基づいて不揮発性記憶媒体7aに指定されたデータの書込み、または不揮発性記憶媒体7aから指定されたデータの読出し、読み出したデータを上位装置(システム)14に転送する制御を実行する。
【0031】
記憶手段3は、ROMやRAM等のメモリで構成し、上位装置14との通信プロトコル、不揮発性記憶媒体7a,7bへのアクセス等の各種データ、制御手段2の動作条件、シーケンス(動作順序)等の動作データを格納する。
【0032】
転送インタフェース手段4は、上位装置14とデータ転送装置1との間でデータ要求、要求データの転送の整合(インタフェース)を取り(例えば、SCSIインタフェース)、上位装置14からのデータ要求(コマンド)をデータ補償手段5に供給するとともに、データ補償手段5から供給されるデータを上位装置14に転送する。
【0033】
データ補償手段5は、マイクロプロセッサを基本に各種演算機能、処理機能、メモリ等で構成し、データの交替処理およびデータのバックアップ処理を実行する。
【0034】
図2はこの発明に係るデータ補償手段の一実施の形態要部ブロック構成図である。図2において、データ補償手段5は、マイクロプロセッサとソフトウェアを基本に各種演算機能、処理機能、バッファ等で構成し、データ補償制御手段8、動作時間設定手段9、メモリ交替手段10、メモリバックアップ手段11、切替手段12、データ一時記憶手段13を備える。
【0035】
データ補償制御手段8は、上位装置(システム)14の運用時間および運用停止時間を計測して統計的に演算し、運用停止時間帯のメモリ交替またはメモリバックアップの動作時間を設定するように動作時間設定手段9を制御する。
【0036】
また、データ補償制御手段8は、運用停止時間帯の動作時間内に、メモリ交替またはメモリバックアップの回数を演算するように動作時間設定手段9を制御する。
【0037】
さらに、データ補償制御手段8は、前回の運用停止時間帯にメモリ交替処理を実行した場合には、今回の運用停止時間帯にはメモリバックアップ処理を実行するように動作時間設定手段9を制御する。
【0038】
また、データ補償制御手段8は、動作時間設定手段9からの設定情報に基づいてメモリ交替手段10またはメモリバックアップ手段11の動作モードに切替える制御を実行する。
【0039】
動作時間設定手段9は、タイマ機能、演算機能、記憶手段等を備え、データ補償制御手段8からの指令に基づいて上位装置(システム)14の運用時間、運用停止時間を計測し、計測した時間から平均運用開始時間、平均運用終了時間、運用開始時間の最大ずれ幅、運用終了時間の最大ずれ幅の絶対値を演算し、これらの時間から運用停止時間の開始時間と停止時間を設定する。
【0040】
また、動作時間設定手段9は、設定された運用停止時間の開始時間と停止時間から1回の運用停止時間内に処理可能なメモリ交代回数およびメモリバックアップ回数を設定する。
【0041】
さらに、動作時間設定手段9は、運用停止時間毎に切替情報を切替手段12に供給し、メモリ交替手段10とメモリバックアップ手段11の内部バスBUへの切替えを実行する。
【0042】
図5はこの発明に係る動作時間設定手段の一実施の形態運用停止時間設定イメージ図である。(a)図に上位装置(システム)14の運用時間および運用停止時間、(b)図に平均運用停止開始時間tes、平均運用停止終了時間tep、運用開始時間最大ずれ幅α、運用終了時間最大ずれ幅βと運用停止時間tEiの関係、(c)図にメモリ交替処理とメモリバックアップ処理の順番を示す。
【0043】
(a)図において、運用開始時間ta1,ta2、運用終了時間tb1,tb2を示す。運用終了時間tb1と運用開始時間ta1の時間間隔(=tb1−ta1)が1回の運用時間を表わし、運用開始時間ta2と運用終了時間tb1の時間間隔(=ta2−tb1)が1回の運用停止時間を表わす。
【0044】
(b)図において、平均運用開始時間tasは、(a)図に示す運用開始時間ta1,ta2,…の平均値を表わし、平均運用終了時間tbpは、(a)図に示す運用終了時間tb1,tb2,…の平均値を表わす。また、運用開始時間最大ずれ幅αは、運用開始時間ta1,ta2,…の最大ずれ幅を表わし、運用終了時間最大ずれ幅βは、運用終了時間tb1,tb2,…の最大ずれ幅を表わす。
【0045】
運用停止開始時間tesは、平均運用開始時間tasに運用開始時間最大ずれ幅αを加算した時間(tas+α)、運用停止終了時間tepは、平均運用終了時間tbpから運用終了時間最大ずれ幅βを減算した時間(tbp−β)で表わし、運用停止終了時間tepと運用停止開始時間tesの差(=tep−tes)が運用停止時間tEiに設定する。
【0046】
(c)図において、1回目の運用停止時間tE1がメモリ交替処理、2回目の運用停止時間tE2がメモリバックアップ処理、3回目の運用停止時間tE3がメモリ交替処理、4回目の運用停止時間tE4がメモリバックアップ処理、…というように、メモリ交替処理とメモリバックアップ処理を交互に設定する。
【0047】
このように、この発明に係るデータ補償手段1は、装置(上位装置14)の運用時間および運用停止時間を計測して統計的に演算し、メモリ交替またはメモリバックアップの動作時間を設定する動作時間設定手段9を備えたので、装置の運用に影響を与えることなくメモリ交替またはメモリバックアップを実行することができ、装置の運用上の安定性を実現することができる。
【0048】
メモリ交替手段10は、データ補償制御手段8の制御により、不揮発性記憶媒体7aのシステム使用領域に欠陥がある場合、アドレス対応テーブルに基づいてメモリ交替領域にデータを書き込んで保存するメモリ交替処理を実行する。
【0049】
メモリバックアップ手段11は、データ補償制御手段8の制御により、不揮発性記憶媒体7aに保存されたデータを他の不揮発性記憶媒体7bに書き込んで保存するメモリバックアップ処理を実行する。
【0050】
切替手段12は、切替え機能を備え、動作時間設定手段9から供給される切替情報に基づいて運用停止時間毎に、メモリ交替手段10とメモリバックアップ手段11を交互に内部バスBUに接続する。
【0051】
このように、この発明に係るデータ補償手段5は、運用停止時間帯に、メモリ交替とメモリバックアップを交互に切替える切替手段12を備えたので、運用停止時間毎にメモリ交替とメモリバックアップを交互に動作することができ、運用停止時間帯にメモリ交替とメモリバックアップをバランスよく実行することができる。
【0052】
データ一時記憶手段13は、バッファで構成し、運用停止時間帯がシステム交替モードの場合、データ補償制御手段8の制御により、上位装置(システム)14の運用停止時間帯に、不揮発性記憶媒体7aのシステム使用領域から読み出したデータを一時保存し、一時保存したデータを再度、不揮発性記憶媒体7aの同じ領域に提供する。
【0053】
また、データ一時記憶手段13は、再度のデータ書込みにより、不揮発性記憶媒体7aに欠陥があるとデータ補償制御手段8が判断した場合、メモリ交替手段10のメモリ交替処理により、システム使用領域のアドレス(例えば、アドレスAD01)に対応したメモリ交替領域のアドレス(例えば、アドレスADC01)の領域に、一時保存したデータを提供する。
【0054】
さらに、データ一時記憶手段13は、運用停止時間帯がメモリバックアップモードの場合、一時保存した不揮発性記憶媒体7aのデータをメモリバックアップ手段11のメモリバックアップ処理により、他の不揮発性記憶媒体7bに提供する。
【0055】
図1に戻り、メモリインタフェース手段6は、制御手段2またはデータ補償制御手段8の制御により、不揮発性記憶媒体7a,7bとデータ一時記憶手段13との間でデータの読出し、データ書込み(再度、書込みも含む)の整合(インタフェース)を取り、読出しデータをデータ一時記憶手段13に一時保存させるとともに、一時保存したデータを不揮発性記憶媒体7a,7bに供給する。
【0056】
不揮発性記憶媒体7a,7bは、ATAカード等の半導体メモリで構成し、上位装置(システム)14から運用時間に供給されるデータを保存するシステム使用領域と、システム使用領域のセクタに欠陥が生じた場合にデータを保存するメモリ交替領域と、システム使用領域のアドレスとメモリ交替領域のアドレスとのアドレス対応テーブル領域とを備える。
【0057】
図3はこの発明に係る不揮発性記憶媒体の一実施の形態アドレス対応テーブルイメージ図である。図3において、アドレス対応テーブルは、システム使用領域アドレス(例えば、AD01)とメモリ交替領域のアドレス(例えば、ADC01)が一対一に対応して保存される。
【0058】
アドレス対応テーブルは、図3に示すように、予めシステム使用領域アドレス(例えば、AD01)とメモリ交替領域のアドレス(例えば、ADC01)を作成しておくか、システム使用領域に欠陥が発生した場合に、システム使用領域アドレス(例えば、AD01)に対応したメモリ交替領域のアドレス(例えば、ADC01)を作成してもよい。
【0059】
図4はこの発明に係るメモリ交替処理の一実施の形態説明図である。図4において、運用停止時間帯に、不揮発性記憶媒体7aのシステム使用領域(例えば、アドレスAD01)に保存されているデータを読出してデータ一時記憶手段13に一時保存し、一時保存したデータを再度システム使用領域(例えば、アドレスAD01)に書き込む。
【0060】
この時、再度システム使用領域(例えば、アドレスAD01)に書き込んだデータにエラーが発生すると、メモリ交替手段10のメモリ交替処理により、アドレス対応テーブル領域を参照してシステム使用領域のアドレスAD01に対応するメモリ交替領域のアドレスADC01を検索し、検索したアドレスADC01に基づいてメモリ交替領域にデータを書き込んで保存する。
【0061】
このように、この発明に係る不揮発性記憶媒体7a,7bは、上位装置14に要求されるメモリ容量であるシステム使用領域のアドレス(AD01)とメモリ交替領域のアドレス(ADC01)とのアドレス対応テーブル領域を備えたので、システム使用領域に欠陥が発生してもアドレスを変換してデータをメモリ交替領域に格納することができ、システム使用領域からメモリ交替領域へのデータの書替えを運用停止時間帯にスムーズに実行することができる。
【0062】
また、この発明に係るデータ補償手段5は、不揮発性記憶媒体7aのメモリ交替領域にデータを書き込むメモリ交替手段10と、他の不揮発性記憶媒体7bにバックアップデータを書き込むメモリバックアップ手段11と、不揮発性記憶媒体7aから読み出したデータを一時記憶するデータ一時記憶手段13と、メモリ交替およびメモリバックアップの動作を制御するデータ補償制御手段8とを備えたので、不揮発性記憶媒体7aのシステム使用領域に不具合が発生した場合には、メモリ交替領域にデータを書き込んで保存するとともに、データを他の不揮発性記憶媒体7bに保存してバックアップすることができ、データの信頼性を高め、データの書替え作業や記憶媒体の交換作業を最小限に抑制することができる。
【0063】
次に、この発明に係るデータ転送装置のメモリ交替方法について説明する。図6はこの発明に係るデータ転送装置のメモリ交替方法の一実施の形態動作フロー図である。なお、動作フローは、図1および図2を参照する。
【0064】
図6において、ステップS1では、コマンド処理間隔の運用停止時間を認識する。なお、ステップS1の動作は、データ補償制御手段8および動作時間設定手段9が実行する。
【0065】
ステップS2では、不揮発性記憶媒体のシステム使用領域からデータを読み出す。なお、ステップS2の動作は、データ補償制御手段8が実行する。
【0066】
ステップS3では、読み出したデータをシステム使用領域に再度書き込む。なお、ステップS3の動作は、データ補償制御手段8およびデータ一時記憶手段13が実行する。
【0067】
ステップS4では、再度書き込んだデータが正常か否かを判定し、データが異常な場合にはステップS5に移行する。一方、データが正常な場合には次のデータについてステップS2およびステップS3を繰り返す。なお、ステップS4の動作は、データ補償制御手段8およびメモリ交替手段10が実行する。
【0068】
ステップS5では、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納し、次のデータについて、ステップS2〜ステップS4を繰り返す。なお、ステップS5の動作は、データ補償制御手段8、メモリ交替手段10および不揮発性記憶媒体7aが実行する。
【0069】
ステップS6では、運用時間帯に、該当するデータをメモリ交替領域から読み出して転送する。なお、ステップS6の動作は、制御手段2、転送インタフェース手段4、データ補償手段5およびメモリインタフェース手段6が実行する。
【0070】
このように、この発明に係るデータ転送装置のメモリ交替方法は、読み出したデータを上位装置に転送する方法であって、コマンド処理間隔の運用停止時間を認識するステップS1と、不揮発性記憶媒体のシステム使用領域からデータを読み出すステップS2と、読み出したデータをシステム使用領域に再度書き込むステップS3と、再度書き込んだデータが正常か否かを判定するステップS4と、データ異常の場合、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納するステップS5と、該当するデータをメモリ交替領域から読み出して転送するステップS6とを備えたので、上位装置14の運用停止時間に、欠陥の発生したシステム使用領域に代えてデータをメモリ交替領域に保存することができ、上位装置(システム)14の運用に影響を及ぼすことなく、保存データの信頼性を高めることができる。
【0071】
【発明の効果】
以上説明したように、この発明に係るデータ転送装置は、上位装置からのコマンド処理間隔の運用停止時間帯に、不揮発性記憶媒体のシステム使用領域から順次データを読み出し、読み出したデータを再度システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して不揮発性記憶媒体のメモリ交替領域にデータを書き込むとともに、不揮発性記憶媒体に書き込まれたデータと同一のデータを他の不揮発性記憶媒体にバックアップデータとして書き込むデータ補償手段を備えたので、不揮発性記憶媒体のシステム使用領域に欠陥が発生しても、運用停止時間にメモリ交替領域にデータを保存するとともに、不揮発性記憶媒体に保存されたデータと同一のデータを他の不揮発性記憶媒体にバックアップすることができ、上位装置の運用に影響を及ぼすことなく、保存データの信頼性を高めて利便性の向上を図ることができる。
【0072】
また、この発明に係るデータ補償手段は、不揮発性記憶媒体のメモリ交替領域にデータを書き込むメモリ交替手段と、他の不揮発性記憶媒体にバックアップデータを書き込むメモリバックアップ手段と、不揮発性記憶媒体から読み出したデータを一時記憶するデータ一時記憶手段と、メモリ交替およびメモリバックアップの動作を制御するデータ補償制御手段とを備えたので、不揮発性記憶媒体のシステム使用領域に不具合が発生した場合には、メモリ交替領域にデータを書き込んで保存するとともに、データを他の不揮発性記憶媒体に保存してバックアップすることができ、データの信頼性を高め、データの書替え作業や記憶媒体の交換作業を最小限に抑制することができる。
【0073】
さらに、この発明に係るデータ補償手段は、装置の運用時間および運用停止時間を計測して統計的に演算し、メモリ交替またはメモリバックアップの動作時間を設定する動作時間設定手段を備えたので、装置の運用に影響を与えることなくメモリ交替またはメモリバックアップを実行することができ、装置の運用上の安定性を実現することができる。
【0074】
また、この発明に係るデータ補償手段は、運用停止時間帯に、メモリ交替とメモリバックアップを交互に切替える切替手段を備えたので、運用停止時間毎にメモリ交替とメモリバックアップを交互に動作することができ、運用停止時間帯にメモリ交替とメモリバックアップをバランスよく実行することができる。
【0075】
さらに、この発明に係る不揮発性記憶媒体は、上位装置に要求されるメモリ容量であるシステム使用領域のアドレスとメモリ交替領域のアドレスとのアドレス対応テーブル領域を備えたので、システム使用領域に欠陥が発生してもアドレスを変換してデータをメモリ交替領域に格納することができ、システム使用領域からメモリ交替領域へのデータの書替えを運用停止時間帯にスムーズに実行することができる。
【0076】
また、この発明に係るデータ転送装置のメモリ交替方法は、読み出したデータを上位装置に転送する方法であって、コマンド処理間隔の運用停止時間を認識するステップ(S1)と、不揮発性記憶媒体のシステム使用領域からデータを読み出すステップ(S2)と、読み出したデータをシステム使用領域に再度書き込むステップ(S3)と、再度書き込んだデータが正常か否かを判定するステップ(S4)と、データ異常の場合、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納するステップ(S5)と、該当するデータをメモリ交替領域から読み出して転送するステップ(S6)とを備えたので、上位装置の運用停止時間に、欠陥の発生したシステム使用領域に代えてデータをメモリ交替領域に保存することができ、上位装置の運用に影響を及ぼすことなく、保存データの信頼性を高めることができる。
【図面の簡単な説明】
【図1】この発明に係るデータ転送装置の実施の形態基本ブロック構成図
【図2】この発明に係るデータ補償手段の一実施の形態要部ブロック構成図
【図3】この発明に係る不揮発性記憶媒体の一実施の形態アドレス対応テーブルイメージ図
【図4】この発明に係るメモリ交替処理の一実施の形態説明図
【図5】この発明に係る動作時間設定手段の一実施の形態運用停止時間設定イメージ図
【図6】この発明に係るデータ転送装置のメモリ交替方法の一実施の形態動作フロー図
【符号の説明】
1 データ転送装置
2 制御手段
3 記憶手段
4 転送インタフェース手段
5 データ補償手段
6 メモリインタフェース手段
7a,7b 不揮発性記憶媒体
8 データ補償制御手段
9 動作時間設定手段
10 メモリ交替手段
11 メモリバックアップ手段
12 切替手段
13 データ一時記憶手段
14 上位装置(システム)
BU 内部バス
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data transfer device that executes writing of designated data in a nonvolatile storage medium or reading of designated data from a nonvolatile storage medium based on a command of the host device, and transfers the read data to the host device In particular, when the data storage area (system use area) of the nonvolatile storage medium is defective, the data is compensated by storing the data in the spare storage area (memory replacement area) of the nonvolatile storage medium. The present invention relates to a transfer device.
[0002]
[Prior art]
Conventionally related technology, as disclosed in "Patent Document 1" (alternate sector management method), when accessing from a host system by a logical address, a defective sector due to a defect or the like is not involved in the host system by a replacement process. The one that aims at that is known.
[0003]
Such a replacement sector management method can perform a sector replacement process at high speed even if a defect occurs in a sector after initialization using a replacement management table to which a tuple instruction offset is added.
[0004]
In addition, the conventional replacement sector management method compensates for the replacement of the storage medium itself by describing the offset management table and the replacement management table in the storage medium, and stores the table in the control unit that performs the conversion process from the logical address to the physical address. Does not require memory to deploy.
[0005]
In general, the storage medium has a large capacity and a high density, making it difficult to avoid initial defects in the sector. In addition, there are cases where new sector defects occur due to secular changes, etc. The accompanying data area replacement management is indispensable.
[0006]
The basics of such replacement management are performed by rewriting the management table.
[0007]
[Patent Document 1]
JP-A-7-36789
[0008]
[Problems to be solved by the invention]
Patent Document 1” (alternative sector management method) can rewrite the management table at a high speed, but it takes time to rewrite the management table, and if the management table rewrite occurs frequently, the problem affects the operation of the host system. There is.
[0009]
The present invention has been made to solve such a problem. The object of the present invention is not to affect the operation time of the host device, the data area where the defect has occurred can be replaced, and the stored data can be backed up. An object of the present invention is to provide a highly reliable and convenient data transfer apparatus.
[0010]
[Means for Solving the Problems]
In order to solve the above problems, a data transfer device according to the present invention executes writing of data specified in a nonvolatile storage medium or reading of data specified from a nonvolatile storage medium based on a command from a host device. A data transfer device that transfers the read data to the host device, and sequentially reads the data from the system use area of the nonvolatile storage medium during the operation stop time of the command processing interval from the host device, and the read data is again If the data written to the system use area is abnormal, the address of the read data is changed, the data is written to the memory replacement area of the nonvolatile storage medium, and the data written to the nonvolatile storage medium Compensation means to write the same data as backup data to other nonvolatile storage media Characterized in that was.
[0011]
The data transfer device according to the present invention sequentially reads data from the system use area of the nonvolatile storage medium during the operation stop time period of the command processing interval from the host device, and writes the read data to the system use area again and writes it. If the read data is abnormal, the address of the read data is changed and the data is written to the memory replacement area of the non-volatile storage medium, and the same data as the data written to the non-volatile storage medium is written to another non-volatile storage medium. Since data compensation means for writing back-up data to the volatile storage medium is provided, even if a defect occurs in the system use area of the non-volatile storage medium, the data is stored in the memory replacement area during the operation stop time, and the non-volatile storage medium Can be backed up to other non-volatile storage media. , Without affecting the operation of the host device, it is possible to enhance the convenience to enhance the reliability of the stored data.
[0012]
The data compensation means according to the present invention includes a memory replacement means for writing data to a memory replacement area of a nonvolatile storage medium, a memory backup means for writing backup data to another nonvolatile storage medium, and a read from the nonvolatile storage medium. Data temporary storage means for temporarily storing the data, and data compensation control means for controlling the operation of memory replacement and memory backup.
[0013]
The data compensation means according to the present invention includes a memory replacement means for writing data to a memory replacement area of a nonvolatile storage medium, a memory backup means for writing backup data to another nonvolatile storage medium, and data read from the nonvolatile storage medium Data temporary storage means for temporarily storing data, and data compensation control means for controlling the operation of memory replacement and memory backup, so that if a problem occurs in the system use area of the nonvolatile storage medium, the memory replacement area Data can be written to and stored in other non-volatile storage media and backed up, improving data reliability and minimizing data rewriting and storage medium replacement operations. be able to.
[0014]
Further, the data compensation means according to the present invention comprises an operation time setting means for measuring the operation time and the operation stop time of the apparatus, statistically calculating them, and setting the operation time of memory replacement or memory backup. And
[0015]
Since the data compensation means according to the present invention includes the operation time setting means for measuring and statistically calculating the operation time and operation stop time of the apparatus and setting the operation time of memory replacement or memory backup, the operation of the apparatus The memory replacement or the memory backup can be executed without affecting the operation, and the operational stability of the apparatus can be realized.
[0016]
The data compensation means according to the present invention is characterized by comprising switching means for alternately switching between memory replacement and memory backup during the operation stop time period.
[0017]
Since the data compensation means according to the present invention includes switching means for alternately switching between memory replacement and memory backup in the operation stop time zone, the memory replacement and memory backup can be operated alternately for each operation stop time, Memory replacement and memory backup can be executed in a well-balanced manner during the operation stoppage time.
[0018]
Furthermore, the nonvolatile storage medium according to the present invention is characterized by comprising an address correspondence table area between the address of the system use area, which is the memory capacity required for the host device, and the address of the memory replacement area.
[0019]
The non-volatile storage medium according to the present invention has an address correspondence table area between the address of the system use area and the address of the memory replacement area, which is the memory capacity required for the host device, so that a defect occurs in the system use area. However, the address can be converted and the data can be stored in the memory replacement area, and the rewriting of data from the system use area to the memory replacement area can be executed smoothly during the operation stop time period.
[0020]
Further, the memory replacement method of the data transfer device according to the present invention executes writing of data designated in the nonvolatile storage medium based on a command of the host device or reading of data designated from the nonvolatile storage medium, A method of transferring the read data to a host device, the step of recognizing the operation stop time of the command processing interval (S1), the step of reading data from the system use area of the nonvolatile storage medium (S2), A step of rewriting data in the system use area (S3), a step of determining whether or not the rewritten data is normal (S4), and a data abnormality, the data is stored in the memory replacement area based on the address correspondence table. Step (S5), and reading and transferring the corresponding data from the memory replacement area (S6) Characterized by comprising and.
[0021]
A memory replacement method for a data transfer device according to the present invention is a method for transferring read data to a host device, the step of recognizing an operation stop time of a command processing interval (S1), and a system use of a nonvolatile storage medium A step of reading data from the area (S2), a step of rewriting the read data in the system use area (S3), a step of determining whether the rewritten data is normal (S4), Since it has a step (S5) of storing data in the memory replacement area based on the address correspondence table and a step (S6) of reading and transferring the corresponding data from the memory replacement area, Data can be saved in the memory replacement area instead of the system use area where the defect occurred, and Without affecting, it is possible to increase the reliability of the stored data.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a basic block configuration diagram of a data transfer apparatus according to an embodiment of the present invention. In FIG. 1, the data transfer device 1 writes data designated in the nonvolatile storage medium 7 a or stores nonvolatile data during the operation time of the host device (system) 14 based on a command from the host device (system) 14. The designated data is read from the medium 7a, and the read data is transferred to the host device 14.
[0023]
In addition, the data transfer device 1 sequentially reads data from the system use area of the nonvolatile storage medium 7a during the operation stop time period of the command processing interval from the host device 14, and writes the read data to the system use area again. If the written data is abnormal, the address of the read data is changed and the data is written to the memory replacement area of the nonvolatile storage medium 7a, and the same data as the data written to the nonvolatile storage medium 7a Is provided with data compensation means 5 for writing as a backup data to another nonvolatile storage medium 7b.
[0024]
The data compensation means 5 reads the data stored in the system use area of the nonvolatile storage medium 7a during the operation stop time of the command processing interval from the host device (system) 14, and uses the read data again for the system use. Write to the same area (same address), and determine whether the data has been stored normally.
[0025]
Further, when the rewritten data is abnormal (defect in the memory sector), the data compensation means 5 sets the address of the system use area of the nonvolatile storage medium 7a and the address of the memory replacement area (preliminary storage area). Based on the address correspondence table (stored in the spare storage area), data replacement processing is executed from the system use area to the memory replacement area (spare storage area). Such check of memory sector defects in the system use area and data replacement processing to the memory replacement area are sequentially executed.
[0026]
Further, the data compensation means 5 sequentially writes the data stored in the nonvolatile storage medium 7a to the nonvolatile storage medium 7b during the operation stop time zone of the command processing interval, and the data stored in the nonvolatile storage medium 7a is stored. Perform a backup.
[0027]
Note that the data replacement process of the nonvolatile storage medium 7a and the data backup process from the nonvolatile storage medium 7a to the nonvolatile storage medium 7b are alternately executed at each operation stop time period of the command processing interval.
[0028]
As described above, the data transfer device 1 according to the present invention sequentially reads data from the system use area of the nonvolatile storage medium 7a during the operation stop time period of the command processing interval from the host device 14, and re-reads the read data to the system. When the data written to the use area is abnormal, the address of the read data is changed, the data is written to the memory replacement area of the nonvolatile storage medium 7a, and the data is written to the nonvolatile storage medium 7a. Since the data compensation means 5 for writing the same data as the data to the other nonvolatile storage medium 7b as backup data is provided, even if a defect occurs in the system use area of the nonvolatile storage medium 7a, the memory is changed during the operation stop time. In addition to storing data in the area, other data that is the same as the data stored in the non-volatile storage medium 7a Can be backed up to the nonvolatile storage medium 7b, without affecting the operation of the host apparatus (system) 14, it is possible to enhance the convenience to enhance the reliability of the stored data.
[0029]
The data transfer device 1 includes a control unit 2, a storage unit 3, a transfer interface unit 4, a data compensation unit 5, a memory interface unit 6, and nonvolatile storage media 7a and 7b. The control unit 2, the storage unit 3, the transfer interface unit 4, the data compensation unit 5, and the memory interface unit 6 are connected to each other through an internal bus BU.
[0030]
The control means 2 is basically composed of a microprocessor and writes data designated in the nonvolatile storage medium 7a based on a command from the host device (system) 14 or reads data designated from the nonvolatile storage medium 7a. Then, control for transferring the read data to the host device (system) 14 is executed.
[0031]
The storage means 3 is composed of a memory such as a ROM or a RAM, and includes a communication protocol with the host device 14, various data such as access to the nonvolatile storage media 7a and 7b, operating conditions and sequence (operation order) of the control means 2. The operation data such as are stored.
[0032]
The transfer interface unit 4 takes a data request and request data transfer consistency (interface) between the host device 14 and the data transfer device 1 (for example, a SCSI interface), and receives a data request (command) from the host device 14. The data is supplied to the data compensating means 5 and the data supplied from the data compensating means 5 is transferred to the host device 14.
[0033]
The data compensation means 5 is composed of various arithmetic functions, processing functions, memory, etc. based on a microprocessor, and executes data replacement processing and data backup processing.
[0034]
FIG. 2 is a block diagram showing the principal part of one embodiment of the data compensating means according to the present invention. In FIG. 2, the data compensation means 5 is composed of various arithmetic functions, processing functions, buffers, etc. based on a microprocessor and software. The data compensation control means 8, the operation time setting means 9, the memory replacement means 10, and the memory backup means. 11, a switching unit 12, and a data temporary storage unit 13.
[0035]
The data compensation control means 8 measures the operation time and operation stop time of the host device (system) 14 and statistically calculates them, and sets the operation time for memory replacement or memory backup in the operation stop time zone. The setting means 9 is controlled.
[0036]
Further, the data compensation control means 8 controls the operation time setting means 9 so as to calculate the number of memory replacement or memory backup within the operation time of the operation stop time zone.
[0037]
Further, the data compensation control unit 8 controls the operation time setting unit 9 to execute the memory backup process during the current operation stop time period when the memory replacement process is executed during the previous operation stop time period. .
[0038]
Further, the data compensation control unit 8 executes control for switching to the operation mode of the memory replacement unit 10 or the memory backup unit 11 based on the setting information from the operation time setting unit 9.
[0039]
The operation time setting unit 9 includes a timer function, a calculation function, a storage unit, and the like, measures the operation time and operation stop time of the host device (system) 14 based on a command from the data compensation control unit 8, and measures the measured time The average operation start time, the average operation end time, the maximum deviation width of the operation start time, and the absolute value of the maximum deviation width of the operation end time are calculated, and the start time and stop time of the operation stop time are set from these times.
[0040]
The operation time setting means 9 sets the start time of the set operation stop time and the memory replacement count and memory backup count that can be processed within one operation stop time from the stop time.
[0041]
Furthermore, the operating time setting means 9 supplies switching information to the switching means 12 for each operation stop time, and executes switching of the memory replacement means 10 and the memory backup means 11 to the internal bus BU.
[0042]
FIG. 5 is an operation stop time setting image diagram of an embodiment of the operation time setting means according to the present invention. (A) The operation time and operation stop time of the host device (system) 14 are shown in the figure. (B) The average operation stop start time tes, the average operation stop end time tep, the operation start time maximum deviation width α, and the operation end time maximum are shown in the figure. The relationship between the shift width β and the operation stop time tEi, and FIG. 9C shows the order of the memory replacement process and the memory backup process.
[0043]
(A) In the figure, operation start times ta1, ta2 and operation end times tb1, tb2 are shown. The time interval (= tb1−ta1) between the operation end time tb1 and the operation start time ta1 represents one operation time, and the time interval (= ta2−tb1) between the operation start time ta2 and the operation end time tb1 is one operation. Represents stop time.
[0044]
(B) In the figure, the average operation start time tas represents the average value of the operation start times ta1, ta2,... Shown in (a), and the average operation end time tbp is the operation end time tb1 shown in (a). , Tb2,... Further, the operation start time maximum deviation width α represents the maximum deviation width of the operation start times ta1, ta2,..., And the operation end time maximum deviation width β represents the maximum deviation width of the operation end times tb1, tb2,.
[0045]
The operation stop start time tes is obtained by adding the operation start time maximum deviation width α to the average operation start time tas (tas + α), and the operation stop end time te is obtained by subtracting the operation end time maximum deviation width β from the average operation end time tbp. The difference (= tep-tes) between the operation stop end time te and the operation stop start time tes is set as the operation stop time tEi.
[0046]
(C) In the figure, the first operation stop time tE1 is the memory replacement process, the second operation stop time tE2 is the memory backup process, the third operation stop time tE3 is the memory replacement process, and the fourth operation stop time tE4 is The memory replacement process and the memory backup process are set alternately, such as a memory backup process.
[0047]
As described above, the data compensation means 1 according to the present invention measures and statistically calculates the operation time and operation stop time of the device (the host device 14), and sets the operation time for memory replacement or memory backup. Since the setting means 9 is provided, memory replacement or memory backup can be executed without affecting the operation of the apparatus, and the operational stability of the apparatus can be realized.
[0048]
When the system replacement area of the nonvolatile storage medium 7a is defective under the control of the data compensation control section 8, the memory replacement section 10 performs a memory replacement process for writing and storing data in the memory replacement area based on the address correspondence table. Execute.
[0049]
Under the control of the data compensation control unit 8, the memory backup unit 11 executes a memory backup process in which data stored in the non-volatile storage medium 7a is written and stored in another non-volatile storage medium 7b.
[0050]
The switching unit 12 has a switching function, and alternately connects the memory replacement unit 10 and the memory backup unit 11 to the internal bus BU for each operation stop time based on the switching information supplied from the operation time setting unit 9.
[0051]
As described above, the data compensating means 5 according to the present invention includes the switching means 12 for alternately switching between the memory replacement and the memory backup during the operation stop time period. Therefore, the memory replacement and the memory backup are alternately performed at each operation stop time. It is possible to operate, and memory replacement and memory backup can be executed in a well-balanced manner during the operation stop time period.
[0052]
The temporary data storage means 13 is composed of a buffer, and when the operation stop time zone is the system replacement mode, the nonvolatile storage medium 7a is operated during the operation stop time zone of the host device (system) 14 under the control of the data compensation control means 8. The data read from the system use area is temporarily saved, and the temporarily saved data is provided again to the same area of the nonvolatile storage medium 7a.
[0053]
In addition, when the data compensation control unit 8 determines that the nonvolatile storage medium 7a is defective by data writing again, the temporary data storage unit 13 performs the memory replacement process of the memory replacement unit 10 to change the address of the system use area. Temporarily stored data is provided to the area of the memory replacement area corresponding to (for example, address AD01) (for example, address ADC01).
[0054]
Further, the temporary data storage means 13 provides the temporarily stored data of the nonvolatile storage medium 7a to the other nonvolatile storage medium 7b by the memory backup processing of the memory backup means 11 when the operation stop time is in the memory backup mode. To do.
[0055]
Returning to FIG. 1, the memory interface means 6 reads and writes data between the nonvolatile storage media 7a and 7b and the data temporary storage means 13 under the control of the control means 2 or the data compensation control means 8 (again, The read data is temporarily stored in the data temporary storage means 13 and the temporarily stored data is supplied to the nonvolatile storage media 7a and 7b.
[0056]
The non-volatile storage media 7a and 7b are composed of a semiconductor memory such as an ATA card, and a defect occurs in a system use area for storing data supplied from the host device (system) 14 during operation time and a sector in the system use area. A memory replacement area for storing data, and an address correspondence table area for the address of the system use area and the address of the memory replacement area.
[0057]
FIG. 3 is an address correspondence table image diagram of an embodiment of a nonvolatile storage medium according to the present invention. In FIG. 3, the address correspondence table stores a system use area address (for example, AD01) and a memory replacement area address (for example, ADC01) in a one-to-one correspondence.
[0058]
As shown in FIG. 3, the address correspondence table creates a system use area address (for example, AD01) and a memory replacement area address (for example, ADC01) in advance, or when a defect occurs in the system use area. The address (for example, ADC01) of the memory replacement area corresponding to the system use area address (for example, AD01) may be created.
[0059]
FIG. 4 is an explanatory diagram of an embodiment of a memory replacement process according to the present invention. In FIG. 4, during the operation stop time period, data stored in the system use area (for example, address AD01) of the nonvolatile storage medium 7a is read and temporarily stored in the data temporary storage unit 13, and the temporarily stored data is again stored. Write in the system use area (for example, address AD01).
[0060]
At this time, if an error occurs in the data written to the system use area (for example, address AD01) again, the memory replacement process of the memory replacement means 10 refers to the address correspondence table area and corresponds to the address AD01 of the system use area. The address ADC01 in the memory replacement area is searched, and data is written and stored in the memory replacement area based on the searched address ADC01.
[0061]
As described above, the nonvolatile storage media 7a and 7b according to the present invention include the address correspondence table between the address (AD01) of the system use area and the address (ADC01) of the memory replacement area, which is the memory capacity required for the host device 14. Since there is an area, even if a defect occurs in the system use area, it is possible to convert the address and store the data in the memory replacement area, and rewrite the data from the system use area to the memory replacement area. Can run smoothly.
[0062]
The data compensation means 5 according to the present invention includes a memory replacement means 10 for writing data to the memory replacement area of the nonvolatile storage medium 7a, a memory backup means 11 for writing backup data to another nonvolatile storage medium 7b, Since data temporary storage means 13 for temporarily storing data read from the volatile storage medium 7a and data compensation control means 8 for controlling the operation of memory replacement and memory backup are provided, the system use area of the nonvolatile storage medium 7a is provided. When a failure occurs, the data can be written and saved in the memory replacement area, and the data can be saved and backed up in another non-volatile storage medium 7b to improve data reliability and rewrite data. And storage medium replacement work can be minimized.
[0063]
Next, a memory replacement method of the data transfer apparatus according to the present invention will be described. FIG. 6 is an operation flowchart of one embodiment of the memory replacement method of the data transfer apparatus according to the present invention. Refer to FIG. 1 and FIG. 2 for the operation flow.
[0064]
In FIG. 6, in step S1, the operation stop time of the command processing interval is recognized. The operation of step S1 is executed by the data compensation control means 8 and the operation time setting means 9.
[0065]
In step S2, data is read from the system use area of the nonvolatile storage medium. The operation of step S2 is executed by the data compensation control means 8.
[0066]
In step S3, the read data is written again in the system use area. The operation of step S3 is executed by the data compensation control means 8 and the data temporary storage means 13.
[0067]
In step S4, it is determined whether or not the rewritten data is normal. If the data is abnormal, the process proceeds to step S5. On the other hand, if the data is normal, step S2 and step S3 are repeated for the next data. The operation of step S4 is executed by the data compensation control means 8 and the memory replacement means 10.
[0068]
In step S5, data is stored in the memory replacement area based on the address correspondence table, and steps S2 to S4 are repeated for the next data. The operation of step S5 is executed by the data compensation control means 8, the memory replacement means 10, and the nonvolatile storage medium 7a.
[0069]
In step S6, the corresponding data is read from the memory replacement area and transferred during the operation time period. The operation of step S6 is executed by the control means 2, the transfer interface means 4, the data compensation means 5, and the memory interface means 6.
[0070]
As described above, the memory replacement method of the data transfer device according to the present invention is a method of transferring the read data to the host device, in which the operation stop time of the command processing interval is recognized, and the nonvolatile storage medium Step S2 for reading data from the system use area, step S3 for rewriting the read data in the system use area, step S4 for determining whether or not the rewritten data is normal, and if the data is abnormal, the address correspondence table is displayed. And the step S5 for storing the data in the memory replacement area and the step S6 for reading out and transferring the corresponding data from the memory replacement area. Data can be stored in the memory replacement area instead of the host device (system) Without affecting the 4 operation, it is possible to enhance the reliability of the stored data.
[0071]
【The invention's effect】
As described above, the data transfer device according to the present invention sequentially reads data from the system use area of the nonvolatile storage medium during the operation suspension time period of the command processing interval from the host device, and uses the read data again for the system use. If the data written to the area is abnormal, the address of the read data is changed, the data is written to the memory replacement area of the nonvolatile storage medium, and the same as the data written to the nonvolatile storage medium Since data compensation means for writing the data in the non-volatile storage medium as backup data is provided, even if a defect occurs in the system use area of the non-volatile storage medium, the data is stored in the memory replacement area during the operation stop time. At the same time, the same data stored in the non-volatile storage medium is backed up to another non-volatile storage medium. Can be up, without affecting the operation of the host device, it is possible to enhance the convenience to enhance the reliability of the stored data.
[0072]
The data compensation means according to the present invention includes a memory replacement means for writing data to a memory replacement area of a nonvolatile storage medium, a memory backup means for writing backup data to another nonvolatile storage medium, and a read from the nonvolatile storage medium. Data temporary storage means for temporarily storing the data and data compensation control means for controlling the operation of memory replacement and memory backup, so that if a problem occurs in the system use area of the nonvolatile storage medium, the memory Data can be written and saved in the spare area, and the data can be saved and backed up to other non-volatile storage media to improve data reliability and minimize data rewriting and storage media replacement. Can be suppressed.
[0073]
Further, since the data compensation means according to the present invention includes the operation time setting means for measuring the operation time and the operation stop time of the apparatus and statistically calculating them and setting the operation time of the memory replacement or the memory backup, The memory replacement or the memory backup can be executed without affecting the operation of the apparatus, and the operational stability of the apparatus can be realized.
[0074]
In addition, since the data compensation means according to the present invention includes the switching means for alternately switching between the memory replacement and the memory backup during the operation stop time period, it is possible to operate the memory replacement and the memory backup alternately at each operation stop time. It is possible to perform memory replacement and memory backup in a balanced manner during the operation stoppage time.
[0075]
Further, since the nonvolatile storage medium according to the present invention has an address correspondence table area between the address of the system use area and the address of the memory replacement area, which is the memory capacity required for the host device, the system use area has a defect. Even if it occurs, the address can be converted and the data can be stored in the memory replacement area, and the rewriting of data from the system use area to the memory replacement area can be executed smoothly during the operation stop time zone.
[0076]
The memory replacement method of the data transfer device according to the present invention is a method of transferring read data to a host device, the step (S1) of recognizing an operation stop time of a command processing interval, and a nonvolatile storage medium A step of reading data from the system use area (S2), a step of rewriting the read data in the system use area (S3), a step of determining whether the rewritten data is normal (S4), and a data error In this case, since there is a step (S5) of storing data in the memory replacement area based on the address correspondence table and a step (S6) of reading and transferring the corresponding data from the memory replacement area, In addition, the data can be stored in the memory replacement area instead of the system use area where the defect occurred. Without affecting the operation of, it is possible to enhance the reliability of the stored data.
[Brief description of the drawings]
FIG. 1 is a basic block configuration diagram of an embodiment of a data transfer apparatus according to the present invention;
FIG. 2 is a block diagram of a main part of an embodiment of data compensation means according to the present invention.
FIG. 3 is a diagram showing an address correspondence table according to an embodiment of a nonvolatile storage medium according to the present invention;
FIG. 4 is an explanatory diagram of an embodiment of a memory replacement process according to the present invention.
FIG. 5 is an operation stop time setting image diagram of an embodiment of the operation time setting means according to the present invention;
FIG. 6 is an operation flowchart of one embodiment of a memory replacement method for a data transfer apparatus according to the present invention;
[Explanation of symbols]
1 Data transfer device
2 Control means
3 storage means
4 Transfer interface means
5 Data compensation means
6 Memory interface means
7a, 7b Nonvolatile storage medium
8 Data compensation control means
9 Operation time setting means
10 Memory replacement means
11 Memory backup means
12 Switching means
13 Data temporary storage means
14 Host device (system)
BU internal bus

Claims (6)

上位装置のコマンドに基づいて不揮発性記憶媒体に指定されたデータの書込み、または不揮発性記憶媒体から指定されたデータの読出しを実行し、読み出したデータを前記上位装置に転送するデータ転送装置であって、
前記上位装置からのコマンド処理間隔の運用停止時間帯に、前記不揮発性記憶媒体のシステム使用領域から順次データを読み出し、読み出したデータを再度前記システム使用領域に書き込んで、書き込まれたデータが異常の場合には、読み出したデータのアドレスを変更して前記不揮発性記憶媒体のメモリ交替領域にデータを書き込むとともに、前記不揮発性記憶媒体に書き込まれたデータと同一のデータを他の不揮発性記憶媒体にバックアップデータとして書き込むデータ補償手段を備えたことを特徴とするデータ転送装置。
A data transfer device that executes writing of data designated in a nonvolatile storage medium based on a command from a host device or reading of data designated from a nonvolatile storage medium, and transfers the read data to the host device. And
During the operation suspension time period of the command processing interval from the host device, data is sequentially read from the system use area of the nonvolatile storage medium, the read data is written again to the system use area, and the written data is abnormal. In this case, the address of the read data is changed and the data is written to the memory replacement area of the nonvolatile storage medium, and the same data as the data written to the nonvolatile storage medium is written to another nonvolatile storage medium. A data transfer apparatus comprising data compensation means for writing as backup data.
前記データ補償手段は、前記不揮発性記憶媒体のメモリ交替領域にデータを書き込むメモリ交替手段と、他の不揮発性記憶媒体にバックアップデータを書き込むメモリバックアップ手段と、前記不揮発性記憶媒体から読み出したデータを一時記憶するデータ一時記憶手段と、メモリ交替およびメモリバックアップの動作を制御するデータ補償制御手段と、を備えたことを特徴とする請求項1記載のデータ転送装置。The data compensation means includes a memory replacement means for writing data to a memory replacement area of the nonvolatile storage medium, a memory backup means for writing backup data to another nonvolatile storage medium, and data read from the nonvolatile storage medium. 2. The data transfer apparatus according to claim 1, further comprising: temporary data storage means for temporarily storing data, and data compensation control means for controlling operations of memory replacement and memory backup. 前記データ補償手段は、装置の運用時間および運用停止時間を計測して統計的に演算し、メモリ交替またはメモリバックアップの動作時間を設定する動作時間設定手段を備えたことを特徴とする請求項1記載のデータ転送装置。2. The data compensation means includes an operation time setting means for measuring an operation time and an operation stop time of the apparatus and statistically calculating them to set an operation time for memory replacement or memory backup. The data transfer device described. 前記データ補償手段は、運用停止時間帯に、メモリ交替とメモリバックアップを交互に切替える切替手段を備えたことを特徴とする請求項1記載のデータ転送装置。2. The data transfer apparatus according to claim 1, wherein the data compensation means comprises switching means for alternately switching between memory replacement and memory backup during an operation stop time period. 前記不揮発性記憶媒体は、前記上位装置に要求されるメモリ容量であるシステム使用領域のアドレスと前記メモリ交替領域のアドレスとのアドレス対応テーブル領域を備えたことを特徴とする請求項1記載のデータ転送装置。2. The data according to claim 1, wherein the nonvolatile storage medium includes an address correspondence table area between an address of a system use area which is a memory capacity required for the host device and an address of the memory replacement area. Transfer device. 上位装置のコマンドに基づいて不揮発性記憶媒体に指定されたデータの書込み、または不揮発性記憶媒体から指定されたデータの読出しを実行し、読み出したデータを前記上位装置に転送するデータ転送装置のメモリ交替方法であって、
コマンド処理間隔の運用停止時間を認識するステップ(S1)と、
不揮発性記憶媒体のシステム使用領域からデータを読み出すステップ(S2)と、
読み出したデータをシステム使用領域に再度書き込むステップ(S3)と、
再度書き込んだデータが正常か否かを判定するステップ(S4)と、
データ異常の場合、アドレス対応テーブルに基づいてデータをメモリ交替領域に格納するステップ(S5)と、
該当するデータをメモリ交替領域から読み出して転送するステップ(S6)と、
を備えたことを特徴とするデータ転送装置のメモリ交替方法。
A memory of a data transfer device that executes writing of data designated in a nonvolatile storage medium based on a command from the host device or reading of data designated from the nonvolatile storage medium and transferring the read data to the host device A replacement method,
Recognizing the operation stop time of the command processing interval (S1);
Reading data from the system use area of the non-volatile storage medium (S2);
Rewriting the read data in the system use area (S3);
Determining whether the rewritten data is normal (S4);
In the case of data abnormality, a step (S5) of storing data in the memory replacement area based on the address correspondence table;
A step (S6) of reading and transferring the corresponding data from the memory replacement area;
A memory replacement method for a data transfer apparatus, comprising:
JP2003055692A 2003-03-03 2003-03-03 Data transfer apparatus and memory replacement method thereof Expired - Fee Related JP4155842B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003055692A JP4155842B2 (en) 2003-03-03 2003-03-03 Data transfer apparatus and memory replacement method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003055692A JP4155842B2 (en) 2003-03-03 2003-03-03 Data transfer apparatus and memory replacement method thereof

Publications (2)

Publication Number Publication Date
JP2004265198A JP2004265198A (en) 2004-09-24
JP4155842B2 true JP4155842B2 (en) 2008-09-24

Family

ID=33119631

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003055692A Expired - Fee Related JP4155842B2 (en) 2003-03-03 2003-03-03 Data transfer apparatus and memory replacement method thereof

Country Status (1)

Country Link
JP (1) JP4155842B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154593A (en) * 2010-01-28 2011-08-11 Nec Corp Memory device and self-check control method thereof

Also Published As

Publication number Publication date
JP2004265198A (en) 2004-09-24

Similar Documents

Publication Publication Date Title
JP4078039B2 (en) Snapshot image generation management method and generation management device
US8359426B2 (en) Flash memory storage system
JP2010015195A (en) Storage controller and storage control method
US6883060B1 (en) Microcomputer provided with flash memory and method of storing program into flash memory
JP2006031367A (en) Computer system and method for shifting storage device system
WO2006100776A1 (en) Memory address management by firmware
US20010049799A1 (en) Disk array device including a memory with backup power supply and method thereof
WO2021072917A1 (en) Write hole protection method and system for raid, and storage medium
JP2000020391A (en) Storage device, data processor and its method
JP2010086009A (en) Storage device and memory control method
JP4155842B2 (en) Data transfer apparatus and memory replacement method thereof
JP4248164B2 (en) Disk array error recovery method, disk array control device, and disk array device
JP3399398B2 (en) Mirror Disk Recovery Method in Fault Tolerant System
JP2001051808A (en) Dynamic defect managing method for rewritable optical disk
JP3790756B2 (en) Disk array device, disk controller, and method for recovering data failure in disk array
JP2001101087A (en) Memory and memory controlling method
JP2000122813A (en) Disk array device
JP3670151B2 (en) Flash memory access method, system including driver for accessing flash memory, and flash memory
JPH07306758A (en) Disk array device and its control method
JPH07319637A (en) Controller and control method for disk device
JP3178913B2 (en) Semiconductor file device
JPH1124850A (en) Data recovery method for disk array
JP3444988B2 (en) Nonvolatile semiconductor disk device and control method therefor
JPH0588988A (en) Disk array device and method for restoring data
JP2002163154A (en) Double disc controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080704

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080708

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080708

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110718

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120718

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130718

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees