JP3419475B2 - Magnetic disk drive - Google Patents
Magnetic disk driveInfo
- Publication number
- JP3419475B2 JP3419475B2 JP17123392A JP17123392A JP3419475B2 JP 3419475 B2 JP3419475 B2 JP 3419475B2 JP 17123392 A JP17123392 A JP 17123392A JP 17123392 A JP17123392 A JP 17123392A JP 3419475 B2 JP3419475 B2 JP 3419475B2
- Authority
- JP
- Japan
- Prior art keywords
- record
- data
- track
- block
- ckd
- 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 - Lifetime
Links
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明はFBAのディスク装置に
よってCKDのディスク装置を、エミュレーションする
ことに係り、特にCKDの特徴であるランダムアクセス
を行うに好適な磁気ディスク装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to emulation of a CKD disk device by an FBA disk device, and more particularly to a magnetic disk device suitable for random access, which is a characteristic of CKD.
【0002】[0002]
【従来の技術】CKDトラックおよびFBAトラックに
ついて説明する。CKDトラックは図3の様になってい
る。インデックスマーカ11はトラックに1つ存在し、
トラックの始まりを認識させる為のものである。ホーム
アドレス(以下「HA」と略称する。)12は各トラッ
クの最初のフィールドであり、そのトラックの状態及び
トラック番号を示す。HA12以降にレコード0〜nが
存在する。各レコードはカウント部(以下「C部」と略
称する。)、キー部(以下「K部」と略称する。)、デ
ータ部(以下「D部」と略称する。)より構成される。
C部13,15は各レコードの最初のフィールドであ
り、そのレコードの状態、位置、及び長さを示す。K部
16は後続のD部の手引となる情報を記録し、D部の探
索等に使用するフィールドである。C部でキー長=1〜
255が指定されているとき存在し、キー長=0のとき
K部は存在しない。D部14,17は純粋のデータを記
録するフィールドである。C部のデータ長が示す値がD
部の長さであり、データ長=0のときエンドオブファイ
ルを表す。HA,C部,K部,D部の間にはそれぞれを
分けるギャップ(以下「G」と略称する。)が存在す
る。レコード0(以下「R0」と略称する。)はHA直
後のレコードであり、システム制御用に使用される標準
フォーマット時はキー長=0,データ長=8である。レ
コード1〜nはユーザが実際に使用できる領域である。2. Description of the Related Art CKD tracks and FBA tracks will be described. The CKD track is shown in Fig. 3. There is one index marker 11 on the track,
The purpose is to recognize the beginning of the track. The home address (hereinafter abbreviated as "HA") 12 is the first field of each track and indicates the state and track number of that track. Records 0 to n exist after HA12. Each record includes a count part (hereinafter abbreviated as “C part”), a key part (hereinafter abbreviated as “K part”), and a data part (hereinafter abbreviated as “D part”).
The C parts 13 and 15 are the first field of each record and indicate the state, position, and length of the record. The K portion 16 is a field for recording information that serves as a guide for the subsequent D portion and used for searching the D portion and the like. Key length = 1 to C
It exists when 255 is specified, and when the key length = 0, the K part does not exist. The D sections 14 and 17 are fields for recording pure data. The value indicated by the data length of part C is D
It is the length of the part, and when the data length = 0, it represents the end of file. There is a gap (hereinafter abbreviated as “G”) separating the HA, C portion, K portion, and D portion. Record 0 (hereinafter abbreviated as "R0") is a record immediately after HA, and has a key length = 0 and a data length = 8 in the standard format used for system control. Records 1 to n are areas that the user can actually use.
【0003】次に、FBAトラックについて説明する。
FBAトラックは図2の様になっている。トラックはイ
ンデックスマーカ21と一定長のブロックにより構成さ
れている。各ブロックはID部22,24とデータ部2
3,25、及びギャップより構成されている。ID部
(位置識別情報部)22,24は当該ブロック番号等を
記録する。データ部23,25は純粋なデータを記録す
る。データ部23,25の長さは全ブロック共通であ
り、例えば512バイトと設定されている。Next, the FBA track will be described.
The FBA track is shown in Figure 2. The track is composed of an index marker 21 and a block of a fixed length. Each block has an ID section 22, 24 and a data section 2
3, 25, and a gap. The ID parts (position identification information parts) 22 and 24 record the block numbers and the like. The data sections 23 and 25 record pure data. The lengths of the data parts 23 and 25 are common to all blocks and are set to 512 bytes, for example.
【0004】CKDのデータをFBAへ書き込む従来技
術は、特開昭60−45857号公報で述べられてい
る。これは、CKDのデータをただFBAドライブへ順
番に書き込むのみである。上記はバックアップ用にデー
タを保持する為で、このデータを用いて上位チャネル装
置とのデータ転送を行うこと目的としていない。又、上
記方法で記憶したデータでCKDとしての処理を行うこ
とはCKD方式と比較してオーバヘッドが大きく性能低
下を招く。即ち、制御装置内のキャッシュ又はバッファ
に1トラック分のデータを読み込んだ後、CKDフォー
マットに変換して、上位装置とデータ転送することにあ
り、常に1トラックのデータ転送時間がオーバヘッドと
なる。A conventional technique for writing CKD data to FBA is described in Japanese Patent Laid-Open No. 60-45857. This simply writes the CKD data to the FBA drive in order. The above is for holding the data for backup, and is not intended to transfer the data with the upper channel device using this data. Further, performing the processing as CKD with the data stored by the above method causes a large overhead as compared with the CKD method, resulting in deterioration in performance. That is, the data for one track is read into the cache or the buffer in the control device, then converted into the CKD format, and the data is transferred to the host device, and the data transfer time for one track is always an overhead.
【0005】[0005]
【発明が解決しようとする課題】前記従来技術では、C
KDのデータをただFBAドライブへ順番に書き込むの
みであり、当該データを有する目的レコードの検索を短
時間に行なうことが難しく、CKDとしての処理を当該
ドライブで行うのはランダムアクセスの動作に於いて、
特に性能低下が大きい。In the above conventional technique, C
Since the data of KD is simply written to the FBA drive in order, it is difficult to search the target record having the data in a short time, and the process of CKD is performed by the drive in the random access operation. ,
Especially, the performance is significantly degraded.
【0006】本発明は、CKDのデータを記憶したFB
Aドライブを用いて、検索処理を短時間に行うことを目
的としている。The present invention relates to an FB that stores CKD data.
The purpose is to perform the search process in a short time by using the A drive.
【0007】[0007]
【課題を解決するための手段】本発明は、上記課題を解
決するために、各トラックが一定の長さのブロックに分
割された固定長フォーマット(FBA)の磁気ディスク
装置において、各トラックが任意の長さのレコードに分
割された可変長フォーマット(CKD)の磁気ディスク
装置をエミュレートする時に、各ブロックは、当該ブロ
ック以降において、CKDのレコードが存在するかどう
かを示す情報を有することとしたものである。According to the present invention, in order to solve the above problems, in a fixed length format (FBA) magnetic disk drive in which each track is divided into blocks of a fixed length, each track is arbitrary. When emulating a variable-length format (CKD) magnetic disk device that is divided into records each having the same length, each block has information indicating whether or not there is a CKD record after the block. It is a thing.
【0008】[0008]
【作用】各トラックが一定の長さのブロックに分割され
た固定長フォーマット(FBA)の磁気ディスク装置に
おいて、各トラックが任意の長さのレコードに分割され
た可変長フォーマット(CKD)の磁気ディスク装置を
エミュレートする時に、各ブロックは、当該ブロック以
降において、CKDのレコードが存在するかどうかを示
す情報を有する。このため、CKDのレコードを高速で
検索することができる。In a fixed length format (FBA) magnetic disk drive in which each track is divided into blocks of a fixed length, a variable length format (CKD) magnetic disk in which each track is divided into records of an arbitrary length. When emulating the device, each block has information indicating whether or not there is a CKD record after the block. Therefore, the CKD record can be searched at high speed.
【0009】[0009]
【実施例】本発明の実施例について、図面を用いて以下
詳細に説明する。Embodiments of the present invention will be described in detail below with reference to the drawings.
【0010】本磁気ディスク装置を用いたシステムを図
8に示す。上位装置は中央処理装置181とチャネル装
置182より構成されている。制御装置90にはキャッ
シュメモリ(以下「キャッシュ」と略称する。)91を
搭載する。最下位にディスク装置92が存在する。ディ
スク装置はFBAで図3の様なデータの記憶を行う。
又、キャッシュ91にはバッテリー93が搭載されてお
り、電源OFF後もキャッシュ91は以前のデータを記
憶しつづける。制御装置90は転送データをキャッシュ
91に一旦保持し、チャネル装置182、又はディスク
装置92に送る。FIG. 8 shows a system using this magnetic disk device. The host device comprises a central processing unit 181 and a channel device 182. A cache memory (hereinafter abbreviated as “cache”) 91 is installed in the control device 90. The disk device 92 exists at the lowest level. The disk device uses FBA to store data as shown in FIG.
Further, the cache 91 is equipped with a battery 93, and the cache 91 continues to store the previous data even after the power is turned off. The control device 90 temporarily holds the transfer data in the cache 91 and sends it to the channel device 182 or the disk device 92.
【0011】次に、エミュレーションの方法について説
明する。FBA上でCKDをエミュレーションした場合
を図1に示す。図1上段のCKDデータを下段のFBA
へ記録する時、各ブロックの先頭には、次のC部の位置
を示すデータ(以下「CP」と略称する。)を書き込
み、次にレコードを記録する。レコードは、C部,K
部,D部を連続して記録し、つづいてフィールド間のG
を書き込む。これによりC部A33はCA42へ、K部
A34はKA43へ、D部A35はDA44へ、GA3
8〜GC40の合計がGA’45とGB’46の合計
へ、という様に対応する。この時、CPA49はCA4
2の位置を示し、CPB50はCB47の位置を示して
いる。GもFBA上に反映させている為、CKD上のレ
コードの長さと、FBA上でレコードに対応する部分の
長さが同一となる。Next, the emulation method will be described. The case where CKD is emulated on FBA is shown in FIG. Figure 1 CKD data in the upper row is the FBA in the lower row
At the time of recording, the data indicating the position of the next C portion (hereinafter abbreviated as “CP”) is written at the beginning of each block, and then the record is recorded. Records are part C, K
Section and D section are recorded continuously, and then G between fields is recorded.
Write. As a result, C section A33 goes to CA42, K section A34 goes to KA43, D section A35 goes to DA44, and GA3 goes to
8~GC40 total to the sum of the GA '45 and GB' 46 of, to respond like that. At this time, CPA49 is CA4
2 shows the position, and CPB50 shows the position of CB47. Since G is also reflected on the FBA, the length of the record on the CKD and the length of the portion corresponding to the record on the FBA are the same.
【0012】又、レコード1はレコード0が標準フォー
マットであればCKD1トラックに対応するブロック群
の先頭より記録させる。通常レコード0は標準フォーマ
ットであり、HAと合わせて数トラック又は数シリンダ
分を1ブロックに記録する。容量的にはCKD1トラッ
クに対しFBAnブロック(仮りに1トラック60Kバ
イト、1ブロック2Kバイトとすると30ブロック)を
割り当ててエミュレーションを行い、これによりFBA
nブロックが論理的なCKD1トラックとなる。If record 0 is a standard format, record 1 is recorded from the beginning of the block group corresponding to the CKD1 track. The normal record 0 has a standard format, and several tracks or several cylinders are recorded in one block together with HA. In terms of capacity, emulation is performed by allocating an FBAn block (30 Kbytes for one track of 60 Kbytes and one block of 2 Kbytes) to one CKD track.
The n block becomes a logical CKD1 track.
【0013】具体例を図10に示す。CKDドライブの
1例として、シリンダ当たりのヘッド数を15本とし1
トラック30ブロックを適用すると、CKDフォーマッ
トの1シリンダ当たり450ブロック(0〜449)と
なる。ビットマップはレコード0が標準フォーマットで
あることを示すもので、1ビットが1トラックに対応し
ており、FBAドライブのシリンダ0、ヘッド14の後
端に書き込み、つづくシリンダ1、ヘッド0の先頭より
HA,レコード0を数トラック、又は数シリンダ分まと
めたものを書き込む。HA,レコード0を記憶する領域
としてシリンダ2の後端迄用意するが、CKDドライブ
のトラック数によって当該シリンダの後端迄使用すると
は限らない。シリンダ3よりユーザデータ(CKDトラ
ックのレコード1以降)を記憶する。記憶位置の選定理
由は以下の通りである。HA,レコード0を記憶するト
ラックの先頭と、ユーザデータを記憶するトラックの先
頭はシリンダの先頭(ヘッド0)の方が位置付けが容易
である。SEEK処理において、補正が簡単なためであ
る。又、後で述べるがビットマップはキャッシュ内に常
駐させ、HA,レコード0はユーザデータとは異なる位
置に記憶させる為、上記2つは一括して読み出せると処
理が容易となる。よってビットマップはシリンダ0の後
端に記録し、HA,レコード0を記憶するトラックとの
連続性を持たせる。シリンダ0の未使用部分は制御用の
予備とすることにより多目的な使用を可能とする。A concrete example is shown in FIG. As an example of a CKD drive, the number of heads per cylinder is 15
When 30 blocks of tracks are applied, there are 450 blocks (0 to 449) per cylinder of CKD format. The bit map indicates that record 0 is a standard format. One bit corresponds to one track, and it is written at the rear end of cylinder 0 and head 14 of the FBA drive, and from the beginning of the following cylinder 1 and head 0. Write HA and record 0 for several tracks or for several cylinders. Although the area up to the rear end of the cylinder 2 is prepared as an area for storing HA and record 0, it is not always used up to the rear end of the cylinder depending on the number of tracks of the CKD drive. User data (record 1 and later of the CKD track) is stored from the cylinder 3. The reason for selecting the storage location is as follows. The head of the track storing HA and record 0 and the head of the track storing user data are easier to locate at the head of the cylinder (head 0). This is because the correction is easy in the SEEK process. Further, as will be described later, since the bitmap is made resident in the cache and the HA and the record 0 are stored at a position different from the user data, if the above two can be read collectively, the processing becomes easy. Therefore, the bit map is recorded at the rear end of the cylinder 0 so as to have continuity with the track for storing HA and record 0. The unused portion of the cylinder 0 can be used for multiple purposes by providing a spare for control.
【0014】次に、CKDにおける上位装置からの命令
(以下「コマンド」と略称する。)について説明する。
通常図4に示すコマンドが発行される。SEEKコマン
ド60(以下「SK」と略称する。)はシリンダ番号、
ヘッド番号を送出して一つのトラックを選択する為に使
用される。SET SECTORコマンド61(以下
「SS」と略称する。)はセクター番号を送りヘッドを
目的のセクターへ位置付ける為に使用される。ディスク
の各シリンダにおけるトラックは等しいスペースを持っ
た扇形状に分割されており、その1つ1つがセクターで
ある。SEARCH IDコマンド62(以下「SC
H」と略称する。)は目的のレコードへヘッドを位置付
ける為に使用され、送られたデータとディスク上より読
み出したC部のデータを比較する。TICコマンド63
は先のSCH62でデータの一致がとれるまでSCH6
2をくり返す為の命令である。目的のレコードに位置付
けた後にREAD又はWRITEコマンド64が発行さ
れる。Next, an instruction (hereinafter, abbreviated as "command") from a host device in CKD will be described.
Normally, the command shown in FIG. 4 is issued. The SEEK command 60 (hereinafter abbreviated as "SK") is the cylinder number,
It is used to send the head number and select one track. The SET SECTOR command 61 (hereinafter abbreviated as "SS") is used to position the sector number to the target sector. The tracks in each cylinder of the disk are divided into fan shapes with equal spaces, and each sector is a sector. SEARCH ID command 62 (hereinafter "SC
It is abbreviated as "H". ) Is used for positioning the head to the target record, and compares the sent data with the data of the C section read from the disk. TIC command 63
SCH6 until the data match on the previous SCH62
It is an instruction to repeat 2. A READ or WRITE command 64 is issued after positioning to the target record.
【0015】次にエミュレーション後に前記コマンドを
受けとった時の動作を説明する。SK60時、当該トラ
ックに対応するブロックを求めることは容易に可能であ
る。SS61時、セクター番号をブロック番号に変換す
る必要がある。CKDトラックのセクター数をα、FB
Aのトラック内で使用するブロック数をβ又、トラック
の先頭ブロックを0とし、上位装置より送られたデータ
のセクタ番号をγとすると数1により目的ブロック番号
を求めることができる。Next, the operation when the above command is received after emulation will be described. At the time of SK60, it is possible to easily obtain the block corresponding to the track. At SS61, it is necessary to convert the sector number into a block number. The number of sectors on the CKD track is α, FB
If the number of blocks used in the A track is β, the head block of the track is 0, and the sector number of the data sent from the higher-level device is γ, the target block number can be obtained from equation 1.
【0016】[0016]
【数1】 [Equation 1]
【0017】次にSCH62、TIC63で目的のレコ
ードへの位置付けを行う。図5の様なブロックのC部n
71を検索する場合、制御装置に当該ブロックより送ら
れるCP70がC部n71の位置を示している(例えば
自分から何バイト後か)ので制御装置はC部n71の認
識、比較が容易に行える。又、C部n+1(72)を検
索する場合でもC部n71のキー長、データ長によりC
部n+1(72)の位置を計算により容易に求めること
ができる。もしCPが無い場合、制御装置は何かの手段
でC部を認識する必要がある。たとえば、当該トラック
の先頭より順次認識していく。以上によりSCH動作を
CKDとほぼ同時間で行うことが可能となる。Next, the SCH 62 and the TIC 63 locate the target record. C part n of the block as shown in FIG.
When searching 71, the CP 70 sent from the block to the control device indicates the position of the C part n71 (for example, how many bytes after itself), so the control device can easily recognize and compare the C part n71. Further, even when searching the C part n + 1 (72), the C length is determined by the key length and the data length of the C part n71.
The position of the part n + 1 (72) can be easily calculated. If there is no CP, the controller needs to recognize part C by some means. For example, the tracks are sequentially recognized from the beginning. As described above, the SCH operation can be performed in almost the same time as CKD.
【0018】又、本ブロック以降にレコードが存在しな
い場合、CPにはその事を示す情報(例えばゼロパター
ン)を記録するのでインデックスマーカ迄の間、上位装
置とのパスを解放することができ無駄な回転待ちを回避
することができる。If no record exists after this block, information indicating that (eg, a zero pattern) is recorded in the CP, so that the path with the host device can be released until the index marker, which is a waste. It is possible to avoid waiting for a proper rotation.
【0019】SCH処理もREAD処理も同様である
が、ブロックにCPを持たない場合C部相当のデータの
認識をする必要上、当該トラックに対応するブロックの
先頭から読み出す必要がある。目的のデータがブロック
nに存在する場合、CPが無いとブロック0より読み出
す為、ブロックn個分のデータ転送に必要な時間がオー
バヘッドとなる。CPが存在するからこそ以前のSCT
処理が可能となり、目的のブロック内の読み出し完了か
らSCH/READ処理が行なえる。よってCPの存在
の有無により、最大で約1トラック分のオーバヘッドの
差が生じ、又キャッシュ上へ読み出すデータ量も目的ブ
ロックのみとなり減少する。The same applies to the SCH processing and the READ processing, but when the block does not have a CP, it is necessary to read the data corresponding to the C portion from the beginning of the block corresponding to the track. When the target data exists in the block n, if there is no CP, the data is read from the block 0. Therefore, the time required to transfer the data of n blocks becomes an overhead. The previous SCT is due to the existence of CP
Processing becomes possible, and the SCH / READ processing can be performed from the completion of reading in the target block. Therefore, depending on the presence or absence of CP, a difference in overhead of about 1 track at maximum occurs, and the amount of data read to the cache is reduced to only the target block.
【0020】通常、HA,レコード0の更新はほとんど
無く、レコード0は標準フォーマットである。レコード
1以降はユーザの使用可能領域なのでデータが更新され
る確率は高い。この為、HA,レコード0とレコード1
以降を同一ブロックに記憶しない方が処理速度は速くな
る。ブロックがHA,レコード0,レコード1のみで構
成されると仮定すると、レコード1の更新のみの場合で
も当該ブロックをキャッシュ上に一旦読み出しレコード
1を更新して当該ブロックに書き込まなければならな
い。よってHA,レコード0とレコード1以降を別ブロ
ックに記憶させる。すると図6の様な記録方法が考えら
れるが、ほとんどの場合、レコード0(82)は標準フ
ォーマットであり、この為ブロック0(80)内の後方
で未使用エリア83が発生する。この為HA81、レコ
ード0(82)を数トラック、又は数シリンダ分まとめ
て異なるブロックへ記憶させる。これにより図6のトラ
ックは図7の様な純粋なデータトラックとすることが可
能となり図6で発生していた未使用エリア83を減少さ
せることができる。レコード0が標準フォーマットで無
い場合は標準フォーマットを超えたデータ(K部,D部
を加えて9バイト目以降)を純粋なデータトラックのブ
ロック0より記憶させる。Usually, the HA and the record 0 are hardly updated, and the record 0 is in the standard format. Since record 1 and the subsequent areas are usable by the user, there is a high probability that the data will be updated. Therefore, HA, record 0 and record 1
The processing speed is faster if the subsequent blocks are not stored in the same block. Assuming that the block is composed of only HA, record 0, and record 1, even if only record 1 is updated, the block must be read into the cache once, and record 1 must be updated and written to the block. Therefore, HA, record 0, record 1 and subsequent records are stored in separate blocks. Then, although the recording method as shown in FIG. 6 is conceivable, in most cases, the record 0 (82) has a standard format, and therefore, an unused area 83 is generated in the rear of the block 0 (80). Therefore, the HA 81 and the record 0 (82) are collectively stored in different blocks for several tracks or several cylinders. As a result, the track shown in FIG. 6 can be a pure data track as shown in FIG. 7, and the unused area 83 generated in FIG. 6 can be reduced. If the record 0 is not in the standard format, data exceeding the standard format (9th byte and later including K and D sections) is stored from the block 0 of the pure data track.
【0021】又、図6の様なトラック(ブロック群)が
連続して存在すると、あるトラックの終端まで書き込み
を行い、次のトラックのレコード1以降も連続して書き
込みを行う場合、次のトラックのHA,レコード0が存
在する場所で一旦書き込み処理を中断しなければならな
い。SCSIインタフェースのFBAドライブの特性と
して、一旦処理を中断した後、1ブロック後に書き込み
処理を再開するのは不可能である。よって回転待ちを生
じてしまう。図7の様なトラックであれば、書き込み処
理を次のトラックに対し連続して行うことができる。W
RITE処理時、上位装置に対してはキャッシュにデー
タ入力後直ちに終了報告し、その後ディスク装置に書き
込む。この為、ディスク装置の使用状態やWRITE処
理が連続した場合、連続トラックを一括して書き込む状
態が発生する。この為にも図7のトラックフォーマット
の方が有利である。Further, when tracks (block groups) as shown in FIG. 6 exist continuously, writing is performed up to the end of a certain track, and when writing is also made continuously from record 1 of the next track, the next track is written. The writing process must be temporarily stopped at the place where HA and record 0 exist. As a characteristic of the FBA drive of the SCSI interface, it is impossible to resume the write process one block after the process is once interrupted. Therefore, waiting for rotation occurs. If the track is as shown in FIG. 7, the writing process can be continuously performed on the next track. W
At the time of RITE processing, the completion report is immediately issued to the upper device immediately after the data is input to the cache, and then written to the disk device. Therefore, when the disk device is used or the WRITE process is continuously performed, a state in which continuous tracks are collectively written occurs. For this reason, the track format of FIG. 7 is more advantageous.
【0022】さらに、キャッシュメモリの利用を前提と
して、トラックのフォーマット状態を特定のブロックに
記憶することにより、アクセス性能を向上することがで
きる。Further, the access performance can be improved by storing the format state of the track in a specific block on the assumption that the cache memory is used.
【0023】以下、2つの例を説明する。Two examples will be described below.
【0024】当該トラックのレコード1以降が存在する
かしないかを表す情報を持つ。これにより当該トラック
の消去動作(レコード1以降を消去する。)が当該情報
のセット又はリセットのみとなり処理時間の短縮を図る
ことができる。It has information indicating whether or not the record 1 and subsequent records of the track exist. As a result, the erasing operation of the track (erasing the records after 1) is only set or reset of the information, and the processing time can be shortened.
【0025】HA,レコード0はまとめて別ブロックに
持つ為、頻繁に読み出すのはシステムスループット低下
となる。通常処理においてHAを読み出す事はほとんど
無く、又レコード0を読むのはレコード1を更新する為
がほとんどである。この時、レコード0が標準フォーマ
ットであればレコード1は当該トラックに対応するブロ
ック群の先頭に存在する為、レコード0が標準フォーマ
ットであればこの事を示す情報(例えばビットマップ)
をキャッシュ上に持てば当該情報の参照のみでレコード
1の位置が判明し、直接レコード1に位置付けることが
でき処理時間を短縮させることができる。Since HA and record 0 are collectively held in another block, frequent reading will reduce the system throughput. In normal processing, HA is rarely read, and record 0 is mostly read because record 1 is updated. At this time, if the record 0 is in the standard format, the record 1 exists at the head of the block group corresponding to the track, so if the record 0 is in the standard format, information indicating this (for example, bitmap)
If it is stored in the cache, the position of the record 1 can be found only by referring to the information, and the position of the record 1 can be directly located, so that the processing time can be shortened.
【0026】READ処理時のドライブ上のデータ、キ
ャッシュ上のデータ、上位装置への転送データの時間関
係を図9に示す。ディスク装置にはSS処理によりセク
タ番号をブロック番号に変換して位置付け動作を行なわ
せており、目的ブロック(ブロックN100)で制御装
置と再接続した後、データ転送を行う最終ブロック(ブ
ロックN+n101)迄データ転送を行う。制御装置は
ブロックのCPを参照し、目的のフィールド102を認
識すると上位装置と再接続し、データ転送を開始する。
上位装置へはG相当のデータは転送しない。最終フィー
ルド103を転送するとデータ転送は終了する。FIG. 9 shows the time relationship between the data on the drive, the data on the cache, and the data transferred to the host device during the READ processing. The disk device converts the sector number into a block number by SS processing and performs positioning operation. After reconnecting with the control device in the target block (block N100), the final block (block N + n101) for data transfer is reached. Transfer data. When the control device refers to the CP of the block and recognizes the target field 102, it reconnects to the host device and starts data transfer.
Data equivalent to G is not transferred to the host device. When the final field 103 is transferred, the data transfer ends.
【0027】従って、最大1ブロックのデータ転送時間
の遅れでレコードの位置付けが可能となり、CKDディ
スクに近いアクセス時間を得ることができる。Therefore, the records can be positioned with a delay of the data transfer time of one block at the maximum, and the access time close to that of the CKD disk can be obtained.
【0028】CKD1トラックを複数のFBAドライブ
に分散させる場合(アレイディスク)でも、本方式を行
いることは可能であり、前述した特徴を得ることができ
る。Even when the CKD1 track is distributed to a plurality of FBA drives (array disk), this method can be performed and the above-mentioned characteristics can be obtained.
【0029】以上述べたように、本実施例によれば、F
BAの各ブロックの先頭に、次に存在するCKDのレコ
ードの先頭の位置を示すデータを持つ為、CKDの命令
(特にレコード検索処理)を実施するのが容易となる。As described above, according to this embodiment, F
Since the head of each block of BA has data indicating the head position of the next CKD record, it is easy to execute the CKD command (particularly, the record search process).
【0030】又、本ブロック以降にレコードが存在しな
い事を示す情報を持つので本ブロック以降から次のトラ
ックの先頭迄の間上位装置とのパスを解放することが可
能となり、システムスループットを向上させることがで
きる。Further, since there is information indicating that there is no record after this block, it is possible to release the path with the host device from after this block to the beginning of the next track, improving the system throughput. be able to.
【0031】また、CKDのレコード1をFBAのブロ
ックの先頭から記憶させる為位置付け、検索が容易で高
速となる。Further, since the CKD record 1 is stored from the beginning of the FBA block, positioning and retrieval are easy and the speed is high.
【0032】さらに、トラック情報に当該トラックのレ
コード1以降が存在するかしないかを示す情報を持つこ
とにより、トラックのデータ消去(レコード1以降を消
去)が当該情報の更新のみとなり処理時間を短縮させる
ことができる。Further, since the track information has the information indicating whether or not the record 1 or later of the track exists, the data erasing of the track (erasing the record 1 or later) only updates the information, and the processing time is shortened. Can be made.
【0033】[0033]
【発明の効果】本発明によれば、CKDのデータを記憶
したFBAドライブを用いて、検索処理を短時間に行う
ことができる。According to the present invention, the retrieval process can be performed in a short time by using the FBA drive storing the CKD data.
【図1】FBAでCKDをエミュレーションする方法の
説明図。FIG. 1 is an explanatory diagram of a method for emulating CKD with FBA.
【図2】FBAのトラックフォーマットの説明図。FIG. 2 is an explanatory diagram of a track format of FBA.
【図3】CKDのトラックフォーマットの説明図。FIG. 3 is an explanatory diagram of a CKD track format.
【図4】コマンドの説明図。FIG. 4 is an explanatory diagram of commands.
【図5】エミュレーション後のFBAのトラックフォー
マットの説明図。FIG. 5 is an explanatory diagram of an FBA track format after emulation.
【図6】エミュレーション後のFBAのトラックフォー
マットの説明図。FIG. 6 is an explanatory diagram of a track format of FBA after emulation.
【図7】エミュレーション後のFBAのトラックフォー
マットの説明図。FIG. 7 is an explanatory diagram of an FBA track format after emulation.
【図8】システム構成図。FIG. 8 is a system configuration diagram.
【図9】各装置間のデータ転送を示す説明図。FIG. 9 is an explanatory diagram showing data transfer between devices.
【図10】FBAドライブでエミュレーションした場合
のトラックフォーマットの説明図。FIG. 10 is an explanatory diagram of a track format when emulated by an FBA drive.
11,21 インデックスマーカ
12 HA
13,15,33,36 C部
16,34,37 K部
14,17,35 D部
22,24 ID部
23,25 データ部
38〜41 G
49,50,70 CP
60〜64 コマンド
42〜48,71,72,82〜84 ブロック内の
データ
90 ディスク制御装置
91 キャッシュメモリ
92 ディスク装置
93 バッテリー
100,101 ブロック
102,103 上位装置へ転送するデータの始点と
終点11,21 Index marker 12 HA 13,15,33,36 C section 16,34,37 K section 14,17,35 D section 22,24 ID section 23,25 Data section 38-41 G 49,50,70 CP 60-64 Command 42-48, 71, 72, 82-84 Data in block 90 Disk control device 91 Cache memory 92 Disk device 93 Battery 100, 101 Block 102, 103 Start point and end point of data transferred to upper device
───────────────────────────────────────────────────── フロントページの続き (72)発明者 竹内 久治 神奈川県小田原市国府津2880番地 株式 会社 日立製作所 小田原工場内 (72)発明者 内山 善弘 神奈川県小田原市国府津2880番地 株式 会社 日立製作所 小田原工場内 (72)発明者 松本 佳子 神奈川県小田原市国府津2880番地 株式 会社 日立製作所 小田原工場内 (72)発明者 川端 久善 神奈川県小田原市国府津2880番地 株式 会社 日立製作所 小田原工場内 (56)参考文献 特開 平1−306917(JP,A) 特開 平3−5965(JP,A) 特開 昭60−74018(JP,A) (58)調査した分野(Int.Cl.7,DB名) G11B 20/10 - 20/16 G06F 3/06 - 3/08 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kuji Takeuchi 2880, Kozu, Odawara, Kanagawa, Ltd., Odawara Plant, Hitachi, Ltd. (72) Yoshihiro Uchiyama, 2880, Kozu, Odawara, Kanagawa, Ltd., Hitachi, Ltd., Odawara Plant (72) 72) Inventor, Yoshiko Matsumoto, 2880, Kozu, Odawara, Kanagawa, Ltd., inside the Odawara Plant, Hitachi, Ltd. (72) Inventor, Hisayoshi Kawabata, 2880, Kozu, Odawara, Kanagawa, Ltd. (56) Reference, Odawara, Hitachi, Ltd. -306917 (JP, A) JP-A-3-5965 (JP, A) JP-A-60-74018 (JP, A) (58) Fields investigated (Int.Cl. 7 , DB name) G11B 20/10- 20/16 G06F 3/06-3/08
Claims (2)
レコード0およびレコード1を含む任意の長さのレコー
ドに分割された複数の可変長フォーマット(CKD)ト
ラックに記録されているデータを、各々が一定の長さの
ブロックに分割された固定長フォーマット(FBA)ト
ラックに記録する磁気ディスク装置であって、 前記データを書き込む際、前記複数のCKDトラック分
の前記ホームアドレスと前記レコード0とを、前記レコ
ード1以降のレコードを記録する前記ブロックとは異な
る、少なくとも1つの前記ブロックに記録することを特
徴とする磁気ディスク装置 。1. Each has a home address and
Record of arbitrary length including record 0 and record 1
Multiple variable length format (CKD) files divided into
Each of the data recorded in the rack has a fixed length.
Fixed-length format (FBA) divided into blocks
A magnetic disk device for recording in a rack , wherein when writing the data , data of the plurality of CKD tracks is written.
The home address and the record 0 of
It is different from the block that records the records after the record 1.
Recording in at least one of the blocks.
Magnetic disk device to be used .
る制御装置と、 当該制御装置に接続され、各々が、ホームアドレスを有
するとともにレコード0およびレコード1を含む任意の
長さのレコードに分割された複数の可変長フォーマット
(CKD)トラックに記録されているデータを、各々が
一定の長さのブロックに分割された固定長フォーマット
(FBA)トラックに記録するディスク装置と、 前記制御装置内に設けられ、前期チャネル装置または前
記ディスク装置への転送データを一旦保持するキャッシ
ュとを備え、 前記ディスク装置は、前記データを書き込む際、前記複
数のCKDトラック分の前記ホームアドレスと前記レコ
ード0とを、前記レコード1以降のレコードを記録する
前記ブロックとは異なる、少なくとも1つの前記ブロッ
クに記録することを特徴とするディスクシステム 。2. Connected to a host device having a channel device
Yes and a control device that is connected to the control device, each of the home address
Any record containing record 0 and record 1
Multiple variable-length formats divided into length records
Each of the data recorded on the (CKD) track
Fixed-length format divided into blocks of fixed length
(FBA) A disk device for recording on a track and a channel device or a front device provided in the control device.
A cache that temporarily holds the transfer data to the disk device.
The disk device, when writing the data,
The home address and the record for several CKD tracks
The record 0 and the records after the record 1 are recorded.
At least one block different from the block
A disk system characterized by recording on a disk .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17123392A JP3419475B2 (en) | 1992-06-29 | 1992-06-29 | Magnetic disk drive |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17123392A JP3419475B2 (en) | 1992-06-29 | 1992-06-29 | Magnetic disk drive |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0612786A JPH0612786A (en) | 1994-01-21 |
| JP3419475B2 true JP3419475B2 (en) | 2003-06-23 |
Family
ID=15919517
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17123392A Expired - Lifetime JP3419475B2 (en) | 1992-06-29 | 1992-06-29 | Magnetic disk drive |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3419475B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3404289B2 (en) * | 1998-05-22 | 2003-05-06 | 富士通株式会社 | Disk control device and control method thereof |
| WO2000007105A1 (en) * | 1998-07-27 | 2000-02-10 | Hitachi, Ltd. | Computer system |
-
1992
- 1992-06-29 JP JP17123392A patent/JP3419475B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0612786A (en) | 1994-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5297124A (en) | Tape drive emulation system for a disk drive | |
| US4775969A (en) | Optical disk storage format, method and apparatus for emulating a magnetic tape drive | |
| US6779081B2 (en) | Apparatus and method for defragmentation in disk storage system | |
| JP2831087B2 (en) | Data storage system | |
| US6041386A (en) | Data sharing between system using different data storage formats | |
| KR100216146B1 (en) | Data compression method and structure for a direct access storage device | |
| US6778346B2 (en) | Recording and reproducing apparatus and file managing method using the same | |
| JPH05307440A (en) | Data storage format conversion system and its conversion method, access controller and data access method | |
| JPH1063578A (en) | Information recording and reproducing device | |
| JPH096540A (en) | Embedded directory method and directory record for data compression in direct access storage | |
| EP0738954B1 (en) | Data transfer control method and apparatus for external storage subsystem | |
| JPH0683547A (en) | Apparatus and method for processing information | |
| JP3419475B2 (en) | Magnetic disk drive | |
| DE69031983D1 (en) | MULTI-STEP DATA READER | |
| JP3969809B2 (en) | Data buffer management method in storage device | |
| JP3392159B2 (en) | Track emulation method and external storage subsystem | |
| JP2003178527A (en) | Information recording device, buffer controller, and information storage method | |
| JPH11327802A (en) | Disk system | |
| JP2834081B2 (en) | Magnetic disk controller | |
| US6041392A (en) | Disk drive device and method for controlling the same | |
| JP2985385B2 (en) | Image data retrieval system | |
| JP3093657B2 (en) | FBA-CKD conversion method | |
| US20070236817A1 (en) | Magnetic-tape recording method, magnetic-tape recording apparatus, and computer system | |
| JP4228590B2 (en) | Storage device | |
| JPH0628779A (en) | Method for recording and controlling data in disk device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090418 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090418 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100418 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110418 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120418 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120418 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130418 Year of fee payment: 10 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130418 Year of fee payment: 10 |