JP4073775B2 - Cache built-in switch and recording medium recording program - Google Patents

Cache built-in switch and recording medium recording program Download PDF

Info

Publication number
JP4073775B2
JP4073775B2 JP2002363969A JP2002363969A JP4073775B2 JP 4073775 B2 JP4073775 B2 JP 4073775B2 JP 2002363969 A JP2002363969 A JP 2002363969A JP 2002363969 A JP2002363969 A JP 2002363969A JP 4073775 B2 JP4073775 B2 JP 4073775B2
Authority
JP
Japan
Prior art keywords
disk
cache
switch
directly connected
built
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
JP2002363969A
Other languages
Japanese (ja)
Other versions
JP2004199169A (en
Inventor
弘治 杉山
啓 久保
眞司 森田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2002363969A priority Critical patent/JP4073775B2/en
Publication of JP2004199169A publication Critical patent/JP2004199169A/en
Application granted granted Critical
Publication of JP4073775B2 publication Critical patent/JP4073775B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は,複数の上位装置(サーバ等,ディスクをアクセスするコンピュータ)と複数のディスクを接続するキャッシュ内蔵型スイッチに関し,特にスイッチ間のキャッシュの同期を不要とするキャッシュ内蔵型スイッチに関する。
【0002】
【従来の技術】
多数の上位装置と多数のディスクを接続する場合に,トランザクション性能等を向上するために接続用スイッチを用いることが考えられている。接続のための伝送路及びスイッチの具体的な製品の規格としてファイバーチャネルスイッチがある。このファイバーチャネルスイッチは,上位装置及びディスクと接続するためのI/Fを持ち,データの変換を行う。図6に,ファイバーチャネルスイッチを使用した従来のシステムを示す。このシステムは,多数の上位装置(代表として符号110を付記する)と,多数のディスク(代表として符号180,190を付記する)が,多数の接続用スイッチ120,130,140,150,160,170により,伝送路を介して接続されて成る。各スイッチ間の距離は,数メートルの近距離から,数万メートルの長距離に至る,様々な距離をとることが可能である。
【0003】
なお,本発明は,図6に示すように,1つのディスクが1つのスイッチに直接接続するのみで,複数のスイッチには直接接続しないシステム構成を前提とする(1つのディスクが複数のスイッチに直接接続するシステム構成は除外する)。但し,スイッチは,1つのスイッチが複数のディスクに直接接続してもよい(図6に示す例では,ディスク180は1つのスイッチ150のみに,ディスク190は1つのスイッチ160のみに,それぞれ直接接続するだけであるが,そのスイッチ150は3つのディスクに,スイッチ160は2つのディスクに,それぞれ直接接続している。なお,スイッチ120は2つのディスクに,スイッチ130は1つのディスクに,スイッチ140は3つのディスクに,スイッチ170は2つのディスクに,それぞれ直接接続している)。ここで,「直接接続」とは,1つのスイッチのポートに直接,1つのディスクが接続されている状態をいい,「間接接続」とは,スイッチとディスクが別の異なるスイッチを介して接続している状態をいう。
【0004】
図6に示す例において,上位装置110がディスク180にアクセスする場合,スイッチ120,130,150の経路と,スイッチ120,140,150の経路の何れかを経なければならない。
【0005】
ところで,そのファイバーチャネルスイッチにキャッシュを内蔵したキャッシュ内蔵型スイッチが提案されている(例えば,特許文献1参照)。このキャッシュ内蔵型スイッチは,キャッシュを制御するためのキャッシュ制御部及びキャッシュ管理情報を持ち,上位装置からのデータ要求に対してキャッシュ内にデータが存在するか(キャッシュヒット)の判定及びデータの送信を行う。
【0006】
これらの従来技術では,全てのファイバーチャネルスイッチのキャッシュを有効化することにより,それぞれの上位装置は高速でディスクにあるデータにアクセス可能になる。
【0007】
【特許文献1】
特開2001−325207号公報
【0008】
【発明が解決しようとする課題】
しかし,前記従来技術のように,複数のスイッチのキャッシュを有効化しておくと,ある特定の上位装置がある特定のディスクのデータを更新するために,そのディスクに直接接続されているスイッチのキャッシュの当該データを更新した場合,他の全てのスイッチのキャッシュの内容について同期を取る必要がある。同期を取るためには,ある特定のスイッチのキャッシュにおいて発生した修正を他の全てのスイッチにも通知する必要がある。この通知のためのトラフィックはスイッチの個数に比例して大きくなり,トラフィックの圧迫を招くという問題があった。
【0009】
本発明は,上記課題に鑑みて為されたものであり,それぞれのスイッチのキャッシュの同期を不要とし,トラフィックの圧迫を軽減することを目的とする。
【0010】
【課題を解決するための手段】
請求項1に係る発明は、
複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、前記キャッシュ内蔵型スイッチは、直接接続ディスク検出部と、直接接続ディスクテーブルと、キャッシュ情報制御部と、キャッシュメモリと、パス切り替え部とを備えて構成され、前記キャッシュ内蔵型スイッチは、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、前記直接接続ディスク検出部が、キャッシュ内蔵型スイッチに直接接続しているディスクを検出し、そのディスクのディスク番号を直接接続ディスクテーブルに登録し、前記キャッシュ情報制御部が、受信したフレームに記録されている送信先のディスク番号が、直接接続ディスクテーブルに格納されているか否かを判定し、格納されている場合に前記送信先のディスクに対するキャッシュを有効化し、格納されていない場合に無効化するように制御を行うことにより、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御することを特徴とする。
【0011】
請求項2に係る発明は、
複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御するキャッシュ内蔵型スイッチに、スイッチの直接接続対象であるディスクが直接接続されているか否かを判定する手順、ディスクが直接接続されていると判定したときに、そのディスクのディスク番号を直接接続ディスクテーブルに登録する手順、を実行させるための直接接続検出処理プログラムを記録したことを特徴とする。
【0012】
請求項3に係る発明は、
複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御するキャッシュ内蔵型スイッチに、受信したフレームから送信先のディスク番号を取得する手順、そのディスク番号が直接接続ディスクテーブルに格納されていると判定したときに、そのディスクヘのアクセスではキャッシュを有効化するための処理をする手順、そのディスク番号が直接接続ディスクテーブルに格納されていないと判定したときに、そのディスクヘのアクセスではキャッシュを無効化するための処理をする手順、を実行させるための有効無効処理プログラムを記録したことを特徴とする。
【0013】
【発明の実施の形態】
以下,本発明のキャッシュ内蔵型スイッチを,図1〜図5を用いて説明する。図1は本発明のキャッシュ内蔵型スイッチの構成を,図2は直接接続ディスク検出部の直接接続検出処理のフローチャートを,図3は直接接続ディスクテーブルの例を,図4はキャッシュ情報制御部のキャッシュ有効無効処理のフローチャートを,図5は本発明のキャッシュ内蔵型スイッチを動作させた場合のシステム状態の例を,それぞれ示す図である。なお,図1は,前記従来技術の図6における,符号を付記した上位装置110,スイッチ120,130,140,150,及びディスク180のみを抽出して表したものである。
【0014】
図1において,スイッチ150は,直接接続ディスク検出部151と,直接接続ディスクテーブル152と,キャッシュ情報制御部153と,キャッシュメモリ154と,パス切り替え部155から構成される。スイッチ120,130,140,160,170も同じ構成である。なお,図1では,スイッチ150は,ディスク180と直接接続し,又上位装置110とは,スイッチ130,120を介して,又はスイッチ140,120を介して間接接続している。キャッシュメモリ154はキャッシュの内容を記憶するものであり,パス切り替え部155はスイッチ130,140とディスク180の間のパスの切り替えを行うものであって,従来から知られているものである。
【0015】
直接接続ディスク検出部151は,スイッチ150に直接接続しているディスク180を検出し,そのディスク180のディスク番号(個々のディスクを識別するための識別子。例えば,ファイバーチャネルではWWN(WWNは,装置のポートの識別番号である)で個々のディスクの識別を行っている)を直接接続ディスクテーブル152に登録する。図2に,この直接接続検出処理のフローチャートを示す。
【0016】
図2において,直接接続ディスク検出部151は,スイッチ150の電源オンやリブート,スイッチ150とディスク180の接続,ディスク180の電源オンやリブート,或いは外部からの命令を契機として,直接接続検出処理プログラムを起動する。最初に,スイッチ150の直接接続対象であるディスクが直接接続されているか否かを判定する(ステップS201)。もし,ディスクが直接接続されていなければ,直接接続検出処理を終了する。ディスクが直接接続されていると判定した時は,そのディスク180のディスク番号を直接接続ディスクテーブル152に登録し(ステップS202),直接接続検出処理を終了する。
【0017】
直接接続検出処理プログラムを起動する契機としてスイッチ150とディスク180の接続を採用した場合,例えばファイバチャネルでは,ディスク180がスイッチ150のネームサーバへファブリック・ログイン(FLOGI)或いは,N_Portログイン(PLOGI)するタイミングとすればよい。或いは,定期的にスイッチ150のポートを監視することによっても,ディスク180の接続を検出することは可能である。
【0018】
スイッチ150に直接接続しているディスク180のディスク番号を取得するには,例えばファイバチャネルでは,以下のように行われる。先ず,GA_NXT(Get all next)コマンドで,スイッチ150に直接接続している装置のWWNを取得する。次に,GPLT(Get Platform Type)コマンドで,それぞれのWWNの装置種別を確認する。以上の情報を組み合わせて,直接接続している装置のうち,ディスクがどれかを判別することにより,直接接続しているディスクのWWNを取得する。
【0019】
直接接続ディスクテーブル152は,前述したように,スイッチ150に直接接続されたディスクのディスク番号を登録するためのテーブルである。図3に,直接接続ディスクテーブル152の例を示す。直接接続ディスクテーブル152には,スイッチ150に直接接続しているディスク180,及びその他のディスクのディスク番号(例として,No.1,No.5,No.8)が格納されている。
【0020】
なお,本発明の直接接続ディスクテーブル152は,当該スイッチ150の電源オン又はリブート時には登録されているディスク番号を全て消去し,又,当該スイッチ150からのディスクの切り離し又は当該スイッチ150に直接接続されているディスクの電源オフ時には,そのディスクのディスク番号のみを消去するようにしているので,以前にスイッチ150に直接接続していたものの現在は直接接続していないディスクのディスク番号が,直接接続ディスクテーブル152に記憶されて残るようなことは無い。
【0021】
キャッシュ情報制御部153は,受信したフレームに記録されている送信先のディスク番号が,直接接続ディスクテーブル152に格納されているか否かを判定し,前記送信先のディスクに対するキャッシュの有効化/無効化に関する制御を行うものである。図4に,このキャッシュ有効無効処理のフローチャートを示す。
【0022】
図4において,キャッシュ情報制御部153は,フレームの送受信を契機として,キャッシュ有効無効処理プログラムを起動する。最初に,受信したフレームから送信先のディスク番号を取得する(ステップS401)。次に,取得したディスク番号が直接接続ディスクテーブル152に格納されているか否かを判定し(ステップS402),そのディスク番号が直接接続ディスクテーブル152に格納されていると判定した時は,そのディスクへのアクセスではキャッシュを有効化するための処理をした(ステップS403)後,キャッシュ有効無効処理を終了する。そのディスク番号が直接接続ディスクテーブル152に格納されていないと判定した時は,そのディスクへのアクセスではキャッシュを無効化するための処理をした(ステップS404)後,キャッシュ有効無効処理を終了する。
【0023】
図5は,本発明のキャッシュ内蔵型スイッチを動作させた場合のシステム状態の例を示す図である。
【0024】
ディスク180を使用とする上位装置110とディスク180の間が,ファイバーチャネルを介して,複数のスイッチ120,130,140,150により接続されている。図5に示すように,スイッチ120,130,140はディスク180と直接接続していないため,そのディスク180へのアクセスではキャッシュが無効化されている。これに対して,スイッチ150はディスク180と直接接続しているために,このディスク180への入出力に対するキャッシュが有効化されている。
【0025】
以上述べたように,スイッチ150のキャッシュ情報制御部153を動作させることにより,当該スイッチ150に直接接続しているディスク180に対する上位装置からのアクセスに対してのみ,当該スイッチ150のキャッシュを自動的に有効化し,当該スイッチ150に間接接続している他のディスクに対する上位装置からのアクセスに対しては,当該スイッチ150のキャッシュは自動的に無効化する。つまり,複数のスイッチを介して複数の上位装置と複数のディスクを接続する構成では,ある特定のディスクに対するアクセスではキャッシュが有効なスイッチは,そのディスクに直接接続しているスイッチのみであり,常に1つだけである。
【0026】
このようにすることによって,1つのディスクのデータ内容を一時的に記憶するキャッシュが,1つのスイッチのものとなるため,複数のスイッチ間でデータの同期を取る必要が無くなる。従って,同期によるトラフィックの圧迫を招かない。
【0027】
又,複数のスイッチにおけるキャッシュの有効化,無効化の制御を行うためには,どのディスクがどのスイッチに直接接続しているかという情報が必要であるが,本発明のキャッシュ内蔵型スイッチによれば,この情報収集を自動的に行うため,作業量を削減出来る。
【0028】
又,ある上位装置が,あるディスクのデータ内容を更新する際には,必ずそのディスクに直接接続したスイッチに内蔵されているキャッシュへの書き込みを経るために,常にディスクのデータの内容よりもスイッチのキャッシュの内容の方が新しい。それ故,スイッチのキャッシュの内容をディスクに反映する契機は,当該スイッチの電源断に備える時と,キャッシュメモリの容量が不足してディスクに書き戻す必要が生じる時に限られことになり,スイッチとディスクの間のトラフィックを軽減することが出来る。
【0029】
【発明の効果】
以上述べたように,本発明によれば,複数の上位装置が複数のキャッシュ内蔵型スイッチを介して複数のディスクと接続しているシステムにおいて,ディスクに直接接続しているスイッチのキャッシュのみを自動的に有効化することにより,それぞれのスイッチのキャッシュの同期を不要とすることが出来,トラフィックの圧迫を軽減するすることが出来るという効果がある。
【図面の簡単な説明】
【図1】本発明のキャッシュ内蔵型スイッチの構成を示す図である。
【図2】直接接続ディスク検出部151の直接接続検出処理のフローチャートを示す図である。
【図3】直接接続ディスクテーブル152の例を示す図である。
【図4】キャッシュ情報制御部153のキャッシュ有効無効処理のフローチャートを示す図である。
【図5】本発明のキャッシュ内蔵型スイッチを動作させた場合のシステム状態の例を示す図である。
【図6】キャッシュ内蔵型スイッチを使用した従来システムを示す図である。
【符号の説明】
110 上位装置
120 スイッチ
130 スイッチ
140 スイッチ
150 スイッチ
151 直接接続ディスク検出部
152 直接接続ディスクテーブル
153 キャッシュ情報制御部
154 キャッシュメモリ
155 パス切り替え部
160 スイッチ
170 スイッチ
180 ディスク
190 ディスク
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a cache built-in switch that connects a plurality of higher-level devices (servers or other computers that access disks) and a plurality of disks, and more particularly to a cache built-in switch that eliminates the need for cache synchronization between switches.
[0002]
[Prior art]
When connecting a large number of higher-level devices and a large number of disks, it is considered to use a connection switch in order to improve transaction performance and the like. There is a fiber channel switch as a standard for specific products of transmission lines and switches for connection. This fiber channel switch has an I / F for connecting to a host device and a disk, and converts data. FIG. 6 shows a conventional system using a fiber channel switch. This system includes a large number of host devices (represented by reference numeral 110) and a large number of disks (represented by reference numerals 180 and 190), and a number of connection switches 120, 130, 140, 150, 160, 170 is connected via a transmission line. The distance between each switch can vary from a short distance of several meters to a long distance of tens of thousands of meters.
[0003]
As shown in FIG. 6, the present invention assumes a system configuration in which one disk is directly connected to one switch and not directly connected to a plurality of switches (one disk is connected to a plurality of switches). Excludes system configurations that are directly connected). However, one switch may be directly connected to a plurality of disks (in the example shown in FIG. 6, the disk 180 is directly connected to only one switch 150 and the disk 190 is directly connected to only one switch 160. However, the switch 150 is directly connected to three disks, the switch 160 is directly connected to two disks, the switch 120 to two disks, the switch 130 to one disk, and the switch 140. Are directly connected to three disks and switch 170 is directly connected to two disks). Here, “direct connection” means a state where one disk is directly connected to a port of one switch, and “indirect connection” means that the switch and the disk are connected via different switches. The state that is.
[0004]
In the example shown in FIG. 6, when the host device 110 accesses the disk 180, it must go through one of the routes of the switches 120, 130, and 150 and the route of the switches 120, 140, and 150.
[0005]
Incidentally, a cache built-in switch in which a cache is built in the fiber channel switch has been proposed (see, for example, Patent Document 1). This built-in cache type switch has a cache control unit and cache management information for controlling the cache, and determines whether data exists in the cache (cache hit) and transmits data in response to a data request from a higher-level device. I do.
[0006]
In these conventional technologies, by enabling the cache of all the fiber channel switches, each host device can access data on the disk at high speed.
[0007]
[Patent Document 1]
Japanese Patent Laid-Open No. 2001-325207
[Problems to be solved by the invention]
However, if the caches of a plurality of switches are enabled as in the prior art, the cache of the switch directly connected to the disk is updated in order to update the data of a specific disk in a specific upper device. When this data is updated, it is necessary to synchronize the cache contents of all other switches. In order to synchronize, it is necessary to notify all other switches of the modifications that occurred in the cache of a specific switch. The traffic for this notification increases in proportion to the number of switches, causing a problem of traffic pressure.
[0009]
The present invention has been made in view of the above problems, and it is an object of the present invention to eliminate the synchronization of caches of the respective switches and to reduce traffic pressure.
[0010]
[Means for Solving the Problems]
The invention according to claim 1
A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. The cache built-in type switch includes a direct connection disk detection unit, a direct connection disk table, a cache information control unit, a cache memory, and a path switching unit. The disk number, which is information for identifying the disk directly connected to itself, is held, and the directly connected disk detection unit detects the disk directly connected to the cache built-in switch, and determines the disk number of the disk. Register in the directly connected disk table and The information control unit determines whether or not the destination disk number recorded in the received frame is stored in the directly connected disk table, and if so, caches the destination disk. By enabling the control to be invalidated and invalidated when not stored, information that identifies the disk directly connected to itself is used to directly connect to the cache memory held by itself. It is characterized in that it is controlled not to hold data of a disc that is not directly connected to itself while it is controlled so as to be able to hold data of a disc .
[0011]
The invention according to claim 2
A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. It holds the disk number, which is information that identifies the disk that is directly connected to itself, and uses the information that identifies the disk that is directly connected to itself to store it in its own cache memory. A disk that is directly connected to the switch is connected to a switch with a built-in cache that controls data so that it can retain data of a disk that is directly connected, but not to retain data of a disk that is not directly connected to itself. To determine whether or not the disk is directly connected, the disk is directly connected When it is determined that, characterized by recording a direct connection detection processing program for executing the procedure for registering the disk number of the disk to direct connections disk table.
[0012]
The invention according to claim 3
A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. It holds the disk number, which is information that identifies the disk that is directly connected to itself, and uses the information that identifies the disk that is directly connected to itself to store it in its own cache memory. Controls so that the data of the disk that is directly connected can be held, while the switch with the cache built-in switch that controls not to hold the data of the disk that is not directly connected to itself. Number acquisition procedure, the disk number is directly connected disk table When it is determined that the disk is stored, the procedure for enabling the cache when accessing the disk, and when it is determined that the disk number is not stored in the directly connected disk table, the disk is accessed. Then, a valid / invalid processing program for executing a procedure for performing processing for invalidating the cache is recorded .
[0013]
DETAILED DESCRIPTION OF THE INVENTION
The cache built-in switch according to the present invention will be described below with reference to FIGS. 1 shows a configuration of a cache built-in switch according to the present invention, FIG. 2 shows a flowchart of direct connection detection processing of a direct connection disk detection unit, FIG. 3 shows an example of a direct connection disk table, and FIG. 4 shows a cache information control unit. FIG. 5 is a diagram showing an example of a system state when the cache built-in switch according to the present invention is operated. FIG. 1 shows only the host device 110, the switches 120, 130, 140, 150, and the disk 180 with the reference numerals extracted from FIG. 6 of the prior art.
[0014]
In FIG. 1, the switch 150 includes a direct connection disk detection unit 151, a direct connection disk table 152, a cache information control unit 153, a cache memory 154, and a path switching unit 155. The switches 120, 130, 140, 160, and 170 have the same configuration. In FIG. 1, the switch 150 is directly connected to the disk 180 and is indirectly connected to the host device 110 via the switches 130 and 120 or via the switches 140 and 120. The cache memory 154 stores the contents of the cache, and the path switching unit 155 switches the path between the switches 130 and 140 and the disk 180 and is conventionally known.
[0015]
The directly connected disk detection unit 151 detects the disk 180 directly connected to the switch 150, and the disk number of the disk 180 (an identifier for identifying each disk. For example, in the fiber channel, WWN (WWN is a device number). The identification number of each disk) is registered in the directly connected disk table 152. FIG. 2 shows a flowchart of this direct connection detection process.
[0016]
In FIG. 2, the direct connection disk detection unit 151 is a direct connection detection processing program triggered by a power-on or reboot of the switch 150, a connection between the switch 150 and the disk 180, a power-on or reboot of the disk 180, or an external command. Start up. First, it is determined whether or not the disk to be directly connected to the switch 150 is directly connected (step S201). If the disk is not directly connected, the direct connection detection process is terminated. When it is determined that the disk is directly connected, the disk number of the disk 180 is registered in the directly connected disk table 152 (step S202), and the direct connection detection process is terminated.
[0017]
When the connection between the switch 150 and the disk 180 is adopted as an opportunity to start the direct connection detection processing program, for example, in the fiber channel, the disk 180 performs fabric login (FLOGI) or N_Port login (PLOGI) to the name server of the switch 150. The timing may be used. Alternatively, the connection of the disk 180 can be detected by periodically monitoring the port of the switch 150.
[0018]
In order to obtain the disk number of the disk 180 directly connected to the switch 150, for example, in the fiber channel, it is performed as follows. First, the WWN of the device directly connected to the switch 150 is acquired by a GA_NXT (Get all next) command. Next, the device type of each WWN is confirmed by a GPLT (Get Platform Type) command. By combining the above information and determining which of the directly connected devices is the disk, the WWN of the directly connected disk is acquired.
[0019]
The direct connection disk table 152 is a table for registering the disk numbers of the disks directly connected to the switch 150 as described above. FIG. 3 shows an example of the direct connection disk table 152. The direct connection disk table 152 stores the disk 180 directly connected to the switch 150 and the disk numbers of other disks (for example, No. 1, No. 5, No. 8).
[0020]
Note that the direct connection disk table 152 of the present invention erases all registered disk numbers when the switch 150 is powered on or rebooted, and disconnects the disk from the switch 150 or is directly connected to the switch 150. When the power of the disk is turned off, only the disk number of the disk is erased. Therefore, the disk number of the disk that was previously connected directly to the switch 150 but is not directly connected is the directly connected disk. There is no such thing as being stored in the table 152.
[0021]
The cache information control unit 153 determines whether or not the destination disk number recorded in the received frame is stored in the direct connection disk table 152, and enables / disables the cache for the destination disk. It performs control related to conversion. FIG. 4 shows a flowchart of the cache valid / invalid process.
[0022]
In FIG. 4, the cache information control unit 153 activates a cache validity / invalidity processing program triggered by frame transmission / reception. First, the destination disk number is acquired from the received frame (step S401). Next, it is determined whether or not the acquired disk number is stored in the directly connected disk table 152 (step S402). When it is determined that the disk number is stored in the directly connected disk table 152, the disk number In access to, after processing for validating the cache (step S403), the cache valid / invalid process is terminated. If it is determined that the disk number is not stored in the directly connected disk table 152, the cache valid / invalid process is terminated after performing a process for invalidating the cache for accessing the disk (step S404).
[0023]
FIG. 5 is a diagram showing an example of the system state when the cache built-in switch of the present invention is operated.
[0024]
A host device 110 that uses the disk 180 and the disk 180 are connected by a plurality of switches 120, 130, 140, and 150 via a fiber channel. As shown in FIG. 5, since the switches 120, 130, and 140 are not directly connected to the disk 180, the cache is invalidated when accessing the disk 180. On the other hand, since the switch 150 is directly connected to the disk 180, the cache for input / output to the disk 180 is validated.
[0025]
As described above, by operating the cache information control unit 153 of the switch 150, the cache of the switch 150 is automatically automatically accessed only for the access from the host device to the disk 180 directly connected to the switch 150. The cache of the switch 150 is automatically invalidated for accesses from higher-level devices to other disks indirectly connected to the switch 150. In other words, in a configuration in which multiple higher-level devices and multiple disks are connected via multiple switches, only the switch that is directly connected to that disk is the cache that is valid for accessing a specific disk. There is only one.
[0026]
By doing so, since the cache for temporarily storing the data contents of one disk is for one switch, it is not necessary to synchronize data among a plurality of switches. Therefore, it does not cause traffic pressure due to synchronization.
[0027]
In addition, in order to control cache enable / disable in a plurality of switches, information on which disk is directly connected to which switch is necessary. Because this information is collected automatically, the amount of work can be reduced.
[0028]
Also, when a host device updates the data contents of a disk, it always writes to the cache built in the switch directly connected to the disk, so it always switches over the data contents of the disk. The contents of the cache are newer. Therefore, the reason for reflecting the contents of the switch cache to the disk is limited to when the switch powers off and when the cache memory capacity is insufficient and it is necessary to write back to the disk. Traffic between the disks can be reduced.
[0029]
【The invention's effect】
As described above, according to the present invention, in a system in which a plurality of host devices are connected to a plurality of disks via a plurality of cache built-in switches, only the cache of the switch directly connected to the disk is automatically used. By enabling the switch, it is possible to eliminate the synchronization of the caches of the respective switches and to reduce the traffic pressure.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of a switch with a built-in cache according to the present invention.
FIG. 2 is a flowchart of direct connection detection processing of a direct connection disk detection unit 151.
FIG. 3 is a diagram showing an example of a direct connection disk table 152;
FIG. 4 is a flowchart of a cache valid / invalid process performed by a cache information control unit 153;
FIG. 5 is a diagram showing an example of a system state when the cache built-in switch of the present invention is operated.
FIG. 6 is a diagram showing a conventional system using a cache built-in switch.
[Explanation of symbols]
110 Host device 120 Switch 130 Switch 140 Switch 150 Switch 151 Directly connected disk detector 152 Directly connected disk table 153 Cache information controller 154 Cache memory 155 Path switching unit 160 Switch 170 Switch 180 Disk 190 Disk

Claims (3)

複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、
前記キャッシュ内蔵型スイッチは、直接接続ディスク検出部と、直接接続ディスクテーブルと、キャッシュ情報制御部と、キャッシュメモリと、パス切り替え部とを備えて構成され、
前記キャッシュ内蔵型スイッチは、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、前記直接接続ディスク検出部が、キャッシュ内蔵型スイッチに直接接続しているディスクを検出し、そのディスクのディスク番号を直接接続ディスクテーブルに登録し、前記キャッシュ情報制御部が、受信したフレームに記録されている送信先のディスク番号が、直接接続ディスクテーブルに格納されているか否かを判定し、格納されている場合に前記送信先のディスクに対するキャッシュを有効化し、格納されていない場合に無効化するように制御を行うことにより、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御する、ことを特徴とするキャッシュ内蔵型スイッチ。
A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. Because
The cache built-in switch includes a direct connection disk detection unit, a direct connection disk table, a cache information control unit, a cache memory, and a path switching unit.
The cache built-in switch holds a disk number that is information for identifying a disk directly connected to itself, and the direct connection disk detection unit detects a disk directly connected to the cache built-in switch, The disk number of the disk is registered in the directly connected disk table, and the cache information control unit determines whether or not the destination disk number recorded in the received frame is stored in the directly connected disk table. Using information to identify the disk directly connected to itself by enabling the cache for the destination disk if it is stored and invalidating it if it is not stored , Keep the data of the disk directly connected to itself in the cache memory While controlling the so that, controlled not to hold data of a disk that is not connected itself directly, the cache built-in switch, characterized in that.
複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御するキャッシュ内蔵型スイッチに、スイッチの直接接続対象であるディスクが直接接続されているか否かを判定する手順、ディスクが直接接続されていると判定したときに、そのディスクのディスク番号を直接接続ディスクテーブルに登録する手順、を実行させるための直接接続検出処理プログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。 A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. It holds the disk number, which is information that identifies the disk that is directly connected to itself, and uses the information that identifies the disk that is directly connected to itself to store it in its own cache memory. The disk that is directly connected to the switch is connected to the switch with a built-in cache that controls the data of the disk that is not directly connected to the cache, while controlling the data so that the data of the disk that is directly connected can be retained. To determine whether or not the disk is directly connected, the disk is directly connected When it is determined that a direct connection detection processing program computer-readable recording medium characterized by recording a for procedures, to the execution of registering the disk number of the disk to direct connections disk table. 複数のキャッシュ内蔵型スイッチが相互に接続されており、ディスクがキャッシュ内蔵型スイッチに接続されるに際して1つのディスクが同時に直接接続されるキャッシュ内蔵型スイッチは高々1つであるシステムにおけるキャッシュ内蔵型スイッチであって、自らに直接接続されているディスクを識別する情報であるディスク番号を保持し、自らに直接接続されているディスクを識別する情報を用いて、自らが保持するキャッシュメモリに、自らに直接接続されているディスクのデータを保持し得るように制御する一方で、自らに直接接続されていないディスクのデータを保持しないように制御するキャッシュ内蔵型スイッチに、受信したフレームから送信先のディスク番号を取得する手順、そのディスク番号が直接接続ディスクテーブルに格納されていると判定したときに、そのディスクヘのアクセスではキャッシュを有効化するための処理をする手順、そのディスク番号が直接接続ディスクテーブルに格納されていないと判定したときに、そのディスクヘのアクセスではキャッシュを無効化するための処理をする手順、を実行させるための有効無効処理プログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。 A cache built-in switch in a system in which a plurality of cache built-in switches are connected to each other, and when a disk is connected to the cache built-in switch, at least one cache built-in switch is directly connected simultaneously. It holds the disk number, which is information that identifies the disk that is directly connected to itself, and uses the information that identifies the disk that is directly connected to itself to store it in its own cache memory. Controls so that the data of the disk that is directly connected can be held, while the switch with the cache built-in switch that controls not to hold the data of the disk that is not directly connected to itself. Number acquisition procedure, the disk number is directly connected disk table When it is determined that the disk is stored, the procedure for enabling the cache when accessing the disk, and when it is determined that the disk number is not stored in the directly connected disk table, the disk is accessed. A computer-readable recording medium having recorded therein a valid / invalid processing program for executing a procedure for performing processing for invalidating a cache .
JP2002363969A 2002-12-16 2002-12-16 Cache built-in switch and recording medium recording program Expired - Fee Related JP4073775B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002363969A JP4073775B2 (en) 2002-12-16 2002-12-16 Cache built-in switch and recording medium recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002363969A JP4073775B2 (en) 2002-12-16 2002-12-16 Cache built-in switch and recording medium recording program

