JP2004158029A - File control unit - Google Patents

File control unit Download PDF

Info

Publication number
JP2004158029A
JP2004158029A JP2004000312A JP2004000312A JP2004158029A JP 2004158029 A JP2004158029 A JP 2004158029A JP 2004000312 A JP2004000312 A JP 2004000312A JP 2004000312 A JP2004000312 A JP 2004000312A JP 2004158029 A JP2004158029 A JP 2004158029A
Authority
JP
Japan
Prior art keywords
track
information
home address
defective
information table
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.)
Granted
Application number
JP2004000312A
Other languages
Japanese (ja)
Other versions
JP4131953B2 (en
Inventor
秀仙 ▲高▼橋
Hidenori Takahashi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2004000312A priority Critical patent/JP4131953B2/en
Publication of JP2004158029A publication Critical patent/JP2004158029A/en
Application granted granted Critical
Publication of JP4131953B2 publication Critical patent/JP4131953B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To always respond to an instruction for reading a home address at a high speed regardless of whether or not object data are stored in a cache memory, and to lower occurrence probability of errors. <P>SOLUTION: In an FCU 2 having the cache memory 24 for controlling a DASD 3, a storage part of a defect alternation information table 27 is formed in a memory part of the FCU 2; all the defective track regions of the DASD 3 under control are read in turning power on or resetting it; whether or not a defect alternation link is created by a flag stored in a home address part of each track is determined; the result thereof is stored in the memory part as the information table 27; and when the read instruction of the home address is received, whether or not the information table 27 is valid is determined. <P>COPYRIGHT: (C)2004,JPO

Description

本発明は、上位装置とであるチャネル転送と直接アクセス記憶装置(DASD)との転送の経路が、時間的に独立に動作する非同期転送を行うディスク制御装置等のファイル制御装置に関する。   The present invention relates to a file control device such as a disk control device for performing asynchronous transfer in which a path of a channel transfer and a direct access storage device (DASD), which are an upper-level device, operates independently in time.

図7は従来例の説明図であり、図7(a)はCKDフォーマットの説明、図7(b)はFBAトラック上へのCKDトラックのエミュレート方法の説明である。   7A and 7B are explanatory diagrams of a conventional example. FIG. 7A illustrates a CKD format, and FIG. 7B illustrates a method of emulating a CKD track on an FBA track.

従来、磁気ディスク装置や光ディスク装置等の外部記憶装置である直接アクセス記憶装置(DASD)へのデータの記憶方法は、可変長方式であるCKDフォーマットであり、また、上位装置(OS:オペレーティングシステム)が、DASDへデータを書き込むフォーマットもCKDフォーマットである。   2. Description of the Related Art Conventionally, a method of 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 which is a variable length system, and a higher-level device (OS: operating system) is used. , DASD is also a CKD format.

図7(a)において、CKDフォーマットのディスクのあるトラックm内には、インデックス(Index)、ホームアドレスHA、レコード(Record)0、レコード1、レコード2、・・・レコードkからなっている。   In FIG. 7A, a track m on a CKD format disk includes an index (Index), a home address HA, a record (Record) 0, a record 1, a record 2,... A record k.

インデックスは、トラックの起点マーカである。ホームアドレスHAは、トラックの状態等を示すものであり、フラグ(Flag)、トラックアドレス(Track Address:シリンダ番号とヘッド番号)、誤り訂正コード(Error Correction Code:ECC)が設けてある。このフラグ(Flag)はトラックが不良かどうかの使用状態を示し、例えば、2ビットによりなり、対象トラックが正常であれば「00」不良トラックであれば「10」交代トラックであれば「01」とするものである。誤り訂正コードECCはデータチェックのためのものである。   The index is a track start marker. The home address HA indicates a track state and the like, and includes a flag (Flag), a track address (Track Address: cylinder number and head number), and an error correction code (Error Correction Code: ECC). This flag (Flag) indicates a use state of whether or not the track is defective, and is composed of, for example, 2 bits. The target track is “00” if the target track is normal, “10” if the target track is defective, and “01” if the target track is a replacement track. It is to be. The error correction code ECC is for data check.

レコード0は、ユーザの使用できないレコードで、そのカウント部に不良トラックが発生したとき交代トラックのアドレスを記録するものである。レコード1〜レコードkは、ユーザが使用できるレコードであり、それぞれ、カウント部C、キー部K(省略される場合もある)、データ部Dの3つのフィールドがある。このカウント部Cには、これに続くキー部K、データ部Dの長さが入っている。キー部Kには、データ部Dの検索等のための標識であるキーが入っている。データ部Dは、データを記録する部分である。   Record 0 is a record that cannot be used by the user, and records the address of a replacement track when a defective track occurs in the count section. Records 1 to k are records that can be used by the user, and each include three fields of a count part C, a key part K (sometimes omitted), and a data part D. The count section C contains the lengths of the key section K and the data section D following the count section C. The key portion K contains a key which is a marker for searching the data portion D or the like. The data part D is a part for recording data.

しかし、近年、可変長方式であるCKDフォーマットのDASDから、実記憶媒体を固定長方式であるFBAフォーマットのDASDに変更し、冗長情報を付加して信頼性を向上するレイド(RAID)技術を使用する傾向が高まっている。   However, in recent years, the real storage medium has been changed from a variable-length CKD format DASD to a fixed-length FBA format DASD, and a RAID (RAID) technique for improving reliability by adding redundant information has been used. There is a growing tendency to.

この場合、上位装置(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) and the format of the actual DASD are different, the file control device (hereinafter referred to as “FCU”) emulates (converts) the CKD format on the FBA format DASD. (CKD On Fba = COF) When this COF technology is used, a track in CKD format is emulated on a real DASD in 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まで含むことができる。   In FIG. 7B, the upper diagram shows one track in the FBA format. In this example, there are blocks n, block n + 1, block n + 2, block n + 3, block n + 4, block n + 5,. This one block can include 0 to 8 records in 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, if one track of the CKD format uses blocks n to n + 15 (for 16 blocks) of the FBA format, the upper diagram of FIG. 7B looks like the lower diagram. That is, in one track of the FBA format, the emulated track of the CKD format is 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), and track m + 3 (FBA blocks). Blocks n + 48 to n + 63) and tracks m + 4 (FBA blocks n + 64 to n + 79) are provided for about five tracks.

さて、従来より、ライト動作においては、その処理を高速化するために、上位装置からのライト要求時には、ライトされるデータをDASDには書き込まず、ファイル制御装置(FCU)内の不揮発性メモリ(NVS=Non Volatile Storage)だけにデータを書き込み、FCUの遊休時間を利用して、DASDへの書き戻しを行う手法(DASDへの高速書き込み機構)が考えられている。   Conventionally, in the write operation, in order to speed up the processing, when a write request is made from a higher-level device, the data to be written is not written to DASD, and the nonvolatile memory (FCU) in the file control unit (FCU) is not written. A method of writing data only to NVS (Non Volatile Storage) and writing back to DASD using the idle time of the FCU (high-speed writing mechanism for DASD) has been considered.

更に、この手法を改良した、NVSからDASDへのデータの書き戻しの手法としては、連続した複数トラックを1イベントでDASDへ書き戻す手法(マルチトラック・デステージ)が考えられている。   Further, as a method of writing back data from NVS to DASD by improving this method, a method of writing back a plurality of continuous tracks to DASD in one event (multi-track destage) is considered.

しかし、COF技術を用いたファイル・サブシステムにおいては、連続したトラックのデステージが、必ずしも性能向上を期待できない。なぜならば、CKDフォーマットの連続した2トラックは、FBAフォーマット上では、隣接したブロックとなり、CKDフォーマットの1トラック処理を基本とするFCUでは、当該トラックの書き戻し後、後処理をしている間に、続くトラックの先頭部分が通りすぎ、一回転待ちを発生させるからである。   However, in a file subsystem using the COF technique, destaging of a continuous track does not necessarily expect an improvement in performance. This is because two consecutive tracks in the CKD format become adjacent blocks in the FBA format, and the FCU based on one-track processing in the CKD format performs post-processing after writing back the track. This is because the leading portion of the following track passes by, causing one rotation wait.

図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 destage of the track m until the head of the DASD arrives at the home address HA of the track m + 1 is the record of the track m. After the processing of k is completed, this is the time from when the head passes through the index to when the head is further positioned at the home address HA of the track m + 1.

しかしながら、COF技術を用いた場合、トラックmの処理が終了してから、トラックm+1の処理を開始するまでには、ブロック間ギャップG分の時間しか与えられない。論理的に、この時間だけではFCUがエラーチェック等のトラックの終了処理と、続くトラックの開始処理を完結できない。このため、ヘッドは、ディスクが一回転して再びトラックm+1(FBAフォーマットではブロックn+16)の先頭に位置付くのを待つことになる。   However, when the COF technique is used, only time corresponding to the inter-block gap G is given from the end of the processing of the track m to the start of the processing of the track m + 1. Logically, this time alone does not allow the FCU to complete the track end processing such as error checking and the subsequent track start processing. For this reason, the head waits for the disk to make one rotation and to be positioned again at the head of track m + 1 (block n + 16 in the FBA format).

また、一般に、上位装置からのリード命令であるリードコマンド(Read Command)全般に対する応答は、対象データがキャッシュメモリ上に格納されていれば、キャッシュメモリから読み出して応答し、対象データがキャッシュメモリ上に格納されていなければ、実DASDへのアクセスが発生し、DASDへのヘッドの位置付け、回転待ちのための時間が費やされていた。   In general, when a target data is stored in the cache memory, a response to the entire read command (Read Command), which is a read command from the higher-level device, is read from the cache memory and responded, and the target data is stored in the cache memory. If not, access to the actual DASD occurs, and the time for positioning the head on the DASD and waiting for rotation is spent.

上記従来のものにおいては次のような課題があった。   The above-mentioned conventional one has the following problems.

(1) 連続してデステージすることによってDASDの回転待ちをなくすための手法であるためのマルチトラックデステージ手法が、COF技術を用いた場合回転待ちが発生し、その機能を果たさなくなるという問題があった。   (1) A problem that the multitrack destaging method, which is a method for eliminating the rotation wait of the DASD by continuously destage, uses the COF technology, the rotation wait occurs, and the function is not fulfilled. was there.

(2) 上位装置からのリード命令全般に対する応答は、対象データがキャッシュメモリに格納されている場合でもその記憶場所を得るためのハッシュ変換、キャッシュメモリからの読み出し動作を行うための時間が消費され、また、ハード故障等によるアクセスエラーの発生する確率も高くなっていた。   (2) Even when the target data is stored in the cache memory, the response to the general read command from the host device consumes the time for performing the hash conversion for obtaining the storage location and the operation for reading from the cache memory. Also, the probability of occurrence of an access error due to a hardware failure or the like has been increased.

本発明は、上記従来の課題を解決し、DASDへの論理CKDデステージトラックを連続に処理するのではなく、トラックの後処理、前処理を十分行える時間を確保できるようにして、無駄な回転待ちを無くし高速にデステージを行うこと、及び、対象データがキャッシュメモリ上に格納されているかいないかに係わらず、常に高速にホームアドレスを読む命令(Read HA命令)に応答でき、かつ、エラーの発生確率を低くすることを目的とする。   SUMMARY OF THE INVENTION The present invention solves the above-mentioned conventional problem and does not continuously process a logical CKD destage track to a DASD, but secures sufficient time for post-processing and pre-processing of a track, thereby enabling useless rotation. High-speed destage without waiting, and can always respond to a home address read instruction (Read HA instruction) at high speed regardless of whether or not the target data is stored in the cache memory, and can generate an error. The purpose is to lower the probability of occurrence.

本発明は、上記の課題を解決するため次のように構成した。   The present invention is configured as follows in order to solve the above problem.

図1は本発明の原理説明図であり、図1中、1は上位装置、2はファイル制御装置(FCU)、3は直接アクセス記憶装置(DASD)、20はメモリ部、21はチャネルアダプタ(CA)、22はデバイスアダプタ(DA)、23はキャッシュ管理部(CFE)、24はキャッシュメモリ、25は不揮発性メモリ(NVS)、27は不良交代情報テーブルを示している。   FIG. 1 is a view for explaining the principle of the present invention. In FIG. 1, reference numeral 1 denotes a host device, 2 denotes a file control unit (FCU), 3 denotes a direct access storage device (DASD), 20 denotes a memory unit, and 21 denotes a channel adapter (CA). , 22 denotes a device adapter (DA), 23 denotes a cache management unit (CFE), 24 denotes a cache memory, 25 denotes a nonvolatile memory (NVS), and 27 denotes a defective replacement information table.

DASD3を制御するキャッシュメモリ24を持つFCU2において、FCU2の記憶部に不良交代情報テーブル27の格納部を設け、電源の投入時、或いはリセット時に、配下の全ての前記DASD3の不良トラック領域を読み出し、各トラックのホームアドレス部に格納されているフラグによって、不良交代リンクが作成されているかを判断し、その結果を前記記憶部に不良交代情報テーブル27として格納し、ホームアドレスのリード命令を受領した場合、前記不良交代情報テーブル27が有効かどうかを判断する。このため、無効な不良交代情報テーブルの情報で応答することを防止できる。   In the FCU 2 having the cache memory 24 for controlling the DASD 3, a storage unit for the defect replacement information table 27 is provided in the storage unit of the FCU 2, and when the power is turned on or reset, the defective track areas of all the subordinate DASDs 3 are read out. Based on the flag stored in the home address section of each track, it is determined whether or not a defective replacement link has been created. The result is stored in the storage section as a defective replacement information table 27, and a home address read command has been received. In this case, it is determined whether the defective replacement information table 27 is valid. For this reason, it is possible to prevent a response with invalid invalid replacement information table information.

また、前記判断の結果、前記不良交代情報テーブル27が無効の場合は、対象のホームアドレスが、前記キャッシュメモリ24上に存在すれば前記キャッシュメモリ24から、存在しなければ前記DASD3から読み出して情報を転送し、前記不良交代情報テーブル27が有効の場合は、前記不良交代情報テーブル27内の不良交代リンク情報を参照し、前記受領したホームアドレスのリード命令に対する応答の一部であるフラグ情報を確定する。このため、前記不良交代情報テーブル27が無効の場合にもフラグ情報の応答ができ、有効の場合はフラグ情報の作成を高速に行うことが出来る。   If the result of the determination indicates that the defective replacement information table 27 is invalid, the target home address is read from the cache memory 24 if it exists on the cache memory 24, and read from the DASD 3 if it does not exist. When the defective replacement information table 27 is valid, the defective replacement link information in the defective replacement information table 27 is referred to, and the flag information which is a part of the response to the read instruction of the received home address is read. Determine. Therefore, a response to the flag information can be made even when the defective replacement information table 27 is invalid, and when it is valid, the flag information can be created at high speed.

さらに、前記確定したフラグ情報と、既に受領しているシークアドレスを使用したホームアドレスのリード命令に対する応答の一部であるトラックアドレスとから、ホームアドレスのリード命令に対する完全な応答情報を作成する。このため、前記不良交代情報テーブル27が有効の場合のホームアドレスのリード命令に対する応答を高速に行うことが出来る。   Further, complete response information to the read instruction of the home address is created from the determined flag information and the track address which is a part of the response to the read instruction of the home address using the already received seek address. Therefore, it is possible to quickly respond to a read instruction of the home address when the defective replacement information table 27 is valid.

また、前記DASD3が固定長方式のアレイディスクであり、FCU2が該アレイディスクで可変長方式をエミュレートしている場合、付加情報を含むホームアドレスのリード命令に対する応答の一部であるトラックの傷情報を標準値に確定し、該傷情報と前記フラグ情報と前記トラックアドレスとから、完全な付加情報を含むホームアドレスのリード命令に対する応答情報を作成する。このため、前記不良交代情報テーブル27が有効の場合の付加情報を含むホームアドレスのリード命令に対する応答を、キャッシュメモリ等へアクセスせず高速に行うことができ、エラーの発生確率も低くすることができる。   When the DASD 3 is a fixed-length array disk and the FCU 2 is emulating a variable-length system with the array disk, a track defect which is a part of a response to a home address read command including additional information is performed. The information is fixed to a standard value, and response information to a read instruction of a home address including complete additional information is created from the flaw information, the flag information, and the track address. Therefore, the response to the read instruction of the home address including the additional information when the defective replacement information table 27 is valid can be performed at high speed without accessing the cache memory or the like, and the error occurrence probability can be reduced. it can.

本発明によれば次のような効果がある。   According to the present invention, the following effects can be obtained.

(1)FCUは、電源の投入時、或いはリセット時に、配下の全てのDASD3の不良トラック領域を読み出し、各トラックのホームアドレス部に格納されているフラグによって、不良交代リンクが作成されているか判断し、その結果を記憶部に不良交代情報テーブルとして格納し、ホームアドレスのリード命令を受領した場合、前記不良交代情報テーブルが有効かどうかを判断するため、無効な不良交代情報テーブルの情報で応答することを防止できる。   (1) The FCU reads the defective track areas of all the subordinate DASDs 3 when the power is turned on or resets, and determines whether a defective replacement link has been created based on a flag stored in the home address section of each track. Then, the result is stored in the storage unit as a defective replacement information table, and when a read instruction of a home address is received, a response is made with information of an invalid defective replacement information table in order to determine whether the defective replacement information table is valid. Can be prevented.

(2)FCUが、不良交代情報テーブルを無効と判断した場合は、対象のホームアドレスが、キャッシュメモリ上に存在すれば前記キャッシュメモリから、存在しなければDASD3から読み出して情報を転送し、不良交代情報テーブルが有効の場合は、不良交代情報テーブル内の不良交代リンク情報を参照し、受領したホームアドレスのリード命令に対する応答の一部であるフラグ情報を確定するため、不良交代情報テーブル27が無効の場合にもフラグ情報の応答ができ、有効の場合はフラグ情報の作成を高速に行うことが出来る。   (2) If the FCU determines that the defective replacement information table is invalid, the home address is read from the cache memory if the target home address is present in the cache memory, and is transferred from the DASD 3 if the target home address is not present. When the replacement information table is valid, the defective replacement information table 27 is referred to by referring to the defective replacement link information in the defective replacement information table and determining flag information that is a part of the response to the read command of the received home address. The flag information can be responded to even when it is invalid, and the flag information can be created at high speed when it is valid.

(3)確定したフラグ情報と、既に受領しているシークアドレスを使用したホームアドレスのリード命令に対する応答の一部であるトラックアドレスとから、ホームアドレスのリード命令に対する完全な応答情報を作成するため、不良交代情報テーブルが有効の場合のホームアドレスのリード命令に対する応答を高速に行うことが出来る。   (3) To create complete response information to a home address read command from the determined flag information and a track address that is part of a response to a home address read command using a previously received seek address. In addition, it is possible to quickly respond to a read instruction of the home address when the defective replacement information table is valid.

(4)FCUがアレイディスクで可変長方式をエミュレートしている場合、付加情報を含むホームアドレスのリード命令に対する応答の一部であるトラックの傷情報を標準値に確定し、該傷情報とフラグ情報とトラックアドレスとから、完全な付加情報を含むホームアドレスのリード命令に対する応答情報を作成するため、不良交代情報テーブルが有効の場合の付加情報を含むホームアドレスのリード命令に対する応答を、キャッシュメモリ等へアクセスせず高速に行うことができ、エラーの発生確率も低くすることができる。   (4) When the FCU emulates the variable length system on the array disk, the defect information of the track, which is a part of the response to the read instruction of the home address including the additional information, is determined to a standard value, and the defect information and the defect information are determined. A response to the read instruction of the home address including the additional information when the defective replacement information table is valid is created by caching the response information to the read instruction of the home address including the complete additional information from the flag information and the track address. This can be performed at high speed without accessing a memory or the like, and the error probability can be reduced.

図2、図3は本発明の第1実施例、図4〜図6は本発明の第2実施例を示した図である。以下、本発明の実施例を図面に基づいて説明する。   2 and 3 are views showing a first embodiment of the present invention, and FIGS. 4 to 6 are views showing a second embodiment of the present invention. Hereinafter, embodiments of the present invention will be described 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 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 from / to the DASD 3 in accordance with an instruction from a host device. It is connected to a host device by a channel adapter (CA) 21, and is connected to a DASD adapter 31 of DASD 3 such as a disk array by a device adapter (DA) 22. Further, the FCU 2 is provided with a service adapter (SA) 26 connected to the hard disk (HD) 4.

FCU2内には、チャネルアダプタ21、デバイスアダプタ22、キャッシュ管理部23、キャッシュメモリ24、不揮発性メモリ(NVS)25が設けてある。   In the FCU 2, a channel adapter 21, a device adapter 22, a cache management unit 23, a cache memory 24, and a non-volatile memory (NVS) 25 are provided.

チャネルアダプタ21は、複数個設けてあり、主として上位装置のチャネルとのインタフェースを司り、デバイスアダプタ22は、DASD3とのインタフェースを制御するものである。キャッシュ管理部23は、キャッシュメモリ24に登録されているトラック等の管理を行うものである。   A plurality of channel adapters 21 are provided, mainly controlling an interface with a channel of a higher-level device, and a device adapter 22 controls an interface with the DASD 3. The cache management unit 23 manages tracks and the like registered in the cache memory 24.

キャッシュメモリ24は、DASD3上の命令及びデータの内後で使われる可能性の高いものの写しを保持するバッファ記憶装置である。不揮発性メモリ25は、バッテリバックアップされ、電源断時においてもデータが、喪失しないものである。   The cache memory 24 is a buffer storage device that holds a copy of commands and data on the DASD 3 which are likely to be used later. The nonvolatile memory 25 is backed up by a battery so that data is not lost even when the power is turned off.

サービスアダプタ26は、ハードデスク4からの情報により、ファイル制御装置の初期設定、ファイル装置のエラー情報の履歴の管理等を行うものである。DASD3は、RAID技術を使用したディスクアレイ等のFBAフォーマット(固定長方式)の記憶装置である。DASDアダプタ31は、FCU2とのインタフェースを司るものである。   The service adapter 26 performs initial setting of the file control device, management of the history of error information of the file device, and the like based on information from the hard disk 4. The DASD 3 is an FBA format (fixed length type) storage device such as a disk array using RAID technology. The DASD adapter 31 controls an interface with the FCU 2.

2):ファイル制御装置の動作説明
FCU2は、上位装置からDASD3へのデータの書き込み指示を受けると、チャネルアダプタ21で上位装置からのCKDフォーマットをFBAフォーマットに変換し、キャッシュメモリ24と不揮発性メモリ25に同時に書き込む高速書き込み処理を行う。
2): Description of operation of file control device When FCU 2 receives an instruction to write data to DASD 3 from the host device, FCU 2 converts the CKD format from the host device to FBA format by channel adapter 21, and cache memory 24 and nonvolatile memory 25, a high-speed writing process is performed.

キャッシュ管理部23は、不揮発性メモリ25内部に高速書き込み機構で生成されたトラックが存在することを検出すると、全てのトラック中で連続するトラックが存在するか否かを検索する。ここで、キャッシュ管理部23は、連続デステージ可能なトラック間隔を算出し、デステージする先頭トラックと終了トラックとデステージトラック間隔とを情報として、デバイスアダプタ22にデステージを要求する。   When detecting that the track generated by the high-speed writing mechanism exists in the nonvolatile memory 25, the cache management unit 23 searches whether or not there is a continuous track among all the tracks. Here, the cache management unit 23 calculates track intervals at which continuous destaging is possible, and requests the device adapter 22 to perform destaging using the head track, the end track to be destaged, and the destage track interval as information.

デステージ要求を受けたデバイスアダプタ22は、前記情報により、先頭トラックに対して、DASD3へのヘッドの位置決めであるセレクション命令を発行する。   The device adapter 22 that has received the destage request issues a selection command for positioning the head to the DASD 3 with respect to the first track based on the information.

DASD3のセレクションが完了後、デバイスアダプタ22は、前記キャッシュ管理部23から受け取った情報を基に、デステージするトラックを決定する。   After the selection of the DASD 3 is completed, the device adapter 22 determines a track to be destaged based on the information received from the cache management unit 23.

最初にデステージするトラックは、キャッシュ管理部23から通知された、先頭トラックであり、次にデステージするトラックは、先頭トラックにデステージトラック間隔を加えたトラックである。更に、その次にデステージ対象とするトラックは、現デステージトラックに前記のデステージトラック間隔を加えたトラックである。   The first track to be destaged is the head track notified from the cache management unit 23, and the next track to be destaged is a track obtained by adding the destage track interval to the head track. The next track to be destaged is a track obtained by adding the destage track interval to the current destage track.

デバイスアダプタ22は、この動作を繰り返し、キャッシュ管理部23から通知された終了トラックアドレスを越えるまで前述の動作を繰り返す。   The device adapter 22 repeats the above operation, and repeats the above operation until the end track address notified from the cache management unit 23 is exceeded.

なお、デステージトラック間隔は、トラックの後処理、前処理が十分行える時間を確保できる分だけ、デステージ対象トラックをスキップする間隔である。従来のマルチトラックデステージでは、デステージトラック数分だけの無駄な回転待ちが発生していたが、この実施例のようにすることにより、無駄な回転待ちは発生しなくなる。   Note that the destage track interval is an interval for skipping the destage target track by an amount sufficient to secure sufficient time for post-processing and pre-processing of the track. In the conventional multi-track destaging, useless rotation waits corresponding to the number of destage tracks have occurred. However, use of this embodiment eliminates useless rotation waits.

3):デステージ動作の具体例による説明
図3はデステージ対象トラックの説明図である。
3): Description of specific example of destage operation FIG. 3 is an explanatory diagram of a destage target track.

キャッシュ管理部23は、不揮発性メモリ25上に、デステージ対象のトラックがあることを検出する。今回、対象のDASD3は、1シリンダに15ヘッド存在し、このデステージ対象トラックが、図3の様であったとする。また、対象のDASD3に対しては、3トラックの回転時間でトラックの後処理と、前処理が完了できるものとすると、連続デステージトラック間隔は4であると算出する。   The cache management unit 23 detects that the non-volatile memory 25 has a track to be destaged. In this case, it is assumed that there are 15 target DASDs 3 in one cylinder, and the destage target track is as shown in FIG. Further, if it is assumed that post-processing and pre-processing of the track can be completed with the rotation time of three tracks for the target DASD 3, the continuous destage track interval is calculated to be 4.

ここで、今回デステージ対象となるトラックは、図3中で一回目の欄に○印の記されているトラックと、二回目の欄に●印の記されているトラックである。   Here, the tracks to be destaged this time are the tracks marked with a circle in the first column and the tracks marked with a circle in the second column in FIG.

(1) :キャッシュ管理部23は、デステージトラックの検索を行い、一回目として、先頭トラック(0)=シリンダ値「0005」・ヘッド値「0000」、終了トラック(+20)=シリンダ値「0006」・ヘッド値「0005」、連続デステージトラック間隔=4として、デバイスアダプタ22にデステージを発行する。   (1): The cache management unit 23 searches for a destage track. As a first time, the first track (0) = cylinder value “0005” / head value “0000”, and the end track (+20) = cylinder value “0006” The destage is issued to the device adapter 22 with the head value “0005” and the continuous destage track interval = 4.

(2) :キャッシュ管理部23からデステージ要求を受け付けたデバイスアダプタ22は、トラック(0)であるシリンダ値「0005」・ヘッド値「0000」に対してDASD3のセレクションを行う。   (2): Upon receiving the destage request from the cache management unit 23, the device adapter 22 performs DASD3 selection for the cylinder value “0005” and the head value “0000” that are the track (0).

(3) :デバイスアダプタ22は、DASD3のセレクションが完了後、図3中の一回目の欄にある先頭トラック(0)から、順に○印の付いているトラック(+4)(+8)(+12)(+16)をデステージして、終了トラック(+20)のデステージが完了した後に、連続デステージ処理完了をキャッシュ管理部23に報告する。   (3): After the selection of the DASD 3 is completed, the device adapter 22 sequentially tracks the circles (+4), (+8), and (+12) from the first track (0) in the first column in FIG. (+16) is destaged, and after the destage of the end track (+20) is completed, the completion of the continuous destage processing is reported to the cache management unit 23.

(4) :キャッシュ管理部23は、二回目として、先頭トラック(+11)=シリンダ値「0005」・ヘッド値「000B」、終了トラック(+23)=シリンダ値「0006」・ヘッド値「0008」、連続デステージトラック間隔=4として、デバイスアダプタ22にデステージを発行する。   (4): For the second time, the cache management unit 23 determines that the first track (+11) = cylinder value “0005” / head value “000B”, the ending track (+23) = cylinder value “0006”, the head value “0008”, The destage is issued to the device adapter 22 with the continuous destage track interval = 4.

(5) :キャッシュ管理部23からデステージ要求を受け付けたデバイスアダプタ22は、トラック(+11)であるシリンダ値「0005」・ヘッド値「000B」に対してDASD3のセレクションを行う。   (5): Upon receiving the destage request from the cache management unit 23, the device adapter 22 performs DASD3 selection for the cylinder value “0005” and the head value “000B” that are the track (+11).

(6) :デバイスアダプタ22は、DASD3のセレクションが完了後、図3中の一回目の欄にある先頭トラック(+11)から、順に●印の付いているトラック(+15)(+19)をデステージして、終了トラック(+23)のデステージが完了した後に、連続デステージ処理完了をキャッシュ管理部23に報告する。   (6): After the selection of DASD3 is completed, the device adapter 22 destages the tracks (+15) and (+19) marked with ● in order from the first track (+11) in the first column in FIG. Then, after the destage of the end track (+23) is completed, the completion of the continuous destage processing is reported to the cache management unit 23.

なお、前記実施例では、連続デステージトラック間隔を4としたが、キャッシュ管理部23は、デステージ対象DASD3の種類を判断し、その対象DASD3の性能に基づき連続デステージトラック間隔を算出するものであり、通常は1トラック分をスキップする間にトラックの前処理、後処理を行える。この場合は、連続デステージトラック間隔は2となる。   In the above-described embodiment, the continuous destage track interval is set to 4, but the cache management unit 23 determines the type of the destage target DASD 3 and calculates the continuous destage track interval based on the performance of the target DASD 3. Usually, pre-processing and post-processing of a track can be performed while skipping one track. In this case, the continuous destage track interval is 2.

また、ハードデスク4等にあらかじめ連続デステージトラック数を記憶させておくことにより、FCUの初期設定により連続デステージトラック数をあらかじめ定義しておくことができる。これにより、キャッシュ管理部23は、あらかじめ定義されている連続デステージトラック数から、デステージ可能な連続トラックを抽出する。   Further, by storing the number of continuous destage tracks in the hard disk 4 or the like in advance, the number of continuous destage tracks can be defined in advance by initial setting of the FCU. Thereby, the cache management unit 23 extracts continuous tracks that can be destaged from the predefined number of continuous destage tracks.

そして、キャッシュ管理部23は、デステージ可能な連続トラックを抽出する際、前記デステージ可能な連続トラックが、あらかじめ定義されている連続デステージトラック数よりも少ない場合は、デステージを延期し、あらかじめ定義されている連続デステージトラック数よりも多い場合は、前記あらかじめ定義されている連続デステージトラック数だけデステージをデバイスアダプタ22に要求する。   Then, the cache management unit 23, when extracting continuous tracks that can be destaged, delays the destage if the number of the continuous tracks that can be destaged is smaller than a predetermined number of continuous destage tracks, If the number is larger than the predetermined number of continuous destage tracks, the device adapter 22 is requested to destage the predetermined number of continuous destage tracks.

さらに、デバイスアダプタ22は、連続デステージ処理を終了したのち、前記連続デステージによりデステージしたトラック数と、あらかじめ定義されている連続デステージトラック数を比較し、その比較値が異なる場合は、キャッシュ管理部23に対し、論理矛盾を検出したことを通知する機構を設け、また、前記比較値が等しい場合は、キャッシュ管理部23に対し、デステージが正常に終了したことを通知する機構を設ける。   Further, the device adapter 22 compares the number of tracks destaged by the continuous destage with the number of continuous destage tracks defined in advance after the end of the continuous destage processing, and when the comparison value is different, A mechanism is provided for notifying the cache management unit 23 that a logical inconsistency has been detected, and a mechanism for notifying the cache management unit 23 that destaging has been completed normally when the comparison values are equal. Provide.

〔第2実施例の説明〕
1):ファイル制御装置(FCU)の説明
図4は第2実施例におけるファイル制御装置の説明図であり、ファイル制御装置(FCU)2は、上位装置の指示によりDASD3にデータのリード/ライトを行うものであり、上位装置とはチャネルアダプタ(CA)21で接続され、DASD3のDASDアダプタ31とデバイスアダプタ(DA)で接続されている。また、このFCU2には、ハードデスク(HD)4に接続されたサービスアダプタ(SA)26が設けてある。
[Description of Second Embodiment]
1): Description 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 from / to the DASD 3 in accordance with an instruction from a host device. It is connected to a higher-level device by a channel adapter (CA) 21 and is connected to a DASD adapter 31 of DASD 3 by a device adapter (DA). Further, the FCU 2 is provided with a service adapter (SA) 26 connected to the hard disk (HD) 4.

FCU2内には、チャネルアダプタ21、デバイスアダプタ22、キャッシュ管理部23、キャッシュメモリ24、不揮発性メモリ(NVS)25が設けてある。   In the FCU 2, a channel adapter 21, a device adapter 22, a cache management unit 23, a cache memory 24, and a non-volatile memory (NVS) 25 are provided.

チャネルアダプタ21は、複数個設けてあり、主として上位装置のチャネルとのインタフェースを司り、デバイスアダプタ22は、DASD3とのインタフェースを制御するものである。キャッシュ管理部23は、キャッシュメモリ24に登録されているトラック等の管理を行うものであり、その記憶部に不良交代情報テーブル27を格納する場所が設けてある。   A plurality of channel adapters 21 are provided, mainly controlling an interface with a channel of a higher-level device, and a device adapter 22 controls an interface with the DASD 3. The cache management section 23 manages tracks and the like registered in the cache memory 24, and has a storage section provided with a place for storing the defect replacement information table 27.

キャッシュメモリ24は、DASD3上の命令及びデータの内後で使われる可能性の高いものの写しを保持するバッファ記憶装置である。不揮発性メモリ25は、バッテリバックアップされ、電源断時においてもデータが、喪失しないものである。   The cache memory 24 is a buffer storage device that holds a copy of commands and data on the DASD 3 which are likely to be used later. The nonvolatile memory 25 is backed up by a battery so that data is not lost even when the power is turned off.

サービスアダプタ26は、ハードデスク4からの情報により、ファイル制御装置の初期設定、ファイル装置のエラー情報の履歴の管理等を行うものである。DASD3は、ディスク装置、光ディスク装置等の複数のデバイスからなる記憶装置である。DASDアダプタ31は、FCU2とのインタフェースを司るものである。   The service adapter 26 performs initial setting of the file control device, management of the history of error information of the file device, and the like based on information from the hard disk 4. The DASD 3 is a storage device including a plurality of devices such as a disk device and an optical disk device. The DASD adapter 31 controls an interface with the FCU 2.

2):不良交代情報テーブルの説明
図5は不良交代情報テーブルの説明図であり、図5(a)は不良交代情報テーブルの説明、図5(b)は不良交代情報の1セット分の説明である。
2): Description of defective replacement information table FIG. 5 is an explanatory diagram of the defective replacement information table. FIG. 5A illustrates the defective replacement information table, and FIG. 5B illustrates one set of the defective replacement information. It is.

図5(a)において、この例では1デバイス当たり不良交代情報は、左端のセット番号0〜44のように最大45トラック数分まで格納できる。この不良交代情報の1セット分には不良側、交代側それぞれ4バイト分の格納部がある。また、不良交代情報テーブル27には、接続できる最大のデバイスの数分(この例では256デバイス)の格納部が設けてある。   In FIG. 5A, in this example, defective replacement information per device can be stored up to a maximum of 45 tracks, such as set numbers 0 to 44 at the left end. One set of the defective replacement information has a storage unit for 4 bytes on each of the defective side and the replacement side. Further, the defective replacement information table 27 is provided with storage units for the maximum number of connectable devices (256 devices in this example).

図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. The defective side is provided with storage units for cylinder values, head values, and information, and the replacement side is provided with storage units for cylinder values, head values, and device values (device numbers). In the storage of this information, for example, if “40” is stored, it indicates that the replacement side is valid. If “20”, it indicates that the defective side is valid. For example, this indicates that both the defective side and the replacement side are valid, that is, the link has been established.

3):付加情報を含むホームアドレスのリード命令(Diag Read HA Command)の説明
この実施例では、ファイル制御装置(FCU)2内の不良交代情報テーブル27に、配下の全てのDASD3の不良交代情報を格納しておく。この不良交代情報は、ホームアドレスをライト(Write HA)又は付加情報を含むホームアドレスのライト(Diag Write HA)の処理時に作成更新される。
3): Description of Home Address Read Instruction (Diag Read HA Command) including Additional Information In this embodiment, the defect replacement information table 27 in the file control unit (FCU) 2 has the defect replacement information of all DASDs 3 under its control. Is stored. This defective replacement information is created and updated at the time of processing of writing the home address (Write HA) or writing of the home address including additional information (Diag Write HA).

付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で転送するデータはフラグ(Flag)、トラックアドレス(Track Address)、傷情報、セル(Cell)値、物理トラックアドレスである。   The data transferred by the home address read command (Dialog Read HA Command) including the additional information includes a flag (Flag), a track address (Track Address), flaw information, a cell (Cell) value, and a physical track address.

この実施例では、FCU2内にトラックの不良交代情報が格納されているので、ホームアドレスHA部のフラグ情報はFCU2が作成することができる。トラックアドレスと物理トラックアドレスは、トラックの物理位置であるから、シーク(Seek)値と一致するはずであり、これはFCU2内で作成できる。   In this embodiment, since the defective replacement information of the track is stored in the FCU 2, the flag information of the home address HA section can be created by the FCU 2. Since the track address and the physical track address are physical positions of the track, they should match the seek value, which can be created in the FCU 2.

傷情報は、RAID技術を用いるアレイディスクを考えた場合には、傷をゼロとした標準値で問題はない。セル値は、インデックスからの距離を示すものでありトラックに傷がない場合は固定値となる。   When an array disk using the RAID technology is considered, the scratch information is a standard value with no scratches, and there is no problem. The cell value indicates the distance from the index, and is a fixed value when there is no scratch on the track.

ホームアドレスのリード命令(Read HA Command)で転送するデータは、フラグとトラックアドレスであり、付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で必要とされる情報の一部であるので、やはり、FCU2内で作成できる。   The data transferred by the home address read instruction (Read HA Command) is a flag and a track address, and is part of the information required by the home address read instruction (Diag Read HA Command) including additional information. Again, it can be created in FCU2.

このように、FCU2内に不良交代情報を格納しておくことにより、Read HA Command及びDiag Read HA Commandに対しては、常に実DASD3へのアクセス無しに、或いは、キャッシュメモリからのデータ読み込み無しに、対象情報を送出できる。   By storing the defect replacement information in the FCU 2 in this way, the Read HA Command and the Diag Read HA Command are always accessed without accessing the real DASD 3 or without reading data from the cache memory. , Target information can be transmitted.

4):ファイル制御装置(FCU)の動作説明
以下、FCU2の動作を説明する。
4): Description of Operation of File Control Unit (FCU) The operation of the FCU 2 will be described below.

(1) :FCU2(キャッシュ管理部23)は、FCU2の電源の投入時、或いはリセット時に、配下の全てのDASD3の不良トラック領域を読み出し、各トラックのホームアドレスHA部に格納されているフラグによって、不良交代リンクが作成されているかどうかを判断し、その結果をFCU2内のメモリ(記憶部)に不良交代情報テーブル27として格納しておく。   (1): When the power of the FCU 2 is turned on or reset, the FCU 2 (cache management unit 23) reads the defective track areas of all the subordinate DASDs 3 and reads the defective track area according to the flag stored in the home address HA section of each track. It is determined whether or not a defective replacement link has been created, and the result is stored as a defective replacement information table 27 in a memory (storage unit) in the FCU 2.

