JP4499909B2 - Multiplexed storage controller - Google Patents
Multiplexed storage controller Download PDFInfo
- Publication number
- JP4499909B2 JP4499909B2 JP2000385409A JP2000385409A JP4499909B2 JP 4499909 B2 JP4499909 B2 JP 4499909B2 JP 2000385409 A JP2000385409 A JP 2000385409A JP 2000385409 A JP2000385409 A JP 2000385409A JP 4499909 B2 JP4499909 B2 JP 4499909B2
- Authority
- JP
- Japan
- Prior art keywords
- line
- unit
- host computer
- access
- command
- 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
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、ホストコンピュータと複数の外部記憶装置との間に接続される多重化記憶制御装置に関する。
【0002】
【従来の技術】
コンピュータシステムにおいて、磁気ディスク装置(以下、HDDと称する。)が外部記憶装置として使用されているが、従来からHDDの故障に対処するために、複数のHDDを使用してデータを多重化し、一つのHDDが故障しても他のHDDからデータをコピーすることによりデータを保護する多重化記憶制御装置が採用されている。
【0003】
このような多重化記憶制御装置では、一つのHDDが故障した場合、故障したHDDを新たなHDDと交換し、その交換したHDDに他のHDDからデータをコピーしてもとの状態に復元するようになっている。また、交換後は、HDDの接続確認動作を行うようになっている。
【0004】
このような、HDD間のコピーやHDDの接続確認動作は、ホストコンピュータからHDDに対してアクセスが行われていないときに、多重化記憶制御装置が、HDDに対してホストコンピュータの制御とは独立して行うようになっている。
【0005】
従って、多重化記憶制御装置が、ホストコンピュータから発行されたコマンドをHDDが実行中であるかどうかを判断し、実行中でないときにHDD間のデータのコピー、HDDの接続確認動作を行う必要がある。
【0006】
ホストコンピュータから発行されたコマンドをHDDが実行中であるかどうかを判断するために、従来は、図10に示すように、多重化記憶制御装置1をホストコンピュータ2と第1、第2の2台のHDD3,4間に接続したコンピュータシステムにおいて、多重化記憶制御装置1に、データ転送用の大容量バッファ5と複写処理部6を設け、例えば、ホストコンピュータ2からHDD3,4に対してライトコマンドが発行された場合、一旦、発行されたライトコマンドとHDD3,4に書き込むデータをデータ転送用のバッファ5に蓄えるようにしている。
【0007】
そして、ホストコンピュータ2が発行したコマンドをHDDが実行中であるかどうかの判断は、バッファ5内を検索してデータが無ければHDDがコマンドを実行中でないと判断し、複写処理部6によりHDD間のデータのコピーを行うようになっていた。
【0008】
【発明が解決しようとする課題】
しかし、このような多重化記憶制御装置1では、ホストコンピュータ2がHDDに対してコマンドを発行しているか否かの判断を行うには、装置内にデータ転送用の大容量バッファ5が必要となり、また、コスト的にも高くなるという問題があった。
【0009】
そこで、本発明は、データ転送用のバッファを使用せずにホストコンピュータが外部記憶装置にコマンドを発行しているか否かの判断ができ、従って、データ転送用のバッファを不要にでき、また、コスト低下も実現できる多重化記憶制御装置を提供する。
【0010】
【課題を解決するための手段】
請求項1記載の発明は、ホストコンピュータと複数の外部記憶装置との間に接続される多重化記憶制御装置において、ホストコンピュータのバスに接続され、バスに供給される信号がアクティブ状態であるかどうかを監視する監視部と、バスに供給される信号が一定時間アクティブ状態でなければ外部記憶装置に対してアクセスを行うアクセス部と、予め外部記憶装置へのアクセスに必要な複数の信号のアクティブ状態を記憶する記憶部と、ホストコンピュータからのコマンドの発行を待っている状態を示すフラグを記憶するコマンドフラグ記憶部とを設け、監視部は、記憶部に記憶された信号のアクティブ状態とバスに供給される信号の状態を比較して、ホストコンピュータからバスに供給される外部記憶装置へのアクセスに必要な信号がアクティブ状態であるかどうかを監視し、バスに供給される信号がアクティブ状態であることを検出すると、アクセス部に対して検出信号を出力し、検出信号を受けたアクセス部は、コマンドフラグ記憶部にフラグをセットし、ホストコンピュータからコマンドが発行されてフラグがリセットされるまで外部記憶装置に対してアクセスを行わないものである。
【0014】
請求項2記載の発明は、請求項1に記載の多重化記憶制御装置において、アクセス部は、一つの外部記憶装置にリードアクセスを行い、残りの外部記憶装置にライトアクセスを行うものである。
【0017】
【発明の実施の形態】
以下、この発明の実施の形態を図面を参照して説明する。
(第1の実施の形態)
図1は本発明の多重化記憶制御装置11を使用したコンピュータシステムの構成を示すブロック図で、前記多重化記憶制御装置11をホストコンピュータ12と外部記憶装置である第1、第2の2台のHDD13,14との間に接続している。
【0018】
前記多重化記憶制御装置11は、バス切替部15、外部記憶装置アクセス部16、アクセス監視部17及び3つのインターフェース(I/F)18,19,20を備え、前記インターフェース18に前記ホストコンピュータ12を接続し、前記インターフェース19に前記第1のHDD13を接続し、前記インターフェース20に前記第2のHDD14を接続している。
【0019】
前記バス切替部15は、前記ホストコンピュータ12と前記各HDD13,14とのバスを切替え制御し、前記外部記憶装置アクセス部16は、前記各HDD13,14に対するアクセス制御を行い、前記アクセス監視部17は、前記ホストコンピュータ12と前記各HDD13,14がアクセスしているか否かを判別するようになっている。なお、前記各インターフェース18,19,20は、ATAの規格に従うものになっている。
【0020】
前記アクセス監視部17は、図2に示すように、アクセス制御部21、カウンタ部22及びカウンタ上限設定部23を備えている。アクセス監視部17には、前記ホストコンピュータ12からのバス中の信号線である、ライト線、リード線及びDMACK線が接続されている。また、アクセス監視部17には、前記各HDD13,14からのバス中の信号線である、割込み線、DASP線及びDMARQ線が接続されている。
【0021】
前記アクセス制御部21内には、接続された各信号線毎に、それらのアクティブ状態を、すなわち、ハイレベルまたはローレベルを記憶した記憶部211を設けてある。
【0022】
前記アクセス制御部21は、前記ホストコンピュータ12からの各信号線及び前記各HDD13,14からの各信号線を監視し、それら各信号線がアクティブになったか否かを判断し、前記カウンタ部22は前記アクセス制御部21からの信号によってカウントを行い、そのカウント値が前記カウンタ上限設定部23に予め設定した上限値に達すると信号Aを前記外部記憶装置アクセス部16に供給するようになっている。
【0023】
すなわち、前記アクセス監視部17は、図3に示すように、S1にて、アクセス制御部21により接続されている全ての信号線が100msの間アクティブでないか否かを監視し、その間にアクティブになったことを判断すると、S2にて、カウンタ部22をクリアする。
【0024】
また、全ての信号線が100msの間アクティブでなければ、S3にて、カウンタ部22に通知を行い、これによりカウンタ部22は1つカウントアップする。そして、S4にて、カウンタ部22のカウント値がカウンタ上限設定部23に設定されている上限値に達したか否かを判断し、上限値に達していなければステップをS1に戻す。
【0025】
また、カウンタ部22のカウント値がカウンタ上限設定部23に設定されている上限値に達したならば、S5にて、カウンタ部22をクリアして信号Aを前記外部記憶装置アクセス部16に出力する。これにより、前記外部記憶装置アクセス部16のコピー実行部は、第1、第2のHDD13,14をアクセスしてコピー動作を開始する。
【0026】
図4は、ATAのHDDを使用したときに、前記ホストコンピュータ12がHDD13,14に対してDMACK線、DMARQ線を使用せずにデータ転送(PIO転送)を行うリードコマンドを発行し、データ転送を開始するまでのアクセス監視部17に接続されている各線の信号動作の一例を示している。
【0027】
なお、前記ホストコンピュータ12からHDD13,14に実際にコマンドを発行し、データ転送を行うためには他の線も必要となるが、頻繁にホストコンピュータ12とHDD13、14間で使われる信号が供給される信号線を挙げてある。
【0028】
本実施の形態では、ホストコンピュータ12からHDD13、14のアクセスに必要な信号として、頻繁に使用されるライト信号、リード信号の信号線であるライト線とリード線を扱う。また、ホストコンピュータ12からのアクセスに対してHDD13、14からホストコンピュータ12への応答に必要な信号として、頻繁に使用される割込み信号、DASP信号の信号線である割込み線、DASP線を扱う。なお、前記DASP線は、現在HDD13、14が実行中であることを示す信号である。
【0029】
ここでは、ホストコンピュータ12からHDD13,14に送信するライト信号、リード信号の信号線であるライト線とリード線、HDD13,14からホストコンピュータ12に送信する割込み信号、DASP信号の信号線である割込み線、DASP線の場合について述べる。
【0030】
割り込み線はハイレベルでアクティブとなり、ライト線、リード線、DASP線はローレベルでアクティブとなると設定されており、前記アクセス監視部17内の記憶部211には、前記各信号線毎に、それらのアクティブ状態が記憶されている。そして、前記アクセス監視部17は、前記各信号線の動作中の状態とアクセス制御部21内の記憶部211に記憶された各信号線毎のアクティブ状態を比較することにより、割込み線がハイレベル、ライト線、リード線、DASP線がローレベルになるとアクティブであると判断する。
【0031】
区間aは、ホストコンピュータ12がコマンドを発行できるか否かの確認を行ってからコマンドを発行するまでの区間を示しており、ホストコンピュータ12からリード線にリード信号が出力され、これにより、リード線がローレベルになるとアクティブであると判断する。ここでは、コマンドが発行できない状態にあるとHDD13あるいはHDD14が応答している場合は、ホストコンピュータ12はコマンドが発行できるようになるまで待つ。
【0032】
区間bは、コマンドを書き込む区間を示し、コマンドが発行できる状態になったことをHDD13あるいはHDD14が応答してきた場合に、ホストコンピュータ12からライト線にライト信号が出力されてコマンドの書き込みが行われる。このとき、ライト線がローレベルになるので、アクティブであると判断する。
【0033】
区間cは、コマンドのHDDのディスクへの書き込みが終了し、HDDが割込みを発生させるまでの区間を示している。この区間はホストコンピュータ12からHDDに対する信号がアクティブにはならないが、DASP線がHDDからの応答でローレベルになるので、アクティブであると判断する。
【0034】
区間dは、割込み発生からデータ転送の開始までの区間を示しており、HDDからの割込み信号が供給される割込み線がハイレベルとなり、アクティブであると判断する。また、DASP線もローレベルのままなので、これによってもアクティブであると判断する。
【0035】
区間eは、ホストコンピュータ12からデータ転送のためのリード信号が出力される区間を示しており、リード線がローレベルとなり、アクティブであると判断する。また、DASP線もローレベルのままなので、これによってもアクティブであると判断する。
【0036】
前記アクセス監視部17は、ホストコンピュータ12からHDD13あるいはHDD14への信号として、ライト線、リード線がアクティブであるか否かを判断する。または、HDD13あるいはHDD14からホストコンピュータ12への信号として、割込み線、DASP線がアクティブであるか否かを判断する。または、ライト線、リード線、割込み線、DASP線の全てについてアクティブであるか否かを判断する。
【0037】
このような判断により、ホストコンピュータ12からコマンドが発行され、そのコマンド処理が終了するまでの間は、確実にHDDがホストコンピュータ12によってアクセス中であることが認識できる。
【0038】
前記アクセス監視部17が、ライト線、リード線のみについてアクティブであるか否かを判断する場合には、区間cの間は認識できないので、この場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を区間cの時間よりも長い時間に設定する必要がある。
【0039】
また、前記アクセス監視部17が、割込み線、DASP線のみについてアクティブであるか否かを判断する場合には、区間a及び区間bの間は認識できないので、この場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を区間aの時間と区間bの時間を加算した時間よりも長い時間に設定する必要がある。
【0040】
また、前記アクセス監視部17が、ライト線、リード線、割込み線、DASP線の全ての線についてアクティブであるか否かを判断する場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を、上記したライト線、リード線のみ、割込み線、DASP線のみの場合に比べて短くできる。
【0041】
図5は、ATAのHDDを使用したときに、前記ホストコンピュータ12がHDD13,14に対してDMACK線、DMARQ線を使用してデータ転送(DMA転送)を行うリードコマンドを発行し、データ転送を開始するまでのアクセス監視部17に接続されている各線の信号動作の一例を示している。
【0042】
なお、前記ホストコンピュータ12からHDD13,14に実際にコマンドを発行し、データ転送を行うためには他の線も必要となるが、頻繁にホストコンピュータ12とHDD13、14間で使われる信号が供給される信号線を挙げてある。本実施の形態では、ホストコンピュータ12からHDD13、14のアクセスに必要な信号として、頻繁に使用されるライト信号、リード信号の信号線であるライト線とリード線、DMARQ信号の信号線であるDMARQ線を扱う。また、ホストコンピュータ12からのアクセスに対してHDD13、14からホストコンピュータ12への応答に必要な信号として、頻繁に使用される割込み信号、DASP信号の信号線である割込み線、DASP線、DMACK信号の信号線であるDMACK線を扱う。なお、前記DMARQ線は、ホストコンピュータ12がHDD13,14に対してデータ転送の準備が完了したことを通知する信号線である。また、前記DMACK線は、HDD13,14がホストコンピュータ12に対してデータ転送可能であることを通知する信号線である。
【0043】
割込み線、DMARQ線はハイレベルでアクティブとなり、ライト線、リード線、DASP線、DMACK線はローレベルでアクティブになると設定されており、前記アクセス制御部21内の記憶部211には、前記各信号線毎に、それらのアクティブ状態が記憶されている。そして、前記アクセス監視部17は、前記各信号線の動作中の状態とアクセス制御部21内の記憶部211に記憶された各信号線毎のアクティブ状態を比較することにより、割込み線、DMARQ線がハイレベル、ライト線、リード線、DASP線、DMACK線がローレベルになるとアクティブであると判断する。
【0044】
区間aは、ホストコンピュータ12がコマンドを発行できるか否かの確認を行ってからコマンドを発行するまでの区間を示しており、ホストコンピュータ12からリード線にリード信号が出力され、これにより、リード線がローレベルになるとアクティブであると判断する。ここでは、コマンドが発行できない状態にあるとHDD13あるいはHDD14が応答している場合は、ホストコンピュータ12はコマンドが発行できるようになるまで待つ。
【0045】
区間bは、コマンドを書き込む区間を示し、ホストコンピュータ12からライト線にライト信号が出力されてコマンドの書き込みが行われる。このとき、ライト線がローレベルになるので、アクティブであると判断する。
【0046】
区間cは、コマンドのHDDのディスクへの書き込みが終了し、HDDが割込みを発生させるまでの区間を示している。この区間はホストコンピュータ12からHDDに対する信号がアクティブにはならないが、DASP線がHDDからの応答でローレベルになるので、アクティブであると判断する。
【0047】
区間dは、割込み発生からデータ転送の開始までの区間を示しており、データ転送を行うことを要求する信号を供給するDMARQ線がハイレベルとなり、アクティブであると判断する。また、DASP線もローレベルのままなので、これによってもアクティブであると判断する。
【0048】
区間eは、ホストコンピュータ12からデータ転送のためのリード信号が出力される区間を示しており、リード線がローレベルとなり、アクティブであると判断する。また、DASP線もローレベルのままなので、これによってもアクティブであると判断する。また、DMARQ線もハイレベルのままなので、これによってもアクティブであると判断する。さらに、データ転送の要求に対して許可する応答信号を供給するDMACK線がローレベルとなり、これによってもアクティブであると判断する。
【0049】
前記アクセス監視部17は、ホストコンピュータ12からHDD13あるいはHDD14への信号として、ライト線、リード線、DMACK線がアクティブであるか否かを判断する。または、HDD13あるいはHDD14からホストコンピュータ12への信号として、割込み線、DASP線、DMARQ線がアクティブであるか否かを判断する。または、ライト線、リード線、DMACK線、割込み線、DASP線、DMARQ線の全てがアクティブであるか否かを判断する。
【0050】
このような判断により、ホストコンピュータ12からコマンドが発行され、そのコマンド処理が終了するまでの間は、確実にHDDがホストコンピュータ12によってアクセス中であることが認識できる。
【0051】
前記アクセス監視部17が、ライト線、リード線、DMACK線のみについてアクティブであるか否かを判断する場合には、区間c、区間dの間は認識できないので、この場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を区間cの時間と区間dの時間を加算した時間よりも長い時間に設定する必要がある。
【0052】
また、前記アクセス監視部17が、割込み線、DASP線、DMARQ線のみについてアクティブであるか否かを判断する場合には、区間a及び区間bの間は認識できないので、この場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を区間aの時間と区間bの時間を加算した時間よりも長い時間に設定する必要がある。
【0053】
また、前記アクセス監視部17が、ライト線、リード線、DMACK線、割込み線、DASP線、DMARQ線の全ての線についてアクティブであるか否かを判断する場合には、前記カウンタ上限設定部23に設定する上限値、すなわち、監視時間を、上記したライト線、リード線、DMACK線のみ、割込み線、DASP線、DMARQ線のみの場合に比べて短くできる。
【0054】
前記外部記憶装置アクセス部16は、HDD13又は14の接続確認動作を行う場合は、HDD13又は14に対してアクセスを行って接続確認を行なう。このときのアクセスは、ライトコマンドによってある値を書き込み、リードコマンドによってその書き込んだ値を読み出すことによって行う。
【0055】
このような構成においては、アクセス監視部17が、例えば、ライト線、リード線、DMACK線のみについてアクティブであるか否かを判断する場合には、ライト線、リード線、DMACK線のいずれかがアクティブになるとアクティブ判断を行ってカウンタ部22をクリアする。
【0056】
また、いずれの線も100ms間アクティブにならなければカウンタ部22に1を加算し、アクティブにならない間が継続すればカウンタ部22がカウントアップする。そして、カウンタ部22のカウント値がカウンタ上限値設定部23に設定した上限値に達すると、カウンタ部22から外部記憶装置アクセス部16に信号Aが供給される。
【0057】
外部記憶装置アクセス部16は信号Aを受取ると、各HDD13,14に対してアクセスしてコピーや接続確認動作等を開始する。
【0058】
また、アクセス監視部17が、例えば、割込み線、DASP線、DMARQ線のみについてアクティブであるか否かを判断する場合には、割込み線、DASP線、DMARQ線のいずれかがアクティブになるとアクティブ判断を行ってカウンタ部22をクリアする。
【0059】
また、いずれの線も100ms間アクティブにならなければカウンタ部22に1を加算し、アクティブにならない間が継続すればカウンタ部22がカウントアップする。そして、カウンタ部22のカウント値がカウンタ上限値設定部23に設定した上限値に達すると、カウンタ部22から外部記憶装置アクセス部16に信号Aが供給される。
【0060】
外部記憶装置アクセス部16は信号Aを受取ると、各HDD13,14に対してアクセスしてコピーや接続確認動作等を開始する。
【0061】
また、アクセス監視部17が、例えば、ライト線、リード線、DMACK線、割込み線、DASP線、DMARQ線の全ての線についてアクティブであるか否かを判断する場合には、ライト線、リード線、DMACK線、割込み線、DASP線、DMARQ線のいずれかがアクティブになるとアクティブ判断を行ってカウンタ部22をクリアする。
【0062】
また、いずれの線も100ms間アクティブにならなければカウンタ部22に1を加算し、アクティブにならない間が継続すればカウンタ部22がカウントアップする。そして、カウンタ部22のカウント値がカウンタ上限値設定部23に設定した上限値に達すると、カウンタ部22から外部記憶装置アクセス部16に信号Aが供給される。
【0063】
外部記憶装置アクセス部16は信号Aを受取ると、各HDD13,14に対してアクセスしてコピーや接続確認動作等を開始する。
【0064】
このように、多重化記憶制御装置11にデータ転送用の大容量のバッファを使用せずにホストコンピュータ12がHDDにコマンドを発行しているか否かの判断ができ、従って、データ転送用のバッファを不要にでき、また、コスト低下も実現できる。
【0065】
また、アクセス監視部17が、ライト線、リード線、DMACK線、割込み線、DASP線、DMARQ線の全ての線についてアクティブであるか否かを判断する場合は、ライト線、リード線、DMACK線のみについてアクティブであるか否かを判断する場合や割込み線、DASP線、DMARQ線のみについてアクティブであるか否かを判断する場合に比べて、ホストコンピュータ12からHDDへのアクセスがされていないことを早く判断できるので、HDDのコピーやHDDの接続確認等の動作を早く始めることができる。
【0066】
なお、アクセス監視部17がライト線、リード線のみ、又は、ライト線、リード線、DMACK線のみについてアクティブであるか否かを判断する場合には各HDD13,14からの割込み線、DASP線、DMARQ線はアクセス制御部21に接続しなくてもよい。また、アクセス監視部17が割込み線、DASP線のみ、又は、割込み線、DASP線、DMARQ線のみについてアクティブであるか否かを判断する場合にはホストコンピュータ12からのライト線、リード線、DMACK線はアクセス制御部21に接続しなくてもよい。
【0067】
(第2の実施の形態)
なお、前述した実施の形態と同一の部分には同一の符号を付し、詳細な説明は省略する。
図6は本発明の多重化記憶制御装置11を使用したコンピュータシステムの構成を示すブロック図で、前記多重化記憶制御装置11をホストコンピュータ12と外部記憶装置である第1、第2の2台のHDD13,14との間に接続している。
【0068】
前記多重化記憶制御装置11は、バス切替部151、外部記憶装置アクセス部161、アクセス監視部171及び3つのインターフェース(I/F)18,19,20を備え、前記インターフェース18に前記ホストコンピュータ12を接続し、前記インターフェース19に前記第1のHDD13を接続し、前記インターフェース20に前記第2のHDD14を接続している。
【0069】
前記バス切替部151は、検出部31を備え、前記ホストコンピュータ12と前記各HDD13,14とのバスを切替え制御し、また、前記ホストコンピュータ12からHDD13又は14に対してコマンドが発行されると前記検出部31がそれを検出して信号Cを前記外部記憶装置アクセス部161に出力するようになっている。
【0070】
前記アクセス監視部17は、図7に示すように、アクセス制御部21、カウンタ部22、カウンタ上限設定部23及びリードライト監視部24を備え、前記リードライト監視部24には前記ホストコンピュータ12からのライト線、リード線が接続され、このライト線、リード線の何れかがアクティブになるとそれを判断して信号Rを前記外部記憶装置アクセス部161に出力するようになっている。
【0071】
前記外部記憶装置アクセス部161は、図8に示すように、アクセス認知部41、コマンドの発行を待っている状態を示すフラグを記憶するコマンドフラグ記憶部42、コピーを開始するか否かを示すフラグを記憶するコピー開始フラグ記憶部43、コマンド受理部44、リードライト認知部45及びコピー実行部46を備えている。
【0072】
前記アクセス認知部41は、前記アクセス監視部171からの信号Aと前記コマンドフラグ記憶部42のフラグ内容からそのコマンドフラグ記憶部42のフラグ及び前記コピー開始フラグ記憶部43のフラグを変更する制御を行うようになっている。
【0073】
前記コマンド受理部44は、前記バス切替部151からの信号Cを受けて前記コマンドフラグ記憶部42のフラグを変更するようになっている。前記リードライト認知部45は、前記アクセス監視部171からの信号Rと前記コマンドフラグ記憶部42のフラグ内容からそのコマンドフラグ記憶部42のフラグを変更する制御を行うようになっている。前記コピー実行部46は、前記各HDD13,14をアクセスしてコピーを実行するようになっている。
【0074】
前記外部記憶装置アクセス部161では、前記コピー実行部46がコピーを行っているときにホストコンピュータ12からアクセスがあると前記アクセス監視部171から信号Rが出力されるので、リードライト認知部45でこの信号Rを受けてコマンドフラグ記憶部42にコマンドフラグをセットし、コピー開始フラグ記憶部43のコピー開始フラグをクリアする。そして、コピー開始フラグ記憶部43のコピー開始フラグがクリアされると、前記コピー実行部46はコピーを中断する。
【0075】
その後、前記アクセス監視部171がホストコンピュータ12とHDDとの間で一定期間アクセスが無いことをカウンタ部22が判断して信号Aを出力すると、図9に示すように、S11にて、アクセス認知部41が信号Aを入力し、S12にて、アクセス認知部41はコマンドフラグ記憶部42にコマンドフラグがセットされているか否かを判断する。今は、コマンドフラグ記憶部42にコマンドフラグがセットされているので、コピー開始フラグ記憶部43にコピー開始フラグをセットすること無くそのままとなる。
【0076】
次に、ホストコンピュータ12からコマンドが発行されると、バス切替部151の検出部31がそれを検出して信号Cを外部記憶装置アクセス部161に対して出力する。これにより、外部記憶装置アクセス部161のコマンド受理部44に対してホストコンピュータ12からコマンドが発行したことが通知される。
【0077】
コマンド受理部44は、ホストコンピュータ12がコマンドを発行したことを通知されると、コマンドフラグ記憶部42のコマンドフラグをクリアする。
【0078】
その後、前記アクセス監視部171がホストコンピュータ12とHDDとの間で一定期間アクセスが無いことをカウンタ部22が判断して信号Aを出力すると、図9に示すように、S11にて、アクセス認知部41が信号Aを入力し、S12にて、アクセス認知部41はコマンドフラグ記憶部42にコマンドフラグがセットされているか否かを判断する。今度は、コマンドフラグ記憶部42にコマンドフラグがセットされていないので、S13にて、アクセス認知部41はコピー開始フラグ記憶部43にコピー開始フラグをセットする。
【0079】
コピー開始フラグ記憶部43にコピー開始フラグがセットされると、コピー実行部46はコピーを再開する。
【0080】
通常、ホストコンピュータ12は、HDDに対してコマンドが発行できるか否かの確認を行った後、直ちにコマンドを発行するようになっている。しかし、ホストコンピュータ12の様々な処理過程においてHDDに対してコマンドが発行できるか否かの確認を行った後、直ちにコマンドを発行することができない場合もある。
【0081】
このような場合に、ホストコンピュータ12からコマンドが発行されるまではコマンドフラグ記憶部42にコマンドフラグがセットされているので、コピーが再開されることはない。すなわち、ホストコンピュータ12からすぐにコマンドが発行されない場合でもコマンドが発行されるまでコピーを中断しておくことができる。また、コマンドの発行後コマンド処理が終了したかどうかの判断はアクセス監視部171のカウンタ部22で監視され、コマンド処理が終了するとコピーを再開できる。
【0082】
なお、この実施の形態においても前述した第1の実施の形態と同様に、多重化記憶制御装置11にデータ転送用の大容量のバッファを使用せずにホストコンピュータ12がHDDにコマンドを発行しているか否かの判断ができ、従って、データ転送用のバッファを不要にでき、また、コスト低下も実現できる。
【0083】
なお、この実施の形態では、アクセス認知部41がコマンドフラグ記憶部42にコマンドフラグがセットされているか否かを判断してコピー開始フラグ記憶部43にコピー開始フラグをセットするか否かを決定する場合について述べたが必ずしもこれに限定するものではなく、アクセス認知部の内部にカウンタを設け、一定時間コマンドが発行されない場合にコピー開始フラグ記憶部43にコピー開始フラグをセットするようにしてもよい。このようにすれば、ホストコンピュータ12からアクセスがあった後にコマンドが発行されない事態が生じてもコピーを再開させることができる。
【0084】
なお、前述した各実施の形態は外部記憶装置としてHDDを2台使用した場合について述べたがこれに限定されるものではなく、3台以上であってもよい。また、外部記憶装置としてHDD以外のものを使用してもよい。
【0085】
【発明の効果】
各請求項記載の発明によれば、データ転送用のバッファを使用せずにホストコンピュータが外部記憶装置にコマンドを発行しているか否かの判断ができ、従って、データ転送用のバッファを不要にでき、また、コスト低下も実現できる。 また、請求項4記載の発明によれば、さらに、ホストコンピュータが外部記憶装置に対してコマンドが発行できるか否かの確認を行った後直ちにホストコンピュータからコマンドが発行されない場合でも、コマンドが発行されるまで外部記憶装置に対するアクセスを中断させることができる。
【図面の簡単な説明】
【図1】本発明の第1の実施の形態を示す多重化記憶制御装置を使用したコンピュータシステムの構成を示すブロック図。
【図2】同実施の形態におけるアクセス監視部の構成を示すブロック図。
【図3】同実施の形態におけるアクセス監視部の動作を示す流れ図。
【図4】同実施の形態におけるアクセス監視部に接続されている各線の信号動作の一例を示すタイミング図。
【図5】同実施の形態におけるアクセス監視部に接続されている各線の信号動作の他の一例を示すタイミング図。
【図6】本発明の第2の実施の形態を示す多重化記憶制御装置を使用したコンピュータシステムの構成を示すブロック図。
【図7】同実施の形態におけるアクセス監視部の構成を示すブロック図。
【図8】同実施の形態における外部記憶装置アクセス部の構成を示すブロック図。
【図9】同実施の形態におけるアクセス認知部の処理を示す流れ図。
【図10】従来例を示すブロック図。
【符号の説明】
11…多重化記憶装置
12…ホストコンピュータ
13,14…磁気ディスク装置(HDD)
16…外部記憶装置アクセス部
17…アクセス監視部[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a multiplexed storage control device connected between a host computer and a plurality of external storage devices.
[0002]
[Prior art]
In a computer system, a magnetic disk device (hereinafter referred to as HDD) is used as an external storage device. Conventionally, in order to cope with a failure of the HDD, data is multiplexed using a plurality of HDDs. A multiplexed storage control device that protects data by copying data from another HDD even when one HDD fails is employed.
[0003]
In such a multiplexed storage control device, when one HDD fails, the failed HDD is replaced with a new HDD, and data is restored to the original state by copying data from the other HDD to the replaced HDD. It is like that. Further, after the replacement, the HDD connection confirmation operation is performed.
[0004]
Such copying between HDDs and HDD connection confirmation operations are independent of the control of the host computer by the multiplexed storage control device when the HDD is not accessed from the host computer. To do it.
[0005]
Therefore, it is necessary for the multiplexed storage control device to determine whether or not the HDD is executing a command issued from the host computer, and when not being executed, it is necessary to perform a data copy between the HDDs and an HDD connection check operation. is there.
[0006]
In order to determine whether the HDD is executing a command issued from the host computer, conventionally, as shown in FIG. 10, the multiplexed storage control device 1 is connected to the
[0007]
Whether or not the HDD is executing a command issued by the
[0008]
[Problems to be solved by the invention]
However, in such a multiplexed storage control device 1, in order to determine whether or not the
[0009]
Therefore, the present invention can determine whether or not the host computer issues a command to the external storage device without using the data transfer buffer, and therefore can eliminate the need for the data transfer buffer. Provided is a multiplexed storage control device that can realize cost reduction.
[0010]
[Means for Solving the Problems]
According to a first aspect of the present invention, there is provided a multiplexed storage control device connected between a host computer and a plurality of external storage devices. Ho Strike computer bus Close to A monitoring unit that monitors whether a signal supplied to the bus is active, an access unit that accesses the external storage device if the signal supplied to the bus is not active for a certain period of time, A storage unit for storing active states of a plurality of signals necessary for accessing an external storage device in advance; A command flag storage unit for storing a flag indicating a state waiting for a command issued from the host computer; The monitoring section Is Compares the active state of the signal stored in the storage unit with the state of the signal supplied to the bus to determine whether the signal necessary for accessing the external storage device supplied from the host computer to the bus is in the active state. Monitoring When the signal supplied to the bus is detected to be in an active state, it outputs a detection signal to the access unit, and the access unit that has received the detection signal sets a flag in the command flag storage unit, and the host computer Will not access the external storage device until the flag is reset Is.
[0014]
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
(First embodiment)
FIG. 1 is a block diagram showing the configuration of a computer system using a multiplexed
[0018]
The multiplexed
[0019]
The
[0020]
The
[0021]
The
[0022]
The
[0023]
That is, as shown in FIG. 3, the
[0024]
If all the signal lines are not active for 100 ms, a notification is sent to the
[0025]
If the count value of the
[0026]
FIG. 4 shows that when the ATA HDD is used, the
[0027]
It should be noted that other lines are required to actually issue commands to the
[0028]
In the present embodiment, a write line and a read line, which are signal lines for frequently used write signals and read signals, are handled as signals necessary for accessing the
[0029]
Here, a write signal transmitted from the
[0030]
The interrupt line is set to be active at a high level, and the write line, read line, and DASP line are set to be active at a low level. The
[0031]
Section a shows a section from when the
[0032]
A section b indicates a section in which a command is written. When the
[0033]
A section c indicates a section from when the writing of the command to the disk of the HDD is completed until the HDD generates an interrupt. During this period, the signal from the
[0034]
A section d indicates a section from the occurrence of an interrupt to the start of data transfer, and the interrupt line to which the interrupt signal from the HDD is supplied is at a high level and is determined to be active. Further, since the DASP line is also kept at the low level, it is determined that this is also active.
[0035]
A section e indicates a section in which a read signal for data transfer is output from the
[0036]
The
[0037]
By such determination, it can be recognized that the HDD is being accessed by the
[0038]
When the
[0039]
Further, when the
[0040]
When the
[0041]
FIG. 5 shows that when the ATA HDD is used, the
[0042]
It should be noted that other lines are required to actually issue commands to the
[0043]
The interrupt line and DMARQ line are set to be active at a high level, and the write line, read line, DASP line, and DMACK line are set to be active at a low level. The
[0044]
Section a shows a section from when the
[0045]
A section b indicates a section in which a command is written. A write signal is output from the
[0046]
A section c indicates a section from when the writing of the command to the disk of the HDD is completed until the HDD generates an interrupt. During this period, the signal from the
[0047]
An interval d indicates an interval from the occurrence of an interrupt to the start of data transfer. The DMARQ line that supplies a signal for requesting data transfer becomes high level and is determined to be active. Further, since the DASP line is also kept at the low level, it is determined that this is also active.
[0048]
A section e indicates a section in which a read signal for data transfer is output from the
[0049]
The
[0050]
By such determination, it can be recognized that the HDD is being accessed by the
[0051]
When the
[0052]
Further, when the
[0053]
When the
[0054]
The external storage
[0055]
In such a configuration, for example, when the
[0056]
Further, if neither line is active for 100 ms, 1 is added to the
[0057]
When the external storage
[0058]
For example, when the
[0059]
Further, if neither line is active for 100 ms, 1 is added to the
[0060]
When the external storage
[0061]
For example, when the
[0062]
Further, if neither line is active for 100 ms, 1 is added to the
[0063]
When the external storage
[0064]
In this way, it is possible to determine whether or not the
[0065]
When the
[0066]
When the
[0067]
(Second Embodiment)
In addition, the same code | symbol is attached | subjected to the part same as embodiment mentioned above, and detailed description is abbreviate | omitted.
FIG. 6 is a block diagram showing the configuration of a computer system using the multiplexed
[0068]
The multiplexed
[0069]
The
[0070]
As shown in FIG. 7, the
[0071]
As shown in FIG. 8, the external storage
[0072]
The
[0073]
The
[0074]
In the external storage
[0075]
Thereafter, when the
[0076]
Next, when a command is issued from the
[0077]
When the
[0078]
Thereafter, when the
[0079]
When the copy start flag is set in the copy start
[0080]
Normally, the
[0081]
In such a case, since the command flag is set in the command
[0082]
In this embodiment as well, as in the first embodiment described above, the
[0083]
In this embodiment, the
[0084]
In the above-described embodiments, the case where two HDDs are used as the external storage device has been described. However, the present invention is not limited to this, and three or more HDDs may be used. Further, an external storage device other than the HDD may be used.
[0085]
【The invention's effect】
According to the invention described in each claim, it is possible to determine whether or not the host computer issues a command to the external storage device without using the data transfer buffer, so that the data transfer buffer is unnecessary. And cost reduction. According to the fourth aspect of the present invention, the command is issued even if the host computer does not issue the command immediately after checking whether the command can be issued to the external storage device. The access to the external storage device can be interrupted until it is done.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a computer system using a multiplexed storage control device according to a first embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of an access monitoring unit in the embodiment.
FIG. 3 is a flowchart showing an operation of an access monitoring unit in the embodiment.
FIG. 4 is a timing chart showing an example of the signal operation of each line connected to the access monitoring unit in the embodiment.
FIG. 5 is a timing chart showing another example of the signal operation of each line connected to the access monitoring unit in the embodiment.
FIG. 6 is a block diagram showing a configuration of a computer system using a multiplexed storage control device according to a second embodiment of the present invention.
FIG. 7 is an exemplary block diagram showing a configuration of an access monitoring unit according to the embodiment;
FIG. 8 is an exemplary block diagram showing the configuration of an external storage device access unit according to the embodiment;
FIG. 9 is a flowchart showing processing of an access recognition unit in the embodiment.
FIG. 10 is a block diagram showing a conventional example.
[Explanation of symbols]
11: Multiplexed storage device
12 ... Host computer
13, 14 ... Magnetic disk drive (HDD)
16 ... External storage device access unit
17 ... Access monitoring unit
Claims (2)
前記ホストコンピュータのバスに接続され、バスに供給される信号がアクティブ状態であるかどうかを監視する監視部と、
前記バスに供給される信号が一定時間アクティブ状態でなければ外部記憶装置に対してアクセスを行うアクセス部と、
予め外部記憶装置へのアクセスに必要な複数の信号のアクティブ状態を記憶する記憶部と、
前記ホストコンピュータからのコマンドの発行を待っている状態を示すフラグを記憶するコマンドフラグ記憶部とを設け、
前記監視部は、前記記憶部に記憶された信号のアクティブ状態とバスに供給される信号の状態を比較して、前記ホストコンピュータからバスに供給される外部記憶装置へのアクセスに必要な信号がアクティブ状態であるかどうかを監視し、前記バスに供給される信号がアクティブ状態であることを検出すると、前記アクセス部に対して検出信号を出力し、
前記検出信号を受けた前記アクセス部は、前記コマンドフラグ記憶部に前記フラグをセットし、前記ホストコンピュータからコマンドが発行されて前記フラグがリセットされるまで前記外部記憶装置に対してアクセスを行わないことを特徴とする多重化記憶制御装置。In a multiplexed storage control device connected between a host computer and a plurality of external storage devices,
Is connected to the bus before Symbol host computer, and a monitoring unit signal supplied to the bus to monitor whether the active state,
An access unit for accessing the external storage device if the signal supplied to the bus is not active for a certain period of time;
A storage unit for storing active states of a plurality of signals necessary for accessing an external storage device in advance ;
A command flag storage unit for storing a flag indicating a state of waiting for a command issued from the host computer ;
The monitoring unit of the previous SL by comparing the state of the signal supplied to the active state and bus signal stored in the storage unit, signals required from the host computer to access the external storage device is supplied to the bus When the signal supplied to the bus is detected to be in an active state, a detection signal is output to the access unit,
The access unit that has received the detection signal sets the flag in the command flag storage unit and does not access the external storage device until a command is issued from the host computer and the flag is reset. A multiplexed storage control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000385409A JP4499909B2 (en) | 2000-12-19 | 2000-12-19 | Multiplexed storage controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000385409A JP4499909B2 (en) | 2000-12-19 | 2000-12-19 | Multiplexed storage controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002182861A JP2002182861A (en) | 2002-06-28 |
JP4499909B2 true JP4499909B2 (en) | 2010-07-14 |
Family
ID=18852675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2000385409A Expired - Fee Related JP4499909B2 (en) | 2000-12-19 | 2000-12-19 | Multiplexed storage controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4499909B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4604666B2 (en) * | 2004-11-10 | 2011-01-05 | 株式会社日立製作所 | I / O target change control method |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01245497A (en) * | 1988-03-28 | 1989-09-29 | Nec Corp | Semiconductor memory |
JPH01276250A (en) * | 1988-04-28 | 1989-11-06 | Hitachi Ltd | System for managing file history using optical disk |
JPH02302847A (en) * | 1989-05-18 | 1990-12-14 | Nec Corp | File receding system |
JPH0319047A (en) * | 1989-06-16 | 1991-01-28 | Hitachi Ltd | Memory control system and its device |
JPH0528098A (en) * | 1991-07-18 | 1993-02-05 | Ricoh Co Ltd | Scsi device |
JPH0573213A (en) * | 1991-09-12 | 1993-03-26 | Hitachi Ltd | External storage device system |
JPH05289784A (en) * | 1992-03-13 | 1993-11-05 | Internatl Business Mach Corp <Ibm> | Battery-driven computer and battery power monitor method for battery-driven computer |
JPH07129331A (en) * | 1993-11-05 | 1995-05-19 | Fujitsu Ltd | Disk array device |
JPH09179815A (en) * | 1995-12-22 | 1997-07-11 | Fujitsu Ltd | Bus controller |
JPH1049263A (en) * | 1996-03-29 | 1998-02-20 | Internatl Business Mach Corp <Ibm> | Method and device for limiting voltage drop of computer system |
JPH10254646A (en) * | 1997-03-14 | 1998-09-25 | Hitachi Ltd | Method for backing up portable recording medium |
JPH10334226A (en) * | 1997-06-04 | 1998-12-18 | Hitachi Ltd | Image data storage device |
JPH11250007A (en) * | 1998-03-05 | 1999-09-17 | Hitachi Ltd | Serial access system and device used for the same |
-
2000
- 2000-12-19 JP JP2000385409A patent/JP4499909B2/en not_active Expired - Fee Related
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01245497A (en) * | 1988-03-28 | 1989-09-29 | Nec Corp | Semiconductor memory |
JPH01276250A (en) * | 1988-04-28 | 1989-11-06 | Hitachi Ltd | System for managing file history using optical disk |
JPH02302847A (en) * | 1989-05-18 | 1990-12-14 | Nec Corp | File receding system |
JPH0319047A (en) * | 1989-06-16 | 1991-01-28 | Hitachi Ltd | Memory control system and its device |
JPH0528098A (en) * | 1991-07-18 | 1993-02-05 | Ricoh Co Ltd | Scsi device |
JPH0573213A (en) * | 1991-09-12 | 1993-03-26 | Hitachi Ltd | External storage device system |
JPH05289784A (en) * | 1992-03-13 | 1993-11-05 | Internatl Business Mach Corp <Ibm> | Battery-driven computer and battery power monitor method for battery-driven computer |
JPH07129331A (en) * | 1993-11-05 | 1995-05-19 | Fujitsu Ltd | Disk array device |
JPH09179815A (en) * | 1995-12-22 | 1997-07-11 | Fujitsu Ltd | Bus controller |
JPH1049263A (en) * | 1996-03-29 | 1998-02-20 | Internatl Business Mach Corp <Ibm> | Method and device for limiting voltage drop of computer system |
JPH10254646A (en) * | 1997-03-14 | 1998-09-25 | Hitachi Ltd | Method for backing up portable recording medium |
JPH10334226A (en) * | 1997-06-04 | 1998-12-18 | Hitachi Ltd | Image data storage device |
JPH11250007A (en) * | 1998-03-05 | 1999-09-17 | Hitachi Ltd | Serial access system and device used for the same |
Also Published As
Publication number | Publication date |
---|---|
JP2002182861A (en) | 2002-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6052795A (en) | Recovery method and system for continued I/O processing upon a controller failure | |
US6256695B1 (en) | Disk drive method of determining SCSI bus state information after a SCSI bus reset condition | |
US20080209103A1 (en) | Storage device control apparatus, storage device, and data storage control method | |
JP5700514B2 (en) | Communication speed control device and communication speed control method | |
JP2000181773A (en) | Storage device system | |
US5724609A (en) | Apparatus for transfer-controlling data by direct memory access | |
JP4775843B2 (en) | Storage system and storage control method | |
JP2000132413A (en) | Error retry method, error retry system and its recording medium | |
JP4499909B2 (en) | Multiplexed storage controller | |
JP5823755B2 (en) | Storage device and program | |
US8151028B2 (en) | Information processing apparatus and control method thereof | |
US6088818A (en) | Data read apparatus and data read method | |
US8132196B2 (en) | Controller based shock detection for storage systems | |
JPH09282108A (en) | Disk device | |
US8159779B2 (en) | Method and apparatus utilizing shock sensors on storage devices | |
CN100371916C (en) | SCSI magnetic disc recording device and mehtod | |
JP4339527B2 (en) | Multiplexed storage controller | |
JPS6217877Y2 (en) | ||
JPH0820934B2 (en) | Disk cache control method | |
JP2005070993A (en) | Device having transfer mode abnormality detection function and storage controller, and interface module for the controller | |
JP3664139B2 (en) | Retry processing method of SCSI interface controller | |
JPH076117A (en) | Data transfer system and data transfer equipment | |
JPH11203239A (en) | Scsi controller | |
JPH10301816A (en) | Error storage device in computer system | |
JPS6230668B2 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060706 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090630 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090831 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091117 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100217 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20100325 |
|
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: 20100413 |
|
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: 20100416 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130423 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130423 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140423 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |