JPS6356873A - Read system in duplicated file - Google Patents

Read system in duplicated file

Info

Publication number
JPS6356873A
JPS6356873A JP20077886A JP20077886A JPS6356873A JP S6356873 A JPS6356873 A JP S6356873A JP 20077886 A JP20077886 A JP 20077886A JP 20077886 A JP20077886 A JP 20077886A JP S6356873 A JPS6356873 A JP S6356873A
Authority
JP
Japan
Prior art keywords
read request
magnetic disk
load
disk device
read
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
JP20077886A
Other languages
Japanese (ja)
Inventor
Masao Fujita
藤田 正男
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP20077886A priority Critical patent/JPS6356873A/en
Publication of JPS6356873A publication Critical patent/JPS6356873A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To contrive to decrease the average read time by issuing a read request to a magnetic disk device having no load when one device has a load while the other has no load and issuing a read request to a magnetic disk device closest to a magnetic head position when both devices have no load. CONSTITUTION:A duplicated file read control means 15 discriminates the load state of magnetic disks 2, 3 detected by load state detection means 13, 14 and when it is discriminated that the both have no load, a read request is set to a read request issuing means of a magnetic disk device closest to the magnetic head at present. Thus, the read minimizing the seek time is applied. On the other hand, when any of the load state detection means 13, 14, e.g., the load state detection means 13 has a load of the magnetic disk device 2, the duplicated file read control means 15 sends the read request to the read request issuing means 17 of the magnetic disk device 3 detected to have no load. Since a read request issuing means 17 does not await the read request in this case, the read request is issued immediately and quick read is attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は別個の磁気ディスク装置上に格納された同一内
容を有する二重化されたファイルの読込方式に関し、特
に読込時間を短縮し得る二重化ファイルの読込方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for reading duplicated files having the same content stored on separate magnetic disk devices, and in particular to a method for reading duplicated files that can shorten the reading time. Regarding the reading method.

〔従来の技術〕[Conventional technology]

一般に、信頼性や稼動性等を高めるために、同一の内容
を持つファイルを別個の磁気ディスク装置上に格納して
ファイルを二重化することが行なわれているが、このよ
うな二重化ファイルからデータを読込む場合、従来は、
磁気ディスク装置または磁気ディスク媒体に障害が発生
するまでは何れか一方のファイルからのみ読込みを行な
うか、或いは各々のファイルを交互に読込むという方式
が採用されていた。
Generally, in order to improve reliability and operability, files with the same content are stored on separate magnetic disk drives to create duplicate files. When reading, conventionally,
Until a failure occurs in the magnetic disk device or magnetic disk medium, a method has been adopted in which reading is performed from only one of the files, or each file is read alternately.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の二重化ファイルの読込方式では、各磁気
ディスク装置の負荷状態や、磁気ディスク装置のヘッド
位置を考慮していないため、負荷の高い磁気ディスク装
置に入力要求を発行して要求が長く待たされたり、要求
の読込位置から遠いヘッド位置にある磁気ディスク装置
から読込みを行なってヘッド移動に時間がかかったりし
て、平均的な読込時間が増大するという欠点があった。
The conventional duplex file reading method described above does not take into account the load status of each magnetic disk device or the head position of the magnetic disk device, so the input request is issued to a magnetic disk device with a high load and the request waits for a long time. This has the disadvantage that the average reading time increases because reading is performed from a magnetic disk device located at a head position far from the requested reading position, and it takes time to move the head.

本発明はこのような従来の欠点を解決したもので、その
目的は、読込時間をできるだけ短縮し得る二重化ファイ
ルの読込方式を提供することにある。
The present invention solves these conventional drawbacks, and its purpose is to provide a duplex file reading method that can shorten the reading time as much as possible.

c問題点を解決するための手段〕 本発明は上記目的を達成するために、別個の磁気ディス
ク”21上に格納された同一内容の二つのファイルから
成る二重化ファイルの読込方式において、 二重化ファイルに対する読込要求を受付ける二重化ファ
イル読込要求受信手段と、 各々の磁気ディスク装置の負荷状態を検出する負荷状態
検出手段と、 各々の磁気ディスク装置の磁気ヘッドが現在置かれてい
る位置を検出するヘッド位置検出手段と、前記負荷状態
検出手段によって何れの磁気ディスク装置も無負荷であ
ると検出されている場合は、前記二重化ファイル読込要
求受信手段で受信され次に実行すべき読込要求を、前記
ヘッド位置検出手段で検出されたヘッド位置が前記実行
すべき読込要求の入力先シリンダアドレスに近い方の磁
気ディスク装置に対して発行し、前記負荷状態検出手段
によって一方の磁気ディスク装置のみが無負荷であると
検出されている場合は、前記二重化ファイル読込要求受
信手段で受信され次に実行すべき読込要求を、該無負荷
と検出された磁気ディスク装置に対し発行する制御手段
とを備える。
Means for Solving Problem c] In order to achieve the above object, the present invention provides a method for reading a duplex file consisting of two files with the same content stored on separate magnetic disks. duplex file read request receiving means for accepting read requests; load state detection means for detecting the load state of each magnetic disk device; and head position detection means for detecting the current position of the magnetic head of each magnetic disk device. and if any of the magnetic disk drives is detected to be unloaded by the load state detection means, the read request received by the duplex file read request receiving means and to be executed next is sent to the head position detection means. The head position detected by the means is issued to the magnetic disk drive closer to the input destination cylinder address of the read request to be executed, and the load state detection means determines that only one magnetic disk drive is unloaded. If detected, the control means is provided for issuing a read request received by the duplexed file read request receiving means and to be executed next to the magnetic disk device detected to be unloaded.

〔作用〕[Effect]