(2) :DASD3のアクセスに関して、リード命令を発行するには、あらかじめ対象のトラックを特定するシーク命令を発行しておかねばならない。このため、FCU2はリード命令に先立って上位装置のチャネルから発行されるシーク命令から、対象のトラックアドレスを認識できる。   (2): In order to issue a read instruction for DASD3 access, a seek instruction for specifying a target track must be issued in advance. Therefore, the FCU 2 can recognize the target track address from the seek command issued from the channel of the higher-level device prior to the read command.

(3) :FCU2は、上位装置のチャネルから、配下のDASD3のホームアドレスのリード命令(Read HA Command)を受領した場合、不良交代情報テーブル27が有効か否かを判断する。   (3): When the FCU 2 receives a read instruction (Read HA Command) for the home address of the subordinate DASD 3 from the channel of the higher-level device, the FCU 2 determines whether the defective replacement information table 27 is valid.

(4) :もし、この判断の結果、不良交代情報テーブル27が無効の場合(例えば、DASD3のホームアドレスHA部からの不良トラック情報読み込み失敗等)は、FCU2は対象のホームアドレスHAのフラグ情報を確認できないので、通常通り、キャッシュメモリ24上にデータが存在すれば前記キャッシュメモリ24から、存在しなければDASD3から読み込み、通常のリード動作を行う。   (4): If the result of this determination indicates that the defective replacement information table 27 is invalid (for example, failure to read the defective track information from the home address HA of the DASD 3), the FCU 2 stores the flag information of the target home address HA. Since data cannot be confirmed, the data is read from the cache memory 24 if the data exists in the cache memory 24, and from the DASD 3 if the data does not exist, and the normal read operation is performed.

(5) :もし、前記判断の結果、不良交代情報テーブル27が有効の場合は、前記不良交代情報テーブル27内の不良交代リンク情報を参照し、対象トラックに不良交代リンクが作成されているか否かを判断する(不良トラックか、交代トラックか、正常トラックかの判断をする)。   (5): If the result of the determination indicates that 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 in the target track. (Determine whether the track is a defective track, a replacement track, or a normal track).

(6) :もし、不良交代リンクが作成されている場合、ホームアドレスHA部のフラグ領域に該当するビットをセットする。また、このホームアドレスHA部のトラックアドレスであるシリンダ・ヘッド値は、物理シリンダ・ヘッド値と常に一致するので、既にシーク命令により特定された値をセットすることで、キャッシュメモリを使用せずに、適切な値を応答できる。   (6): If a defective replacement link has been created, the corresponding bit is set in the flag area of the home address HA section. Further, since the cylinder head value which is the track address of the home address HA section always coincides with the physical cylinder head value, by setting the value already specified by the seek instruction, the cache memory can be used without using the cache memory. , Can respond with appropriate value.

(7) :FCU2が、付加情報を含むホームアドレスのリード命令(Diag Read HA Command)で、転送しなければならないデータは、前述のホームアドレスのリード命令(Read HA Command)で転送するデータに、トラックの傷情報と、セル値を付加したものである。しかし、アレイディスクを用いるFCU(COF技術を用いるFCU)2では、傷情報は常に標準値に特定できるので、これらの情報はFCU2内部で作成できる。このため、Diag Read HA Commandに対しても、FCU2は適切な値を転送できる。   (7): The data to be transferred by the FCU 2 with the read instruction of the home address including the additional information (Diag Read HA Command) is converted into the data transferred by the read command of the home address (Read HA Command) described above. It is obtained by adding the scratch information of the track and the cell value. However, in the FCU 2 using an array disk (FCU using COF technology), the flaw information can always be specified to a standard value, so that such information can be created inside the FCU 2. Therefore, the FCU 2 can also transfer an appropriate value to the Diag Read HA Command.

図6はRead HA Commandに対する処理フローチャートである。以下、図6の処理S1〜S5に従って説明する。   FIG. 6 is a processing flowchart for the Read HA Command. Hereinafter, description will be made in accordance with the processes S1 to S5 of FIG.

S1:FCU2は、上位装置から、配下のDASD3のRead HA Commandを受領した場合、不良交代情報テーブル27が有効か否かを判断し、この不良交代情報テーブル27が有効の場合は、不良交代情報テーブル27の不良交代リンク情報を参照し、対象トラックが不良交代トラックか否かを判断する。この判断で対象トラックが不良交代トラックの場合は処理S2に移り、もし、不良交代トラックでない場合は処理S5に移る(尚、前記不良交代情報テーブル27が無効の場合は、キャッシュメモリ24又はDASD3から読み込む、通常のリード動作を行う。)。   S1: The FCU 2 determines whether the defective replacement information table 27 is valid when receiving the Read HA Command of the subordinate DASD 3 from the higher-level device, and determines whether the defective replacement information table 27 is valid when the defective replacement information table 27 is valid. Referring to the defective replacement link information in the table 27, it is determined whether or not the target track is a defective replacement track. If the target track is a defective replacement track, the process proceeds to step S2. If the target track is not a defective replacement track, the process proceeds to step S5. (If the defective replacement information table 27 is invalid, the cache memory 24 or DASD 3 Read and perform normal read operation.)

S2:FCU2は、対象トラックが不良トラックか否かを判断する。この判断で対象トラックが不良トラックの場合は、処理S3に移り、もし、不良トラックでない場合は、処理S4に移る。   S2: The FCU 2 determines whether the target track is a defective track. If the target track is a defective track, the process proceeds to step S3. If the target track is not a defective track, the process proceeds to step S4.

S3:FCU2は、対象トラックのホームアドレスHA部のフラグ領域に不良トラック情報をセットし、処理S5に移る。   S3: The FCU 2 sets the bad track information in the flag area of the home address HA section of the target track, and proceeds to processing S5.

S4:FCU2は、対象トラックのホームアドレスHA部のフラグ領域に交代トラック情報をセットし、処理S5に移る。   S4: The FCU 2 sets the replacement track information in the flag area of the home address HA section of the target track, and proceeds to processing S5.

S5:FCU2は、フラグ領域にセットした不良交代情報とトラックアドレスであるシリンダ・ヘッド値を上位装置に通知してこの処理を終了する。   S5: The FCU 2 notifies the upper-level device of the defective replacement information set in the flag area and the cylinder head value as the track address, and ends this processing.

本発明の原理説明図である。FIG. 2 is a diagram illustrating the principle of the present invention. 第1実施例におけるファイル制御装置の説明図である。FIG. 3 is an explanatory diagram of a file control device according to the first embodiment. 第1実施例におけるデステージ対象トラックの説明図である。FIG. 4 is an explanatory diagram of a destage target track in the first embodiment. 第2実施例におけるファイル制御装置の説明図である。FIG. 11 is an explanatory diagram of a file control device according to a second embodiment. 第2実施例における不良交代情報テーブルの説明図である。FIG. 14 is an explanatory diagram of a defective replacement information table according to the second embodiment. 第2実施例におけるRead HA Commandに対する処理フローチャートである。It is a processing flowchart for Read HA Command in the second embodiment. 従来例の説明図である。It is explanatory drawing of a conventional example.

符号の説明Explanation of reference numerals

1 上位装置
2 ファイル制御装置(FCU)
3 直接アクセス記憶装置(DASD)
20 メモリ部
21 チャネルアダプタ(CA)
22 デバイスアダプタ(DA)
23 キャッシュ管理部(CFE)
24 キャッシュメモリ
25 不揮発性メモリ(NVS)
27 不良交代情報テーブル
1 Upper device 2 File control unit (FCU)
3 Direct access storage device (DASD)
20 Memory unit 21 Channel adapter (CA)
22 Device Adapter (DA)
23 Cache Management Unit (CFE)
24 Cache memory 25 Non-volatile memory (NVS)
27 Bad replacement information table

Claims (4)

直接アクセス記憶装置を制御するキャッシュメモリを持つファイル制御装置において、
該ファイル制御装置の記憶部に不良交代情報テーブルの格納部を設け、
電源の投入時、或いはリセット時に、配下の全ての前記直接アクセス記憶装置の不良トラック領域を読み出し、各トラックのホームアドレス部に格納されているフラグによって、不良交代リンクが作成されているかを判断し、その結果を前記記憶部に不良交代情報テーブルとして格納し、
ホームアドレスのリード命令を受領した場合、前記不良交代情報テーブルが有効かどうかを判断することを特徴としたファイル制御装置。
In a file control device having a cache memory for controlling a direct access storage device,
A storage unit for the defective replacement information table is provided in a storage unit of the file control device,
At power-on or at reset, read the defective track areas of all the subordinate direct access storage devices, and determine whether a defective replacement link has been created by the flag stored in the home address section of each track, The result is stored in the storage unit as a defective replacement information table,
A file control device which, when receiving a home address read command, determines whether the defective replacement information table is valid.
前記判断の結果、
前記不良交代情報テーブルが無効の場合は、対象のホームアドレスが、前記キャッシュメモリ上に存在すれば前記キャッシュメモリから、存在しなければ前記直接アクセス記憶装置から読み出して情報を転送し、
前記不良交代情報テーブルが有効の場合は、前記不良交代情報テーブル内の不良交代リンク情報を参照し、前記受領したホームアドレスのリード命令に対する応答の一部であるフラグ情報を確定することを特徴とした請求項1記載のファイル制御装置。
As a result of the judgment,
If the defective replacement information table is invalid, the target home address, if present in the cache memory, from the cache memory, if not, read from the direct access storage device and transfer the information,
When the defective replacement information table is valid, referring to the defective replacement link information in the defective replacement information table, flag information that is a part of a response to the read command of the received home address is determined. 2. The file control device according to claim 1, wherein:
前記確定したフラグ情報と、
既に受領しているシークアドレスを使用した、ホームアドレスのリード命令に対する応答の一部であるトラックアドレスとから、ホームアドレスのリード命令に対する完全な応答情報を作成することを特徴とした請求項2記載のファイル制御装置。
The determined flag information;
3. A complete response information to a home address read command is created from a track address which is a part of a response to a home address read command using a previously received seek address. File control unit.
前記直接アクセス記憶装置が固定長方式のアレイディスクであり、前記ファイル制御装置が該アレイディスクで可変長方式をエミュレートしている場合、
付加情報を含むホームアドレスのリード命令に対する応答の一部であるトラックの傷情報を標準値に確定し、
該傷情報と前記フラグ情報と前記トラックアドレスとから、完全な付加情報を含むホームアドレスのリード命令に対する応答情報を作成することを特徴とした請求項3記載のファイル制御装置。
When the direct access storage device is a fixed-length array disk, and the file control device is emulating a variable-length system with the array disk,
Determine the scratch information of the track which is a part of the response to the read command of the home address including the additional information to the standard value,
4. The file control device according to claim 3, wherein response information to a read instruction of a home address including complete additional information is created from the flaw information, the flag information, and the track address.
JP2004000312A 2004-01-05 2004-01-05 File control unit Expired - Fee Related JP4131953B2 (en)

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 true JP2004158029A (en) 2004-06-03
JP4131953B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252239A (en) * 2005-03-11 2006-09-21 Fujitsu Ltd File control unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252239A (en) * 2005-03-11 2006-09-21 Fujitsu Ltd File control unit

Also Published As

Publication number Publication date
JP4131953B2 (en) 2008-08-13

Similar Documents

Publication Publication Date Title
JP4372134B2 (en) Storage system with data comparison function
US7421535B2 (en) Method for demoting tracks from cache
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
US6523087B2 (en) Utilizing parity caching and parity logging while closing the RAID5 write hole
US8051367B2 (en) Storage sub-system and method for controlling the same
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
US7831764B2 (en) Storage system having plural flash memory drives and method for controlling data storage
US7464322B2 (en) System and method for detecting write errors in a storage device
US7590884B2 (en) Storage system, storage control device, and storage control method detecting read error response and performing retry read access to determine whether response includes an error or is valid
JP4114877B2 (en) Apparatus, method, and program for detecting illegal data
US8938641B2 (en) Method and apparatus for synchronizing storage volumes
US9323630B2 (en) Enhanced data recovery from data storage devices
JP2007035217A (en) Data storage processing method for disk storage device and disk storage system
JP2006072435A (en) Storage system and data recording method
US8041850B2 (en) Storage apparatus and data integrity assurance method
JP2004213470A (en) Disk array device, and data writing method for disk array device
JP2005284816A (en) Disk array system
JP2010026812A (en) Magnetic disk device
JP3615274B2 (en) File control unit
JP4131953B2 (en) File control unit
JP3573599B2 (en) Data recovery method for disk array
US10379972B1 (en) Minimizing reads for reallocated sectors
JP2005004733A (en) Arrangement and method of disposition for detecting write error in storage system
JP2004355040A (en) Disk controller and data pre-reading method

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20060919

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20060926

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061127

A131 Notification of reasons for refusal

Effective date: 20070410

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Effective date: 20070608

Free format text: JAPANESE INTERMEDIATE CODE: A523

A131 Notification of reasons for refusal

Effective date: 20080122

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080324

RD03 Notification of appointment of power of attorney

Effective date: 20080324

Free format text: JAPANESE INTERMEDIATE CODE: A7423

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 (prs date is renewal date of database)

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20110606

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120606

Year of fee payment: 4

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

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20120606

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

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20130606

LAPS Cancellation because of no payment of annual fees