JP4499909B2 - Multiplexed storage controller - Google Patents

Multiplexed storage controller Download PDF

Info

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
Application number
JP2000385409A
Other languages
Japanese (ja)
Other versions
JP2002182861A (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2000385409A priority Critical patent/JP4499909B2/en
Publication of JP2002182861A publication Critical patent/JP2002182861A/en
Application granted granted Critical
Publication of JP4499909B2 publication Critical patent/JP4499909B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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】
請求項記載の発明は、請求項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 host computer 2 and the first and second 2s. In a computer system connected between two HDDs 3 and 4, the multiplexed storage control device 1 is provided with a large-capacity buffer 5 for data transfer and a copy processing unit 6. When a command is issued, the issued write command and data to be written to the HDDs 3 and 4 are temporarily stored in the data transfer buffer 5.
[0007]
Whether or not the HDD is executing a command issued by the host computer 2 is determined by searching the buffer 5 and determining that the HDD is not executing the command if there is no data. It was supposed to copy data between.
[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 host computer 2 issues a command to the HDD, a large-capacity buffer 5 for data transfer is required in the device. In addition, there is a problem that the cost becomes high.
[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]
Claim 2 The described invention is claimed. 1 In the described multiplex storage control device, the access unit performs read access to one external storage device and write access to the remaining external storage devices.
[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 storage control device 11 of the present invention. The multiplexed storage control device 11 includes a host computer 12 and two first and second external storage devices. The HDDs 13 and 14 are connected.
[0018]
The multiplexed storage control device 11 includes a bus switching unit 15, an external storage device access unit 16, an access monitoring unit 17, and three interfaces (I / F) 18, 19, 20, and the interface 18 includes the host computer 12. , The first HDD 13 is connected to the interface 19, and the second HDD 14 is connected to the interface 20.
[0019]
The bus switching unit 15 switches and controls the bus between the host computer 12 and the HDDs 13 and 14, and the external storage device access unit 16 controls access to the HDDs 13 and 14, and the access monitoring unit 17 Determines whether or not the host computer 12 and the HDDs 13 and 14 are accessing. Each of the interfaces 18, 19, and 20 conforms to the ATA standard.
[0020]
The access monitoring unit 17 includes an access control unit 21, a counter unit 22, and a counter upper limit setting unit 23 as shown in FIG. The access monitoring unit 17 is connected to a write line, a read line, and a DMACK line, which are signal lines in the bus from the host computer 12. The access monitoring unit 17 is connected to an interrupt line, a DASP line, and a DMARQ line, which are signal lines in the bus from the HDDs 13 and 14.
[0021]
The access control unit 21 is provided with a storage unit 211 that stores the active state, that is, the high level or the low level, for each connected signal line.
[0022]
The access control unit 21 monitors each signal line from the host computer 12 and each signal line from the HDDs 13, 14, determines whether or not each signal line is activated, and the counter unit 22. Is counted by a signal from the access control unit 21, and when the count value reaches the upper limit value preset in the counter upper limit setting unit 23, the signal A is supplied to the external storage device access unit 16. Yes.
[0023]
That is, as shown in FIG. 3, the access monitoring unit 17 monitors whether or not all signal lines connected by the access control unit 21 are inactive for 100 ms in S1, and becomes active during that time. When it is determined that the counter has been reached, the counter unit 22 is cleared in S2.
[0024]
If all the signal lines are not active for 100 ms, a notification is sent to the counter unit 22 in S3, whereby the counter unit 22 counts up by one. In S4, it is determined whether or not the count value of the counter unit 22 has reached the upper limit value set in the counter upper limit setting unit 23. If the upper limit value has not been reached, the process returns to S1.
[0025]
If the count value of the counter unit 22 reaches the upper limit value set in the counter upper limit setting unit 23, the counter unit 22 is cleared and the signal A is output to the external storage device access unit 16 in S5. To do. As a result, the copy execution unit of the external storage device access unit 16 accesses the first and second HDDs 13 and 14 to start the copy operation.
[0026]
FIG. 4 shows that when the ATA HDD is used, the host computer 12 issues a read command for performing data transfer (PIO transfer) to the HDDs 13 and 14 without using the DMACK line and the DMARQ line, and the data transfer. 2 shows an example of the signal operation of each line connected to the access monitoring unit 17 until the start of.
[0027]
It should be noted that other lines are required to actually issue commands to the HDDs 13 and 14 from the host computer 12 and transfer data, but signals frequently used between the host computer 12 and the HDDs 13 and 14 are supplied. The signal lines to be used are listed.
[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 HDDs 13 and 14 from the host computer 12. In addition, frequently used interrupt signals, interrupt lines that are signal lines of DASP signals, and DASP lines are handled as signals necessary for responses from the HDDs 13 and 14 to the host computer 12 for access from the host computer 12. The DASP line is a signal indicating that the HDDs 13 and 14 are currently being executed.
[0029]
Here, a write signal transmitted from the host computer 12 to the HDDs 13 and 14, a write line and a read line that are signal lines for read signals, an interrupt signal that is transmitted from the HDDs 13 and 14 to the host computer 12, and an interrupt that is a signal line for DASP signals. The case of a line and a DASP line will be described.
[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 storage unit 211 in the access monitoring unit 17 stores the signal line for each signal line. The active state of is stored. Then, the access monitoring unit 17 compares the active state of each signal line with the active state for each signal line stored in the storage unit 211 in the access control unit 21, so that the interrupt line is at a high level. When the write line, read line, and DASP line go low, it is determined to be active.
[0031]
Section a shows a section from when the host computer 12 confirms whether the command can be issued to when the command is issued, and a read signal is output from the host computer 12 to the lead wire. When the line goes low, it is determined to be active. Here, if the HDD 13 or the HDD 14 responds that the command cannot be issued, the host computer 12 waits until the command can be issued.
[0032]
A section b indicates a section in which a command is written. When the HDD 13 or the HDD 14 responds that the command can be issued, a write signal is output from the host computer 12 to the write line and the command is written. . At this time, since the write line is at a low level, it is determined to be active.
[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 host computer 12 to the HDD does not become active, but the DASP line becomes low level in response to the HDD, so it is determined to be active.
[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 host computer 12, and it is determined that the lead wire is at a low level and is active. Further, since the DASP line is also kept at the low level, it is determined that this is also active.
[0036]
The access monitoring unit 17 determines whether the write line and the read line are active as a signal from the host computer 12 to the HDD 13 or the HDD 14. Alternatively, it is determined whether the interrupt line and the DASP line are active as a signal from the HDD 13 or the HDD 14 to the host computer 12. Alternatively, it is determined whether or not all of the write line, read line, interrupt line, and DASP line are active.
[0037]
By such determination, it can be recognized that the HDD is being accessed by the host computer 12 until the command is issued from the host computer 12 and the command processing is completed.
[0038]
When the access monitoring unit 17 determines whether or not only the write line and the read line are active, since it cannot be recognized during the section c, the counter upper limit setting unit 23 is set in this case. It is necessary to set the upper limit value, that is, the monitoring time to a time longer than the time of the section c.
[0039]
Further, when the access monitoring unit 17 determines whether or not only the interrupt line and the DASP line are active, it cannot recognize between the section a and the section b. In this case, the counter upper limit setting is performed. The upper limit value set in the unit 23, that is, the monitoring time needs to be set to a time longer than the time obtained by adding the time of the section a and the time of the section b.
[0040]
When the access monitoring unit 17 determines whether or not all of the write line, read line, interrupt line, and DASP line are active, an upper limit value set in the counter upper limit setting unit 23, That is, the monitoring time can be shortened compared to the case of only the write line, read line, interrupt line, and DASP line.
[0041]
FIG. 5 shows that when the ATA HDD is used, the host computer 12 issues a read command for performing data transfer (DMA transfer) to the HDDs 13 and 14 using the DMACK line and the DMARQ line to transfer the data. An example of the signal operation of each line connected to the access monitoring unit 17 until the start is shown.
[0042]
It should be noted that other lines are required to actually issue commands to the HDDs 13 and 14 from the host computer 12 and transfer data, but signals frequently used between the host computer 12 and the HDDs 13 and 14 are supplied. The signal lines to be used are listed. In the present embodiment, as signals necessary for accessing the HDDs 13 and 14 from the host computer 12, frequently used write signals, read signal signal lines and read lines, and DMARQ signal signal lines DMARQ. Handle lines. In addition, as signals necessary for a response from the HDDs 13 and 14 to the host computer 12 in response to an access from the host computer 12, an interrupt signal that is frequently used, an interrupt line that is a signal line of the DASP signal, a DASP line, and a DMACK signal The DMACK line, which is a signal line, is handled. The DMARQ line is a signal line for the host computer 12 notifying the HDDs 13 and 14 that preparation for data transfer has been completed. The DMACK line is a signal line for notifying that the HDDs 13 and 14 can transfer data to the host computer 12.
[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 storage unit 211 in the access control unit 21 stores The active state is stored for each signal line. The access monitoring unit 17 compares the active state of each signal line with the active state of each signal line stored in the storage unit 211 in the access control unit 21 to obtain an interrupt line, a DMARQ line, Is active, when the high level, the write line, the read line, the DASP line, and the DMACK line become low level.
[0044]
Section a shows a section from when the host computer 12 confirms whether the command can be issued to when the command is issued, and a read signal is output from the host computer 12 to the lead wire. When the line goes low, it is determined to be active. Here, if the HDD 13 or the HDD 14 responds that the command cannot be issued, the host computer 12 waits until the command can be issued.
[0045]
A section b indicates a section in which a command is written. A write signal is output from the host computer 12 to the write line, and the command is written. At this time, since the write line is at a low level, it is determined to be active.
[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 host computer 12 to the HDD does not become active, but the DASP line becomes low level in response to the HDD, so it is determined to be active.
[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 host computer 12, and it is determined that the lead wire is at a low level and is active. Further, since the DASP line is also kept at the low level, it is determined that this is also active. Also, since the DMARQ line remains at the high level, it is determined that this is also active. Further, the DMACK line that supplies a response signal that permits a data transfer request goes low, and it is determined that this is also active.
[0049]
The access monitoring unit 17 determines whether a write line, a read line, and a DMACK line are active as a signal from the host computer 12 to the HDD 13 or the HDD 14. Alternatively, it is determined whether an interrupt line, a DASP line, or a DMARQ line is active as a signal from the HDD 13 or the HDD 14 to the host computer 12. Alternatively, it is determined whether or not all of the write line, read line, DMACK line, interrupt line, DASP line, and DMARQ line are active.
[0050]
By such determination, it can be recognized that the HDD is being accessed by the host computer 12 until the command is issued from the host computer 12 and the command processing is completed.
[0051]
When the access monitoring unit 17 determines whether or not only the write line, the read line, and the DMACK line are active, it cannot recognize the interval c and the interval d. In this case, the upper limit of the counter The upper limit value set in the setting unit 23, that is, the monitoring time needs to be set to a time longer than the time obtained by adding the time of the section c and the time of the section d.
[0052]
Further, when the access monitoring unit 17 determines whether or not only the interrupt line, the DASP line, and the DMARQ line are active, it cannot recognize between the section a and the section b. The upper limit value set in the counter upper limit setting unit 23, that is, the monitoring time needs to be set to a time longer than the time obtained by adding the time of the section a and the time of the section b.
[0053]
When the access monitoring unit 17 determines whether or not all of the write line, read line, DMACK line, interrupt line, DASP line, and DMARQ line are active, the counter upper limit setting unit 23 Can be shortened compared to the case of only the write line, read line, DMACK line, interrupt line, DASP line, and DMARQ line.
[0054]
The external storage device access unit 16 accesses the HDD 13 or 14 to confirm the connection when performing the connection confirmation operation of the HDD 13 or 14. Access at this time is performed by writing a certain value with a write command and reading the written value with a read command.
[0055]
In such a configuration, for example, when the access monitoring unit 17 determines whether only the write line, the read line, or the DMACK line is active, any one of the write line, the read line, and the DMACK line is determined. When it becomes active, an active determination is made and the counter unit 22 is cleared.
[0056]
Further, if neither line is active for 100 ms, 1 is added to the counter unit 22, and the counter unit 22 counts up if it remains inactive. When the count value of the counter unit 22 reaches the upper limit value set in the counter upper limit value setting unit 23, the signal A is supplied from the counter unit 22 to the external storage device access unit 16.
[0057]
When the external storage device access unit 16 receives the signal A, the external storage device access unit 16 accesses the HDDs 13 and 14 to start copying and connection confirmation operations.
[0058]
For example, when the access monitoring unit 17 determines whether only the interrupt line, the DASP line, or the DMARQ line is active, the active determination is made when any of the interrupt line, the DASP line, or the DMARQ line becomes active. To clear the counter unit 22.
[0059]
Further, if neither line is active for 100 ms, 1 is added to the counter unit 22, and the counter unit 22 counts up if it remains inactive. When the count value of the counter unit 22 reaches the upper limit value set in the counter upper limit value setting unit 23, the signal A is supplied from the counter unit 22 to the external storage device access unit 16.
[0060]
When the external storage device access unit 16 receives the signal A, the external storage device access unit 16 accesses the HDDs 13 and 14 to start copying and connection confirmation operations.
[0061]
For example, when the access monitoring unit 17 determines whether or not all of the write line, read line, DMACK line, interrupt line, DASP line, and DMARQ line are active, the write line, read line, When any of the DMACK line, the interrupt line, the DASP line, and the DMARQ line becomes active, an active determination is made and the counter unit 22 is cleared.
[0062]
Further, if neither line is active for 100 ms, 1 is added to the counter unit 22, and the counter unit 22 counts up if it remains inactive. When the count value of the counter unit 22 reaches the upper limit value set in the counter upper limit value setting unit 23, the signal A is supplied from the counter unit 22 to the external storage device access unit 16.
[0063]
When the external storage device access unit 16 receives the signal A, the external storage device access unit 16 accesses the HDDs 13 and 14 to start copying and connection confirmation operations.
[0064]
In this way, it is possible to determine whether or not the host computer 12 has issued a command to the HDD without using a large-capacity buffer for data transfer in the multiplexed storage control device 11, and accordingly, a buffer for data transfer. Can be eliminated, and the cost can be reduced.
[0065]
When the access monitoring unit 17 determines whether or not all of the write line, read line, DMACK line, interrupt line, DASP line, and DMARQ line are active, the write line, read line, DMACK line As compared with the case where it is determined whether only the interrupt line, the DASP line and the DMARQ line are active or not, the host computer 12 is not accessing the HDD. Therefore, operations such as HDD copying and HDD connection confirmation can be started quickly.
[0066]
When the access monitoring unit 17 determines whether or not only the write line, the read line, or only the write line, the read line, or the DMACK line is active, the interrupt line, DASP line, The DMARQ line may not be connected to the access control unit 21. When the access monitoring unit 17 determines whether only the interrupt line, DASP line, or only the interrupt line, DASP line, and DMARQ line are active, the write line, read line, DMACK from the host computer 12 is used. The line may not be connected to the access control unit 21.
[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 storage control device 11 of the present invention. The multiplexed storage control device 11 is a host computer 12 and first and second two units which are external storage devices. The HDDs 13 and 14 are connected.
[0068]
The multiplexed storage control device 11 includes a bus switching unit 151, an external storage device access unit 161, an access monitoring unit 171, and three interfaces (I / F) 18, 19, and 20. The interface 18 includes the host computer 12. , The first HDD 13 is connected to the interface 19, and the second HDD 14 is connected to the interface 20.
[0069]
The bus switching unit 151 includes a detection unit 31 and controls switching of the bus between the host computer 12 and the HDDs 13 and 14, and when a command is issued from the host computer 12 to the HDD 13 or 14. The detection unit 31 detects this and outputs a signal C to the external storage device access unit 161.
[0070]
As shown in FIG. 7, the access monitoring unit 17 includes an access control unit 21, a counter unit 22, a counter upper limit setting unit 23, and a read / write monitoring unit 24, and the read / write monitoring unit 24 includes the host computer 12. The write line and the read line are connected, and when either the write line or the read line becomes active, it is determined that the signal R is output to the external storage device access unit 161.
[0071]
As shown in FIG. 8, the external storage device access unit 161 includes an access recognition unit 41, a command flag storage unit 42 that stores a flag indicating a state of waiting for command issuance, and whether or not to start copying. A copy start flag storage unit 43 that stores a flag, a command reception unit 44, a read / write recognition unit 45, and a copy execution unit 46 are provided.
[0072]
The access recognition unit 41 performs control to change the flag of the command flag storage unit 42 and the flag of the copy start flag storage unit 43 from the signal A from the access monitoring unit 171 and the flag content of the command flag storage unit 42. To do.
[0073]
The command receiving unit 44 receives the signal C from the bus switching unit 151 and changes the flag in the command flag storage unit 42. The read / write recognition unit 45 performs control to change the flag of the command flag storage unit 42 based on the signal R from the access monitoring unit 171 and the flag content of the command flag storage unit 42. The copy execution unit 46 accesses the HDDs 13 and 14 to execute copy.
[0074]
In the external storage device access unit 161, if there is an access from the host computer 12 while the copy execution unit 46 is copying, a signal R is output from the access monitoring unit 171. In response to this signal R, the command flag is set in the command flag storage unit 42 and the copy start flag in the copy start flag storage unit 43 is cleared. When the copy start flag in the copy start flag storage unit 43 is cleared, the copy execution unit 46 interrupts copying.
[0075]
Thereafter, when the access monitoring unit 171 determines that the counter unit 22 has not accessed the host computer 12 and the HDD for a certain period of time and outputs a signal A, as shown in FIG. The unit 41 inputs the signal A, and in S12, the access recognition unit 41 determines whether or not the command flag is set in the command flag storage unit 42. Since the command flag is set in the command flag storage unit 42 now, the command flag storage unit 43 does not set the copy start flag.
[0076]
Next, when a command is issued from the host computer 12, the detection unit 31 of the bus switching unit 151 detects it and outputs a signal C to the external storage device access unit 161. As a result, the command reception unit 44 of the external storage device access unit 161 is notified that the command has been issued from the host computer 12.
[0077]
When the command reception unit 44 is notified that the host computer 12 has issued a command, the command reception unit 44 clears the command flag in the command flag storage unit 42.
[0078]
Thereafter, when the access monitoring unit 171 determines that the counter unit 22 has not accessed the host computer 12 and the HDD for a certain period of time and outputs a signal A, as shown in FIG. The unit 41 inputs the signal A, and in S12, the access recognition unit 41 determines whether or not the command flag is set in the command flag storage unit 42. This time, since the command flag is not set in the command flag storage unit 42, the access recognition unit 41 sets the copy start flag in the copy start flag storage unit 43 in S13.
[0079]
When the copy start flag is set in the copy start flag storage unit 43, the copy execution unit 46 resumes copying.
[0080]
Normally, the host computer 12 issues a command immediately after confirming whether a command can be issued to the HDD. However, there is a case where the command cannot be issued immediately after checking whether or not the command can be issued to the HDD in various processing steps of the host computer 12.
[0081]
In such a case, since the command flag is set in the command flag storage unit 42 until the command is issued from the host computer 12, the copying is not resumed. That is, even when a command is not issued immediately from the host computer 12, copying can be suspended until a command is issued. Whether the command processing is completed after the command is issued is monitored by the counter unit 22 of the access monitoring unit 171. When the command processing is completed, copying can be resumed.
[0082]
In this embodiment as well, as in the first embodiment described above, the host computer 12 issues a command to the HDD without using a large-capacity buffer for data transfer in the multiplexed storage controller 11. Therefore, the data transfer buffer can be made unnecessary, and the cost can be reduced.
[0083]
In this embodiment, the access recognition unit 41 determines whether or not the command flag is set in the command flag storage unit 42 and determines whether or not to set the copy start flag in the copy start flag storage unit 43. However, the present invention is not necessarily limited to this. A counter is provided in the access recognition unit, and a copy start flag is set in the copy start flag storage unit 43 when a command is not issued for a certain period of time. Good. In this way, copying can be resumed even if a command is not issued after access from the host computer 12.
[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.
アクセス部は、一つの外部記憶装置にリードアクセスを行い、残りの外部記憶装置にライトアクセスを行うことを特徴とする請求項に記載の多重化記憶制御装置。2. The multiplexed storage control device according to claim 1 , wherein the access unit performs read access to one external storage device and performs write access to the remaining external storage devices.
JP2000385409A 2000-12-19 2000-12-19 Multiplexed storage controller Expired - Fee Related JP4499909B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4604666B2 (en) * 2004-11-10 2011-01-05 株式会社日立製作所 I / O target change control method

Citations (13)

* Cited by examiner, † Cited by third party
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
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