二重化ファイルの読込要求が二重化ファイル読込要求受
信手段で受信されると、制御手段は負荷状C,検出手段
で各々の磁気ディスク装置の負荷状態を調べ、双方とも
無負荷であれば、ヘッド位置検出手段によって各々の磁
気ディスク装置のヘッド位置を調べてヘッド位置が読込
要求先のシリンダアドレスに最も近い磁気ディスク装置
に対し読込要求を発行し、何れか一方力(無負荷であれ
ばその無負荷の磁気ディスク装置に対し読込要求を発行
する。
When a duplex file read request is received by the duplex file read request receiving means, the control means checks the load status C of each magnetic disk drive using the detection means, and if both are unloaded, detects the head position. The head position of each magnetic disk drive is checked by means, and a read request is issued to the magnetic disk drive whose head position is closest to the cylinder address of the read request destination. Issues a read request to the magnetic disk device.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例のブロック図であり、1は人力
制御装置、2.3は磁気ディスク装置、4はメモリであ
る。磁気ディスク装置2.3には同一内容を持つ二重化
されたファイル2a、3aが格納されている。また、人
力制御装置工には、図示しない中央処理装置上で動作す
るジョブ或いはタスクからの二重化ファイル読込要求を
受信する二重化ファイル読込要求受信手段IOと、磁気
ディスク装置2.3の磁気ヘッドが現在置かれているシ
リンダアドレスを検出するヘッド位置検出手段11.1
2と、磁気ディスク装置2に対する読込要求を受付けて
待ち行列に格納し磁気ディスク装置2に対し読込要求を
発行する読込要求発行手段16と、磁気ディスク装置3
に対する読込要求を受付けて待ち行列に格納し磁気ディ
スク装置3に対し読込要求を発行する読込要求発行手段
17と、読込要求発行手段16に存在する読込要求の待
ち数に基づいて磁気ディスク装置2の負荷状態を検出す
る負荷状態検出手段13と、読込要求発行手段17に存
在する読込要求の待ち数に基づいて磁気ディスク装置3
の負荷状態を検出する負荷状態検出手段14と、二重化
ファイル読込要求受信手段10から次に実行すべき読込
要求が出されたとき、負荷状態検出手段13.14.ヘ
ッド位置検出手段11.12の検出情報に基づいてその
読込要求を発行する磁気ディスク装置を選択し、また磁
気ディスク装置のファイル2a、3aから読出されたデ
ータを主記憶装置等のメモリ4に転送する二重化ファイ
ル読込み制御手段15とを含んでいる。
FIG. 1 is a block diagram of an embodiment of the present invention, in which 1 is a human control device, 2.3 is a magnetic disk device, and 4 is a memory. Duplicated files 2a and 3a having the same content are stored in the magnetic disk device 2.3. In addition, in the human control system, there is a duplex file read request receiving means IO that receives a duplex file read request from a job or task running on a central processing unit (not shown), and a magnetic head of the magnetic disk device 2.3. Head position detection means 11.1 for detecting the cylinder address where the head is placed
2, a read request issuing unit 16 that accepts a read request to the magnetic disk device 2, stores it in a queue, and issues a read request to the magnetic disk device 2, and a magnetic disk device 3.
A read request issuing means 17 accepts a read request for the magnetic disk drive 2 , stores it in a queue, and issues a read request to the magnetic disk drive 3 based on the number of waiting read requests existing in the read request issuing means 16 . The load state detection means 13 detects the load state, and the magnetic disk device 3 based on the number of waiting read requests existing in the read request issuing means 17.
When a read request to be executed next is issued from the duplex file read request receiving means 10, the load state detecting means 14 detects the load state of the load state detecting means 13, 14. Selects the magnetic disk device that issues the read request based on the detection information of the head position detection means 11 and 12, and also transfers the data read from the files 2a and 3a of the magnetic disk device to the memory 4 such as the main storage device. The duplex file read control means 15 includes a duplex file read control means 15 for controlling the duplex file reading.

第1図において、二重化ファイル読込要求が二重化ファ
イル読込要求受信手段10で受信されると、この要求は
二重化ファイル読込み制御手段15に渡される。二重化
ファイル読込み制御手段15は、読込要求を受けると、
先ず負荷状態検出手段13.14で検出された各磁気デ
ィスク装置2.3の負荷状態を判別する。そして、何れ
の磁気ディスク装置2.3も無負荷であると判定すると
、ヘッド位置検出手段11.12で検出されている磁気
ディスク装置2.3の現在の磁気ヘッドのシリンダアド
レスと要求があった読込要求の入力先シリンダアドレス
とを比較し、入力先シリンダアドレスに近いシリンダア
ドレスを存する磁気ディスク装置の読込要求発行手段に
対し読込要求を送る。例えば、磁気ディスク装置2の現
在シリンダアドレスの方が読込要求先シリンダアドレス
に近い場合には、読込要求は読込要求発行手段16に送
られ、読込要求発行手段16は要求待ちがないことから
直ちにその読込要求を磁気ディスク装置2に発行する。
In FIG. 1, when a duplex file read request is received by duplex file read request receiving means 10, this request is passed to duplex file read control means 15. When the duplex file reading control means 15 receives a reading request,
First, the load state of each magnetic disk device 2.3 detected by the load state detection means 13.14 is determined. When it is determined that all magnetic disk drives 2.3 are under no load, the current cylinder address of the magnetic head of the magnetic disk drive 2.3 detected by the head position detection means 11.12 and the request are received. The read request is compared with the input destination cylinder address, and the read request is sent to the read request issuing means of the magnetic disk device that has a cylinder address close to the input destination cylinder address. For example, if the current cylinder address of the magnetic disk device 2 is closer to the read request destination cylinder address, the read request is sent to the read request issuing means 16, and since there is no request waiting, the read request issuing means 16 immediately issues the read request. A read request is issued to the magnetic disk device 2.

従って、シーク時間が最も短くなるような読込みが行な
われ、読込まれたファイル2aのデータは二重化ファイ
ル読込み制御手段15を介してメモリ4に転送される。
Therefore, reading is performed such that the seek time is the shortest, and the read data of the file 2a is transferred to the memory 4 via the duplex file reading control means 15.

他方、負荷状態検出手段13.14の何れか一方例えば
負荷状態検出手段13でのみ磁気ディスク装置2の負荷
があることが検出され、他方の負荷状態検出手段13で
は磁気ディスク装置3に負荷がないことが検出された場
合には、二重化ファイル読込み制御手段15は、無負荷
と検出された磁気ディスク装置3の読込要求発行手段1
7に読込要求を送る。
On the other hand, only one of the load state detection means 13 or 14, for example, the load state detection means 13, detects that there is a load on the magnetic disk drive 2, and the other load state detection means 13 detects that there is no load on the magnetic disk drive 3. If this is detected, the duplex file reading control means 15 issues a read request issuing means 1 of the magnetic disk device 3 detected to be unloaded.
Send a read request to 7.

読込要求発行手段17にはこの場合読込要求の待ちはな
いので、その読込要求は直ちに磁気ディスク装置3に発
行され、速やかな読込みが可能となる。
In this case, the read request issuing means 17 is not waiting for a read request, so the read request is immediately issued to the magnetic disk device 3, and prompt reading becomes possible.

なお、負荷状RM検出手段13.14の双方で各磁気デ
ィスク装置2.3の負荷があることが検出された場合に
は、任意の方法で読込要求が処理される。
Note that if both the loaded RM detection means 13.14 detect that there is a load on each magnetic disk device 2.3, the read request is processed by an arbitrary method.

例えば、負荷の少ない磁気ディスク装置の読込要求発行
手段に読込要求を送るようにしても良く、また何れか一
方の磁気ディスク装置が無負荷となるまで二重化ファイ
ル読込要求受信手段IO或いは二重化ファイル読込み制
御手段15で読込要求を待たせ、無負荷の磁気ディスク
装置が出た時点でそれに読込要求を発行するようにして
も良い。
For example, a read request may be sent to the read request issuing means of a magnetic disk device with a light load, and the duplex file read request receiving means IO or duplex file read control may be sent to the read request issuing means of a magnetic disk device with a light load, and the duplex file read request receiving means IO or duplex file read control may be sent to the read request issuing means of a magnetic disk device with a light load. The read request may be made to wait by the means 15, and the read request may be issued to an unloaded magnetic disk device when it appears.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、一方に負荷があ
り他方が無負荷であれ−ばその無負荷の磁気ディスク装
置に対し読込要求が発行され、双方とも無負荷であれば
磁気ヘッド位置が最も近い磁気ディスク装置に読込要求
が発行されるので、平均的な読込時間を短縮することが
できる効果がある。
As explained above, according to the present invention, if one is loaded and the other is unloaded, a read request is issued to the unloaded magnetic disk device, and if both are unloaded, the magnetic head position is Since the read request is issued to the nearest magnetic disk device, the average read time can be reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のブロック図である。 図において、1・・・入力制御装置、2.3・・・磁気
ディスク装置、2a、3a・・・二重化されたファイル
、4・・・メモリ、10・・・二重化ファイル読込要求
受信手段、11.12・・・ヘッド位置検出手段、13
.14・・・負荷状態検出手段、15・・・二重化ファ
イル読込み制御手段、16.17・・・読込要求発行手
段。 本発明の実施例のプロ・ツク図 第1図
FIG. 1 is a block diagram of an embodiment of the invention. In the figure, 1...input control device, 2.3...magnetic disk device, 2a, 3a...duplicated file, 4...memory, 10...duplicated file read request receiving means, 11 .12...Head position detection means, 13
.. 14... Load state detection means, 15... Duplicated file reading control means, 16.17... Reading request issuing means. FIG. 1 is a schematic diagram of an embodiment of the present invention.

Claims (1)

【特許請求の範囲】 別個の磁気ディスク装置上に格納された同一内容の二つ
のファイルから成る二重化ファイルの読込方式において
、 二重化ファイルに対する読込要求を受付ける二重化ファ
イル読込要求受信手段と、 各々の磁気ディスク装置の負荷状態を検出する負荷状態
検出手段と、 各々の磁気ディスク装置の磁気ヘッドが現在置かれてい
る位置を検出するヘッド位置検出手段と、前記負荷状態
検出手段によって何れの磁気ディスク装置も無負荷であ
ると検出されている場合は、前記二重化ファイル読込要
求受信手段で受信され次に実行すべき読込要求を、前記
ヘッド位置検出手段で検出されたヘッド位置が前記実行
すべき読込要求の入力先シリンダアドレスに近い方の磁
気ディスク装置に対して発行し、前記負荷状態検出手段
によって一方の磁気ディスク装置のみが無負荷であると
検出されている場合は、前記二重化ファイル読込要求受
信手段で受信され次に実行すべき読込要求を、該無負荷
と検出された磁気ディスク装置に対し発行する制御手段
とを具備したことを特徴とする二重化ファイルの読込方
式。
[Scope of Claims] A method for reading a duplexed file consisting of two files with the same content stored on separate magnetic disk devices, comprising a duplexed file read request receiving means for accepting a read request for the duplexed file, and a duplexed file read request receiving means for each magnetic disk. load state detection means for detecting the load state of the device; head position detection means for detecting the current position of the magnetic head of each magnetic disk drive; and head position detection means for detecting the current position of the magnetic head of each magnetic disk drive; If the load is detected, the read request received by the duplex file read request receiving means and to be executed next is input to the read request to be executed based on the head position detected by the head position detecting means. The request is issued to the magnetic disk drive that is closer to the destination cylinder address, and if the load state detection means detects that only one magnetic disk drive is not loaded, the request is received by the duplex file read request receiving means. 1. A method for reading a duplexed file, comprising: control means for issuing a read request to be executed next to the magnetic disk device detected to be unloaded.
JP20077886A 1986-08-27 1986-08-27 Read system in duplicated file Pending JPS6356873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20077886A JPS6356873A (en) 1986-08-27 1986-08-27 Read system in duplicated file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20077886A JPS6356873A (en) 1986-08-27 1986-08-27 Read system in duplicated file

Publications (1)

Publication Number Publication Date
JPS6356873A true JPS6356873A (en) 1988-03-11

Family

ID=16430026

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20077886A Pending JPS6356873A (en) 1986-08-27 1986-08-27 Read system in duplicated file

Country Status (1)

Country Link
JP (1) JPS6356873A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58132586A (en) * 1982-02-03 1983-08-06 Canon Inc Material to be recorded
US5835938A (en) * 1990-02-26 1998-11-10 Hitachi, Ltd. Read/write control for grouped disk storage including parallel access
US6728832B2 (en) 1990-02-26 2004-04-27 Hitachi, Ltd. Distribution of I/O requests across multiple disk units
US8521983B2 (en) 2007-04-20 2013-08-27 Fujitsu Limited Program, apparatus and method for managing data allocation of distributed storage system including storage nodes

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58132586A (en) * 1982-02-03 1983-08-06 Canon Inc Material to be recorded
JPS6356874B2 (en) * 1982-02-03 1988-11-09 Canon Kk
US5835938A (en) * 1990-02-26 1998-11-10 Hitachi, Ltd. Read/write control for grouped disk storage including parallel access
US6108750A (en) * 1990-02-26 2000-08-22 Hitachi, Ltd. Simultaneous read/write control of data storage disk units
US6631443B1 (en) 1990-02-26 2003-10-07 Hitachi, Ltd. Disk storage system having capability for performing parallel read operation
US6728832B2 (en) 1990-02-26 2004-04-27 Hitachi, Ltd. Distribution of I/O requests across multiple disk units
US6938125B2 (en) 1990-02-26 2005-08-30 Hitachi, Ltd. Storage system with data prefetch function
US7254674B2 (en) * 1990-02-26 2007-08-07 Hitachi, Ltd. Distribution of I/O requests across multiple disk units
US8521983B2 (en) 2007-04-20 2013-08-27 Fujitsu Limited Program, apparatus and method for managing data allocation of distributed storage system including storage nodes

Similar Documents

Publication Publication Date Title
US6272571B1 (en) System for improving the performance of a disk storage device by reconfiguring a logical volume of data in response to the type of operations being performed
US7519783B2 (en) Storage control apparatus, storage system, and control method for storage system
JP2561398B2 (en) Redundant disk controller
JP2000181773A (en) Storage device system
JPH0844497A (en) System and method for data transfer/management
JPS6356873A (en) Read system in duplicated file
JPH10105502A (en) Peripheral equipment controller
JPH07121310A (en) Hard disk storage device
JP2806749B2 (en) I / O load distribution control method when file devices are duplicated
JP2596192B2 (en) Load distribution control method for peripheral control device
JPH11175261A (en) Control method for disk
JP2004164171A (en) Path redundancy device and method
JP2001014219A (en) Method and device for controlling cache
JPH07168673A (en) Dual system device
JPH08263221A (en) Duplex magnetic disk device
JP4422319B2 (en) Multiplexed storage controller
JPH11161555A (en) Duplex file i/o device, method therefor and information processor using the same
JPS58144270A (en) Storage device system
WO1989000313A1 (en) Fast-tag transfer improvement
JPH05217286A (en) Magnetic disk controller
JPH04186422A (en) Duplex volume system
JP2006215615A (en) Information recording and reproducing apparatus and method for controlling it
JPH04113415A (en) Storage of redundant constitution and its retrieving method
JPH0267661A (en) Data transfer device
JPS6286425A (en) Magnetic disc control device