JPH04186422A - Duplex volume system - Google Patents

Duplex volume system

Info

Publication number
JPH04186422A
JPH04186422A JP2316455A JP31645590A JPH04186422A JP H04186422 A JPH04186422 A JP H04186422A JP 2316455 A JP2316455 A JP 2316455A JP 31645590 A JP31645590 A JP 31645590A JP H04186422 A JPH04186422 A JP H04186422A
Authority
JP
Japan
Prior art keywords
volume
input
output
duplex
volumes
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
JP2316455A
Other languages
Japanese (ja)
Inventor
Takashi Shinyashiki
新屋敷 孝
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 JP2316455A priority Critical patent/JPH04186422A/en
Publication of JPH04186422A publication Critical patent/JPH04186422A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve processing performance by outputting a read request out of I/O instructions to a volume having less I/O instruction queues out of a master volume and a slave volume. CONSTITUTION:This duplex volume system is constituted of a duplex volume management table 7 having an I/O queuing matrix number counting area 8, an I/O signal queuing matrix number adding means 9, an I/O queuing matrix number subtracting means 10, a duplex volume 14 having the master and slave volumes, an I/O queue matrix 13, etc. A read request out of I/O instructions to the volume 14 is outputted to the master volume 11 or the slave volume 12 which has less I/O queues, i.e. the volume having lower load. Thus the processing performance can be improved.

Description

【発明の詳細な説明】 技術分野 本発明は二重化ボリュームシステムに関し、特に電子計
算機システムにおいて磁気ディスクを正および副の2つ
のボリュームで対としてボリュームの二重化を行う磁気
ディスクのボリューム二重化方式に関する。
DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to a duplex volume system, and more particularly to a volume duplex method for magnetic disks in which a magnetic disk is paired with two volumes, a primary volume and a secondary volume, to duplex a volume in a computer system.

従来技術 従来、この種の磁気ディスクのボリューム二重化方式に
おいては、二重化された磁気ディスクに対する利用者プ
ログラムからの入出力命令のうちライト命令は正および
副の両ボリュームに対して発行され、両ボリュームに対
するライトが全て完了するまで待ち合わせるが、リード
命令は正に発行され、正のボリュームでリード障害が発
生した場合に副のボリュームに対して発行される。
Conventionally, in this type of magnetic disk volume duplication system, write commands among the input/output commands from the user program to the duplexed magnetic disks are issued to both the primary and secondary volumes, and the write commands are issued to both the primary and secondary volumes. It waits until all writes are completed, but a read command is issued correctly, and if a read failure occurs in the primary volume, it is issued to the secondary volume.

このような従来のボリューム二重化方式では、副のボリ
ュームが正のボリュームでリード障害が発生した時の待
機系という位置づけてあり、正および副の両ボリューム
に同一データか格納されているにもかかわらず、リード
のアクセス回数が多いような場合、入出力命令が正のボ
リュームに集中してその負荷が軽減されないとい□う欠
点がある。
In this type of conventional volume duplication system, the secondary volume is the primary volume and is positioned as a standby system when a read failure occurs, even though the same data is stored in both the primary and secondary volumes. If the number of read accesses is large, the input/output commands will be concentrated on the positive volume and the load will not be reduced.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、処理性能を向上させることができる二重
化ボリュームシステムの提供を目的とする。
OBJECTS OF THE INVENTION The present invention has been made to eliminate the drawbacks of the conventional systems as described above, and an object of the present invention is to provide a dual volume system that can improve processing performance.

発明の構成 本発明による二重化ボリュームシステムは、第1および
第2のボリュームに同一内容のデータを格納し、前記第
1および第2のボリュームへの入出力命令が読出し命令
のときに前記第1のボリュームからデータが読出される
二重化ボリュームシステムであって、待ち状態の前記第
1および第2のボリューム各々への入出力命令数を計数
する第1および第2の計数手段と、前記第1および第2
のボリュームへの前記入出力命令が読出し命令のとき、
前記mlおよび第2の計数手段各々の計数値を比較する
比較手段と、前記比較手段により前記第2の計数手段の
計数値か前記第1の計数手段の計数値より小さいことか
検出されたとき、前記第2のボリュームからデータを読
出すよう制御する制御手段とを有することを特徴とする
Configuration of the Invention The duplex volume system according to the present invention stores data of the same content in a first and second volume, and when an input/output command to the first and second volumes is a read command, A duplex volume system in which data is read from a volume, comprising first and second counting means for counting the number of input/output commands to each of the first and second volumes in a waiting state; 2
When the input/output command to the volume is a read command,
a comparison means for comparing the count values of the ml and the second counting means, and when the comparison means detects that the count value of the second counting means is smaller than the count value of the first counting means; , and control means for controlling reading of data from the second volume.

実施例 次に、本発明の一実施例について図面を参照して詳細に
説明する。
Embodiment Next, an embodiment of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、本発明の一実施例による二重化ボリュ
ームシステムは利用者プロクラム1と、入出力情報管理
ブロック作成手段2と、入出力属性判定手段3と、入出
力待ち行列数比較手段4と、入出力情報管理ブロック5
と、入出力対象装置変更手段6と、人出力待ち行列数カ
ウント領域8を有する二重化ボリューム管理テーブル7
と、入出力待ち行列数加算手段9と、入出力待ち行列数
減算手段10と、正ボリューム11および副ボリューム
12を有する二重化ボリューム14と、入出力待ち行列
13とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, the duplex volume system according to one embodiment of the present invention includes a user program 1, input/output information management block creation means 2, input/output attribute determination means 3, input/output queue number comparison means 4, input/output Information management block 5
, a duplex volume management table 7 having an input/output device changing means 6 and a human output queue count area 8
, an input/output queue number adding means 9, an input/output queue number subtracting means 10, a duplex volume 14 having a primary volume 11 and a secondary volume 12, and an input/output queue 13.

第2図は第1図の入出力情報管理ブロック作成手段2お
よび入出力属性判定手段3の手順を示すフローチャート
であり、第3図は第1図の入出力待ち行列数比較手段4
と入出力対象装置変更手段6と入出力待ち行列数加算手
段9とにおける動作を示すフローチャートであり、第4
図は第1図の人出力待ち行列数減算手段10の動作を示
すフローチャートである。
2 is a flowchart showing the procedure of the input/output information management block creation means 2 and the input/output attribute determination means 3 of FIG. 1, and FIG. 3 is a flowchart showing the procedure of the input/output queue number comparison means 4 of FIG.
FIG.
The figure is a flowchart showing the operation of the human output queue number subtraction means 10 of FIG.

これら第1図〜第4図を用いて正ボリューム11および
副ボリューム12により二重化を行っている二重化ボリ
ュームの入出力方式について詳細に説明する。
The input/output method of a duplex volume in which duplication is performed using the primary volume 11 and the secondary volume 12 will be described in detail using FIGS. 1 to 4.

まず、利用者プログラム1の二重化ボリューム14の正
ボリューム11へのリード要求が発行されると、入出力
情報ブロック作成手段2により入出力命令と入出力対象
装置である正ボリューム11の装置情報とを含んだ入出
力情報管理ブロック5が作成される(第2図ステップ2
1)。
First, when a read request to the primary volume 11 of the duplexed volume 14 of the user program 1 is issued, the input/output information block creation means 2 reads the input/output command and the device information of the primary volume 11, which is the input/output target device. The input/output information management block 5 containing the information is created (Step 2 in Figure 2).
1).

次に、入出力属性判定手段3が起動され、入出力情報管
理ブロック5の内容を参照して入出力対象装置が二重化
ボリューム14であるかどうかを、入出力情報管理ブロ
ック5の入出力対象装置情報が二重化ボリューム管理テ
ーブル7に登録されているかテーブルサーチして判定す
る(第2図ステップ22)。
Next, the input/output attribute determination means 3 is activated, and refers to the contents of the input/output information management block 5 to determine whether the input/output target device is the duplex volume 14 or not. A table search is performed to determine whether the information is registered in the duplex volume management table 7 (step 22 in FIG. 2).

入出力対象装置か非二重化ボリュームなら通常の入出力
処理を起動する(第2図ステップ23゜27)。
If it is an input/output target device or a non-duplex volume, normal input/output processing is started (steps 23 and 27 in FIG. 2).

入出力対象装置が二重化ボリューム14ならば(第2図
ステップ23)、入出力情報管理ブロック5の入出力命
令を参照してリード要求であるかライト要求であるかを
判定する(第2図ステップ24)。
If the input/output target device is the duplex volume 14 (step 23 in FIG. 2), it is determined whether it is a read request or a write request by referring to the input/output command of the input/output information management block 5 (step 23 in FIG. 2). 24).

その結果、二重化ボリューム14に対するライト要求と
判定されると、二重化ライト処理を起動する(第2図ス
テップ26)。
As a result, if it is determined that the write request is for the duplex volume 14, duplex write processing is started (step 26 in FIG. 2).

二重化ボリューム14に対するリード要求と判定される
と、入出力待ち行列数比較手段4を起動する(第2図ス
テップ25)。
When it is determined that the read request is for the duplex volume 14, the input/output queue number comparison means 4 is activated (step 25 in FIG. 2).

入出力属性判定手段3て二重化ボリューム14へのリー
ド要求と判定され、入出力待ち行列数比軸手段4か起動
されると、入出力待ち行列数比較手段4は入出力対象装
置である正ボリューム1]および副ボリューム12各々
の入出力待ち行列数カウント領域8を二重化ボリューム
管理テーブル7から捜し出しく第3図ステップ31)、
正ボリューム11および副ボリューム12各々の入出力
待ち行列数カウント領域8の値を比較する。
When the input/output attribute determining means 3 determines that the read request is to the duplex volume 14 and the input/output queue number ratio axis means 4 is activated, the input/output queue number comparing means 4 determines whether the read request is for the duplex volume 14 or the primary volume which is the input/output target device. 1] and the input/output queue count area 8 of each of the secondary volumes 12 are searched from the duplex volume management table 7 (step 31 in FIG. 3),
The values in the input/output queue count area 8 of each of the primary volume 11 and secondary volume 12 are compared.

その結果、副ボリューム12の値が少なければ入出力対
象装置変更手段6を起動し、正ボリューム11および副
ボリューム12各々の値が同じか、あるいは正ボリュー
ム11の値が少なければ何もせず、大田力待ち行列数加
算手段9を起動する(第3図ステップ32)。
As a result, if the value of the secondary volume 12 is small, the input/output device changing means 6 is started, and if the values of the primary volume 11 and the secondary volume 12 are the same, or if the value of the primary volume 11 is small, nothing is done, and Ota The power queue number adding means 9 is activated (step 32 in FIG. 3).

入出力対象装置変更手段6は二重化ボリューム管理テー
ブル7を参照して正ボリューム11の対となっている副
ボリューム12の装置情報を得て、入出力情報管理ブロ
ック5の対象装置情報を正ボリューム11から副ボリュ
ーム12の情報に変更する(第3図ステップ33)。
The input/output device changing unit 6 refers to the duplex volume management table 7 to obtain device information of the secondary volume 12 that is paired with the primary volume 11, and changes the target device information in the input/output information management block 5 to the primary volume 11. The information is changed from that to the information of the secondary volume 12 (step 33 in FIG. 3).

入出力待ち行列数比較手段4によって比較される人出力
待ち行列数カウント領域J域8の値は入出力待ち行列数
加算手段9と入出力待ち行列数減算手段10とにより加
算および減算される。
The values in the human output queue count area J area 8 compared by the input/output queue number comparing means 4 are added and subtracted by the input/output queue number adding means 9 and the input/output queue number subtracting means 10.

人出力待ち行列数加算手段9は入出力情報管理ブロック
5の入出力対象装置の二重化ボリューム管理テーブル7
の入出力待ち行列数カウント領域8の値を得て(第3図
ステップ34)、人出力待ち行列数からカウント領域8
の値に1を加算してから(第3図ステップ35)、入出
力待ち行列13へ入出力情報管理ブロック5を入力する
(第3図ステップ36)。
The human output queue number adding means 9 is the duplex volume management table 7 of the input/output target device of the input/output information management block 5.
Obtain the value of the input/output queue count area 8 (step 34 in Figure 3), and calculate the value of the count area 8 from the number of human output queues.
After adding 1 to the value of (step 35 in FIG. 3), the input/output information management block 5 is input to the input/output queue 13 (step 36 in FIG. 3).

