JP4131953B2 - File control unit - Google Patents
File control unit Download PDFInfo
- Publication number
- JP4131953B2 JP4131953B2 JP2004000312A JP2004000312A JP4131953B2 JP 4131953 B2 JP4131953 B2 JP 4131953B2 JP 2004000312 A JP2004000312 A JP 2004000312A JP 2004000312 A JP2004000312 A JP 2004000312A JP 4131953 B2 JP4131953 B2 JP 4131953B2
- Authority
- JP
- Japan
- Prior art keywords
- track
- information
- address
- read
- home address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
本発明は、上位装置とであるチャネル転送と直接アクセス記憶装置(DASD)との転送の経路が、時間的に独立に動作する非同期転送を行うディスク制御装置等のファイル制御装置に関する。 The present invention relates to a file control apparatus such as a disk control apparatus that performs asynchronous transfer in which a transfer path between a channel transfer and a direct access storage device (DASD), which is a host device, operates independently in time.
図7は従来例の説明図であり、図7(a)はCKDフォーマットの説明、図7(b)はFBAトラック上へのCKDトラックのエミュレート方法の説明である。 FIG. 7 is an explanatory diagram of a conventional example, FIG. 7A is a description of a CKD format, and FIG. 7B is a description of a method for emulating a CKD track on an FBA track.
従来、磁気ディスク装置や光ディスク装置等の外部記憶装置である直接アクセス記憶装置(DASD)へのデータの記憶方法は、可変長方式であるCKDフォーマットであり、また、上位装置(OS:オペレーティングシステム)が、DASDへデータを書き込むフォーマットもCKDフォーマットである。 Conventionally, a method for storing data in a direct access storage device (DASD), which is an external storage device such as a magnetic disk device or an optical disk device, is a CKD format that is a variable length method, and a host device (OS: operating system) is used. The format for writing data to DASD is also the CKD format.
図7(a)において、CKDフォーマットのディスクのあるトラックm内には、インデックス(Index)、ホームアドレスHA、レコード(Record)0、レコード1、レコード2、・・・レコードkからなっている。
7A, a track m having a CKD format disc includes an index (Index), a home address HA, a record (Record) 0, a
インデックスは、トラックの起点マーカである。ホームアドレスHAは、トラックの状態等を示すものであり、フラグ(Flag)、トラックアドレス(Track Address:シリンダ番号とヘッド番号)、誤り訂正コード(Error Correction Code:ECC)が設けてある。このフラグ(Flag)はトラックが不良かどうかの使用状態を示し、例えば、2ビットによりなり、対象トラックが正常であれば「00」不良トラックであれば「10」交代トラックであれば「01」とするものである。誤り訂正コードECCはデータチェックのためのものである。 The index is a track origin marker. The home address HA indicates a track state and the like, and is provided with a flag, a track address (Track Address: cylinder number and head number), and an error correction code (Error Correction Code: ECC). This flag (Flag) indicates whether or not the track is defective. For example, the flag (Flag) is composed of 2 bits. If the target track is normal, it is “00”. It is what. The error correction code ECC is for data check.
レコード0は、ユーザの使用できないレコードで、そのカウント部に不良トラックが発生したとき交代トラックのアドレスを記録するものである。レコード1〜レコードkは、ユーザが使用できるレコードであり、それぞれ、カウント部C、キー部K(省略される場合もある)、データ部Dの3つのフィールドがある。このカウント部Cには、これに続くキー部K、データ部Dの長さが入っている。キー部Kには、データ部Dの検索等のための標識であるキーが入っている。データ部Dは、データを記録する部分である。
しかし、近年、可変長方式であるCKDフォーマットのDASDから、実記憶媒体を固定長方式であるFBAフォーマットのDASDに変更し、冗長情報を付加して信頼性を向上するレイド(RAID)技術を使用する傾向が高まっている。 However, in recent years, the RAID (RAID) technology has been used to improve reliability by adding redundant information by changing the actual storage medium from DASD in the CKD format, which is a variable length method, to DASD in the FBA format, which is a fixed length method. The tendency to do is increasing.
この場合、上位装置(OS)の発行するフォーマットと実DASDのフォーマットが異なるため、ファイル制御装置(以下、「FCU〕という)が、FBAフォーマットDASD上に、CKDフォーマットをエミュレート(変換)する技術(Ckd On Fba=COF)が広まってきている。このCOF技術を用いる場合、CKDフォーマットのトラックを、FBAフォーマットの実DASD上に図7(b)のようにエミュレートする。 In this case, since the format issued by the host device (OS) is different from the actual DASD format, the file control device (hereinafter referred to as “FCU”) emulates (converts) the CKD format on the FBA format DASD. (Ckd On Fba = COF) is spreading.When this COF technology is used, a track in the CKD format is emulated on an actual DASD in the FBA format as shown in FIG.
図7(b)において、上図はFBAフォーマットの1トラックを示し、この例では、ブロックn、ブロックn+1、ブロックn+2、ブロックn+3、ブロックn+4、ブロックn+5・・・ブロックn+84まである。この1ブロックには、CKDフォーマットのレコードが0から最大で8まで含むことができる。 7B, the upper diagram shows one track of the FBA format, and in this example, there are block n, block n + 1, block n + 2, block n + 3, block n + 4, block n + 5... Block n + 84. One block can contain 0 to a maximum of 8 records in the CKD format.
例えば、FBAフォーマットのブロックn〜ブロックn+15(16ブロック分)をCKDフォーマットの1トラックが使用すると、図7(b)の上図は同下図のように見かけ上見える。即ち、FBAフォーマットの1トラックではエミュレートしたCKDフォーマットのトラックがトラックm(FBAブロックn〜n+15)、トラックm+1(FBAブロックn+16〜n+31)、トラックm+2(FBAブロックn+32〜n+47)、トラックm+3(FBAブロックn+48〜n+63)、トラックm+4(FBAブロックn+64〜n+79)と約5トラック分となる。 For example, when one track in the CKD format uses the block n to the block n + 15 (16 blocks) in the FBA format, the upper diagram in FIG. 7B looks as shown in the lower diagram. That is, in one FBA format track, the emulated CKD format tracks are track m (FBA blocks n to n + 15), track m + 1 (FBA blocks n + 16 to n + 31), track m + 2 (FBA blocks n + 32 to n + 47), track m + 3 (FBA). Block n + 48 to n + 63) and track m + 4 (FBA block n + 64 to n + 79), which is about 5 tracks.
さて、従来より、ライト動作においては、その処理を高速化するために、上位装置からのライト要求時には、ライトされるデータをDASDには書き込まず、ファイル制御装置(FCU)内の不揮発性メモリ(NVS=Non Volatile Storage)だけにデータを書き込み、FCUの遊休時間を利用して、DASDへの書き戻しを行う手法(DASDへの高速書き込み機構)が考えられている。 Conventionally, in the write operation, in order to speed up the processing, at the time of a write request from a host device, the data to be written is not written to the DASD, but a non-volatile memory (FCU) in the file control unit (FCU). A method of writing data only to NVS = Non Volatile Storage) and using the FCU idle time to write back to DASD (high-speed writing mechanism to DASD) is considered.
更に、この手法を改良した、NVSからDASDへのデータの書き戻しの手法としては、連続した複数トラックを1イベントでDASDへ書き戻す手法(マルチトラック・デステージ)が考えられている。 Further, as a method of writing back data from NVS to DASD, which is an improvement of this method, a method of writing back a plurality of continuous tracks to DASD in one event (multitrack destage) is considered.
しかし、COF技術を用いたファイル・サブシステムにおいては、連続したトラックのデステージが、必ずしも性能向上を期待できない。なぜならば、CKDフォーマットの連続した2トラックは、FBAフォーマット上では、隣接したブロックとなり、CKDフォーマットの1トラック処理を基本とするFCUでは、当該トラックの書き戻し後、後処理をしている間に、続くトラックの先頭部分が通りすぎ、一回転待ちを発生させるからである。 However, in a file subsystem using the COF technology, destaging of continuous tracks cannot always expect an improvement in performance. This is because two consecutive tracks in the CKD format become adjacent blocks in the FBA format, and in the FCU based on the one-track processing in the CKD format, after the track is written back, the post-processing is performed. This is because the leading portion of the following track passes and generates a waiting for one rotation.
図7を用いて説明すると、例えば、従来のCKDフォーマットDASDを使用した場合、トラックmをデステージした後、トラックm+1のホームアドレスHAにDASDのヘッドが到着するまでの時間は、トラックmのレコードkの処理が終了した後、ヘッドがインデックスを通過し、更にトラックm+1のホームアドレスHA部に位置付くまでの時間であり、比較的余裕があった。 Referring to FIG. 7, for example, when the conventional CKD format DASD is used, the time from the destaging of the track m to the arrival of the head of the DASD at the home address HA of the track m + 1 is the record of the track m. This is the time from when the processing of k is completed until the head passes the index and is further positioned at the home address HA portion of the track m + 1.
しかしながら、COF技術を用いた場合、トラックmの処理が終了してから、トラックm+1の処理を開始するまでには、ブロック間ギャップG分の時間しか与えられない。論理的に、この時間だけではFCUがエラーチェック等のトラックの終了処理と、続くトラックの開始処理を完結できない。このため、ヘッドは、ディスクが一回転して再びトラックm+1(FBAフォーマットではブロックn+16)の先頭に位置付くのを待つことになる。 However, when the COF technique is used, only the time corresponding to the inter-block gap G is given from the end of the process of the track m to the start of the process of the track m + 1. Logically, the FCU cannot complete the track end processing such as error check and the subsequent track start processing only by this time. For this reason, the head waits for the disk to make one revolution and to be positioned at the beginning of the track m + 1 (block n + 16 in the FBA format) again.
また、一般に、上位装置からのリード命令であるリードコマンド(Read Command)全般に対する応答は、対象データがキャッシュメモリ上に格納されていれば、キャッシュメモリから読み出して応答し、対象データがキャッシュメモリ上に格納されていなければ、実DASDへのアクセスが発生し、DASDへのヘッドの位置付け、回転待ちのための時間が費やされていた。 In general, a response to a read command (Read Command) that is a read command from a host device is read out from the cache memory if the target data is stored in the cache memory, and the target data is stored in the cache memory. Otherwise, access to the actual DASD occurred, and the time for positioning the head to the DASD and waiting for rotation was spent.
上記従来のものにおいては次のような課題があった。 The above-described conventional devices have the following problems.
(1) 連続してデステージすることによってDASDの回転待ちをなくすための手法であるためのマルチトラックデステージ手法が、COF技術を用いた場合回転待ちが発生し、その機能を果たさなくなるという問題があった。 (1) The problem that the multi-track destaging method, which is a method for eliminating DASD rotation waiting by continuously destaging, causes rotation waiting when COF technology is used, and fails to perform its function. was there.
(2) 上位装置からのリード命令全般に対する応答は、対象データがキャッシュメモリに格納されている場合でもその記憶場所を得るためのハッシュ変換、キャッシュメモリからの読み出し動作を行うための時間が消費され、また、ハード故障等によるアクセスエラーの発生する確率も高くなっていた。 (2) Response to general read commands from the host device consumes time to perform hash conversion to obtain the storage location and read operation from the cache memory even if the target data is stored in the cache memory In addition, the probability of occurrence of an access error due to a hardware failure or the like has increased.
本発明は、上記従来の課題を解決し、DASDへの論理CKDデステージトラックを連続に処理するのではなく、トラックの後処理、前処理を十分行える時間を確保できるようにして、無駄な回転待ちを無くし高速にデステージを行うこと、及び、対象データがキャッシュメモリ上に格納されているかいないかに係わらず、常に高速にホームアドレスを読む命令(Read HA命令)に応答でき、かつ、エラーの発生確率を低くすることを目的とする。 The present invention solves the above-mentioned conventional problems and does not process the logical CKD destage track to DASD continuously, but ensures sufficient time for post-processing and pre-processing of the track, and wasteful rotation. It can respond to an instruction to read the home address at a high speed (Read HA instruction) regardless of whether the target data is stored in the cache memory without waiting, and whether the target data is stored in the cache memory. The purpose is to reduce the probability of occurrence.
本発明は、上記の課題を解決するため次のように構成した。 The present invention is configured as follows to solve the above problems.
図1は本発明の原理説明図であり、図1中、1は上位装置、2はファイル制御装置(FCU)、3は直接アクセス記憶装置(DASD)、20はメモリ部、21はチャネルアダプタ(CA)、22はデバイスアダプタ(DA)、23はキャッシュ管理部(CFE)、24はキャッシュメモリ、25は不揮発性メモリ(NVS)、27は不良交代情報テーブルを示している。 FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, 1 is a host device, 2 is a file control unit (FCU), 3 is a direct access storage device (DASD), 20 is a memory unit, and 21 is a channel adapter (CA). ), 22 is a device adapter (DA), 23 is a cache management unit (CFE), 24 is a cache memory, 25 is a nonvolatile memory (NVS), and 27 is a defective replacement information table.
DASD3を制御するキャッシュメモリ24を持つFCU2において、FCU2の記憶部に不良交代情報テーブル27の格納部と、FCU2に設けたキャッシュ管理部23とを有し、前記キャッシュ管理部23は、電源の投入時、或いはリセット時に、配下の全ての前記DASD3の不良トラック領域を読み出し、各トラックのホームアドレスに格納されているフラグによって、不良交代リンクが作成されているかを判断し、その結果を前記記憶部に不良交代情報テーブル27として前記格納部に格納し、トラックが不良かどうかの使用状態を示すフラグ及びトラックアドレスを含むホームアドレスに対するリード命令を上位装置1から受領した場合、上位装置1から該FCU2に対して発行される各トラックを指定するシーク命令から各トラックのトラックアドレスを取得し、該トラックアドレスに基づいて前記DASD3の前記ホームアドレスから不良トラック情報が読み出せるか確認して前記不良交代情報テーブル27が有効かどうかを判断して前記受領したホームアドレスのリード命令に対するフラグ情報を確定し、前記トラックアドレスと前記フラグ情報に基づいて、前記ホームアドレスのリード命令に対する応答情報を作成する。このため、高速にホームアドレスを読む命令に応答することができる。
In the FCU 2 having the
また、前記DASD3が固定長方式のアレイディスクであり、FCU2が該アレイディスクで可変長方式をエミュレートしている場合、付加情報を含むホームアドレスのリード命令に対する応答であるトラックの傷情報を標準値に確定し、該傷情報と前記フラグ情報と前記トラックアドレスとから、付加情報を含むホームアドレスのリード命令に対する応答情報を作成する。このため、前記不良交代情報テーブル27が有効の場合の付加情報を含むホームアドレスのリード命令に対する応答を、キャッシュメモリ等へアクセスせず高速に行うことができ、エラーの発生確率も低くすることができる。
Also, when the DASD 3 is a fixed-length array disk and the
本発明によれば次のような効果がある。 The present invention has the following effects.
(1)FCUは、電源の投入時、或いはリセット時に、配下の全てのDASD3の不良トラック領域を読み出し、各トラックのホームアドレス部に格納されているフラグによって、不良交代リンクが作成されているか判断し、その結果を記憶部に不良交代情報テーブルとして格納し、ホームアドレスのリード命令を受領した場合、前記不良交代情報テーブルが有効かどうかを判断するため、無効な不良交代情報テーブルの情報で応答することを防止できる。
(1) When the power is turned on or reset, the FCU reads out the defective track areas of all the
(2)FCUが、不良交代情報テーブルを無効と判断した場合は、対象のホームアドレスが、キャッシュメモリ上に存在すれば前記キャッシュメモリから、存在しなければDASD3から読み出して情報を転送し、不良交代情報テーブルが有効の場合は、不良交代情報テーブル内の不良交代リンク情報を参照し、受領したホームアドレスのリード命令に対する応答の一部であるフラグ情報を確定するため、不良交代情報テーブル27が無効の場合にもフラグ情報の応答ができ、有効の場合はフラグ情報の作成を高速に行うことが出来る。
(2) When the FCU determines that the defective replacement information table is invalid, the information is transferred from the cache memory if the target home address exists on the cache memory, and is read from the
(3)確定したフラグ情報と、既に受領しているシークアドレスを使用したホームアドレスのリード命令に対する応答の一部であるトラックアドレスとから、ホームアドレスのリード命令に対する完全な応答情報を作成するため、不良交代情報テーブルが有効の場合のホームアドレスのリード命令に対する応答を高速に行うことが出来る。 (3) To create complete response information for the home address read command from the confirmed flag information and the track address that is part of the response to the home address read command using the already received seek address. In addition, when the defective replacement information table is valid, a response to the read instruction of the home address can be performed at high speed.
(4)FCUがアレイディスクで可変長方式をエミュレートしている場合、付加情報を含むホームアドレスのリード命令に対する応答の一部であるトラックの傷情報を標準値に確定し、該傷情報とフラグ情報とトラックアドレスとから、完全な付加情報を含むホームアドレスのリード命令に対する応答情報を作成するため、不良交代情報テーブルが有効の場合の付加情報を含むホームアドレスのリード命令に対する応答を、キャッシュメモリ等へアクセスせず高速に行うことができ、エラーの発生確率も低くすることができる。 (4) When the FCU emulates a variable length method with an array disk, the track flaw information that is a part of the response to the read command of the home address including the additional information is fixed to a standard value, and the flaw information In order to create response information for the home address read command including complete additional information from the flag information and the track address, the response to the home address read command including the additional information when the defective replacement information table is valid is cached. It can be performed at high speed without accessing the memory or the like, and the error occurrence probability can be reduced.
図2、図3は本発明の第1実施例、図4〜図6は本発明の第2実施例を示した図である。以下、本発明の実施例を図面に基づいて説明する。 2 and 3 show the first embodiment of the present invention, and FIGS. 4 to 6 show the second embodiment of the present invention. Embodiments of the present invention will be described below with reference to the drawings.
〔第1実施例の説明〕
1):ファイル制御装置(FCU)の説明
図2はファイル制御装置の説明図であり、ファイル制御装置(FCU)2は、上位装置の指示によりDASD3にデータのリード/ライトを行うものであり、上位装置とはチャネルアダプタ(CA)21で接続され、ディスクアレイ等のDASD3のDASDアダプタ31とはデバイスアダプタ(DA)22で接続されている。また、このFCU2には、ハードデスク(HD)4に接続されたサービスアダプタ(SA)26が設けてある。
[Description of the first embodiment]
1) Description of File Control Unit (FCU) FIG. 2 is an explanatory diagram of the file control unit. The file control unit (FCU) 2 reads / writes data to / from the
FCU2内には、チャネルアダプタ21、デバイスアダプタ22、キャッシュ管理部23、キャッシュメモリ24、不揮発性メモリ(NVS)25が設けてある。
In the
チャネルアダプタ21は、複数個設けてあり、主として上位装置のチャネルとのインタフェースを司り、デバイスアダプタ22は、DASD3とのインタフェースを制御するものである。キャッシュ管理部23は、キャッシュメモリ24に登録されているトラック等の管理を行うものである。
A plurality of
キャッシュメモリ24は、DASD3上の命令及びデータの内後で使われる可能性の高いものの写しを保持するバッファ記憶装置である。不揮発性メモリ25は、バッテリバックアップされ、電源断時においてもデータが、喪失しないものである。
The
サービスアダプタ26は、ハードデスク4からの情報により、ファイル制御装置の初期設定、ファイル装置のエラー情報の履歴の管理等を行うものである。DASD3は、RAID技術を使用したディスクアレイ等のFBAフォーマット(固定長方式)の記憶装置である。DASDアダプタ31は、FCU2とのインタフェースを司るものである。
The
2):ファイル制御装置の動作説明
FCU2は、上位装置からDASD3へのデータの書き込み指示を受けると、チャネルアダプタ21で上位装置からのCKDフォーマットをFBAフォーマットに変換し、キャッシュメモリ24と不揮発性メモリ25に同時に書き込む高速書き込み処理を行う。
2): Explanation of the operation of the file control device When the
キャッシュ管理部23は、不揮発性メモリ25内部に高速書き込み機構で生成されたトラックが存在することを検出すると、全てのトラック中で連続するトラックが存在するか否かを検索する。ここで、キャッシュ管理部23は、連続デステージ可能なトラック間隔を算出し、デステージする先頭トラックと終了トラックとデステージトラック間隔とを情報として、デバイスアダプタ22にデステージを要求する。
When the
デステージ要求を受けたデバイスアダプタ22は、前記情報により、先頭トラックに対して、DASD3へのヘッドの位置決めであるセレクション命令を発行する。
Upon receiving the destage request, the
DASD3のセレクションが完了後、デバイスアダプタ22は、前記キャッシュ管理部23から受け取った情報を基に、デステージするトラックを決定する。
After the
最初にデステージするトラックは、キャッシュ管理部23から通知された、先頭トラックであり、次にデステージするトラックは、先頭トラックにデステージトラック間隔を加えたトラックである。更に、その次にデステージ対象とするトラックは、現デステージトラックに前記のデステージトラック間隔を加えたトラックである。
The first destaged track is the first track notified from the
デバイスアダプタ22は、この動作を繰り返し、キャッシュ管理部23から通知された終了トラックアドレスを越えるまで前述の動作を繰り返す。
The
なお、デステージトラック間隔は、トラックの後処理、前処理が十分行える時間を確保できる分だけ、デステージ対象トラックをスキップする間隔である。従来のマルチトラックデステージでは、デステージトラック数分だけの無駄な回転待ちが発生していたが、この実施例のようにすることにより、無駄な回転待ちは発生しなくなる。 Note that the destage track interval is an interval at which the destage target track is skipped by an amount that allows a sufficient time for track post-processing and pre-processing to be secured. In the conventional multi-track destage, wasteful waiting for rotation corresponding to the number of destaged tracks has occurred, but by using this embodiment, useless waiting for rotation does not occur.
3):デステージ動作の具体例による説明
図3はデステージ対象トラックの説明図である。
3): Description of Destage Operation by Specific Example FIG. 3 is an explanatory diagram of a destage target track.
キャッシュ管理部23は、不揮発性メモリ25上に、デステージ対象のトラックがあることを検出する。今回、対象のDASD3は、1シリンダに15ヘッド存在し、このデステージ対象トラックが、図3の様であったとする。また、対象のDASD3に対しては、3トラックの回転時間でトラックの後処理と、前処理が完了できるものとすると、連続デステージトラック間隔は4であると算出する。
The
ここで、今回デステージ対象となるトラックは、図3中で一回目の欄に○印の記されているトラックと、二回目の欄に●印の記されているトラックである。 Here, the tracks to be destaged this time are the tracks marked with a circle in the first column in FIG. 3 and the tracks marked with a ● in the second column.
(1) :キャッシュ管理部23は、デステージトラックの検索を行い、一回目として、先頭トラック(0)=シリンダ値「0005」・ヘッド値「0000」、終了トラック(+20)=シリンダ値「0006」・ヘッド値「0005」、連続デステージトラック間隔=4として、デバイスアダプタ22にデステージを発行する。
(1): The
(2) :キャッシュ管理部23からデステージ要求を受け付けたデバイスアダプタ22は、トラック(0)であるシリンダ値「0005」・ヘッド値「0000」に対してDASD3のセレクションを行う。
(2): The
(3) :デバイスアダプタ22は、DASD3のセレクションが完了後、図3中の一回目の欄にある先頭トラック(0)から、順に○印の付いているトラック(+4)(+8)(+12)(+16)をデステージして、終了トラック(+20)のデステージが完了した後に、連続デステージ処理完了をキャッシュ管理部23に報告する。
(3): After the selection of DASD3 is completed, the
(4) :キャッシュ管理部23は、二回目として、先頭トラック(+11)=シリンダ値「0005」・ヘッド値「000B」、終了トラック(+23)=シリンダ値「0006」・ヘッド値「0008」、連続デステージトラック間隔=4として、デバイスアダプタ22にデステージを発行する。
(4): The
(5) :キャッシュ管理部23からデステージ要求を受け付けたデバイスアダプタ22は、トラック(+11)であるシリンダ値「0005」・ヘッド値「000B」に対してDASD3のセレクションを行う。
(5): The
(6) :デバイスアダプタ22は、DASD3のセレクションが完了後、図3中の一回目の欄にある先頭トラック(+11)から、順に●印の付いているトラック(+15)(+19)をデステージして、終了トラック(+23)のデステージが完了した後に、連続デステージ処理完了をキャッシュ管理部23に報告する。
(6): After the DASD3 selection is completed, the
なお、前記実施例では、連続デステージトラック間隔を4としたが、キャッシュ管理部23は、デステージ対象DASD3の種類を判断し、その対象DASD3の性能に基づき連続デステージトラック間隔を算出するものであり、通常は1トラック分をスキップする間にトラックの前処理、後処理を行える。この場合は、連続デステージトラック間隔は2となる。
In the above embodiment, the continuous destage track interval is set to 4, but the
また、ハードデスク4等にあらかじめ連続デステージトラック数を記憶させておくことにより、FCUの初期設定により連続デステージトラック数をあらかじめ定義しておくことができる。これにより、キャッシュ管理部23は、あらかじめ定義されている連続デステージトラック数から、デステージ可能な連続トラックを抽出する。
Also, by storing the number of continuous destage tracks in advance in the
そして、キャッシュ管理部23は、デステージ可能な連続トラックを抽出する際、前記デステージ可能な連続トラックが、あらかじめ定義されている連続デステージトラック数よりも少ない場合は、デステージを延期し、あらかじめ定義されている連続デステージトラック数よりも多い場合は、前記あらかじめ定義されている連続デステージトラック数だけデステージをデバイスアダプタ22に要求する。
Then, when extracting the destageable continuous tracks, the
さらに、デバイスアダプタ22は、連続デステージ処理を終了したのち、前記連続デステージによりデステージしたトラック数と、あらかじめ定義されている連続デステージトラック数を比較し、その比較値が異なる場合は、キャッシュ管理部23に対し、論理矛盾を検出したことを通知する機構を設け、また、前記比較値が等しい場合は、キャッシュ管理部23に対し、デステージが正常に終了したことを通知する機構を設ける。
Furthermore, after finishing the continuous destage processing, the
〔第2実施例の説明〕
1):ファイル制御装置(FCU)の説明
図4は第2実施例におけるファイル制御装置の説明図であり、ファイル制御装置(FCU)2は、上位装置の指示によりDASD3にデータのリード/ライトを行うものであり、上位装置とはチャネルアダプタ(CA)21で接続され、DASD3のDASDアダプタ31とデバイスアダプタ(DA)で接続されている。また、このFCU2には、ハードデスク(HD)4に接続されたサービスアダプタ(SA)26が設けてある。
[Description of the second embodiment]
1): Explanation of File Control Unit (FCU) FIG. 4 is an explanatory diagram of the file control unit in the second embodiment. The file control unit (FCU) 2 reads / writes data to / from the
FCU2内には、チャネルアダプタ21、デバイスアダプタ22、キャッシュ管理部23、キャッシュメモリ24、不揮発性メモリ(NVS)25が設けてある。
In the
チャネルアダプタ21は、複数個設けてあり、主として上位装置のチャネルとのインタフェースを司り、デバイスアダプタ22は、DASD3とのインタフェースを制御するものである。キャッシュ管理部23は、キャッシュメモリ24に登録されているトラック等の管理を行うものであり、その記憶部に不良交代情報テーブル27を格納する場所が設けてある。
A plurality of
キャッシュメモリ24は、DASD3上の命令及びデータの内後で使われる可能性の高いものの写しを保持するバッファ記憶装置である。不揮発性メモリ25は、バッテリバックアップされ、電源断時においてもデータが、喪失しないものである。
The
サービスアダプタ26は、ハードデスク4からの情報により、ファイル制御装置の初期設定、ファイル装置のエラー情報の履歴の管理等を行うものである。DASD3は、ディスク装置、光ディスク装置等の複数のデバイスからなる記憶装置である。DASDアダプタ31は、FCU2とのインタフェースを司るものである。
The
2):不良交代情報テーブルの説明
図5は不良交代情報テーブルの説明図であり、図5(a)は不良交代情報テーブルの説明、図5(b)は不良交代情報の1セット分の説明である。
2): Explanation of the defective replacement information table FIG. 5 is an explanatory diagram of the defective replacement information table, FIG. 5 (a) is a description of the defective replacement information table, and FIG. 5 (b) is a description of one set of defective replacement information. It is.
図5(a)において、この例では1デバイス当たり不良交代情報は、左端のセット番号0〜44のように最大45トラック数分まで格納できる。この不良交代情報の1セット分には不良側、交代側それぞれ4バイト分の格納部がある。また、不良交代情報テーブル27には、接続できる最大のデバイスの数分(この例では256デバイス)の格納部が設けてある。
In FIG. 5A, in this example, the failure replacement information per device can be stored up to the maximum number of 45 tracks as
図5(b)において、不良交代情報の1セット分は、不良側と交代側に分かれている。不良側には、シリンダ値、ヘッド値、情報の格納部が設けてあり、交代側には、シリンダ値、ヘッド値、デバイス値(機番)の格納部が設けてある。この情報の格納部は、例えば「40」が格納されていれば交代側が有効であることを示しており、「20」であれば不良側が有効であることを示しており、「60」であれば不良側及び交代側の両者が有効、即ちリンクが確立済であることを示すものである。 In FIG. 5B, one set of defective replacement information is divided into a defective side and a replacement side. A storage unit for cylinder values, head values, and information is provided on the defective side, and a storage unit for cylinder values, head values, and device values (machine numbers) is provided on the replacement side. For example, if “40” is stored, the storage unit of this information indicates that the replacement side is valid, and “20” indicates that the defective side is valid. This indicates that both the defective side and the replacement side are effective, that is, the link has been established.
3):付加情報を含むホームアドレスのリード命令(Diag Read HA Command)の説明
この実施例では、ファイル制御装置(FCU)2内の不良交代情報テーブル27に、配下の全てのDASD3の不良交代情報を格納しておく。この不良交代情報は、ホームアドレスをライト(Write HA)又は付加情報を含むホームアドレスのライト(Diag Write HA)の処理時に作成更新される。
3): Description of Read Read HA Command of Home Address Including Additional Information In this embodiment, the failure replacement information table 27 in the file control unit (FCU) 2 stores the failure replacement information of all the
付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で転送するデータはフラグ(Flag)、トラックアドレス(Track Address)、傷情報、セル(Cell)値、物理トラックアドレスである。 Data to be transferred by a home address read command (Diag Read HA Command) including additional information includes a flag, a track address, a flaw information, a cell value, and a physical track address.
この実施例では、FCU2内にトラックの不良交代情報が格納されているので、ホームアドレスHA部のフラグ情報はFCU2が作成することができる。トラックアドレスと物理トラックアドレスは、トラックの物理位置であるから、シーク(Seek)値と一致するはずであり、これはFCU2内で作成できる。
In this embodiment, since the defective change information of the track is stored in the
傷情報は、RAID技術を用いるアレイディスクを考えた場合には、傷をゼロとした標準値で問題はない。セル値は、インデックスからの距離を示すものでありトラックに傷がない場合は固定値となる。 The flaw information is a standard value with no flaws when there is an array disk using RAID technology, and there is no problem. The cell value indicates the distance from the index, and is a fixed value when the track is not damaged.
ホームアドレスのリード命令(Read HA Command)で転送するデータは、フラグとトラックアドレスであり、付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で必要とされる情報の一部であるので、やはり、FCU2内で作成できる。 The data transferred by the home address read command (Read HA Command) is a flag and a track address, and is part of the information required by the home address read command (Diag Read HA Command) including additional information. After all, it can be created in FCU2.
このように、FCU2内に不良交代情報を格納しておくことにより、Read HA Command及びDiag Read HA Commandに対しては、常に実DASD3へのアクセス無しに、或いは、キャッシュメモリからのデータ読み込み無しに、対象情報を送出できる。
In this way, by storing the defect replacement information in the
4):ファイル制御装置(FCU)の動作説明
以下、FCU2の動作を説明する。
4): Explanation of operation of file control unit (FCU) Hereinafter, the operation of
(1) :FCU2(キャッシュ管理部23)は、FCU2の電源の投入時、或いはリセット時に、配下の全てのDASD3の不良トラック領域を読み出し、各トラックのホームアドレスHA部に格納されているフラグによって、不良交代リンクが作成されているかどうかを判断し、その結果をFCU2内のメモリ(記憶部)に不良交代情報テーブル27として格納しておく。
(1): The FCU 2 (cache management unit 23) reads out the defective track areas of all
(2) :DASD3のアクセスに関して、リード命令を発行するには、あらかじめ対象のトラックを特定するシーク命令を発行しておかねばならない。このため、FCU2はリード命令に先立って上位装置のチャネルから発行されるシーク命令から、対象のトラックアドレスを認識できる。
(2): In order to issue a read command for DASD3 access, a seek command that identifies the target track must be issued in advance. For this reason, the
(3) :FCU2は、上位装置のチャネルから、配下のDASD3のホームアドレスのリード命令(Read HA Command)を受領した場合、不良交代情報テーブル27が有効か否かを判断する。
(3): When the
(4) :もし、この判断の結果、不良交代情報テーブル27が無効の場合(例えば、DASD3のホームアドレスHA部からの不良トラック情報読み込み失敗等)は、FCU2は対象のホームアドレスHAのフラグ情報を確認できないので、通常通り、キャッシュメモリ24上にデータが存在すれば前記キャッシュメモリ24から、存在しなければDASD3から読み込み、通常のリード動作を行う。
(4): If, as a result of this determination, the failure alternation information table 27 is invalid (for example, failure to read defective track information from the home address HA portion of DASD 3), the
(5) :もし、前記判断の結果、不良交代情報テーブル27が有効の場合は、前記不良交代情報テーブル27内の不良交代リンク情報を参照し、対象トラックに不良交代リンクが作成されているか否かを判断する(不良トラックか、交代トラックか、正常トラックかの判断をする)。 (5): If, as a result of the determination, the defective replacement information table 27 is valid, the defective replacement link information in the defective replacement information table 27 is referred to to determine whether a defective replacement link has been created for the target track. (Determining whether the track is a defective track, a replacement track, or a normal track).
(6) :もし、不良交代リンクが作成されている場合、ホームアドレスHA部のフラグ領域に該当するビットをセットする。また、このホームアドレスHA部のトラックアドレスであるシリンダ・ヘッド値は、物理シリンダ・ヘッド値と常に一致するので、既にシーク命令により特定された値をセットすることで、キャッシュメモリを使用せずに、適切な値を応答できる。 (6): If a defective alternate link has been created, a bit corresponding to the flag area of the home address HA section is set. Also, the cylinder head value, which is the track address of the home address HA part, always matches the physical cylinder head value, so by setting the value already specified by the seek instruction, the cache memory is not used. Can respond with an appropriate value.
(7) :FCU2が、付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で、転送しなければならないデータは、前述のホームアドレスのリード命令(Read HA Command)で転送するデータに、トラックの傷情報と、セル値を付加したものである。しかし、アレイディスクを用いるFCU(COF技術を用いるFCU)2では、傷情報は常に標準値に特定できるので、これらの情報はFCU2内部で作成できる。このため、Diag Read HA Commandに対しても、FCU2は適切な値を転送できる。
(7): The data that the
図6はRead HA Commandに対する処理フローチャートである。以下、図6の処理S1〜S5に従って説明する。 FIG. 6 is a process flowchart for the Read HA Command. Hereinafter, a description will be given according to the processes S1 to S5 of FIG.
S1:FCU2は、上位装置から、配下のDASD3のRead HA Commandを受領した場合、不良交代情報テーブル27が有効か否かを判断し、この不良交代情報テーブル27が有効の場合は、不良交代情報テーブル27の不良交代リンク情報を参照し、対象トラックが不良交代トラックか否かを判断する。この判断で対象トラックが不良交代トラックの場合は処理S2に移り、もし、不良交代トラックでない場合は処理S5に移る(尚、前記不良交代情報テーブル27が無効の場合は、キャッシュメモリ24又はDASD3から読み込む、通常のリード動作を行う。)。
S1: The
S2:FCU2は、対象トラックが不良トラックか否かを判断する。この判断で対象トラックが不良トラックの場合は、処理S3に移り、もし、不良トラックでない場合は、処理S4に移る。
S2: The
S3:FCU2は、対象トラックのホームアドレスHA部のフラグ領域に不良トラック情報をセットし、処理S5に移る。
S3: The
S4:FCU2は、対象トラックのホームアドレスHA部のフラグ領域に交代トラック情報をセットし、処理S5に移る。
S4: The
S5:FCU2は、フラグ領域にセットした不良交代情報とトラックアドレスであるシリンダ・ヘッド値を上位装置に通知してこの処理を終了する。
S5: The
1 上位装置
2 ファイル制御装置(FCU)
3 直接アクセス記憶装置(DASD)
20 メモリ部
21 チャネルアダプタ(CA)
22 デバイスアダプタ(DA)
23 キャッシュ管理部(CFE)
24 キャッシュメモリ
25 不揮発性メモリ(NVS)
27 不良交代情報テーブル
1
3 Direct Access Storage Device (DASD)
20
22 Device adapter (DA)
23 Cache Management Department (CFE)
24
27 Defect change information table
Claims (2)
該ファイル制御装置の記憶部に不良交代情報テーブルの格納部と、
該ファイル制御装置に設けたキャッシュ管理部とを有し、
前記キャッシュ管理部は、
電源の投入時、或いはリセット時に、配下の全ての前記直接アクセス記憶装置の不良トラック領域を読み出し、各トラックのホームアドレスに格納されているフラグによって、不良交代リンクが作成されているかを判断し、その結果を前記記憶部に不良交代情報テーブルとして前記格納部に格納し、
トラックが不良かどうかの使用状態を示すフラグ及びトラックアドレスを含むホームアドレスに対するリード命令を上位装置から受領した場合、上位装置から該ファイル制御装置に対して発行される各トラックを指定するシーク命令から各トラックのトラックアドレスを取得し、該トラックアドレスに基づいて前記直接アクセス記憶装置の前記ホームアドレスから不良トラック情報が読み出せるか確認して前記不良交代情報テーブルが有効かどうかを判断して前記受領したホームアドレスのリード命令に対するフラグ情報を確定し、前記トラックアドレスと前記フラグ情報に基づいて、前記ホームアドレスのリード命令に対する応答情報を作成することを特徴としたファイル制御装置。 In a file control device having a cache memory for controlling a direct access storage device,
A storage unit for a defective replacement information table in a storage unit of the file control device;
A cache management unit provided in the file control device;
The cache management unit
When power is turned on or reset, the bad track area of all the direct access storage devices under it is read, and it is determined whether a bad replacement link is created by the flag stored in the home address of each track. The result is stored in the storage unit as a defective replacement information table in the storage unit,
When a read command for a home address including a flag indicating whether the track is defective or a home address including a track address is received from the host device, a seek command specifying each track issued from the host device to the file control device Obtain the track address of each track, check whether bad track information can be read from the home address of the direct access storage device based on the track address, determine whether the defective replacement information table is valid, and receive the track address Home to confirm the flag information for the address read instruction, on the basis of the track address and the flag information, file control apparatus, wherein the benzalkonium create a response information in response to the read command of the home address.
付加情報を含むホームアドレスのリード命令に対する応答であるトラックの傷情報を標準値に確定し、
該傷情報と前記フラグ情報と前記トラックアドレスとから、付加情報を含むホームアドレスのリード命令に対する応答情報を作成することを特徴とした請求項1記載のファイル制御装置。 When the direct access storage device is a fixed length array disk and the file control device emulates a variable length method with the array disk,
The scratch information of the track, which is a response to the read command of the home address including additional information, is fixed to the standard value,
2. The file control apparatus according to claim 1, wherein response information for a read command of a home address including additional information is created from the flaw information, the flag information, and the track address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004000312A JP4131953B2 (en) | 2004-01-05 | 2004-01-05 | File control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004000312A JP4131953B2 (en) | 2004-01-05 | 2004-01-05 | File control unit |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP19274495A Division JP3615274B2 (en) | 1995-07-28 | 1995-07-28 | File control unit |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004158029A JP2004158029A (en) | 2004-06-03 |
JP4131953B2 true JP4131953B2 (en) | 2008-08-13 |
Family
ID=32821900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004000312A Expired - Fee Related JP4131953B2 (en) | 2004-01-05 | 2004-01-05 | File control unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4131953B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006252239A (en) * | 2005-03-11 | 2006-09-21 | Fujitsu Ltd | File control unit |
-
2004
- 2004-01-05 JP JP2004000312A patent/JP4131953B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004158029A (en) | 2004-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8706985B1 (en) | System and method for optimizing garbage collection in data storage | |
JP4372134B2 (en) | Storage system with data comparison function | |
US7831764B2 (en) | Storage system having plural flash memory drives and method for controlling data storage | |
US6021463A (en) | Method and means for efficiently managing update writes and fault tolerance in redundancy groups of addressable ECC-coded sectors in a DASD storage subsystem | |
US7908512B2 (en) | Method and system for cache-based dropped write protection in data storage systems | |
US7861035B2 (en) | Method of improving input and output performance of raid system using matrix stripe cache | |
US7587631B2 (en) | RAID controller, RAID system and control method for RAID controller | |
US4935825A (en) | Cylinder defect management system for data storage system | |
US6766491B2 (en) | Parity mirroring between controllers in an active-active controller pair | |
EP2778926A1 (en) | Hard disk data recovery method, device and system | |
US7415636B2 (en) | Method and apparatus for replacement processing | |
US7702954B2 (en) | Data storage apparatus having error recovery capability | |
JP2008071478A (en) | Disk drive with non-volatile memory to store data about failure | |
JPH06332623A (en) | Array type recorder and recorder | |
US7627725B2 (en) | Stored data processing apparatus, storage apparatus, and stored data processing program | |
JP2007035217A (en) | Data storage processing method for disk storage device and disk storage system | |
JP3860967B2 (en) | Method for automatically changing leads and magnetic disk device using the same | |
JP3270959B2 (en) | Parity storage method in disk array device and disk array device | |
US20100211703A1 (en) | Storage Apparatus and Data Integrity Assurance Method | |
JP2004213470A (en) | Disk array device, and data writing method for disk array device | |
JP3615274B2 (en) | File control unit | |
JP4131953B2 (en) | File control unit | |
JP3573599B2 (en) | Data recovery method for disk array | |
JP2005004733A (en) | Arrangement and method of disposition for detecting write error in storage system | |
CN113050892B (en) | Method and device for protecting deduplication data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20060919 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060926 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20061127 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070410 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070608 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080122 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080324 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20080324 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20080324 |
|
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: 20080527 |
|
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: 20080529 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110606 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: 20120606 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120606 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130606 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |