JP2006012297A - Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus - Google Patents

Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus Download PDF

Info

Publication number
JP2006012297A
JP2006012297A JP2004188185A JP2004188185A JP2006012297A JP 2006012297 A JP2006012297 A JP 2006012297A JP 2004188185 A JP2004188185 A JP 2004188185A JP 2004188185 A JP2004188185 A JP 2004188185A JP 2006012297 A JP2006012297 A JP 2006012297A
Authority
JP
Japan
Prior art keywords
magnetic disk
logical address
disk device
access control
cylinder
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.)
Pending
Application number
JP2004188185A
Other languages
Japanese (ja)
Inventor
Hideji Ishikura
秀司 石倉
Masayuki Tanji
雅行 丹治
Hiroaki Fukumaru
広昭 福丸
Masahiro Suzuki
正浩 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Information and Control Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi Information and Control Systems Inc filed Critical Hitachi Ltd
Priority to JP2004188185A priority Critical patent/JP2006012297A/en
Publication of JP2006012297A publication Critical patent/JP2006012297A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Digital Magnetic Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Recording Or Reproducing By Magnetic Means (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an access control program of a magnetic disk apparatus in which a suppression effect of the fixed point floating of a magnetic head can be improved. <P>SOLUTION: Since a cylinder in which write-in or read-out is not performed and a skip is performed is provided among different cylinders in which the write-in or read-out of a magnetic disk is performed, a function in which a logic address specified to a read and write command issued by equipment utilizing the magnetic disk apparatus is converted to a converted logic address in which an interval between the last logic address of a cylinder priorly accessing to a cylinder performing write-in or read-out and an initial logic address of a cylinder accessing next is so that the logic address is skipped by the logic address corresponding to a skip cylinder and a function issuing a read and write command specifying this converted logic address to the magnetic disk apparatus are given, the number of skip cylinders is decided within a range in which the total of the number of cylinders required to use and the number of skip cylinders does not exceed the number of cylinders possessed by the magnetic disk. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、磁気ディスク装置のアクセス制御技術に係り、特に、磁気ディスク装置を実際の容量よりも小さい容量の磁気ディスク装置として用いるための磁気ディスク装置のアクセス制御技術に関する。   The present invention relates to an access control technology for a magnetic disk device, and more particularly to an access control technology for a magnetic disk device for using the magnetic disk device as a magnetic disk device having a capacity smaller than an actual capacity.

コンピュータなどの記憶手段として、円盤状の磁気ディスクを記録媒体とした磁気ディスク装置が用いられている。近年、磁気ディスク装置では、大容量化が進んでおり、寿命や故障などにより磁気ディスク装置を交換しようとすると、既に同一容量の磁気ディスク装置は製造中止になっており、以前用いていた磁気ディスク装置よりも大容量の磁気ディスク装置に交換せざるを得ない場合が生じる。また、大容量化が進んだことに伴い、磁気ディスク装置を実際の容量よりも小さい容量の磁気ディスク装置として用いる場合なども生じている。   As a storage means such as a computer, a magnetic disk device using a disk-shaped magnetic disk as a recording medium is used. In recent years, the capacity of magnetic disk devices has been increasing, and when replacing a magnetic disk device due to its life or failure, the magnetic disk device of the same capacity has already been discontinued. In some cases, the magnetic disk device must be replaced with a larger capacity than the device. Further, as the capacity has increased, the magnetic disk device is sometimes used as a magnetic disk device having a capacity smaller than the actual capacity.

このため、以前用いていた磁気ディスク装置よりも大容量の磁気ディスク装置と交換する場合や、実際の磁気ディスク装置の容量よりも小さい容量の磁気ディスク装置として用いたい場合のように、磁気ディスク装置を実際の容量よりも小さい容量の磁気ディスク装置として用いる場合、その磁気ディスク装置を使用するコンピュータなどからは、以前の磁気ディスク装置と同一の容量か、または、実際の磁気ディスク装置の容量よりも小さい容量に見せ、磁気ディスク装置の磁気ディスクが有する全記憶エリアの一部のみを使用することになる。   For this reason, the magnetic disk device is used in the case where the magnetic disk device is replaced with a magnetic disk device having a larger capacity than the magnetic disk device used before or when it is used as a magnetic disk device having a smaller capacity than the actual magnetic disk device. Is used as a magnetic disk device with a capacity smaller than the actual capacity, from the computer using the magnetic disk device, the capacity is the same as that of the previous magnetic disk device or the capacity of the actual magnetic disk device. It looks like a small capacity, and only a part of the entire storage area of the magnetic disk of the magnetic disk device is used.

ところが、磁気ディスク装置の磁気ディスクが有する全記憶エリアの一部のみを使用すると、決まった一部のシリンダのみを使用することとなるうえ、大容量化によりシリンダの密度が高くなることでシリンダ間の距離が小さくなっていることから、磁気ディスクに対する書き込みや読み出しをおこなう磁気ヘッドが、ほぼ同じ位置にいる定点浮上状態になり易くなる。磁気ヘッドが定点浮上状態になると、磁気ヘッド位置の磁気ディスク上の潤滑材に“わだち”ができ磁性体がむき出しになってしまう場合がある。磁性体がむき出しになると、磁気ヘッドが磁気ディスクに接触した場合、磁性体を傷つけ、磁気ディスク装置に不具合が発生する可能性がある。   However, if only a part of the entire storage area of the magnetic disk of the magnetic disk device is used, only a part of the fixed cylinders are used and the density of the cylinders increases due to the increase in capacity. Therefore, the magnetic head that performs writing and reading on the magnetic disk is likely to be in a fixed point floating state at substantially the same position. When the magnetic head is in a fixed-point floating state, the lubricant on the magnetic disk at the position of the magnetic head may become “rubbed” and the magnetic material may be exposed. If the magnetic material is exposed, when the magnetic head comes into contact with the magnetic disk, the magnetic material may be damaged and a problem may occur in the magnetic disk device.

特に、サーバなどでは、例えば24時間稼動で使用するといった場合が多く、サーバなどに使用している磁気ディスク装置は、磁気ディスク装置の作動頻度がクライアントとなるコンピュータなどに比べて高い。このため、定点浮上によって磁気ディスク装置に不具合が発生する可能性が高くなる。   In particular, a server or the like is often used for 24 hours, for example, and a magnetic disk device used for the server or the like has a higher operating frequency of the magnetic disk device than a computer or the like serving as a client. For this reason, there is a high possibility that a problem occurs in the magnetic disk device due to floating at a fixed point.

このような磁気ヘッドの定点浮上を抑制するため、磁気ディスクの外周から内周に向かって同心円上に設けられたシリンダを一つ飛ばしでデータ記憶領域として用いることが提案されている(例えば、特許文献1参照)。   In order to suppress such fixed point flying of the magnetic head, it has been proposed to use one cylinder provided concentrically from the outer periphery to the inner periphery of the magnetic disk as a data storage area (for example, patents). Reference 1).

特開2003−296904号公報(第4−5頁、第2図)JP 2003-296904 A (page 4-5, FIG. 2)

ところで、特許文献1のように同心円上に設けられたシリンダを一つ飛ばしでデータ記憶領域として用いる場合、交換後の磁気ディスク装置を交換前の磁気ディスク装置と同一の小さい容量、または、実際の磁気ディスク装置の容量よりも小さい容量で用いるとき、その容量によっては、例えば磁気ディスクの外側の数本のシリンダしか使用しないことがある。このように、数本程度のシリンダしか使用しないで済むときなどでは、大容量化によりシリンダの密度が高くなることでシリンダ間の距離が小さくなっていることから、一つ飛ばしであっても結局、定点浮上状態となってしまい、磁気ヘッドの定点浮上を抑制できない場合がある。したがって、磁気ヘッドの定点浮上の抑制効果を向上した磁気ディスク装置のアクセス技術が必要とされている。   By the way, when one cylinder provided on concentric circles is used as a data storage area as in Patent Document 1, the replaced magnetic disk device has the same small capacity as the magnetic disk device before replacement, or the actual capacity When used with a capacity smaller than that of the magnetic disk device, depending on the capacity, for example, only a few cylinders outside the magnetic disk may be used. In this way, when only a few cylinders need to be used, the distance between the cylinders is reduced by increasing the density of the cylinders due to the increase in capacity. In some cases, the fixed point floating state occurs, and the fixed point floating of the magnetic head cannot be suppressed. Therefore, there is a need for an access technology for a magnetic disk device that improves the effect of suppressing the floating of the fixed point of the magnetic head.

本発明の課題は、磁気ヘッドの定点浮上の抑制効果を向上することにある。   An object of the present invention is to improve the effect of suppressing the floating of a fixed point of a magnetic head.

本発明の、磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムは、磁気ディスク装置を利用する機器で発行するリード/ライトコマンドに指定された論理アドレスを、書き込みまたは読み出しを行なうシリンダの先にアクセスするシリンダの最後の論理アドレスと次にアクセスするシリンダの最初の論理アドレスとの間がスキップするシリンダに対応する論理アドレス分だけ論理アドレスをスキップした変換論理アドレスに変換する機能と、この変換論理アドレスを指定したリード/ライトコマンドを磁気ディスク装置に対して発行する機能とを与え、スキップするシリンダの数は、使用する必要があるシリンダの数とスキップするシリンダの数との合計が、磁気ディスクが有するシリンダの数を越えない範囲内となるように決定していることにより上記課題を解決する。   An access control program for a magnetic disk device for writing and reading data to and from a magnetic disk according to the present invention writes or writes a logical address specified in a read / write command issued by a device using the magnetic disk device. The logical address is converted into a logical address that is skipped by the logical address corresponding to the skipped cylinder between the last logical address of the cylinder that accesses the destination of the cylinder to be read and the first logical address of the cylinder that is accessed next. And the function of issuing a read / write command specifying this conversion logical address to the magnetic disk unit, the number of cylinders to be skipped is the number of cylinders that need to be used and the number of cylinders to be skipped. The total of To solve the above problems by being determined to be within a range that does not exceed the number of Sunda.

このようなアクセス制御プログラムを用いることにより、スキップするシリンダの数をできるだけ多くすることによって、磁気ディスクを使用する領域が、磁気ディスクの一部分の近接したシリンダに集中するのが抑制される。したがって、磁気ヘッドが磁気ディスクのできるだけ広い範囲を動くようにでき、定点浮上の抑制効果を向上できる。   By using such an access control program, the number of cylinders to be skipped is increased as much as possible, so that the area in which the magnetic disk is used is suppressed from being concentrated on a cylinder adjacent to a part of the magnetic disk. Therefore, the magnetic head can be moved over the widest possible range of the magnetic disk, and the effect of suppressing the fixed point flying can be improved.

また、本発明の、磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムは、交換後の磁気ディスク装置の磁気ディスクへのデータの書き込み及び読み出しを行なうため、この交換後の磁気ディスク装置よりも容量が小さい交換前の磁気ディスク装置の磁気ディスクが有していたシリンダ数を使用し、かつ、交換後の磁気ディスク装置の磁気ディスクの1つのシリンダが有するセクタのうち、交換前の磁気ディスク装置の磁気ディスクの1つのシリンダが有していたセクタ数を使用する機能を与えることにより上記課題を解決する。   Also, the access control program of the magnetic disk device for writing and reading data to and from the magnetic disk according to the present invention writes and reads data to and from the magnetic disk of the magnetic disk device after replacement. Use the number of cylinders of the magnetic disk of the magnetic disk device before replacement, which has a smaller capacity than the magnetic disk device of the later, and one sector of the cylinder of the magnetic disk of the magnetic disk device after replacement The above problem is solved by providing a function of using the number of sectors which one cylinder of the magnetic disk of the magnetic disk device before replacement has.

このとき、交換後の磁気ディスク装置の磁気ディスクの1つのシリンダが有する全セクタのうち、の交換後の磁気ディスク装置よりも容量が小さい交換前の磁気ディスク装置の1つのシリンダが有するセクタ数よりも多い分のセクタに1セクタ加えた数のセクタをスキップするように受信論理アドレスを変換論理アドレスに変換する機能を与える。   At this time, out of all sectors in one cylinder of the magnetic disk device of the magnetic disk device after replacement, the number of sectors in one cylinder of the magnetic disk device before replacement, which has a smaller capacity than the magnetic disk device after replacement. The function of converting the received logical address to the converted logical address is provided so as to skip the number of sectors that is one sector added to the larger number of sectors.

さらに、磁気ディスク装置を利用する機器で発行するリード/ライトコマンドに指定された論理アドレスを、使用するシリンダのうちの1つのシリンダの最後の論理アドレスとこのシリンダの次にアクセスするシリンダの最初の論理アドレスとの間が、少なくとも交換後の磁気ディスク装置の磁気ディスクにおいて交換前の磁気ディスク装置の磁気ディスクの1つのシリンダにおけるセクタ数よりも増えるセクタ数分に対応する論理アドレス分だけスキップした変換論理アドレスに変換する機能と、変換論理アドレスを指定したリード/ライトコマンドを磁気ディスク装置に対して発行する機能とを与えるアクセス制御プログラムとする。   In addition, the logical address specified in the read / write command issued by the device using the magnetic disk device is set to the last logical address of one of the cylinders used and the first of the cylinder accessed next to this cylinder. Conversion in which the logical address is skipped by at least the logical address corresponding to the number of sectors larger than the number of sectors in one cylinder of the magnetic disk of the magnetic disk device before replacement in the magnetic disk of the magnetic disk device after replacement The access control program provides a function for converting to a logical address and a function for issuing a read / write command designating the converted logical address to the magnetic disk device.

このようなアクセス制御プログラムとすることにより、大容量の磁気ディスク装置に交換しても、交換前の小容量の磁気ディスク装置と同じ数のシリンダを利用することになる。このため、磁気ディスクを使用する領域が、磁気ディスクの一部分の近接したシリンダに集中するのが抑制され、磁気ヘッドが磁気ディスクのできるだけ広い範囲を動くようにでき、定点浮上の抑制効果を向上できる。   By adopting such an access control program, even if the magnetic disk device is replaced with a large-capacity magnetic disk device, the same number of cylinders as the small-capacity magnetic disk device before the replacement are used. For this reason, the area where the magnetic disk is used is restrained from being concentrated on a cylinder adjacent to a part of the magnetic disk, and the magnetic head can be moved in the widest possible range of the magnetic disk, thereby improving the effect of suppressing the fixed point floating. .

さらに、変換論理アドレスは、磁気ディスク装置を利用する機器で発行する論理アドレスをアドレス変換テーブルに基づいて変換され作成されたものであるアクセス制御プログラムとする。このようなアクセス制御プログラムとすれば、変換アドレスの作成処理を簡素化できるので望ましい。   Further, the conversion logical address is an access control program that is created by converting a logical address issued by a device using the magnetic disk device based on an address conversion table. Such an access control program is desirable because it can simplify the conversion address creation process.

また、本発明の、磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムは、磁気ディスクへの書き込みを行なうとき、この磁気ディスクの異なるシリンダで構成された異なる領域に同一の内容を書き込む機能と、磁気ディスクからの読み出しを行なうとき、磁気ディスクの異なる領域のいずれかの領域から読み出しを行なう機能と、磁気ディスクへの書き込みまたは読み出しのためにアクセスする毎にアクセスする領域を変える機能とを与えるアクセス制御プログラムとすることにより上記課題を解決する。   The access control program of the magnetic disk device for writing and reading data to and from the magnetic disk according to the present invention can be applied to different areas composed of different cylinders of the magnetic disk when writing to the magnetic disk. A function to write the same contents and a function to read from any one of different areas of the magnetic disk when reading from the magnetic disk, and to access each time for accessing to write to or read from the magnetic disk The above problem is solved by providing an access control program that provides a function of changing the area.

さらに、磁気ディスクへの書き込みを行なうとき、磁気ディスク装置を利用する機器で発行するライトコマンドに指定された論理アドレスを、このライトコマンドに指定された論理アドレスを磁気ディスク装置に対して発行すると共に、このライトコマンドに指定された論理アドレスを含むシリンダが属した領域と異なる領域のシリンダが含む論理アドレスで構成された異なる領域となるアドレス分だけこのライトコマンドに指定された論理アドレスに加算した別の論理アドレスを指定したライトコマンドを磁気ディスク装置に対して発行する機能と、この磁気ディスクへの書き込みを行なうとき、前回のライトコマンドで最後にアクセスした領域、または、前回のリードコマンドでアクセスした領域を識別する情報に基づいて、今回のライトコマンドに指定された論理アドレスを含むシリンダが属した領域から書き込みを行なうか、別の論理アドレスを含むシリンダが属した領域から書き込みを行なうかを判定する機能と、前回のライトコマンドで最後にアクセスした領域、または、前回のリードコマンドでアクセスした領域を識別する情報に基づいて、今回のリードコマンドに指定された論理アドレスを含むシリンダが属した領域から読み出しを行なうか、前記別の論理アドレスを含むシリンダが属した領域から読み出しを行なうかを判定し、この判定に応じて今回のリードコマンドに指定された論理アドレス、または、別の論理アドレスを指定したリードコマンドを磁気ディスク装置に対して発行する機能とを与えるアクセス制御プログラムとする。   Further, when writing to the magnetic disk, the logical address specified in the write command issued by the device using the magnetic disk device is issued to the magnetic disk device and the logical address specified in the write command is issued to the magnetic disk device. The address added to the logical address specified in this write command is equal to the number of addresses that are different areas composed of the logical address included in the cylinder in a different area from the area to which the cylinder including the logical address specified in this write command belongs. A function that issues a write command with a specified logical address to the magnetic disk unit, and when writing to this magnetic disk, the area last accessed by the previous write command or accessed by the previous read command Based on the information that identifies the area, A function that determines whether to write from the area to which the cylinder containing the logical address specified in the command belongs or from the area to which the cylinder containing another logical address belongs, and the last access by the previous write command Read from the area to which the cylinder containing the logical address specified in the current read command belongs, based on the information identifying the area accessed by the previous read command or the other logical address Determines whether to read from the area to which the included cylinder belongs, and issues a read command specifying the logical address specified in the current read command or a different logical address to the magnetic disk unit according to this determination The access control program gives the function to

このようなアクセス制御プログラムとすることにより、磁気ディスクへの書き込みや読み出しを行なうために磁気ディスクへアクセスする毎に、磁気ディスクの異なる領域に磁気ヘッドが移動する。このため、磁気ヘッドは、磁気ディスクの異なる領域に分散してアクセスすることになる。したがって、磁気ヘッド移動をできるだけ大きくでき、定点浮上の抑制効果を向上できる。   By using such an access control program, the magnetic head moves to a different area of the magnetic disk every time the magnetic disk is accessed for writing to or reading from the magnetic disk. For this reason, the magnetic head is distributed and accessed in different areas of the magnetic disk. Therefore, the movement of the magnetic head can be made as large as possible, and the effect of suppressing the fixed point floating can be improved.

また、磁気ディスクへの書き込みを行なうとき、この磁気ディスクの異なるシリンダで構成された異なる領域に同一の内容を書き込む機能は、磁気ディスクへの書き込みを行なうとき、磁気ディスクの異なる面または磁気ディスクを複数有するときはこれら複数の磁気ディスクの異なる磁気ディスクに書き込みを行なうアクセス制御プログラムとする。このようなアクセス制御プログラムとすることにより、磁気ディスクに不具合が発生しても、不具合が発生していない別のヘッドで別の領域から読み出しを行なうことで動作を続行できる。   In addition, when writing to the magnetic disk, the function of writing the same contents in different areas constituted by different cylinders of the magnetic disk is to use different surfaces of the magnetic disk or magnetic disks when writing to the magnetic disk. If there are a plurality of magnetic disks, an access control program for writing to the different magnetic disks is used. By using such an access control program, even if a problem occurs in the magnetic disk, the operation can be continued by reading from another area with another head in which the problem has not occurred.

また、上記のいずれかのアクセス制御プログラムを記録した記録媒体とする。   A recording medium on which any one of the above access control programs is recorded is used.

さらに、上記のいずれかのアクセス制御プログラムを記憶した記憶手段と、この記憶手段に記憶したアクセス制御プログラムを用いて磁気ディスク装置を利用する機器で発行したリード/ライトコマンドの処理を行ない、磁気ディスクに対してリード/ライトコマンドを発行する処理部とを有するアクセス制御装置とする。   Further, a storage means storing any one of the above access control programs, and a read / write command issued by a device using the magnetic disk apparatus using the access control program stored in the storage means, And an access control device having a processing unit that issues a read / write command.

さらに、上記のいずれかのアクセス制御プログラムを用いて磁気ディスク装置を利用する機器で発行したリード/ライトコマンドを処理し、磁気ディスクへのアクセスを行なう磁気ディスク装置とする。   Further, a read / write command issued by a device using the magnetic disk device is processed using any one of the above access control programs, and the magnetic disk device is configured to access the magnetic disk.

本発明によれば、磁気ヘッドの定点浮上の抑制効果を向上できる。   According to the present invention, the effect of suppressing the floating of the fixed point of the magnetic head can be improved.

(第1の実施形態)
以下、本発明を適用してなる磁気ディスク装置のアクセス制御プログラム及びこのアクセス制御プログラムを用いたアクセス制御装置の第1の実施形態について図1乃至図6を参照して説明する。図1は、本発明を適用してなるアクセス制御装置を設け、交換後の大容量の磁気ディスク装置を交換前の小容量の磁気ディスク装置と同じ容量で用いる様子を模式的に示すブロック図である。図2は、本発明を適用してなるアクセス制御装置の概略構成を示すブロック図である。図3は、交換前の小容量の磁気ディスク装置と交換後の大容量の磁気ディスク装置の仕様を比較した一例を示す図である。図4は、交換後の磁気ディスク装置のシリンダのスキップ数と使用するシリンダの数の関係を示す図である。図5は、本発明を適用してなる磁気ディスク装置のアクセス制御プログラムが使用するアドレス変換テーブルの一例を示す図である。図6は、本発明を適用してなる磁気ディスク装置のアクセス制御プログラムによる動作を示すフロー図である。
(First embodiment)
A magnetic disk device access control program to which the present invention is applied and a first embodiment of an access control device using this access control program will be described below with reference to FIGS. FIG. 1 is a block diagram schematically showing a state in which an access control device to which the present invention is applied is provided and a large-capacity magnetic disk device after replacement is used with the same capacity as a small-capacity magnetic disk device before replacement. is there. FIG. 2 is a block diagram showing a schematic configuration of an access control apparatus to which the present invention is applied. FIG. 3 is a diagram showing an example comparing the specifications of a small-capacity magnetic disk device before replacement and a large-capacity magnetic disk device after replacement. FIG. 4 is a diagram showing the relationship between the number of cylinder skips and the number of cylinders to be used in the magnetic disk device after replacement. FIG. 5 is a diagram showing an example of an address conversion table used by the access control program of the magnetic disk device to which the present invention is applied. FIG. 6 is a flowchart showing the operation of the access control program of the magnetic disk apparatus to which the present invention is applied.

なお、本実施形態では、使用できなくなった磁気ディスク装置を、その磁気ディスク装置よりも大容量の磁気ディスク装置に交換する場合を例とし、SCSIによりサーバやパーソナルコンピュータなどに接続された磁気ディスク装置を例として説明を行う。また、本実施形態のアクセス制御プログラムによるアクセス方式は、磁気ディスク装置がサーバやパーソナルコンピュータなどに内蔵されている場合でも、外付けになっている場合でも用いることができる。さらに、本実施形態では、説明をわかりやすくするため、1枚の磁気ディスクを例とし、シリンダがこの1枚の磁気ディスクの表裏の対応する位置にあるトラックからなる場合について説明している。しかし、本実施形態で説明するアクセス制御プログラムによるアクセス方式は、磁気ディスクが複数枚で、シリンダがこれら複数枚の磁気ディスクの各々の表裏の対応する位置にあるトラックからなる場合でも適用できる。   In the present embodiment, a magnetic disk device that is no longer usable is replaced with a magnetic disk device having a capacity larger than that of the magnetic disk device. Will be described as an example. The access method using the access control program according to the present embodiment can be used regardless of whether the magnetic disk device is built in a server or a personal computer or externally. Furthermore, in this embodiment, for easy understanding, a case where a single magnetic disk is taken as an example and a cylinder is composed of tracks at corresponding positions on the front and back of this single magnetic disk is described. However, the access method by the access control program described in the present embodiment can be applied even when there are a plurality of magnetic disks and the cylinder is composed of tracks at corresponding positions on the front and back of each of the plurality of magnetic disks.

本実施形態では、磁気ディスク装置1は、図1に示すように、アクセス制御装置3を介してSCSIケーブル5により、磁気ディスク装置1を利用するコンピュータなどに設けられたSCSIアダプタ7に接続されている。磁気ディスク装置1は、磁気ディスク装置1よりも容量が小さい磁気ディスク装置9と交換して設置されるものであり、磁気ディスク装置9と同じ容量の磁気ディスク装置として用いようとするものである。   In this embodiment, as shown in FIG. 1, the magnetic disk device 1 is connected to a SCSI adapter 7 provided in a computer or the like using the magnetic disk device 1 by an SCSI cable 5 via an access control device 3. Yes. The magnetic disk device 1 is installed in place of the magnetic disk device 9 having a smaller capacity than the magnetic disk device 1, and is intended to be used as a magnetic disk device having the same capacity as the magnetic disk device 9.

交換前の小容量の磁気ディスク装置9は、SCSIケーブル5により直接SCSIアダプタ7に接続され、SCSIアダプタ7から発行される読み出し及び書き取りのコマンドつまりリード/ライトコマンドを直接受けて磁気ディスク装置9が有する磁気ディスク9aへのアクセスを行なっていた。しかし、交換後の大容量の磁気ディスク装置1は、アクセス制御装置3を介してSCSIアダプタ7に接続されており、SCSIアダプタ7から発行されるリード/ライトコマンドを受けたアクセス制御装置3から発行されたリード/ライトコマンドを直接受けて磁気ディスク装置1が有する磁気ディスク1aへのアクセスを行なう。   The small-capacity magnetic disk device 9 before replacement is directly connected to the SCSI adapter 7 via the SCSI cable 5 and the magnetic disk device 9 receives the read and write commands issued from the SCSI adapter 7, that is, read / write commands directly. Access was made to the magnetic disk 9a. However, the high-capacity magnetic disk device 1 after replacement is connected to the SCSI adapter 7 via the access control device 3 and issued from the access control device 3 that has received the read / write command issued from the SCSI adapter 7. The read / write command is directly received and the magnetic disk 1a of the magnetic disk device 1 is accessed.

アクセス制御装置3は、SCSIアダプタ7から送られたリード/ライトコマンド内に指定されている磁気ディスク装置へのアクセス開始セクタを示す論理アドレス及びアクセスするセクタ数を示す転送ブロック数を必要に応じて変換し、1または複数のリード/ライトコマンドを、SCSIケーブル5を介して磁気ディスク装置1に発行するものである。   The access control device 3 sets the logical address indicating the access start sector to the magnetic disk device specified in the read / write command sent from the SCSI adapter 7 and the number of transfer blocks indicating the number of sectors to be accessed as necessary. The data is converted and one or a plurality of read / write commands are issued to the magnetic disk device 1 via the SCSI cable 5.

アクセス制御装置3は、図2に示すように、μプロセッサ(以下MPUと称する)13、ROM15、RAM17、及び、2つのSCSIコントローラ19、21などを備えている。また、MPU13、ROM15、RAM17、及び、2つのSCSIコントローラ19、21などは、ローカルバス23によって接続されている。ROM15には、複数のシリンダをスキップさせるためのアドレス変換テーブルを含めた磁気ディスク装置へのアクセス制御プログラムが格納されている。MPU13は、ROM15に格納されているアクセス制御プログラムによりSCSIコントローラ19、SCSIコントローラ21を制御する。RAM17は、リード/ライトコマンドのデータバッファ及びアクセス制御プログラムで使用するフラグワークデータなどの格納用に使用する。SCSIコントローラ19には、SCSIアダプタ7に接続される側のSCSIケーブル5が、SCSIコントローラ21には、磁気ディスク装置1に接続される側のSCSIケーブル5が接続されている。   As shown in FIG. 2, the access control device 3 includes a μ processor (hereinafter referred to as MPU) 13, ROM 15, RAM 17, and two SCSI controllers 19 and 21. The MPU 13, the ROM 15, the RAM 17, and the two SCSI controllers 19 and 21 are connected by a local bus 23. The ROM 15 stores an access control program for the magnetic disk device including an address conversion table for skipping a plurality of cylinders. The MPU 13 controls the SCSI controller 19 and the SCSI controller 21 by an access control program stored in the ROM 15. The RAM 17 is used to store read / write command data buffers and flag work data used in the access control program. The SCSI cable 19 connected to the SCSI adapter 7 is connected to the SCSI controller 19, and the SCSI cable 5 connected to the magnetic disk device 1 is connected to the SCSI controller 21.

このようなアクセス制御装置3では、ROM15に格納されているアクセス制御プログラムにより、SCSIコントローラ19がSCSIアダプタ7からSCSIケーブル5を介して送られてくるリード/ライトコマンドを受信すると、アドレス変換テーブルにより論理アドレス及び転送ブロック数を必要に応じて変換し、SCSIコントローラ21からSCSIケーブル5を介して磁気ディスク装置1にリード/ライトコマンドを発行する。   In such an access control device 3, when the SCSI controller 19 receives a read / write command sent from the SCSI adapter 7 via the SCSI cable 5 according to the access control program stored in the ROM 15, the address control table 3 The logical address and the number of transfer blocks are converted as necessary, and a read / write command is issued from the SCSI controller 21 to the magnetic disk device 1 via the SCSI cable 5.

ここで、交換後の大容量の磁気ディスク装置1の磁気ディスク1aでも、交換前の小容量の磁気ディスク装置9の磁気ディスク9aでも、物理的な先頭セクタより、SCSIコマンドで指定している論理アドレス0が割り当てられ、物理的な先頭セクタからそのシリンダが有する先頭セクタに続く各セクタに順次連続する論理アドレスが割り当てられている。さらに、論理アドレスは、交換後の大容量の磁気ディスク装置1でも、交換前の小容量の磁気ディスク装置9でも、外側のシリンダから内側のシリンダに向けて全てのシリンダの各セクタに順に連続的に割り当てられている。   Here, both the magnetic disk 1a of the large-capacity magnetic disk device 1 after replacement and the magnetic disk 9a of the small-capacity magnetic disk device 9 before replacement are logically designated by the SCSI command from the physical first sector. Address 0 is assigned, and successive logical addresses are assigned sequentially from the physical leading sector to each sector following the leading sector of the cylinder. In addition, the logical address is continuously assigned to each sector of all cylinders from the outer cylinder toward the inner cylinder in both the large-capacity magnetic disk device 1 after replacement and the small-capacity magnetic disk device 9 before replacement. Assigned to.

そして、ROM15に格納されているアドレス変換テーブルは、複数のシリンダをスキップして書き込み及び読み出しを行うため、SCSIアダプタ7から発行されたリード/ライトコマンド内に指定されている論理アドレスを、磁気ディスク装置1の磁気ディスク1aのスキップするシリンダに割り当てられている論理アドレスの分だけスキップさせた変換論理アドレスに変換するのに用いられる。   The address conversion table stored in the ROM 15 performs writing and reading while skipping a plurality of cylinders. Therefore, the logical address specified in the read / write command issued from the SCSI adapter 7 is changed to the magnetic disk. This is used for conversion to a conversion logical address that is skipped by the logical address assigned to the skipped cylinder of the magnetic disk 1a of the apparatus 1.

交換前の小容量の磁気ディスク装置9と交換後の大容量の磁気ディスク装置1の仕様を比較すると、図3に示すように、交換前の小容量の磁気ディスク装置9は、磁気ディスク9aの1トラックのセクタ数が64、磁気ヘッド数が2、シリンダ数が4,578である。したがって、1セクタの容量は512Bであるので、交換前の小容量の磁気ディスク装置9の記憶容量は、512*64*2*4,578=300,023,808B≒300MBとなる。これに対して、交換後の大容量の磁気ディスク装置1は、1トラックのセクタ数が1,024、磁気ヘッド数が2、シリンダ数が76,294であるため、記憶容量は、512*1,024*2*76,294=80,000,057,344B≒80GBとなる。   Comparing the specifications of the small-capacity magnetic disk device 9 before replacement and the large-capacity magnetic disk device 1 after replacement, as shown in FIG. 3, the small-capacity magnetic disk device 9 before replacement is the same as the magnetic disk 9a. The number of sectors in one track is 64, the number of magnetic heads is 2, and the number of cylinders is 4,578. Accordingly, since the capacity of one sector is 512 B, the storage capacity of the small-capacity magnetic disk device 9 before replacement is 512 * 64 * 2 * 4,578 = 300,023,808B≈300 MB. On the other hand, since the large-capacity magnetic disk device 1 after replacement has 1,024 sectors, 2 magnetic heads, and 76,294 cylinders, the storage capacity is 512 * 1. , 024 * 2 * 76,294 = 80,000,057,344B≈80 GB.

交換後の大容量の磁気ディスク装置1を交換前の小容量の磁気ディスク装置9の容量の磁気ディスク装置として使用するとき、つまり、交換後の大容量の磁気ディスク装置1を交換前の小容量の磁気ディスク装置9の容量分使用するとき、図4に示すように、シリンダをスキップせずに使用した場合の交換後の大容量の磁気ディスク装置1における使用シリンダ数は、交換前の小容量の磁気ディスク装置9の全セクタ数を交換後の大容量の磁気ディスク装置1の1シリンダあたりのセクタ数で割った数であるから、64*2*4,578/1,024*2*76,294=585,984/1,024=286.125となる。したがって、少数点以下切り上げると、大容量の磁気ディスク装置1の全シリンダ数76,294シリンダのうち1−287シリンダしか使用しないことになり、ほとんど磁気ヘッドが移動しない定点浮上状態となる。   When the large-capacity magnetic disk device 1 after replacement is used as a magnetic disk device having the capacity of the small-capacity magnetic disk device 9 before replacement, that is, the large-capacity magnetic disk device 1 after replacement is small in capacity before replacement. As shown in FIG. 4, the number of cylinders used in the large-capacity magnetic disk device 1 after replacement when the cylinders are used without skipping is small as shown in FIG. 64 * 2 * 4, 578/1, 024 * 2 * 76 because the total number of sectors of the magnetic disk device 9 is divided by the number of sectors per cylinder of the large-capacity magnetic disk device 1 after replacement. , 294 = 585,984 / 1,024 = 286.125. Accordingly, when rounding up the decimal point, only 1-287 cylinders of the total number of cylinders 76,294 of the large-capacity magnetic disk apparatus 1 are used, resulting in a fixed point floating state in which the magnetic head hardly moves.

一方、磁気ディスク装置1の磁気ディスク1aで使用する必要がある287シリンダを1シリンダずつスキップさせてシリンダを使用したとすると、磁気ディスク1aの外側から内側に向けてシリンダを使用してゆくときの最も内側の使用するシリンダ、つまり、最終使用シリンダは、スキップしていないときよりも286シリンダ分磁気ディスク1aの内側に移動する。したがって、大容量の磁気ディスク装置1において複数のシリンダをスキップする場合、使用するシリンダ間でnシリンダスキップした場合の最終使用シリンダは、287+286*nとなる。   On the other hand, if 287 cylinders that need to be used in the magnetic disk 1a of the magnetic disk device 1 are skipped one cylinder at a time and used, the cylinder is used from the outside to the inside of the magnetic disk 1a. The innermost used cylinder, that is, the last used cylinder moves to the inner side of the magnetic disk 1a by 286 cylinders than when not skipped. Therefore, when a plurality of cylinders are skipped in the large-capacity magnetic disk device 1, the last used cylinder is 287 + 286 * n when n cylinders are skipped between cylinders to be used.

このことから、使用するシリンダ間でnシリンダスキップした場合の最終使用シリンダまでのシリンダ数を見ると、例えば図4に示すように、300シリンダスキップすると最終使用シリンダが交換後の磁気ディスク装置1の磁気ディスク1aのシリンダ数より大きくなってしまう。このため、本実施形態では、200シリンダスキップすることとし、使用するシリンダ間で200シリンダスキップするためのアドレス変換テーブルを用いている。使用するシリンダ間で200シリンダスキップしながら必要な容量となる287シリンダ使用すると、磁気ディスク1a全シリンダ76,294のうち、1−57,487シリンダの間を磁気ヘッドが移動することになり、スキップしない場合や、1シリンダスキップして1−573シリンダの間を使用する場合に比べて磁気ヘッドの動きが大幅に大きくなる。   From this, when the number of cylinders up to the last used cylinder when n cylinders are skipped between cylinders to be used is viewed, for example, as shown in FIG. 4, when 300 cylinders are skipped, the last used cylinder of the magnetic disk device 1 after replacement is replaced. It becomes larger than the number of cylinders of the magnetic disk 1a. For this reason, in this embodiment, 200 cylinders are skipped, and an address conversion table for skipping 200 cylinders between cylinders to be used is used. If you use 287 cylinders that have the required capacity while skipping 200 cylinders between cylinders to be used, the magnetic head moves between 1-57,487 cylinders of all cylinders 76,294 of the magnetic disk 1a, skipping The magnetic head moves significantly more than when no cylinder is skipped or when one cylinder is skipped and 1-573 cylinders are used.

なお、本実施形態では、200シリンダスキップすることとしているが、交換後の磁気ディスク装置1の磁気ディスク1aのシリンダ数より大きくならない範囲で最終使用シリンダまでのシリンダ数が最も大きくなるようにスキップするシリンダ数を設定すれば、磁気ヘッドの動きを最大にできるので望ましい。スキップするシリンダ数は、交換後の磁気ディスク装置1の磁気ディスク1aが有するシリンダ数やシリンダの密度などに応じて、磁気ヘッドが定点浮上状態にならないように設定を行なう。   In this embodiment, 200 cylinders are skipped, but skipping is performed so that the number of cylinders up to the last used cylinder becomes the largest within a range not exceeding the number of cylinders of the magnetic disk 1a of the magnetic disk device 1 after replacement. Setting the number of cylinders is desirable because the movement of the magnetic head can be maximized. The number of cylinders to be skipped is set so that the magnetic head does not float at a fixed point according to the number of cylinders and the density of the cylinders of the magnetic disk 1a of the magnetic disk device 1 after replacement.

このように、アクセス制御装置3のアクセス制御プログラムは、図5に示されているようなアドレス変換テーブルを用い、SCSIアダプタ7から発行されたリード/ライトコマンド内に指定されている論理アドレスつまり受信論理アドレスを、交換後の大容量の磁気ディスク装置1に対して発行するリード/ライトコマンド内に指定する200シリンダスキップするための論理アドレスつまり変換論理アドレスに変換する。   As described above, the access control program of the access control device 3 uses the address conversion table as shown in FIG. 5 and receives the logical address specified in the read / write command issued from the SCSI adapter 7, that is, the reception. The logical address is converted into a logical address for skipping 200 cylinders, that is, a conversion logical address specified in a read / write command issued to the large-capacity magnetic disk device 1 after replacement.

例えば、交換後の大容量の磁気ディスク装置1の最初の1シリンダのセクタを示す変換論理アドレス0−2,047は、スキップする必要がないので変換する必要はなく、受信論理アドレスのままである。しかし、磁気ヘッドが最初のシリンダから2つ目のシリンダに跨ってデータなどの書き込みや読み出しを行なわなければならない場合、つまり、最初のシリンダ渡りが発生する場合、最初のシリンダの最後のセクタの受信論理アドレス2,048から200シリンダスキップするように受信論理アドレスを変換論理アドレスに変換しなければならない。200シリンダ分のセクタ数は、2,048*200=409,600セクタであるから、409,600セクタ先のセクタにアクセスすれば、200シリンダスキップして2つ目のシリンダにデータなどの書き込みを行なうことになる。   For example, the conversion logical address 0-2,047 indicating the first one-cylinder sector of the large-capacity magnetic disk device 1 after replacement does not need to be skipped, so it does not need to be converted and remains as the reception logical address. . However, when the magnetic head has to write and read data from the first cylinder to the second cylinder, that is, when the first cylinder crossing occurs, the reception of the last sector of the first cylinder is received. The reception logical address must be converted into the conversion logical address so that 200 cylinders are skipped from the logical address 2,048. The number of sectors for 200 cylinders is 2,048 * 200 = 409,600 sectors, so if you access the sector ahead of 409,600 sectors, you will skip 200 cylinders and write data into the second cylinder. Will do.

したがって、最初のシリンダの最後のセクタの受信論理アドレス2,048に200シリンダ分の論理アドレス409,600を加算して変換論理アドレスに変換する。つまり、受信論理アドレス2,048は、2,048+409,600=411,648で、変換論理アドレス411,648に変換される。受信論理アドレス2,048以降の受信論理アドレスは、その受信論理アドレスに409,600加算した変換論理アドレスに変換される。さらに、シリンダ渡りが発生する毎に、受信論理アドレスに409,600*m(mはシリンダ渡りの回数)分の論理アドレスを加算して変換論理アドレスとする。   Therefore, the logical address 409,600 for 200 cylinders is added to the reception logical address 2,048 of the last sector of the first cylinder to convert it to a conversion logical address. That is, the reception logical address 2,048 is converted to the conversion logical address 411,648 by 2,048 + 409,600 = 411,648. Reception logical addresses after reception logical address 2,048 are converted into conversion logical addresses obtained by adding 409,600 to the reception logical address. Further, every time cylinder crossing occurs, a logical address corresponding to 409,600 * m (m is the number of cylinder crossings) is added to the reception logical address to obtain a conversion logical address.

ところで、本実施形態では、インターフェースがSCSIの場合を例としているが、SCSIのリード/ライトコマンドつまりSCSIコマンドは、アクセスする先頭の論理アドレスと転送ブロック数を指定して発行するので、連続したセクタにしかアクセスできない。このため、シリンダをスキップする場合、シリンダ渡りが発生するとSCSIコマンドを分割して発行しなければならない。   By the way, in this embodiment, the case where the interface is SCSI is taken as an example. However, since a SCSI read / write command, that is, a SCSI command is issued by designating the top logical address to be accessed and the number of transfer blocks, continuous sectors are issued. Can only be accessed. For this reason, when a cylinder is skipped, the SCSI command must be divided and issued when cylinder crossing occurs.

したがって、インターフェースがSCSIの場合、アドレス変換テーブルは、図5に示すように、受信論理アドレスに変換論理アドレスを対応させているだけでなく、変換論理アドレスに対する転送可能ブロック数が対応付けられている。転送可能ブロック数は、その変換論理アドレスで発行できるSCSIコマンドの最大転送ブロック数を示している。MPU13は、アクセス制御プログラムにより、SCSIアダプタ7から発行されるSCSIコマンドで指定されている転送ブロック数と本テーブルの転送可能ブロック数を比較して、SCSIコマンドを分割するか否か決定する。そして、アクセス制御装置3は、シリンダ渡りが発生する場合には、磁気ディスク装置1に対するSCSIコマンドを分割して発行している。   Therefore, when the interface is SCSI, as shown in FIG. 5, the address conversion table not only associates the conversion logical address with the reception logical address but also associates the number of transferable blocks with respect to the conversion logical address. . The number of transferable blocks indicates the maximum number of transfer blocks of the SCSI command that can be issued with the converted logical address. The MPU 13 compares the number of transfer blocks specified by the SCSI command issued from the SCSI adapter 7 with the number of transferable blocks in this table by the access control program, and determines whether to divide the SCSI command. When the cylinder crossing occurs, the access control device 3 issues a SCSI command to the magnetic disk device 1 in a divided manner.

このようなインターフェースがSCSIの場合の本実施形態のアクセス制御装置3のアクセス制御プログラムによる動作についてまとめる。アクセス制御装置3は、図6に示すように、SCSIアダプタ7より発行されるSCSIコマンドを待つ(ステップ101)。ステップ101においてSCSIアダプタ7からSCSIコマンドを受けると、このSCSIアダプタ7からのSCSIコマンドで指定している書き込みまたは読み出しを開始する開始セクタの論理アドレスつまり受信論理アドレスと、転送ブロック数を読み込む(ステップ102)。   The operation by the access control program of the access control apparatus 3 of this embodiment when such an interface is SCSI will be summarized. As shown in FIG. 6, the access control device 3 waits for a SCSI command issued from the SCSI adapter 7 (step 101). When a SCSI command is received from the SCSI adapter 7 in step 101, the logical address of the start sector, that is, the reception logical address that starts the writing or reading specified by the SCSI command from the SCSI adapter 7, and the number of transfer blocks are read (step 101). 102).

ステップ102で読み込んだ開始セクタの受信論理アドレスをアドレス変換テーブルにより変換論理アドレスに変換する(ステップ103)。さらに、アドレス変換テーブルにより、ステップ102で読み込んだ転送ブロック数が転送可能ブロック数以内であるか否か判定する(ステップ104)。ステップ104において、ステップ102で読み込んだ転送ブロック数が転送可能ブロック数以内であれば、変換論理アドレス、転送ブロック数で磁気ディスク装置1にSCSIコマンドを発行し(ステップ105)、コマンド処理の終了を待つ(ステップ106)。ステップ106においてコマンド処理が終了したらステップ101に戻り、SCSIアダプタ7より発行されるSCSIコマンドを待つ。   The reception logical address of the start sector read in step 102 is converted into a conversion logical address by the address conversion table (step 103). Further, based on the address conversion table, it is determined whether or not the number of transfer blocks read in step 102 is within the number of transferable blocks (step 104). In step 104, if the number of transfer blocks read in step 102 is less than the number of transferable blocks, a SCSI command is issued to the magnetic disk device 1 with the conversion logical address and the number of transfer blocks (step 105), and the command processing is terminated. Wait (step 106). When the command processing is completed in step 106, the process returns to step 101 and waits for a SCSI command issued from the SCSI adapter 7.

一方、ステップ104において、ステップ102で読み込んだ転送ブロック数が転送可能ブロック数より大きい場合、開始セクタの受信論理アドレスを変換した変換論理アドレスと、アドレス変換テーブルから得られる転送可能ブロック数に対応する転送ブロック数とを指定する第1のSCSIコマンドを磁気ディスク装置1に対して発行し(ステップ107)、コマンド処理の終了を待つ(ステップ108)。ステップ108において、コマンド処理が終了したら、転送可能ブロック数をステップ102で読み込んだ開始セクタの受信論理アドレスに加算して第2のSCSIコマンドの開始セクタに対応する受信論理アドレスを求め、SCSIアダプタ7からのSCSIコマンドの転送ブロック数から転送可能ブロック数を減算して第2のSCSIコマンドの転送ブロック数を求める(ステップ109)。ステップ109の後、ステップ103に戻り、アドレス変換テーブルにより第2のSCSIコマンドの開始セクタに対応する受信論理アドレスを変換論理アドレスに変換し、その後、ステップ104からステップ106、または、ステップ104からステップ109を繰り返す。   On the other hand, in step 104, when the number of transfer blocks read in step 102 is larger than the number of transferable blocks, it corresponds to the conversion logical address obtained by converting the reception logical address of the start sector and the number of transferable blocks obtained from the address conversion table. A first SCSI command designating the number of transfer blocks is issued to the magnetic disk device 1 (step 107), and the end of command processing is awaited (step 108). When the command processing is completed in step 108, the number of transferable blocks is added to the reception logical address of the start sector read in step 102 to obtain the reception logical address corresponding to the start sector of the second SCSI command, and the SCSI adapter 7 The transferable block number of the second SCSI command is obtained by subtracting the transferable block number from the transfer block number of the SCSI command from (step 109). After step 109, the process returns to step 103, and the received logical address corresponding to the start sector of the second SCSI command is converted into the converted logical address by the address conversion table, and then from step 104 to step 106, or from step 104 to step 104. 109 is repeated.

このように本実施形態のアクセス制御プログラムを用いたアクセス制御装置3では、スキップするシリンダの数をできるだけ多くすることによって、磁気ディスクを使用する領域が、例えば1−57,487シリンダの間になり、磁気ヘッドも磁気ディスク1aの1−57,487シリンダの間で移動することになる。このため、交換前の小容量の磁気ディスク装置9の磁気ディスク9a全体に記録されていたデータが、交換後の大容量の磁気ディスク装置1の磁気ディスク1aの一部分の近接したシリンダに集中して記録されるのが抑制され、磁気ヘッドが動く領域をできるだけ広くできることから、定点浮上の抑制効果を向上できる。   As described above, in the access control device 3 using the access control program of this embodiment, by increasing the number of cylinders to be skipped as much as possible, the area where the magnetic disk is used becomes, for example, between 1-57,487 cylinders. The magnetic head also moves between 1-57,487 cylinders of the magnetic disk 1a. For this reason, the data recorded on the entire magnetic disk 9a of the small-capacity magnetic disk device 9 before the replacement is concentrated on a part of the adjacent magnetic disk 1a of the large-capacity magnetic disk device 1 after the replacement. Since the recording is suppressed and the area in which the magnetic head moves can be made as wide as possible, the effect of suppressing the fixed point flying can be improved.

さらに、定点浮上の抑制効果を向上できることにより、定点浮上によって発生する磁気ディスク装置の不具合の発生を抑制できる。   Further, since the effect of suppressing the floating at the fixed point can be improved, the occurrence of the malfunction of the magnetic disk device caused by the floating at the fixed point can be suppressed.

加えて、本実施形態のようにアクセス制御プログラムを用いて定点浮上の抑制効果を向上できる。このため、磁気ディスク装置を利用する機器であるコンピュータに、本実施形態のアクセス制御プログラムをインストールすること、本実施形態のアクセス制御プログラムを用いたアクセス制御装置をインターフェースやケーブルに設けること、さらに、磁気ディスク装置にアクセス制御プログラムをインストールすることなどで、一般に市販されている磁気ディスク装置を用いることができる。したがって、特殊な磁気ディスク装置などを用いる必要がなく、一般に市販されている磁気ディスク装置でも、実際の容量よりも小さな容量で用いる場合に生じる定点浮上を抑制できる。   In addition, the effect of suppressing fixed point levitation can be improved using an access control program as in this embodiment. For this reason, installing the access control program of the present embodiment on a computer that is a device that uses the magnetic disk device, providing an access control device using the access control program of the present embodiment on an interface or cable, A commercially available magnetic disk device can be used by installing an access control program in the magnetic disk device. Therefore, it is not necessary to use a special magnetic disk device or the like, and even a commercially available magnetic disk device can suppress the fixed point flying that occurs when the capacity is smaller than the actual capacity.

(第2の実施形態)
以下、本発明を適用してなる磁気ディスク装置のアクセス制御プログラム及びこのアクセス制御プログラムを用いたアクセス制御装置の第2の実施形態について図1乃至図3、図6及び図7を参照して説明する。図7は、本発明を適用してなる磁気ディスク装置のアクセス制御プログラムが使用するアドレス変換テーブルの一例を示す図である。
(Second Embodiment)
A magnetic disk device access control program to which the present invention is applied and a second embodiment of an access control device using this access control program will be described below with reference to FIGS. 1 to 3, 6 and 7. FIG. To do. FIG. 7 is a diagram showing an example of an address conversion table used by the access control program of the magnetic disk device to which the present invention is applied.

なお、本実施形態では、図1及び図3に示すような第1の実施形態と同じ仕様の小容量の磁気ディスク装置9を、第1の実施形態と同じ仕様の大容量の磁気ディスク装置1に交換し、この交換後の大容量の磁気ディスク装置1を交換前の小容量の磁気ディスク装置9と同じ容量で使用するためのアクセス制御装置3を設けた場合を例として説明する。このため、第1の実施形態と同様の構成や動作などは説明を省略し、第1の実施形態と相違する構成や動作、特徴部などについて説明する。   In this embodiment, a small-capacity magnetic disk device 9 having the same specifications as in the first embodiment as shown in FIGS. 1 and 3 is replaced with a large-capacity magnetic disk device 1 having the same specifications as in the first embodiment. An example will be described in which an access control device 3 for using the large capacity magnetic disk device 1 after replacement with the same capacity as the small capacity magnetic disk device 9 before replacement is provided. Therefore, the description of the same configuration and operation as in the first embodiment will be omitted, and the configuration, operation, and feature part that are different from the first embodiment will be described.

本実施形態では、アクセス制御プログラムが、大容量の磁気ディスク装置1の磁気ディスク1aのシリンダをスキップせずに、小容量の磁気ディスク装置9の磁気ディスク9aのときと同じセクタ数単位で磁気ディスク装置1の磁気ディスク1aの各シリンダを使用する点で第1の実施形態と異なっている。したがって、本実施形態では、図3に示すように、磁気ディスク装置9の磁気ディスク9aのときと同様に、磁気ディスク装置1の磁気ディスク1aの、例えば外側から4,578のシリンダを使用し、そして、1つのシリンダ毎に、1つのシリンダが有するセクタ数のうちの128セクタだけを使用する。   In the present embodiment, the access control program does not skip the cylinder of the magnetic disk 1a of the large-capacity magnetic disk device 1, and does not skip the cylinder in the same sector number unit as that of the magnetic disk 9a of the small-capacity magnetic disk device 9. This is different from the first embodiment in that each cylinder of the magnetic disk 1a of the apparatus 1 is used. Therefore, in this embodiment, as shown in FIG. 3, as with the magnetic disk 9a of the magnetic disk device 9, for example, 4,578 cylinders of the magnetic disk 1a of the magnetic disk device 1 are used from the outside, For each cylinder, only 128 sectors out of the number of sectors of one cylinder are used.

このため、交換前の小容量の磁気ディスク装置9の磁気ディスク9aにおける最初の1シリンダのセクタを示す論理アドレス0−127は、シリンダ渡りを発生させる必要がないので論理アドレスは変換する必要はない。しかし、最初のシリンダ渡りが発生する論理アドレス128から、2つ目のシリンダへのシリンダ渡りを発生させるため、受信論理アドレスを変換しなければならない。大容量の磁気ディスク装置1の1シリンダあたりのセクタ数は、2,048であるから、2,048セクタ先のセクタにアクセスすれば1シリンダ渡ることができる。   For this reason, the logical address 0-127 indicating the first one-cylinder sector in the magnetic disk 9a of the small-capacity magnetic disk device 9 before replacement does not need to cause cylinder crossover, so that the logical address need not be converted. . However, in order to generate a cylinder transition from the logical address 128 where the first cylinder crossing occurs to the second cylinder, the reception logical address must be converted. Since the number of sectors per cylinder in the large-capacity magnetic disk apparatus 1 is 2,048, one cylinder can be crossed by accessing a sector ahead of 2,048 sectors.

このとき、第1の実施形態で説明したように、SCSIコマンドは、アクセスする先頭の論理アドレスと転送ブロック数を指定して発行するので、連続したセクタにしかアクセスできない。このため、セクタをスキップする場合、シリンダ渡りが発生するとSCSIコマンドを分割して発行しなければならない。ところが、シリンダを渡りの発生前後にSCSIコマンドが分割されるため、分割した第1のSCSIコマンドが発行されてから、分割した第1のSCSIコマンドが発行される間での間に磁気ディスク1aが回転してしまうことによるオーバヘッドが発生する。オーバヘッドが発生すると、シーク動作が遅れ、次のシリンダのアクセス開始セクタへのアクセスが間に合わなくなり、再度次のシリンダのアクセス開始セクタが磁気ヘッドの位置に来るまで回転待ちが発生する。   At this time, as described in the first embodiment, the SCSI command is issued by designating the head logical address to be accessed and the number of transfer blocks, so that only continuous sectors can be accessed. For this reason, when a sector is skipped, the SCSI command must be divided and issued when cylinder crossing occurs. However, since the SCSI command is divided before and after the occurrence of crossing cylinders, the magnetic disk 1a is inserted between the time when the divided first SCSI command is issued and the time when the divided first SCSI command is issued. Overhead due to rotation occurs. When the overhead occurs, the seek operation is delayed, access to the access start sector of the next cylinder is not in time, and rotation waits until the access start sector of the next cylinder comes to the position of the magnetic head again.

そこで、本実施形態では、このオーバヘッドの時間が1セクタアクセスする時間と同じであるとしたとき、2,048+1=2,049セクタ先にアクセスするため、受信論理アドレス128は、128+2,049=2,177で、変換アドレス2,177に変換する。すなわち、本実施形態のアクセス制御プログラムが用いるアドレス変換テーブルは、図7に示すように、磁気ディスク装置1の磁気ディスク1aの1つのシリンダが有する全セクタのうち、磁気ディスク装置9の磁気ディスク9aの1つのシリンダが有するセクタ数よりも多い分のセクタに1セクタ加えた数のセクタをスキップするように受信論理アドレスを変換論理アドレスに変換する。   Therefore, in this embodiment, when the overhead time is the same as the time for accessing one sector, since 2,048 + 1 = 2,049 sectors are accessed, the reception logical address 128 is 128 + 2,049 = 2. , 177 is converted into the conversion address 2,177. That is, the address conversion table used by the access control program of the present embodiment is the magnetic disk 9a of the magnetic disk device 9 out of all sectors of one cylinder of the magnetic disk 1a of the magnetic disk device 1, as shown in FIG. The received logical address is converted into a converted logical address so as to skip the number of sectors that is one sector added to the number of sectors larger than the number of sectors that one cylinder has.

そして、本実施形態の場合、受信論理アドレス128以降の受信論理アドレスは、その受信論理アドレスに2,177加算した変換論理アドレスに変換される。さらに、シリンダ渡りが発生する毎に、受信論理アドレスに2,177*m(mはシリンダ渡りの回数)分の論理アドレスを加算して変換論理アドレスとする。ただし、変換論理アドレスが1つのシリンダの1つのトラックを越えるような論理アドレスとなった場合には、1トラック分のセクタ数、つまり、本実施形態の場合1,024セクタだけ戻す。すなわち、1トラック分のセクタ数である1024減算することで、磁気ディスク1aの片面側に対して設けられた磁気ヘッドによって書き込み及び読み出しが行なわれるセクタに戻してやる。   In the case of this embodiment, the reception logical addresses after the reception logical address 128 are converted into a conversion logical address obtained by adding 2,177 to the reception logical address. Further, every time cylinder crossing occurs, a logical address corresponding to 2,177 * m (m is the number of cylinder crossings) is added to the reception logical address to obtain a conversion logical address. However, when the conversion logical address becomes a logical address exceeding one track of one cylinder, the number of sectors for one track, that is, 1,024 sectors in the present embodiment is returned. That is, by subtracting 1024 which is the number of sectors for one track, the data is returned to the sector where writing and reading are performed by the magnetic head provided on one side of the magnetic disk 1a.

本実施形態のアクセス制御プログラムを用いたアクセス制御装置3の動作は、図7のようなアドレス変換テーブルを用いること以外、図6に示すような第1の実施形態の動作と同じである。   The operation of the access control apparatus 3 using the access control program of this embodiment is the same as that of the first embodiment as shown in FIG. 6 except that an address conversion table as shown in FIG. 7 is used.

このように本実施形態のアクセス制御プログラムを用いたアクセス制御装置3では、交換前の小容量の磁気ディスク装置9の磁気ディスク9aのときと同じセクタ数及びシリンダ数で、交換後の大容量の磁気ディスク装置1の磁気ディスク1aを使用する。このため、磁気ヘッドの移動範囲が磁気ディスク1aの1−4,578シリンダの間で移動することになり、交換前の小容量の磁気ディスク装置9の磁気ディスク9a全体に記録されていたデータが、交換後の大容量の磁気ディスク装置1の磁気ディスク1aのより少ない数の一部分のシリンダに記録されるのが抑制される。したがって、磁気ヘッドが動く領域をできるだけ広くでき、定点浮上の抑制効果を向上できる。   As described above, in the access control device 3 using the access control program of this embodiment, the same number of sectors and cylinders as in the case of the magnetic disk 9a of the small-capacity magnetic disk device 9 before replacement, and the large capacity after replacement. The magnetic disk 1a of the magnetic disk device 1 is used. For this reason, the moving range of the magnetic head moves between 1-4 and 578 cylinders of the magnetic disk 1a, and the data recorded on the entire magnetic disk 9a of the small-capacity magnetic disk device 9 before replacement is stored. Recording on a smaller number of cylinders of the magnetic disk 1a of the large-capacity magnetic disk device 1 after replacement is suppressed. Therefore, the area in which the magnetic head moves can be made as wide as possible, and the effect of suppressing the fixed point flying can be improved.

さらに、本実施形態では、定点浮上の抑制効果を向上できるのに加え、交換前の小容量の磁気ディスク装置9と同一タイミングでシークが行なわれるため、大容量の磁気ディスク装置1への交換後でも、小容量の磁気ディスク装置9と同程度のシークタイムが得られる。このため、磁気ディスク装置を実際よりも小さな容量で用いるときに低点浮上を抑制した場合でも、アクセス性能の低下を防ぐことができる。   Furthermore, in this embodiment, in addition to improving the effect of suppressing the fixed point levitation, seeking is performed at the same timing as the small-capacity magnetic disk device 9 before replacement, so that after the replacement to the large-capacity magnetic disk device 1 However, a seek time comparable to that of the small-capacity magnetic disk device 9 can be obtained. For this reason, even when the low point flying is suppressed when the magnetic disk device is used with a smaller capacity than the actual capacity, it is possible to prevent the access performance from being lowered.

加えて、本実施形態でも、第1の実施形態と同様にアクセス制御プログラムを用いて定点浮上の抑制効果を向上できる。このため、磁気ディスク装置を利用する機器であるコンピュータに、本実施形態のアクセス制御プログラムをインストールすること、本実施形態のアクセス制御プログラムを用いたアクセス制御装置をインターフェースやケーブルに設けること、さらに、磁気ディスク装置にアクセス制御プログラムをインストールすることなどで、一般に市販されている磁気ディスク装置を用いることができる。したがって、特殊な磁気ディスク装置などを用いる必要がなく、一般に市販されている磁気ディスク装置でも、実際の容量よりも小さな容量で用いる場合に生じる定点浮上を抑制できる。   In addition, in this embodiment as well, the effect of suppressing the fixed point levitation can be improved using the access control program as in the first embodiment. For this reason, installing the access control program of the present embodiment on a computer that is a device that uses the magnetic disk device, providing an access control device using the access control program of the present embodiment on an interface or cable, A commercially available magnetic disk device can be used by installing an access control program in the magnetic disk device. Therefore, it is not necessary to use a special magnetic disk device or the like, and even a commercially available magnetic disk device can suppress the fixed point flying that occurs when the capacity is smaller than the actual capacity.

なお、本実施形態のように交換前の小容量の磁気ディスク装置9の磁気ディスク9aのときと同じセクタ数及びシリンダ数で、交換後の大容量の磁気ディスク装置1の磁気ディスク1aを使用するとき、第1の実施形態のように、磁気ディスク1aで使用するシリンダ間をスキップさせることもできる。この場合、アクセス性能の低下を防ぐ効果は低くなるが、定点浮上の抑制効果はさらに向上できる。   Note that the magnetic disk 1a of the large-capacity magnetic disk device 1 after replacement is used with the same number of sectors and cylinders as the magnetic disk 9a of the small-capacity magnetic disk device 9 before replacement as in this embodiment. Sometimes, it is possible to skip between cylinders used in the magnetic disk 1a as in the first embodiment. In this case, the effect of preventing a decrease in access performance is reduced, but the effect of suppressing the fixed point levitation can be further improved.

(第3の実施形態)
以下、本発明を適用してなる磁気ディスク装置のアクセス制御プログラム及びこのアクセス制御プログラムを用いたアクセス制御装置の第3の実施形態について図1乃至図3、図6、図8及び図9を参照して説明する。図8及び図9は、本発明を適用してなる磁気ディスク装置のアクセス制御プログラムによる動作を示すフロー図である。
(Third embodiment)
A third embodiment of an access control program for a magnetic disk device to which the present invention is applied and an access control device using this access control program will be described with reference to FIGS. 1 to 3, 6, 8, and 9. To explain. 8 and 9 are flowcharts showing the operation of the access control program of the magnetic disk apparatus to which the present invention is applied.

なお、本実施形態では、図1及び図3に示すような第1及び第2の実施形態と同じ仕様の小容量の磁気ディスク装置9を、第1の実施形態と同じ仕様の大容量の磁気ディスク装置1に交換し、この交換後の大容量の磁気ディスク装置1を交換前の小容量の磁気ディスク装置9と同じ容量で使用するためのアクセス制御装置3を設けた場合を例として説明する。このため、第1及び第2の実施形態と同様の構成や動作などは説明を省略し、第1及び第2の実施形態と相違する構成や動作、特徴部などについて説明する。   In the present embodiment, a small-capacity magnetic disk device 9 having the same specifications as those in the first and second embodiments as shown in FIGS. 1 and 3 is replaced with a large-capacity magnetic disk having the same specifications as in the first embodiment. A case will be described as an example where the disk device 1 is replaced with an access control device 3 for using the large-capacity magnetic disk device 1 after replacement with the same capacity as the small-capacity magnetic disk device 9 before replacement. . For this reason, the description of the same configuration and operation as those in the first and second embodiments is omitted, and the configuration, operation, and feature unit that are different from those in the first and second embodiments will be described.

本実施形態では、アクセス制御プログラムが、大容量の磁気ディスク装置1の磁気ディスク1aの異なる領域に2重に同じデータなどを書き込み、また、このような磁気ディスク1aへのデータなどの書き込みやデータなどの読み出しを行なう場合、書き込みや読み出しのためにアクセスする毎に、異なる領域に順次アクセスを行なうように動作を制御する点で第1及び第2の実施形態と異なっている。   In the present embodiment, the access control program writes the same data or the like twice in different areas of the magnetic disk 1a of the large-capacity magnetic disk device 1, and writes or writes data to the magnetic disk 1a. When reading is performed, the operation is controlled to sequentially access different areas each time access is performed for writing or reading, which is different from the first and second embodiments.

さらに、容量の磁気ディスク装置1の磁気ディスク1aの異なる領域に2重に同じデータなどを書き込むとき、指定された論理アドレスと、ヘッド数をH(H>1)、磁気ディスク1aの1トラックのセクタ数をS、指定された論理アドレスに加算する論理アドレス数をAとすると、A=S*nで、n=使用するセクタ数/S、n≠H*m(m=1,2,3・・・)となるAを指定された論理アドレスに加算した論理アドレスに同じデータなどを書き込んでいる。   Further, when the same data is written twice in different areas of the magnetic disk 1a of the capacity magnetic disk device 1, the designated logical address and the number of heads are H (H> 1), and one track of the magnetic disk 1a is recorded. Assuming that the number of sectors is S and the number of logical addresses to be added to the designated logical address is A, A = S * n, n = number of sectors used / S, n ≠ H * m (m = 1, 2, 3 ..)) Is written to the logical address obtained by adding A to the designated logical address.

本実施形態では、第1及び第2の実施形態と同様、図3に示すように、交換後の大容量の磁気ディスク装置1の1トラックあたりのセクタ数は1,024で、磁気ヘッドは、磁気ディスク1aの表裏各面に対するものがあり、2個ある。したがって、A=1,024*n(本実施形態の場合、nは奇数)を加算した論理アドレスは、ある論理アドレスのときのシリンダとは別のシリンダの、ある論理アドレスのときの磁気ヘッドとは異なる側の磁気ヘッドがアクセスするセクタになる。   In this embodiment, as in the first and second embodiments, as shown in FIG. 3, the number of sectors per track of the large-capacity magnetic disk device 1 after replacement is 1,024, and the magnetic head is There are two for the front and back surfaces of the magnetic disk 1a. Therefore, a logical address obtained by adding A = 1,024 * n (in the present embodiment, n is an odd number) is a cylinder different from a cylinder at a certain logical address, and a magnetic head at a certain logical address. Becomes a sector accessed by the magnetic head on the different side.

そこで、本実施形態のアクセス制御プログラムでは、例えば、SCSIアダプタ7から発行されるSCSIコマンドがライトコマンドの場合、指定された論理アドレスと、指定された論理アドレス+78,001,152(1,024*76,173=78,001,152、以下78Mと略称する)となる別の論理アドレスとの2箇所に書き込む。SCSIアダプタ7から発行されるSCSIコマンドがリードコマンドの場合、SCSIコマンドで指定された論理アドレスを含む領域か、または、指定された論理アドレス+78Mとなる別の論理アドレスを含む領域のいずれかの該当セクタから読み出しを行なう。   Therefore, in the access control program of the present embodiment, for example, when the SCSI command issued from the SCSI adapter 7 is a write command, the specified logical address and the specified logical address +78,001,152 (1,024 * 76,173 = 78,001,152 (hereinafter abbreviated as 78M) and another logical address. When the SCSI command issued from the SCSI adapter 7 is a read command, it corresponds to either the area including the logical address specified by the SCSI command or the area including another logical address which is the specified logical address + 78M. Read from sector.

リードコマンドにより磁気ディスク1aの読み出しを行なう場合、磁気ヘッドに対してより近くに位置している領域の該当セクタにアクセスして読み出しを行なえば、シークタイムを速くできる。しかし、この場合、読み出しを行なう領域に偏りができ、読み出しを行なう領域に偏りができると、磁気ヘッドの定点浮上を抑制できない場合がある。このため、本実施形態のアクセス制御プログラムでは、SCSIアダプタ7からリードコマンドが発行されると、前回のライトコマンドで最後にアクセスした磁気ディスク1aの領域、または、前回のリードコマンドでアクセスした磁気ディスク1aの領域を識別する情報に基づいて、大容量の磁気ディスク装置1に発行するリードコマンドの論理アドレスを、SCSIコマンドで指定された論理アドレスと、指定された論理アドレス+78Mとなる別の論理アドレスのうち、前回のライトコマンドで最後にアクセスした磁気ディスク1aの領域、または、前回のリードコマンドでアクセスした磁気ディスク1aの領域と異なる磁気ディスク1aの領域となる論理アドレスを指定している。これにより、磁気ヘッドの位置に偏りができないようにしている。   When reading from the magnetic disk 1a by a read command, the seek time can be shortened by accessing the corresponding sector in an area located closer to the magnetic head. However, in this case, the reading area may be biased, and if the reading area is biased, the fixed point flying of the magnetic head may not be suppressed. Therefore, in the access control program of this embodiment, when a read command is issued from the SCSI adapter 7, the area of the magnetic disk 1a accessed last by the previous write command or the magnetic disk accessed by the previous read command Based on the information for identifying the area 1a, the logical address of the read command issued to the large-capacity magnetic disk device 1 is divided into the logical address specified by the SCSI command and another logical address that becomes the specified logical address + 78M. Among these, a logical address is specified which is an area of the magnetic disk 1a accessed last by the previous write command or an area of the magnetic disk 1a different from the area of the magnetic disk 1a accessed by the previous read command. This prevents the position of the magnetic head from being biased.

本実施形態のアクセス制御プログラムを用いるアクセス制御装置3では、ヘッドポイントフラグ(以下、HPと略称する)を図2に示すRAM17上に有する。HPは、SCSIコマンドで指定された論理アドレスのときHP=0、SCSIコマンドで指定された論理アドレス+78Mとなる別の論理アドレスのとき、HP=1となる。そして、前回大容量の磁気ディスク装置1にアクセスしたときの論理アドレスが、SCSIコマンドで指定された論理アドレスつまりHP=0であるか、または、指定された論理アドレス+78Mとなる別の論理アドレスつまりHP=1であるかを管理することにより、SCSIアダプタ7から発行されるSCSIコマンド毎に交互に大容量に磁気ディスク装置1に発行するSCSIコマンドの論理アドレスを変更している。このように、本実施形態では、HPが、前回のライトコマンドで最後にアクセスした磁気ディスク1aの領域、または、前回のリードコマンドでアクセスした磁気ディスク1aの領域を識別する情報となっている。   In the access control apparatus 3 using the access control program of the present embodiment, a head point flag (hereinafter abbreviated as HP) is provided on the RAM 17 shown in FIG. HP is HP = 0 when the logical address is specified by the SCSI command, and HP = 1 when the logical address is another logical address specified by the SCSI command + 78M. Then, the logical address when accessing the large-capacity magnetic disk device 1 last time is the logical address specified by the SCSI command, that is, HP = 0, or another logical address that is the specified logical address + 78M, that is, By managing whether HP = 1, the logical address of the SCSI command issued to the magnetic disk device 1 is alternately changed to a large capacity for each SCSI command issued from the SCSI adapter 7. As described above, in this embodiment, the HP is information for identifying the area of the magnetic disk 1a accessed last by the previous write command or the area of the magnetic disk 1a accessed by the previous read command.

さらに、本実施形態のアクセス制御プログラムを用いるアクセス制御装置3では、大容量の磁気ディスク装置1に発行したリードコマンドがリードエラーになったときには、もう一方の論理アドレスを指定するリードコマンドを再発行し、動作を続行するようになっている。   Furthermore, in the access control device 3 using the access control program of this embodiment, when a read command issued to the large-capacity magnetic disk device 1 results in a read error, a read command specifying the other logical address is reissued. And the operation is to continue.

このような本実施形態のアクセス制御装置3は、図8に示すように、SCSIアダプタ7より発行されるSCSIコマンドを待つ(ステップ201)。SCSIアダプタ7からSCSIコマンドを受けたら、SCSIコマンドで指定している論理アドレス、転送ブロック数を読み込み(ステップ202)、このSCSIコマンドがライトコマンドであるか否か判定する(ステップ203)。ステップ203において、このSCSIコマンドがライトコマンドであり、さらに、HPフラグがHP=0ならば、指定論理アドレス及び指定転送ブロック数でライトコマンドを交換後の大容量の磁気ディスク装置1に発行する(ステップ204)。また、ステップ204において、HP=1ならば、指定論理アドレス+78Mとなる別の論理アドレス及び指定転送ブロック数でライトコマンドを交換後の大容量の磁気ディスク装置1に発行する。ステップ204の後、コマンド処理の終了を待つ(ステップ205)。   The access control device 3 of this embodiment waits for a SCSI command issued from the SCSI adapter 7 as shown in FIG. 8 (step 201). When a SCSI command is received from the SCSI adapter 7, the logical address and the number of transfer blocks specified by the SCSI command are read (step 202), and it is determined whether or not this SCSI command is a write command (step 203). In step 203, if the SCSI command is a write command and the HP flag is HP = 0, the write command is issued to the large-capacity magnetic disk device 1 after replacement with the designated logical address and the designated transfer block number ( Step 204). In step 204, if HP = 1, a write command is issued to the high-capacity magnetic disk device 1 after replacement with another logical address of the designated logical address + 78M and the designated transfer block number. After step 204, the end of command processing is awaited (step 205).

ステップ205においてコマンド処理が終了した後、同じデータなどを磁気ディスク1aの異なる領域に書き込むため、ステップ204におけるHPフラグがHP=0ならば指定論理アドレス+78Mとなる別の論理アドレス及び転送ブロック数で、ステップ204におけるHPフラグがHP=1ならば指定論理アドレス及び転送ブロック数で、ライトコマンドを交換後の大容量の磁気ディスク装置1に発行する(ステップ206)。さらにステップ206では、このステップ206で最後にライトコマンドを発行したときのHPフラグがHP=0ならばHP=1に、HP=1ならばHP=0に、HPフラグを反転させる。ステップ206の後、コマンド処理の終了を待ち(ステップ207)、このステップ207においてコマンド処理が終了したらステップ201に戻りSCSIコマンドを待つ。   After the command processing is completed in step 205, the same data and the like are written in different areas of the magnetic disk 1a. Therefore, if the HP flag in step 204 is HP = 0, another logical address and the number of transfer blocks are designated logical address + 78M. If the HP flag in step 204 is HP = 1, the write command is issued to the large-capacity magnetic disk device 1 after replacement with the designated logical address and the number of transfer blocks (step 206). Further, in step 206, if the HP flag when the write command is last issued in step 206 is HP = 0, HP = 1 is inverted, and if HP = 1, HP = 0 is inverted. After step 206, the process waits for the end of command processing (step 207). When the command processing ends in step 207, the process returns to step 201 to wait for the SCSI command.

一方、ステップ203において、SCSIコマンドがライトコマンドではなくリードコマンドであるとき、図9に示すように、HPフラグがHP=0ならば指定論理アドレス及び指定転送ブロック数でリードコマンドを交換後の大容量の磁気ディスク装置1に発行する(ステップ208)。また、ステップ208においてHP=1ならば指定論理アドレス+78Mとなる別の論理アドレス及び指定転送ブロック数でリードコマンドを交換後の大容量の磁気ディスク装置1に発行する。さらにステップ208において、コマンドを発行したときのHPフラグがHP=0ならばHP=1に、HP=1ならばHP=0に、HPフラグを反転させる。ステップ208の後、コマンド処理の終了を待つ(ステップ209)。ステップ209においてコマンド処理が終了した後、リードエラーが発生していたか確認する(ステップ210)。   On the other hand, in step 203, when the SCSI command is not a write command but a read command, as shown in FIG. 9, if the HP flag is HP = 0, the read command is replaced with the specified logical address and the specified number of transfer blocks. This is issued to the capacity magnetic disk device 1 (step 208). In step 208, if HP = 1, a read command is issued to the large-capacity magnetic disk device 1 after replacement with another logical address that is designated logical address + 78M and the designated transfer block number. Further, in step 208, if the HP flag when the command is issued is HP = 0, the HP flag is inverted to HP = 1, and if HP = 1, the HP flag is inverted to HP = 0. After step 208, the end of command processing is awaited (step 209). After the command processing is completed in step 209, it is confirmed whether a read error has occurred (step 210).

ステップ210において、リードエラーが発生していなければ、図8に示すステップ201に戻りSCSIコマンドを待つ。また、ステップ210において、図9に示すように、リードエラーが発生していれば、HP=1ならば指定論理アドレス+78Mとなる別の論理アドレス及び指定転送ブロック数で、HPフラグがHP=0ならば指定論理アドレス及び指定転送ブロック数で、ライトコマンドを交換後の大容量の磁気ディスク装置1に発行する(ステップ211)。さらにステップ211において、コマンドを発行したときのHPフラグがHP=1ならばHP=0に、HP=0ならばHP=1にHPフラグを反転させる。   If no read error has occurred in step 210, the process returns to step 201 shown in FIG. 8 to wait for a SCSI command. In step 210, as shown in FIG. 9, if a read error has occurred, if HP = 1, the HP flag is set to HP = 0 with a different logical address and the designated number of transfer blocks that are designated logical address + 78M. If so, a write command is issued to the high-capacity magnetic disk device 1 after the exchange with the designated logical address and the designated number of transfer blocks (step 211). Further, in step 211, if the HP flag when the command is issued is HP = 1, the HP flag is inverted to HP = 0, and if HP = 0, the HP flag is inverted to HP = 1.

ステップ211の後、コマンド処理の終了を待ち(ステップ212)、このステップ212においてコマンド処理が終了したらステップ201に戻りSCSIコマンドを待つ。ステップ212においてコマンド処理が終了した後、リードエラーが発生していたか確認する(ステップ213)。ステップ213において、リードエラーが発生していたら異常終了し、発生していなければ図8に示すステップ201に戻りSCSIコマンドを待つ。   After step 211, the process waits for the end of command processing (step 212). When the command process ends in step 212, the process returns to step 201 to wait for a SCSI command. After command processing is completed in step 212, it is confirmed whether a read error has occurred (step 213). If a read error has occurred in step 213, the process ends abnormally. If not, the process returns to step 201 shown in FIG. 8 to wait for a SCSI command.

このように本実施形態のアクセス制御プログラムを用いたアクセス制御装置3では、交換後の大容量の磁気ディスク装置1の磁気ディスク1aにデータなどを書き込むとき、そして、磁気ディスク1aからデータなどを読み出すとき、SCSIアダプタ7からSCSIコマンドが発行される毎に、例えば指定論理アドレス0−585,983間の領域と、別の論理アドレス78,001,152−78,587,135間の領域とに磁気ヘッドが交互に移動する。このため、磁気ヘッドは、磁気ディスクの異なる領域に分散してアクセスすることになる。したがって、磁気ヘッドの移動をできるだけ大きくでき、定点浮上の抑制効果を向上できる。   As described above, in the access control device 3 using the access control program of the present embodiment, when data is written to the magnetic disk 1a of the large-capacity magnetic disk device 1 after replacement, the data is read from the magnetic disk 1a. Each time a SCSI command is issued from the SCSI adapter 7, for example, the area between the designated logical addresses 0 to 585 and 983 and the area between different logical addresses 78, 001, 152 to 78, 587 and 135 are magnetically generated. The head moves alternately. For this reason, the magnetic head is distributed and accessed in different areas of the magnetic disk. Therefore, the movement of the magnetic head can be made as large as possible, and the effect of suppressing the fixed point flying can be improved.

ところで、磁気ディスク装置は製造上のばらつきで、磁気ヘッドと磁気ディスク間の距離にもばらつきがあり、磁気ヘッドが磁気ディスクを傷つけるといった問題の発生頻度にもばらつきがある。このため、磁気ディスク上の限られた領域に限られた磁気ヘッドがアクセスする状態の場合、その磁気ディスク上の限られた領域が傷つくなどして不具合が発生し、読み出しが行なえなくなると、リードエラーが発生し動作を続行できなくなる。   By the way, the magnetic disk device has variations in manufacturing, the distance between the magnetic head and the magnetic disk also varies, and the occurrence frequency of the problem that the magnetic head damages the magnetic disk also varies. For this reason, when a limited magnetic head accesses a limited area on the magnetic disk, if the limited area on the magnetic disk is damaged and a failure occurs and reading cannot be performed, An error occurs and operation cannot continue.

これに対して、本実施形態のアクセス制御プログラムを用いたアクセス制御装置3では、リードコマンドに指定された論理アドレスに加算する論理アドレス数Aは、A=S*nで、n=使用するセクタ数/S、n≠H*m(m=1,2,3・・・)となる。このため、磁気ディスク1aへの書き込みを行なうとき、磁気ディスク1aの異なる面に書き込みを行なう。そして、磁気ディスク1aからデータなどの読み出しをおこなうときにリードエラーが発生すると、動作を続行して磁気ヘッドがもう一方の領域に移動し、このもう一方の領域からデータなどを読み出そうとするうえ、そのときの磁気ヘッドは、リードエラーとなった磁気ヘッドとは異なる磁気ヘッドが行なう。したがって、製造上のばらつきで磁気ディスクを傷つけ易い磁気ヘッドがあっても、他のヘッドで動作を続行でき、また、その他のリードエラーが発生してももう一方のセクタからデータを読み出して動作を続行できる。これにより、読み出しエラーが生じて、他の領域からデータなどを読み出す場合、不具合が発生していない別のヘッドで別の領域から読み出しを行なうことができる。   On the other hand, in the access control apparatus 3 using the access control program of this embodiment, the number of logical addresses A to be added to the logical address specified in the read command is A = S * n, where n = the sector to be used Number / S, n ≠ H * m (m = 1, 2, 3...). Therefore, when writing to the magnetic disk 1a, writing is performed on a different surface of the magnetic disk 1a. If a read error occurs when reading data from the magnetic disk 1a, the operation is continued and the magnetic head moves to the other area, and data is read from the other area. In addition, the magnetic head at that time is a magnetic head different from the magnetic head in which the read error occurred. Therefore, even if there is a magnetic head that easily damages the magnetic disk due to manufacturing variations, the operation can be continued with another head, and even if other read errors occur, the data is read from the other sector and operated. You can continue. Thus, when a read error occurs and data or the like is read from another area, the read can be performed from another area by another head that does not have a defect.

なお、磁気ディスク装置が複数の磁気ディスクを有している場合も、本実施形態のように指定された論理アドレスと、指定された論理アドレス+Aとなる別の論理アドレスに書き込みを行なうことで、磁気ディスクの異なる面または複数の磁気ディスクの異なる磁気ディスクに書き込みを行なうことができる。ただし、磁気ディスクの各トラックのセクタ数が異なる場合には、各トラックのセクタ数を考慮して、指定された論理アドレスに加算する論理アドレス数Aを決定する。   Even when the magnetic disk device has a plurality of magnetic disks, by writing to the designated logical address and another logical address that becomes the designated logical address + A as in this embodiment, Writing can be performed on different surfaces of the magnetic disk or different magnetic disks of the plurality of magnetic disks. However, when the number of sectors of each track of the magnetic disk is different, the number of logical addresses A to be added to the designated logical address is determined in consideration of the number of sectors of each track.

加えて、本実施形態でも、第1及び第2の実施形態と同様にアクセス制御プログラムを用いて定点浮上の抑制効果を向上できる。このため、磁気ディスク装置を利用する機器であるコンピュータに、本実施形態のアクセス制御プログラムをインストールすること、本実施形態のアクセス制御プログラムを用いたアクセス制御装置をインターフェースやケーブルに設けること、さらに、磁気ディスク装置にアクセス制御プログラムをインストールすることなどで、一般に市販されている磁気ディスク装置を用いることができる。したがって、特殊な磁気ディスク装置などを用いる必要がなく、一般に市販されている磁気ディスク装置でも、実際の容量よりも小さな容量で用いる場合に生じる定点浮上を抑制できる。   In addition, also in this embodiment, the effect of suppressing the fixed point levitation can be improved using the access control program as in the first and second embodiments. For this reason, installing the access control program of the present embodiment on a computer that is a device that uses the magnetic disk device, providing an access control device using the access control program of the present embodiment on an interface or cable, A commercially available magnetic disk device can be used by installing an access control program in the magnetic disk device. Therefore, it is not necessary to use a special magnetic disk device or the like, and even a commercially available magnetic disk device can suppress the fixed point flying that occurs when the capacity is smaller than the actual capacity.

なお、本実施形態のように、交換後の大容量の磁気ディスク装置1の磁気ディスク1aの複数の領域にデータなどの書き込みを行い、書き込みや読み出しのために磁気ディスクにアクセスする毎に異なる領域にアクセスすることに加え、第1の実施形態のように、磁気ディスク1aで使用するシリンダ間をスキップさせることもできる。この場合、定点浮上の抑制効果をさらに向上できる。   It should be noted that, as in the present embodiment, data and the like are written in a plurality of areas of the magnetic disk 1a of the large-capacity magnetic disk apparatus 1 after replacement, and a different area each time the magnetic disk is accessed for writing or reading. In addition to accessing, the cylinders used in the magnetic disk 1a can be skipped as in the first embodiment. In this case, the effect of suppressing fixed point levitation can be further improved.

また、本実施形態では、磁気ディスクの2箇所の領域にデータを書き込む場合を例として説明している。しかし、2箇所に限らず、3箇所以上の磁気ディスクの領域に同じデータなどを書き込むこともできる。同じデータなどを書き込む領域の数を増やせば、増やしただけ磁気ヘッドが同じ位置にいる時間が減って定点浮上の抑制効果をより向上できる。また、リードエラーが発生しても動作を続行できる確率も大きくなる。   In this embodiment, the case where data is written in two areas of the magnetic disk is described as an example. However, the same data or the like can be written in not only two places but also three or more magnetic disk areas. If the number of areas for writing the same data and the like is increased, the time during which the magnetic head is at the same position decreases as the number of areas to be written increases, and the effect of suppressing the floating of the fixed point can be improved. In addition, even if a read error occurs, the probability that the operation can be continued increases.

また、本実施形態のような磁気ディスク装置のアクセス制御プログラム、このアクセス制御プログラムを記録した記録媒体、このアクセス制御プログラムを用いたアクセス制御装置や磁気ディスク装置も、第1の実施形態と同様、小容量の磁気ディスク装置を大容量の磁気ディスク装置に交換した場合だけでなく、磁気ディスク装置を実際よりも小さな容量で使用する場合にも適用できる。   Similarly to the first embodiment, the access control program of the magnetic disk device as in the present embodiment, the recording medium on which the access control program is recorded, the access control device and the magnetic disk device using the access control program are the same as in the first embodiment. The present invention is applicable not only when a small-capacity magnetic disk device is replaced with a large-capacity magnetic disk device but also when the magnetic disk device is used with a smaller capacity than the actual capacity.

また、第1乃至第3の実施形態では、アクセス制御プログラムを用いたアクセス制御装置3を用いた場合を例として説明した。しかし、本実施形態のアクセス制御プログラムを、このアクセス制御プログラムを記録した記録媒体を用いて磁気ディスク装置1を利用するコンピュータなどにインストールし、磁気ディスク装置1を利用するコンピュータなどが直接、このコンピュータの磁気ディスク装置1が接続されているインターフェースを制御することもできる。さらに、本実施形態アクセス制御装置3のようなアクセス制御装置となる回路を含むインターフェース基板を、磁気ディスク装置1を利用するコンピュータなどに増設し、この増設したインターフェース基板のコネクタに磁気ディスク装置1を接続することもできる。加えて、磁気ディスク装置1自体が本実施形態のアクセス制御プログラムを有するものとし、磁気ディスク装置1内で、本実施形態のアクセス制御プログラムによる処理が行なわれるようにすることもできる。   In the first to third embodiments, the case where the access control apparatus 3 using the access control program is used has been described as an example. However, the access control program of this embodiment is installed in a computer or the like that uses the magnetic disk device 1 using a recording medium that records the access control program, and the computer or the like that uses the magnetic disk device 1 directly installs the computer. It is also possible to control the interface to which the magnetic disk device 1 is connected. Further, an interface board including a circuit to be an access control device such as the access control device 3 of this embodiment is added to a computer or the like using the magnetic disk device 1, and the magnetic disk device 1 is connected to the connector of the added interface board. It can also be connected. In addition, the magnetic disk device 1 itself may have the access control program of the present embodiment, and the processing by the access control program of the present embodiment may be performed in the magnetic disk device 1.

また、第1乃至第3の実施形態は、インターフェースがSCSIであり、ブロック転送を行なう場合を例として説明した。しかし、本発明のアクセス制御プログラムは、SCSIなどのようにブロック転送を行なう場合に限らず、様々な転送方式に適用できる。例えば、第1及び第2の実施形態のような場合、リード/ライトコマンドが1つ1つのセクタ毎に受信論理アドレスを対応させて指定している場合、転送ブロック数に応じて変換論理アドレスを指定するリード/ライトコマンドを複数のコマンドに分割する処理は必要なく、アドレス変換テーブルの転送可能ブロック数に関する情報も必要なくなる。   In the first to third embodiments, the case where the interface is SCSI and block transfer is performed has been described as an example. However, the access control program of the present invention is not limited to block transfer such as SCSI, and can be applied to various transfer methods. For example, in the case of the first and second embodiments, when the read / write command specifies the reception logical address corresponding to each sector, the conversion logical address is set according to the number of transfer blocks. There is no need to divide the designated read / write command into a plurality of commands, and no information on the number of transferable blocks in the address translation table is required.

また、第1及び第3の実施形態のような磁気ディスク装置のアクセス制御プログラム、このアクセス制御プログラムを記録した記録媒体、このアクセス制御プログラムを用いたアクセス制御装置や磁気ディスク装置は、小容量の磁気ディスク装置を大容量の磁気ディスク装置に交換した場合だけでなく、磁気ディスク装置を実際よりも小さな容量で使用する場合などにも適用できる。   In addition, the access control program of the magnetic disk device as in the first and third embodiments, the recording medium on which the access control program is recorded, the access control device and the magnetic disk device using the access control program are small in capacity. The present invention can be applied not only when the magnetic disk device is replaced with a large-capacity magnetic disk device but also when the magnetic disk device is used with a smaller capacity than the actual capacity.

本発明を適用してなるアクセス制御装置を設け、交換後の大容量の磁気ディスク装置を交換前の小容量の磁気ディスク装置と同じ容量で用いる様子を模式的に示すブロック図である。FIG. 3 is a block diagram schematically showing a state in which an access control device to which the present invention is applied is provided and a large-capacity magnetic disk device after replacement is used with the same capacity as a small-capacity magnetic disk device before replacement. 本発明を適用してなるアクセス制御装置の概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the access control apparatus to which this invention is applied. 交換前の小容量の磁気ディスク装置と交換後の大容量の磁気ディスク装置の仕様を比較した一例を示す図である。It is a figure which shows an example which compared the specification of the small capacity magnetic disk apparatus before replacement | exchange, and the large capacity magnetic disk apparatus after replacement | exchange. 交換後の磁気ディスク装置のシリンダのスキップ数と使用するシリンダの数の関係を示す図である。It is a figure which shows the relationship between the skip number of the cylinder of the magnetic disk apparatus after replacement | exchange, and the number of cylinders to be used. 本発明を適用してなる第1の実施形態の磁気ディスク装置のアクセス制御プログラムが使用するアドレス変換テーブルの一例を示す図である。It is a figure which shows an example of the address conversion table which the access control program of the magnetic disk apparatus of 1st Embodiment to which this invention is applied uses. 本発明を適用してなる第1の実施形態の磁気ディスク装置のアクセス制御プログラムによる動作を示すフロー図である。It is a flowchart which shows operation | movement by the access control program of the magnetic disk apparatus of 1st Embodiment to which this invention is applied. 本発明を適用してなる第2の実施形態の磁気ディスク装置のアクセス制御プログラムが使用するアドレス変換テーブルの一例を示す図である。It is a figure which shows an example of the address conversion table which the access control program of the magnetic disk apparatus of 2nd Embodiment formed by applying this invention uses. 本発明を適用してなる第3の実施形態の磁気ディスク装置のアクセス制御プログラムによる動作を示すフロー図である。It is a flowchart which shows the operation | movement by the access control program of the magnetic disk apparatus of 3rd Embodiment to which this invention is applied. 本発明を適用してなる第3の実施形態の磁気ディスク装置のアクセス制御プログラムによる動作を示すフロー図である。It is a flowchart which shows the operation | movement by the access control program of the magnetic disk apparatus of 3rd Embodiment to which this invention is applied.

符号の説明Explanation of symbols

1 交換後の大容量の磁気ディスク装置
1a 磁気ディスク
3 アクセス制御装置
5 SCSIケーブル
7 SCSIアダプタ
9 交換前の小容量の磁気ディスク装置
9a 磁気ディスク
DESCRIPTION OF SYMBOLS 1 Large-capacity magnetic disk device after replacement 1a Magnetic disk 3 Access control device 5 SCSI cable 7 SCSI adapter 9 Small-capacity magnetic disk device 9a magnetic disk before replacement

Claims (10)

磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムであり、
磁気ディスク装置を利用する機器で発行するリード/ライトコマンドに指定された論理アドレスを、前記書き込みまたは読み出しを行なうシリンダの先にアクセスするシリンダの最後の論理アドレスと次にアクセスするシリンダの最初の論理アドレスとの間がスキップするシリンダに対応する論理アドレス分だけ論理アドレスをスキップした変換論理アドレスに変換する機能と、
該変換論理アドレスを指定したリード/ライトコマンドを磁気ディスク装置に対して発行する機能とを与え、
前記スキップするシリンダの数は、使用する必要があるシリンダの数とスキップするシリンダの数との合計が、前記磁気ディスクが有するシリンダの数を越えない範囲内となるように決定していることを特徴とするアクセス制御プログラム。
An access control program for a magnetic disk device for writing and reading data to and from a magnetic disk,
The logical address specified in the read / write command issued by the device using the magnetic disk device is the last logical address of the cylinder that accesses the tip of the cylinder that performs writing or reading, and the first logical address of the cylinder that is accessed next. A function of converting a logical address to a logical address corresponding to a cylinder address skipped between the address and a logical address skipped by the logical address;
A function of issuing a read / write command designating the conversion logical address to the magnetic disk device;
The number of cylinders to be skipped is determined so that the sum of the number of cylinders that need to be used and the number of cylinders to be skipped is within a range that does not exceed the number of cylinders that the magnetic disk has. Feature access control program.
磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムであり、
交換後の磁気ディスク装置の磁気ディスクへのデータの書き込み及び読み出しを行なうため、該交換後の磁気ディスク装置よりも容量が小さい交換前の磁気ディスク装置の磁気ディスクが有していたシリンダ数を使用し、かつ、前記交換後の磁気ディスク装置の磁気ディスクの1つのシリンダが有するセクタのうち、前記交換前の磁気ディスク装置の磁気ディスクの1つのシリンダが有していたセクタ数を使用する機能を与えることを特徴とするアクセス制御プログラム。
An access control program for a magnetic disk device for writing and reading data to and from a magnetic disk,
In order to write and read data to and from the magnetic disk of the magnetic disk device after replacement, the number of cylinders of the magnetic disk of the magnetic disk device before replacement, which has a smaller capacity than the magnetic disk device after replacement, is used. And the function of using the number of sectors which one cylinder of the magnetic disk of the magnetic disk device before replacement has among the sectors which one cylinder of the magnetic disk of the magnetic disk device after replacement has. An access control program characterized by giving.
磁気ディスク装置を利用する機器で発行するリード/ライトコマンドに指定された論理アドレスを、前記使用するシリンダのうちの1つのシリンダの最後の論理アドレスと該シリンダの次にアクセスするシリンダの最初の論理アドレスとの間が、少なくとも前記交換後の磁気ディスク装置の磁気ディスクにおいて前記交換前の磁気ディスク装置の磁気ディスクの1つのシリンダにおけるセクタ数よりも増えるセクタ数分に対応する論理アドレス分だけスキップした変換論理アドレスに変換する機能と、該変換論理アドレスを指定したリード/ライトコマンドを磁気ディスク装置に対して発行する機能とを与えることを特徴とするアクセス制御プログラム。 The logical address specified in the read / write command issued by the device using the magnetic disk device is changed to the last logical address of one of the cylinders used and the first logical of the cylinder accessed next to the cylinder. Between the addresses, at least the logical address corresponding to the number of sectors that is greater than the number of sectors in one cylinder of the magnetic disk of the magnetic disk device before the replacement in the magnetic disk of the magnetic disk device after the replacement is skipped An access control program that provides a function of converting to a conversion logical address and a function of issuing a read / write command designating the conversion logical address to a magnetic disk device. 前記変換論理アドレスは、磁気ディスク装置を利用する機器で発行する論理アドレスをアドレス変換テーブルに基づいて変換され作成されたものであることを特徴とする請求項1乃至3のいずれか1項に記載のアクセス制御プログラム。 4. The conversion logical address according to claim 1, wherein the conversion logical address is generated by converting a logical address issued by a device using a magnetic disk device based on an address conversion table. Access control program. 磁気ディスク装置の記録媒体である磁気ディスクへのデータの書き込み及び読み出しを行なうための磁気ディスク装置のアクセス制御プログラムであり、
前記磁気ディスクへの書き込みを行なうとき、該磁気ディスクの異なるシリンダで構成された異なる領域に同一の内容を書き込む機能と、前記磁気ディスクからの読み出しを行なうとき、前記磁気ディスクの前記異なる領域のいずれかの領域から読み出しを行なう機能と、前記磁気ディスクへの書き込みまたは読み出しのためにアクセスする毎にアクセスする領域を変える機能とを与えることを特徴とするアクセス制御プログラム。
An access control program for a magnetic disk device for writing and reading data to and from a magnetic disk that is a recording medium of the magnetic disk device,
When writing to the magnetic disk, any of the different areas of the magnetic disk when reading from the magnetic disk and the function of writing the same contents in different areas configured by different cylinders of the magnetic disk An access control program that provides a function of reading from one of the areas and a function of changing the area to be accessed every time access is made for writing to or reading from the magnetic disk.
前記磁気ディスクへの書き込みを行なうとき、磁気ディスク装置を利用する機器で発行するライトコマンドに指定された論理アドレスを磁気ディスク装置に対して発行すると共に、該ライトコマンドに指定された論理アドレスを含むシリンダが属した領域と異なる領域のシリンダが含む論理アドレスで構成された異なる領域となるアドレス分だけ該ライトコマンドに指定された論理アドレスに加算した別の論理アドレスを指定したライトコマンドを磁気ディスク装置に対して発行する機能と、
該磁気ディスクへの書き込みを行なうとき、前回のライトコマンドで最後にアクセスした領域、または、前回のリードコマンドでアクセスした領域を識別する情報に基づいて、今回のライトコマンドに指定された論理アドレスを含むシリンダが属した領域から書き込みを行なうか、前記別の論理アドレスを含むシリンダが属した領域から書き込みを行なうかを判定する機能と、
前回のライトコマンドで最後にアクセスした領域、または、前回のリードコマンドでアクセスした領域を識別する情報に基づいて、今回のリードコマンドに指定された論理アドレスを含むシリンダが属した領域から読み出しを行なうか、前記別の論理アドレスを含むシリンダが属した領域から読み出しを行なうかを判定し、該判定に応じて今回のリードコマンドに指定された論理アドレス、または、前記別の論理アドレスを指定したリードコマンドを磁気ディスク装置に対して発行する機能とを与えることを特徴とする請求項5に記載のアクセス制御プログラム。
When writing to the magnetic disk, the logical address specified in the write command issued by the device using the magnetic disk device is issued to the magnetic disk device, and the logical address specified in the write command is included. A magnetic disk device is provided with a write command in which another logical address is added to the logical address specified in the write command by an address corresponding to a different area configured by a logical address included in a cylinder in a different area from the area to which the cylinder belongs. A function issued to
When writing to the magnetic disk, the logical address specified in the current write command is determined based on the information for identifying the area last accessed by the previous write command or the area accessed by the previous read command. A function for determining whether writing is performed from an area to which a cylinder including a cylinder belongs or whether writing is performed from an area to which a cylinder including another logical address belongs;
Based on information identifying the area last accessed by the previous write command or the area accessed by the previous read command, reading is performed from the area to which the cylinder including the logical address specified in the current read command belongs. Or whether to read from the area to which the cylinder containing the other logical address belongs, and in accordance with the determination, the logical address specified in the current read command, or the read specifying the other logical address 6. The access control program according to claim 5, further comprising a function of issuing a command to the magnetic disk device.
前記磁気ディスクへの書き込みを行なうとき、該磁気ディスクの異なるシリンダで構成された異なる領域に同一の内容を書き込む機能は、前記磁気ディスクへの書き込みを行なうとき、前記磁気ディスクの異なる面または前記磁気ディスクを複数有するときは該複数の磁気ディスクの異なる磁気ディスクに書き込みを行なうことを特徴とする請求項5または6に記載のアクセス制御プログラム。 When writing to the magnetic disk, the function of writing the same contents in different areas formed by different cylinders of the magnetic disk is the function of writing different surfaces of the magnetic disk or the magnetic field when writing to the magnetic disk. 7. The access control program according to claim 5, wherein when there are a plurality of disks, writing is performed on different magnetic disks of the plurality of magnetic disks. 請求項1乃至7のいずれか1項に記載のアクセス制御プログラムを記録した記録媒体。 A recording medium on which the access control program according to claim 1 is recorded. 請求項1乃至7のいずれか1項に記載のアクセス制御プログラムを記憶した記憶手段と、該記憶手段に記憶したアクセス制御プログラムを用いて磁気ディスク装置を利用する機器で発行したリード/ライトコマンドの処理を行ない、磁気ディスクに対してリード/ライトコマンドを発行する処理部とを有することを特徴とするアクセス制御装置 A storage unit storing the access control program according to any one of claims 1 to 7, and a read / write command issued by a device using the magnetic disk device using the access control program stored in the storage unit An access control device comprising: a processing unit that performs processing and issues a read / write command to a magnetic disk 請求項1乃至7のいずれか1項に記載のアクセス制御プログラムを用いて磁気ディスク装置を利用する機器で発行したリード/ライトコマンドを処理し、磁気ディスクへのアクセスを行なうことを特徴とする磁気ディスク装置。 8. A magnetic device which processes a read / write command issued by a device using a magnetic disk device using the access control program according to claim 1 to access a magnetic disk. Disk unit.
JP2004188185A 2004-06-25 2004-06-25 Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus Pending JP2006012297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004188185A JP2006012297A (en) 2004-06-25 2004-06-25 Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004188185A JP2006012297A (en) 2004-06-25 2004-06-25 Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus

Publications (1)

Publication Number Publication Date
JP2006012297A true JP2006012297A (en) 2006-01-12

Family

ID=35779360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004188185A Pending JP2006012297A (en) 2004-06-25 2004-06-25 Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus

Country Status (1)

Country Link
JP (1) JP2006012297A (en)

Similar Documents

Publication Publication Date Title
US6735678B2 (en) Method and apparatus for disc drive defragmentation
JP2006294163A (en) Disk drive
JP2007035217A (en) Data saving processing method of disk storage device and disk storage system
US8862856B2 (en) Implementing remapping command with indirection update for indirected storage
JP2009266333A (en) Data storage device and adjacent track rewrite processing method
JP4012791B2 (en) Sector rearrangement method of information recording medium and information storage device
JPH06236241A (en) Hard disk device using flash memory
JP3760899B2 (en) Data recording / reproducing apparatus, data recording / reproducing method, and computer program
JP4158717B2 (en) Data recording / reproducing apparatus, data recording / reproducing method, program, and recording medium
US20120162809A1 (en) Magnetic disk drive and method of accessing a disk in the drive
US8117491B2 (en) Disk-drive device and method for error recovery thereof
JP2013157068A (en) Data storage control device, data storage device and data storage method
JP2014086116A (en) Magnetic disk device and data write method
JP2006012297A (en) Access control program of magnetic disk apparatus, access control apparatus using the access control program, and magnetic disk apparatus
JP2013186917A (en) Magnetic disk controller, magnetic disk device and magnetic disk control method
JP2009223355A (en) Disk control system for performing mirroring of hard disk and silicon disk
JP2009199665A (en) Data storage device, and data management method for the same
JP4782739B2 (en) Disk unit
JP2008117491A (en) Recording device, recording method and program
KR100618835B1 (en) Method for reassigning sector adaptively in data storage system and disc drive using the same
US20080082742A1 (en) Storage apparatus, storage apparatus control method, and control apparatus
JP4131953B2 (en) File control unit
JP4269915B2 (en) Recording / reproducing apparatus and method, and recording / reproducing system
JP4598417B2 (en) Data recording / reproducing apparatus, data recording / reproducing method, program, and recording medium
JP4082308B2 (en) Data recording / reproducing apparatus, data recording / reproducing method, program, and recording medium