大田力待ち行列数減算手段10は入出力命令発行のため
に入出力待ち行列13から入出力命令発行可能な入出力
情報管理ブロック5か1つ出力されると(第4図ステッ
プ41)、出力された入出力情報管理ブロック5の入出
力対象装置情報か二重化ボリューム14のものかとうか
二重化ボリューム管理テーブル7を参照して判断し、対
象装置の入出力待ち行列数カウント領域8の値を入手し
ておく (第4図ステップ42)。
When one of the input/output information management blocks 5 capable of issuing an input/output command is output from the input/output queue 13 for issuing an input/output command (Step 41 in FIG. 4), the Riki Ota queue number subtraction means 10 outputs an input/output command. Referring to the duplex volume management table 7, it determines whether the input/output target device information of the input/output information management block 5 that has been input/output is that of the duplex volume 14, and obtains the value of the input/output queue number count area 8 of the target device. (Step 42 in Figure 4).

入出力対象装置か二重化ボリューム14てあれば(第4
図ステップ43)、二重化ボリューム管理テーブル7の
対象ボリュームの人出力待ち行列数カウント領域8の値
から1を減算する(第4図ステップ44)。
If there is an input/output target device or duplex volume 14 (4th
(Step 43 in FIG. 4), 1 is subtracted from the value in the human output queue count area 8 of the target volume in the duplex volume management table 7 (Step 44 in FIG. 4).

この後に、実際の入出力命令発行のための入出力命令発
行処理か起動される(第4図ステップ45)。
After this, an input/output command issuing process for actually issuing an input/output command is started (step 45 in FIG. 4).

すなわち、利用者プログラム1のリード要求は二重化ボ
リューム管理テーブル7の正ボリューム11および副ボ
リューム12各々の入出力待ち行列数カウント領域8の
値を比較することによって、正ボリューム11および副
ボリューム12各々の入出力待ち行列数のうち少ない方
のボリュームに対して発行される。
That is, the read request from the user program 1 is made by comparing the values in the input/output queue count area 8 of the primary volume 11 and the secondary volume 12 in the duplex volume management table 7. Issued to the volume with the smaller number of I/O queues.

このように、二重化ボリューム14に対する入出力命令
のうちリード要求に関しては正ボリューム11および副
ボリューム12のうち入出力命令待ちか少ない方、つま
り負荷の軽い方に発行するようにすることによって、リ
ード要求に対する性能の向上をはかることかできる。
In this way, read requests among input/output commands for the duplex volume 14 are issued to the one of the primary volume 11 and secondary volume 12 that is waiting for fewer input/output commands, that is, the one with a lighter load. It is possible to improve the performance of

発明の詳細 な説明したように本発明によれば、二重化ボリュームに
対する入出力命令のうちリード要求に関しては正ボリュ
ームおよび副ボリュームのうち入出力命令待ちの少ない
方に発行するようにすることによって、処理性能を向上
させることができるという効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, read requests among input/output commands for a duplexed volume are issued to the primary volume or the secondary volume, whichever is waiting for fewer input/output commands. This has the effect of improving performance.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図の人出力情報管理ブロック作成手段および
入出力属性判定手段の手順を示すフローチャート、第3
図は第1図の入出力待ち行列数比較手段と入出力対象装
置変更手段と人出力待ち行列数加算手段とにおける動作
を示すフローチャート、第4図は第1図の入出力待ち行
列数減算手段の動作を示すフローチャートである。 主要部分の符号の説明 2・・・・・・入出力情報管理ブロック作成手段3・・
・・・・入出力属性判定手段 4・・・・・・入出力待ち行列数比較手段6・・・・・
・入出力対象装置変更手段8・・・・・・入出力待ち行
列数カウント領域9・・・・・・入出力待ち行列数加算
手段10・・・・・・入出力待ち行列数減算手段11・
・・・・・正ボリューム 12・・・・・・副ボリューム
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the procedure of the human output information management block creation means and input/output attribute determination means shown in FIG. 1, and FIG.
The figure is a flowchart showing the operations of the input/output queue number comparing means, the input/output target device changing means, and the human output queue number addition means of FIG. 1, and FIG. 4 is the input/output queue number subtraction means of FIG. 1. 3 is a flowchart showing the operation of FIG. Explanation of symbols of main parts 2...Input/output information management block creation means 3...
...Input/output attribute determination means 4...Input/output queue number comparison means 6...
- Input/output target device changing means 8... Input/output queue number counting area 9... Input/output queue number adding means 10... Input/output queue number subtracting means 11・
...Primary volume 12 ...Secondary volume

Claims (1)

【特許請求の範囲】[Claims] (1)第1および第2のボリュームに同一内容のデータ
を格納し、前記第1および第2のボリュームへの入出力
命令が読出し命令のときに前記第1のボリュームからデ
ータが読出される二重化ボリュームシステムであって、
待ち状態の前記第1および第2のボリューム各々への入
出力命令数を計数する第1および第2の計数手段と、前
記第1および第2のボリュームへの前記入出力命令が読
出し命令のとき、前記第1および第2の計数手段各々の
計数値を比較する比較手段と、前記比較手段により前記
第2の計数手段の計数値が前記第1の計数手段の計数値
より小さいことが検出されたとき、前記第2のボリュー
ムからデータを読出すよう制御する制御手段とを有する
ことを特徴とする二重化ボリュームシステム。
(1) Duplication in which data with the same content is stored in the first and second volumes, and data is read from the first volume when an input/output command to the first and second volumes is a read command. A volume system,
first and second counting means for counting the number of input/output commands to each of the first and second volumes in a waiting state, and when the input/output command to the first and second volumes is a read command; , a comparison means for comparing the count values of each of the first and second counting means, and the comparison means detecting that the count value of the second counting means is smaller than the count value of the first counting means. and control means for controlling reading of data from the second volume when the volume is read from the second volume.
JP2316455A 1990-11-21 1990-11-21 Duplex volume system Pending JPH04186422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2316455A JPH04186422A (en) 1990-11-21 1990-11-21 Duplex volume system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2316455A JPH04186422A (en) 1990-11-21 1990-11-21 Duplex volume system

Publications (1)

Publication Number Publication Date
JPH04186422A true JPH04186422A (en) 1992-07-03

Family

ID=18077286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2316455A Pending JPH04186422A (en) 1990-11-21 1990-11-21 Duplex volume system

Country Status (1)

Country Link
JP (1) JPH04186422A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008225534A (en) * 2007-03-08 2008-09-25 Nec Corp Dynamic degeneration apparatus and method
JP2009193469A (en) * 2008-02-15 2009-08-27 Nec Corp Device, method and program for dynamic switching

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008225534A (en) * 2007-03-08 2008-09-25 Nec Corp Dynamic degeneration apparatus and method
JP2009193469A (en) * 2008-02-15 2009-08-27 Nec Corp Device, method and program for dynamic switching

Similar Documents

Publication Publication Date Title
JP3781212B2 (en) sub-system
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
JPH0113571B2 (en)
JPH03218514A (en) Method of optimizing size of i/o buffer and computer apparatus with optimized i/o buffer
US8010733B1 (en) Methods and apparatus for accessing content
JPH04186422A (en) Duplex volume system
JPH0667811A (en) Multiplexed disk control device
JP2005209055A (en) Method for distributing load of storage
JP2001014112A (en) Disk subsystem and remote copying method
JP2806749B2 (en) I / O load distribution control method when file devices are duplicated
JPH02278418A (en) Volume duplication system for magnetic disk
US7130931B2 (en) Method, system, and article of manufacture for selecting replication volumes
JPH04195217A (en) Input/output system for duplex volume
JP2526728B2 (en) Disk cache automatic usage method
JPH01128115A (en) Input/output processing system for data
JPH05233159A (en) Duplex auxiliary storage system
JPH11212729A (en) Duplex disk device
JP2994917B2 (en) Storage system
JPH11161555A (en) Duplex file i/o device, method therefor and information processor using the same
JPH0635621A (en) Dual disk storage device having dual restoring function
JPH0447350A (en) Main storage read/response control
JPS6286425A (en) Magnetic disc control device
JPH04264614A (en) File input/output control system
JPH04113432A (en) Virtual storage control method
JPS59200325A (en) Interruption processing system