Publications (2)

Publication Number Publication Date
JP2004199169A JP2004199169A (en) 2004-07-15
JP4073775B2 true JP4073775B2 (en) 2008-04-09

Family

ID=32761972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002363969A Expired - Fee Related JP4073775B2 (en) 2002-12-16 2002-12-16 Cache built-in switch and recording medium recording program

Country Status (1)

Country Link
JP (1) JP4073775B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4897499B2 (en) * 2007-01-19 2012-03-14 株式会社日立製作所 Storage system or storage migration method

Also Published As

Publication number Publication date
JP2004199169A (en) 2004-07-15

Similar Documents

Publication Publication Date Title
US10162567B2 (en) Computer system
US7269667B2 (en) Disk array system and method for migrating from one storage system to another
US7979613B2 (en) Performance of a storage system
JP4606711B2 (en) Virtualization control device and data migration control method
US7426588B2 (en) Storage apparatus
US11966612B2 (en) Solid-state disk (SSD) data migration
US8176208B2 (en) Storage system and operating method of storage system
JP2004199420A (en) Computer system, magnetic disk device, and method for controlling disk cache
US7478267B2 (en) Access control device and interface installed in same
JP2010049502A (en) Storage subsystem and storage system having the same
EP2751698A1 (en) Computer system with processor local coherency for virtualized input/output
JP4509089B2 (en) Virtualization control device and data migration control method
JP2003044421A (en) Virtual storage system and switching node used for the same system
US9703714B2 (en) System and method for management of cache configuration
JP4073775B2 (en) Cache built-in switch and recording medium recording program
US7698500B2 (en) Disk array system, host interface unit, control method for disk array system, and computer program product for disk array system
US20110289146A1 (en) Method and apparatus allowing scan of data storage device from remote server
JP2000047972A (en) Input/output control system
US6950905B2 (en) Write posting memory interface with block-based read-ahead mechanism
JP2003228462A (en) San cache appliance
JP2004013246A (en) Multiplex write-in type storage device
JP3940701B2 (en) Disk array device and cache matching control method applied to the same
US20110238874A1 (en) Performance of a storage system
JP2014238771A (en) Storage controller, access control method, and control program
CN117873931A (en) Data processing system, method and medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071030

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071227

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: 20080115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080123

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

Free format text: PAYMENT UNTIL: 20110201

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: 20110201

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120201

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130201

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130201

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees