JPS62202249A - Shared resource access guard system among plural host computers - Google Patents

Shared resource access guard system among plural host computers

Info

Publication number
JPS62202249A
JPS62202249A JP61044632A JP4463286A JPS62202249A JP S62202249 A JPS62202249 A JP S62202249A JP 61044632 A JP61044632 A JP 61044632A JP 4463286 A JP4463286 A JP 4463286A JP S62202249 A JPS62202249 A JP S62202249A
Authority
JP
Japan
Prior art keywords
host
shared resource
information
access
logical
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
JP61044632A
Other languages
Japanese (ja)
Inventor
Akira Miyajima
宮島 明
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 JP61044632A priority Critical patent/JPS62202249A/en
Publication of JPS62202249A publication Critical patent/JPS62202249A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

PURPOSE:To switch shared resources quickly and to sufficiently guard shared resources against access as well by allowing each host to generate closing information based on a logical host number inputted to the host itself and shared resource information and to check this generated information to decide whether access is permitted or not. CONSTITUTION:A logical host number input means 5 inputs a logical host number. An information input means 7 reads in shared resource definition information stored in a shared resource definition information storage area 13. A closing means 8 generates the closing information of shared resources, which the host itself cannot access, in accordance with the logical host number from the means 5 and shared resource definition information from the means 7 and registers this generated information in a closing information storage area 12. It is checked whether this registration is terminated normally or not, and the processing is terminated if it is terminated normally, but the error processing is performed if it is terminated abnormally.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、2台以上のホスト計算機(以下単にホストと
称す)と各ホストで共用可能な共用資源とで構成される
システムにおいて、共用資源への所定ホスト以外のポス
トからのアクセスをガードする方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a system that includes two or more host computers (hereinafter simply referred to as hosts) and shared resources that can be shared by each host. This invention relates to a method for guarding access from posts other than a predetermined host.

〔従来の技術〕[Conventional technology]

従来、この種の複数ホスト間の共用資源のアクセスガー
ドに関しては、以下の二つの方式が使用されていた。
Conventionally, the following two methods have been used to guard access to shared resources among multiple hosts.

(A)複数のホストで共用可能な共用資源のうちあるホ
ストが使用する共用資源以外の共用資源をそのホストか
ら物理的に切離しておく方式。
(A) A method in which shared resources that can be shared by multiple hosts, except those used by a certain host, are physically separated from that host.

この方式では、そのホストに別の外部記憶装置などの共
用資源を割当てる場合、共用資源を物理的に接続し直す
ことになる。共用資源のアクセスのガードという点では
物理的に切離しているので問題は生じない。
In this method, when a shared resource such as another external storage device is allocated to the host, the shared resource must be physically reconnected. In terms of guarding access to shared resources, there is no problem since they are physically separated.

(B)各ホストを物理的には全ての共用資源に接続して
おくと共に各ホストが全ての共用資源にアクセスできる
ようにしておき、例えばある時間帯以外は一つの共用資
源は一つのホストのみしかアクセスできないように運用
を行なう方式。
(B) Physically connect each host to all shared resources and allow each host to access all shared resources, for example, except during certain hours, only one host can use a shared resource. A method of operation that allows access only to the public.

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

上述した従来の方式のうち、(A)の方式では、アクセ
スガードの点については前述したように問題はないが、
何等かの理由によりあるホストで使用していた共用資源
を別のホストに割当てる際には、共用資源の物理的な接
続換えが必要となり、この切換えの為に多くの時間を要
する欠点がある。
Among the conventional methods mentioned above, method (A) does not have any problems in terms of access guard, but
When allocating shared resources used by one host to another host for some reason, it is necessary to physically switch the shared resources, which has the drawback of requiring a lot of time.

従って、2台以上のホストで構成されその内の少なくと
も1台は待機系ホストとして他の稼動系ホストの処理を
引継げるように待機しているシステムなどでは、待機系
ホストがダウンした稼動系ホストの処理を引継げるよう
になるまでに多大な時間を要するという欠点がある。
Therefore, in a system that consists of two or more hosts, at least one of which is on standby so that it can take over the processing of another active host, if the standby host goes down, the active The disadvantage is that it takes a long time to be able to take over the host's processing.

一方、(B)の方式では、物理的な接続換えを行なう必
要がないので共用資源の切り換えも比較的速やかに行な
うことができるが、全ての共用資源がアクセス可能とな
っているので、運用の誤りによって他のホストに割当て
られた共用資源の内容を壊してしまう危険性が大きいと
いう欠点がある。
On the other hand, in method (B), there is no need to physically switch connections, so shared resources can be switched relatively quickly, but since all shared resources can be accessed, operation The drawback is that there is a high risk that an error will destroy the contents of shared resources allocated to other hosts.

本発明はこのような従来の欠点を解決したもので、その
目的は、共用資源の切換えが速やかに行なえ、且つ共用
資源のアクセスガードも充分に行なえるようにすること
にある。
The present invention solves these conventional drawbacks, and its purpose is to enable quick switching of shared resources and to sufficiently guard access to shared resources.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上記目的を達成するために、複数のホスト計算
機間で共用可能な共用資源への所定ホスト計算機以外の
ホスト計算機からのアクセスをガードする方式において
、 前記複数のホスト計算機は前記共用資源と物理的に接続
され、且つ、 前記複数のホスト計算機の各々は、 ホスト立上げ時に論理ホスト番号を入力する論理ホスト
番号入力手段と、 外部記憶媒体上の共用資源定義情報格納域に論理ホスト
番号対応に格納された共用資源定義情報と前記人力され
た論理ホスト番号とに基づいて閉塞情報を生成し、該生
成した閉塞情報を閉塞情報格納域に格納する閉塞手段と
、 共用資源へのアクセス要求時に前記閉塞情報格納域に格
納された閉塞情報をチェックしてアクセスの可否を決定
する閉塞チェック手段とを設ける。
In order to achieve the above object, the present invention provides a system for guarding access from host computers other than a predetermined host computer to a shared resource that can be shared among a plurality of host computers, in which the plurality of host computers are connected to the shared resource. Each of the plurality of physically connected host computers has: a logical host number input means for inputting a logical host number when starting up the host; and a logical host number corresponding to a shared resource definition information storage area on an external storage medium. a blocking means that generates blocking information based on the shared resource definition information stored in the shared resource definition information and the manually entered logical host number, and stores the generated blocking information in a blocking information storage area; Blockage checking means is provided for checking blockage information stored in the blockage information storage area to determine whether or not access is permitted.

〔作用〕[Effect]

各々のポストは、自ホストに入力された論理ホスト番号
と共用資源定義情報に基づいて閉塞情報を生成し、アク
セス時にはこの閉塞情報をチェックしてアクセスの可否
を決定するものであり、論理ホスト番号に対応する共用
資源定義情報の内容を各ホストに使用させる共用資源に
応じて定めておくことにより、別の論理ホスト番号が割
当てられた他ホストの共用資源を誤ってアクセスするこ
とを防止でき、又あるホストで使用していた共用資源を
別のホストに切換える際は、例えば切換え先のホストに
対し切換え元のホストに割当てていた論理ホスト番号を
与えることで可能となり、物理的な接続換えが不要なの
で共用資源の切換えも比較的速やかに行なうことができ
る。
Each post generates blockage information based on the logical host number input to its own host and shared resource definition information, and when accessing, this blockage information is checked to determine whether or not access is possible. By determining the contents of shared resource definition information corresponding to each host according to the shared resources to be used by each host, it is possible to prevent erroneous access to shared resources of other hosts that are assigned different logical host numbers. In addition, when switching shared resources used by one host to another host, for example, it is possible to give the logical host number assigned to the switching source host to the switching destination host, and physical connection switching is possible. Since this is not necessary, shared resources can be switched relatively quickly.

〔実施例〕〔Example〕

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

第1図は本発明で使用するホストの実施例のブロック図
であり、2台以上のホストを有しその内ノ少なくとも1
台は待機系ホストとして他の稼動系ホストの処理を引継
げるように待機しているシステムに好適なホスト構造例
を示し、1は処理装置、2は外部記憶媒体である。この
実施例のホストは処理装置1と外部記憶媒体2から構成
されているが、外部記憶媒体2を複数のホストで共用し
た構成を採用することも勿論可能である。外部記憶媒体
2には、共用資源定義情報格納域13があり、この格納
域13中には予め論理ホスト番号に対応して共用資源定
義情報すなわち複数のホストで共用可能な資源のうちど
の資源がどの論理ホスト番号を持つホストに使用可能か
或いは使用してはならないかに関する情報が予め格納さ
れている。また、処理装置1は、その内部に、監視手段
3.処理継続手段4.論理ホスト番号引継ぎ手段6.論
理ホスト番号入力手段5.資源情報入力手段7.閉塞手
段8.閉塞チェック手段9.閉塞チェックバイパス手段
IO1閉塞解除手段11.閉塞情報格納域12を含んで
いる。
FIG. 1 is a block diagram of an embodiment of a host used in the present invention, including two or more hosts, at least one of which is a host.
1 shows an example of a host structure suitable for a system that is on standby as a standby host so that it can take over the processing of another active host, where 1 is a processing device and 2 is an external storage medium. Although the host in this embodiment is composed of a processing device 1 and an external storage medium 2, it is of course possible to adopt a configuration in which the external storage medium 2 is shared by a plurality of hosts. The external storage medium 2 has a shared resource definition information storage area 13, and this storage area 13 contains shared resource definition information in advance corresponding to the logical host number, that is, which resources among the resources that can be shared by multiple hosts are stored. Information regarding which hosts with logical host numbers can or must not be used is stored in advance. The processing device 1 also includes monitoring means 3. Processing continuation means 4. Logical host number takeover means6. Logical host number input means 5. Resource information input means 7. Closing means8. Blockage checking means 9. Blockage check bypass means IO1 Blockage release means 11. It includes a blockage information storage area 12.

論理ポスト番号人力手段5は、本ホストに対し外部から
論理ホスト番号を設定し入力することを可能とする手段
で、その処理の一例は第3図に示されている。
The logical post number manual means 5 is a means that allows a logical host number to be externally set and input to this host, and an example of this process is shown in FIG.

資源情報入力手段7は、外部記憶媒体2の共用資源定義
情報格納域13に格納された共用資源定義情報を入力す
る手段であり、その処理の一例が第4図に示されている
The resource information input means 7 is a means for inputting the shared resource definition information stored in the shared resource definition information storage area 13 of the external storage medium 2, and an example of its processing is shown in FIG.

閉塞手段8は、論理ホスト番号入力手段5で人力された
論理ホスト番号と、資源情報入力手段7により共用資源
定義情報格納域13から入力された共用資源定義情報と
に基づき、自ホストからアクセス不能とする共用資源に
関する閉塞情報を生成し、これを閉塞情報格納域12に
格納する手段で、その処理例は第5図に示される。
The blocking means 8 blocks access from its own host based on the logical host number manually entered by the logical host number input means 5 and the shared resource definition information inputted from the shared resource definition information storage area 13 by the resource information input means 7. A processing example is shown in FIG. 5.

監視手段3は、本ホストが稼動系ホストの場合と待機系
ホストの場合とでその動作モードが異なり、稼動系ホス
トの場合はホスト内の動作異常および障害による停止を
監視し、待機系ポストの場合は稼動系ホストと通信しあ
って稼動系ホストの動作異常および障害による停止を監
視する。稼動系ホスト時の処理例は第6図に例示され、
待機系ホスト時の処理例は第7図に例示されている。
The operation mode of the monitoring means 3 differs depending on whether the host is an active host or a standby host, and in the case of an active host, it monitors abnormalities in the host's operation and stoppages due to failures, and monitors standby posts. If so, it communicates with the active host and monitors the active host for operational abnormalities and stoppages due to failures. An example of processing on an active host is illustrated in Figure 6.
An example of processing at the standby host is illustrated in FIG.

処理継続手段4は、本ホストが待機系ホスl〜のとき有
効に動作し、他の稼動系ポストの動作異常あるいは障害
による停止時に稼動系ホストで行なっていた処理を待機
系ホストに切換えて処理の継続を計る手段であり、その
処理の一例が第8図に示されている。
The processing continuation means 4 operates effectively when this host is a standby host, and when another active post is stopped due to an abnormal operation or a failure, the processing that was being performed on the active host is switched to the standby host. An example of this process is shown in FIG.

論理ホスト番号引継ぎ手段6も、本ホストが待機系ホス
トのとき有効に動作し、他の稼動系ホストからの処理を
待機系ホストに切換えた時にその論理ホスト番号を引継
ぐ手段で、例えば第9図に示す処理を実施する。
The logical host number transfer means 6 also operates effectively when this host is a standby host, and is a means for inheriting the logical host number when processing from another active host is switched to the standby host, for example, as shown in FIG. Execute the process shown in

閉塞解除手段11は、本ホストが待機系ホストのとき有
効に動作し、稼動系ホストの処理が待機系ホストに切換
えられて論理ホスト番号も引継がれたとき、その論理ホ
スト番号に従って、それまで閉塞していた資源を解放す
る手段であり、第10図はその処理の一例を示す。
The blocking release means 11 operates effectively when this host is a standby host, and when the processing of the active host is switched to the standby host and the logical host number is also taken over, the blockage release means 11 is configured to release the blockage until then according to the logical host number. This is a means of releasing resources that have been previously used, and FIG. 10 shows an example of this process.

閉塞チェック手段9は、本ホストが共用資源をアクセス
する際に、閉塞情報格納域12に格納された閉塞情報を
チェックしてアクセスの可否を決定する手段で、その動
作の一例が第11図に示されている。
The blockage checking means 9 is a means for checking the blockage information stored in the blockage information storage area 12 to determine whether access is possible when the host accesses the shared resource. An example of its operation is shown in FIG. It is shown.

閉塞チェックバイパス手段10は、本ホストが待機系ホ
ストのとき有効に動作する。稼動系ホストから待機系ホ
ストへの切換え必要時、処理をできる限り即時に引継げ
るようにする為には、待機系ホストでは共用資源へのア
クセスバスを開設して事前準備を行なっておく必要があ
り、その事前準備には、そのとき既に閉塞されている共
用資源へのアクセスを一時的に可能とすることが必要で
あり、上記閉塞チェックバイパス手段10はこれを可能
とするものである。なお、閉塞チェックバイパス手段1
0は例えば第12図に示す処理を実行する。
The blockage check bypass means 10 operates effectively when this host is a standby host. When switching from an active host to a standby host is necessary, in order to take over processing as quickly as possible, the standby host must prepare in advance by opening an access bus to the shared resources. To prepare for this, it is necessary to temporarily enable access to the shared resource that is already blocked at that time, and the blockage check bypass means 10 makes this possible. In addition, blockage check bypass means 1
0 executes the process shown in FIG. 12, for example.

第2図は、第1図に示した構成を有するホストを3台使
用し、うち2台のホスト(処理装置A。
In FIG. 2, three hosts having the configuration shown in FIG. 1 are used, of which two hosts (processing device A) are used.

処理装置Bを含むホスト)を稼動系ホス)21.22と
し、残りの1台のホスト(処理装置Cを含むホスト)を
待機系ホスト23としてシステム構成した例を示す。各
ホスト21〜23は、それらからアクセス可能な共用資
源(R,)27.  (R,) 2Bと物理的に接続さ
れている。また、稼動系ホス)21.22および待機系
ホスト23はそれぞれ論理ホスト番号がrlJ、r2J
、r3Jで動作している。更に、各々のホストは、その
内部にある監視手段24.25゜26(第1図の監視手
段3に相当する)により互いに監視のために通信するこ
とができるようになっている。
An example of a system configuration is shown in which the host (including the processing device B) is set as the active host (21, 22), and the remaining host (the host including the processing device C) is the standby host 23. Each host 21-23 has a shared resource (R,) 27. which is accessible from them. (R,) Physically connected to 2B. In addition, the active host) 21.22 and the standby host 23 have logical host numbers rlJ and r2J, respectively.
, is running on r3J. Furthermore, each host can communicate with each other for monitoring purposes by means of monitoring means 24,25.26 (corresponding to the monitoring means 3 in FIG. 1) located therein.

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

先ず、ホスト立」二げ時、論理ホスト番号を入力し、そ
の番号に従って共用資源定義情報格納域13内の情報か
ら、そのホストではアクセスしてはならない共用資源を
閉塞するわけであるが、その動作を第1図の各手段の動
作を説明しながら、第3図、第4図、第5図、第6図を
参照して詳細に説明する。
First, when a host is set up and taken down, a logical host number is input, and according to that number, shared resources that must not be accessed by that host are blocked from the information in the shared resource definition information storage area 13. The operation will be explained in detail with reference to FIGS. 3, 4, 5, and 6 while explaining the operation of each means in FIG. 1.

第1図の論理ホスト番号入力手段5は、第3図のステッ
プ31で自ホストが稼動系ホストであるか待機系ホスト
であるかの識別情報を入力し、次のステップ32で論理
ホスト番号を入力し、ステップ33でその正当性をチェ
ックし、正当であれば処理を終了する。このような処理
が各ホスト毎に行なわれることで、第2図に示した稼動
系ホスト21に論理ホスト番号「1」が設定され、稼動
系ホスト22に論理ホスト番号「2」が設定され、待機
系ホスト23に論理ホスト番号「3」が設定される。
The logical host number input means 5 in FIG. 1 inputs identification information as to whether the own host is an active host or a standby host in step 31 in FIG. 3, and inputs the logical host number in the next step 32. The input information is checked for validity in step 33, and if it is valid, the process is terminated. By performing such processing for each host, the logical host number "1" is set to the active host 21 shown in FIG. 2, the logical host number "2" is set to the active host 22, and The logical host number “3” is set to the standby host 23.

次に第1図の資源情報入力手段7は、第4図のステップ
41で共用資源定義情報格納域13に格納されている共
用資源定義情報を読込み、ステップ42で読込みエラー
がないかチェックし、エラーがなければ処理を終了し、
エラーがあればエラー処理を行なって異常終了となる。
Next, the resource information input means 7 in FIG. 1 reads the shared resource definition information stored in the shared resource definition information storage area 13 in step 41 in FIG. 4, and checks for read errors in step 42. If there are no errors, end the process,
If there is an error, error processing is performed and the process ends abnormally.

次に第1図の閉塞手段8は、第5図のステップ51にお
いて、論理ホスト番号入力手段5で入力された論理ホス
ト番号と資源情報入力手段7で入力された共用資源定義
情報に従って、自ホストでアクセス不可な共用資源の閉
塞情報を生成し、これを、閉塞情報格納域12に登録す
る。次に、ステップ52で上記登録が正常に終了したか
否かをチェックし、正常であれば処理を終了し、異常終
了であればステップ53でエラー処理を行なう。今、第
13図(a)に示すように、第2図の共用資源27を稼
動系ホスト21のみに使用させ、共用資源28を稼動系
ホスト22のみに使用させる場合、上述した各処理によ
り、ホスト21内の閉塞情報格納域12には共用資源2
8がアクセス禁止の旨設定され、ポスト22の閉塞情報
格納域12には共用資a27がアクセス禁止の旨設定さ
れ、待機系ホスト23の閉塞情報格納域12には共用資
源27と共用資源28の双方がアクセス禁止の旨設定さ
れることになる。
Next, in step 51 of FIG. 5, the blocking means 8 of FIG. Blockage information of the inaccessible shared resource is generated and registered in the blockage information storage area 12. Next, in step 52, it is checked whether the above registration has been completed normally. If it is normal, the process is ended, and if it is abnormal, error processing is performed in step 53. Now, as shown in FIG. 13(a), if the shared resource 27 in FIG. 2 is used only by the active host 21, and the shared resource 28 is used only by the active host 22, the above-mentioned processes will The shared resource 2 is in the blockage information storage area 12 in the host 21.
8 is set to prohibit access, the shared resource a27 is set to be access prohibited in the blockage information storage area 12 of the post 22, and the shared resources 27 and 28 are set in the blockage information storage area 12 of the standby host 23. Access will be prohibited for both parties.

さて、以上のようにしてホストが立ち上がった後、監視
手段3などが働き、本実施例の場合、稼動系ホスト21
或いは稼動系ホスト22が障害などによりダウンしたと
き、自動的にその処理が待機系ホスト23で実施される
ものとなるが、その際の動作は後述するとして、先ず、
各ホストでどのようにして所定資源のアクセスガードが
行なわれるかを、第1図、第11図および第12図を参
照して説明する。
Now, after the host has started up as described above, the monitoring means 3 etc. operate, and in the case of this embodiment, the active host 21
Alternatively, when the active host 22 goes down due to a failure or the like, the process is automatically executed by the standby host 23.The operation at that time will be described later, but first,
How each host performs access guarding of predetermined resources will be explained with reference to FIGS. 1, 11, and 12.

稼動系ホス)21.22においては、データ管理プログ
ラムなどから共有資源或いは他の資源をアクセスする入
出力命令が発行されると、閉塞チェ・7り手段9が起動
される。この閉塞チェック手段9は起動されると、第1
1図のステップ111において閉塞チェックバイパスフ
ラグが立っていないかチェックし、立っていれば無条件
でその資源に対するアクセスを許可する。この閉塞チェ
ックバイパスフラグは、後述するように待機系ホストに
おける事前準備のために閉塞を破って共用資源のアクセ
スを可能とするために設けられたものであり、その詳細
は後述する。
In the active host) 21 and 22, when an input/output command for accessing a shared resource or another resource is issued from a data management program or the like, the blockage checking means 9 is activated. When this blockage checking means 9 is activated, the first
In step 111 of FIG. 1, it is checked whether the blockage check bypass flag is set, and if it is set, access to the resource is unconditionally permitted. This blockage check bypass flag is provided to break the blockage and enable access to the shared resource as a preliminary preparation in the standby host, as will be described in detail later.

また反対に、閉塞チェックバイパスフラグが立っていな
ければ、ステップ112で入出力命令中の閉塞チェック
要パラメータを受付け、次のステップ113で閉塞情報
格納域12の中から該当する資源に関する閉塞情報を検
索し、次のステップ114で目的とする閉塞情報が存在
′したかどうかの判定を行ない、存在しなければ本ホス
トに対するその資源のアクセスは許容されているのでそ
の入出力命令に対しアクセス可を通知する(ステップ1
16)。
Conversely, if the blockage check bypass flag is not set, the blockage check required parameter in the input/output command is accepted in step 112, and blockage information regarding the corresponding resource is retrieved from the blockage information storage area 12 in the next step 113. Then, in the next step 114, it is determined whether or not the target blockage information exists. If it does not exist, access to the resource is permitted for this host, and the I/O command is notified that access is allowed. (Step 1
16).

反対に存在すれば、ステップ115で更にその閉塞情報
に基づく閉塞を実施するか否かを指示する閉塞フラグな
どにより実際のアクセスが可能か否かを判別し、アクセ
ス可能ならばステップ116でその旨の通知を行ない、
アクセス不可ならばステップ117でその旨の通知を行
なう。発行された入出力命令は、閉塞チェック手段9か
らの通知がアクセス可ならその入出力命令を実行するが
、アクセス不可の場合はその入出力命令を実行しない。
On the other hand, if it exists, it is determined in step 115 whether or not actual access is possible using a blockage flag that indicates whether or not to implement blockage based on the blockage information, and if access is possible, a step 116 indicates that give notice of
If access is not possible, a notification to that effect is sent in step 117. The issued input/output command is executed if the notification from the blockage check means 9 indicates that access is possible, but if access is not permitted, the input/output command is not executed.

従って、各ホストで閉塞されている共用資源に対するア
クセスは禁止されることになる。
Therefore, access to shared resources that are blocked on each host is prohibited.

以上の閉塞チェック手段9により、予め設定された論理
ホスト番号に応じた共用資源以外の資源へのアクセスは
禁止されることになり、第2図の待機系ホスト23の場
合、共用資源27.28はそのままではアクセスできな
い。しかし、稼動系ホスト21、22が何等かの障害に
よりダウンした場合、待機系ホスト23はできるだけ速
やかに処理を引継げるようにする為には、待機系ホスト
は立ち上がった後、速やかに共用資源へアクセスバスの
開設を行なっておく必要がある。このように、待機系ホ
ストが事前準備を行なうために本来閉塞されている共用
資源に対し特例としてアクセスを許す手段が第1図の閉
塞チェックバイパス手段10であり、以下、閉塞チェッ
クバイパス手段10の動作について、第11図および第
12図を参照して詳細に説明する。
The above blockage check means 9 prohibits access to resources other than the shared resources corresponding to the preset logical host number, and in the case of the standby host 23 in FIG. 2, the shared resources 27, 28 cannot be accessed as is. However, if the active hosts 21 and 22 go down due to some kind of failure, in order for the standby host 23 to take over the processing as quickly as possible, the standby host must immediately access the shared resources after starting up. It is necessary to establish an access bus to the area. In this way, the blockage check bypass means 10 shown in FIG. The operation will be explained in detail with reference to FIGS. 11 and 12.

閉塞チェックバイパス手段10は、特定の処理の特定区
間にのみ許される手段であり、共用資源へのアクセス要
求に先立って起動されるもので、閉塞チェックのバイパ
スの設定、解除を行なう手段である。閉塞チェックバイ
パス手段10は起動されると、第12図のステップ12
1で特定タスクからの要求が閉塞チェックバイパス処理
開始要求であるか否かを判別し、閉塞チェックバイパス
処理開始要求であると、ステップ122で閉塞チェック
バイパスフラグを立ててセットし、閉塞チェックバイパ
ス処理開始要求でなく終了要求であると判別すると、ス
テップ123で閉塞チェックバイパスフラグのリセット
を行なう。
The blockage check bypass means 10 is a means that is allowed only in a specific section of a specific process, is activated prior to a request for access to a shared resource, and is a means for setting and canceling the blockage check bypass. When the occlusion check bypass means 10 is activated, step 12 in FIG.
In step 1, it is determined whether the request from the specific task is a request to start blockage check bypass processing, and if it is a request to start blockage check bypass processing, in step 122, a blockage check bypass flag is set and the blockage check bypass processing is started. If it is determined that the request is not a start request but an end request, the blockage check bypass flag is reset in step 123.

このようにして、閉塞チェックバイパス手段IOにより
閉塞チェックバイパスフラグがセントされると、第11
図で説明したように共用資源へのアクセスが許可される
ことになり、待機系ボスト23はアクセスバス開設の準
備を行なうことが可能となる。
In this way, when the occlusion check bypass flag is sent by the occlusion check bypass means IO, the 11th
As explained in the figure, access to the shared resource will be permitted, and the standby boss 23 will be able to prepare for opening an access bus.

さて、次に第1図の監視手段3.処理継続手段4、論理
ホスト番号引継ぎ手段6.閉塞解除手段11などを使用
して、稼動系ホストの処理を待機系ホストの処理に引継
がせる際の動作を説明する。
Now, next is the monitoring means 3 in FIG. Processing continuation means 4, logical host number takeover means 6. The operation when the processing of the active host is taken over by the processing of the standby host using the blocking release means 11 will be explained.

先ず、監視手段3の動作について、第6図、第7図を参
照しながら詳細に説明する。
First, the operation of the monitoring means 3 will be explained in detail with reference to FIGS. 6 and 7.

監視手段3は、自ホストが稼動系ホストの場合と待機系
ホストの場合とで動作を異にし、稼動系ホストの場合は
第6図の処理を行ない、待機系ホストの場合は第7図の
処理を行なう。
The monitoring means 3 operates differently depending on whether the host is an active host or a standby host. In the case of an active host, the process shown in Figure 6 is performed, and in the case of a standby host, the process shown in Figure 7 is performed. Process.

稼動系ホストの場合、第6図のステップ61で予め決め
られた監視用タスクへイベントを発行し、ステップ62
でそのイベントの回答を待つ。次にステップ63でその
回答が例えば一定時間内に戻ってこなかったり或いは異
常であったりした場合、ステップ65でホストダウン処
理を行ない、ステップ66で待機系ホストへダウン通知
を発行して処理を終える。また、ステップ63で回答が
正常であれば、ステップ64で自ホストが正常である旨
のイベントを予め決められた一定周期内に他のホストへ
発行する。
In the case of an active host, an event is issued to a predetermined monitoring task in step 61 of FIG. 6, and step 62
and wait for the response of that event. Next, in step 63, if the answer is not returned within a certain period of time or is abnormal, the host down process is performed in step 65, and a down notification is issued to the standby host in step 66, and the process ends. . Further, if the response is normal in step 63, an event indicating that the own host is normal is issued to other hosts within a predetermined period in step 64.

一方、待機系ホストにおける監視手段3は、第7図のス
テップ71で他ホストのダウン通知を受付げた場合、そ
のダウンしたホストで行なっていた処理を引継ぐべく、
ステップ72で第1図の処理継続手段4にダウン通知を
送ってこれを起動する。
On the other hand, when the monitoring means 3 in the standby host receives a down notification of another host in step 71 of FIG.
In step 72, a down notification is sent to the processing continuation means 4 in FIG. 1 to start it up.

次に、待機系ホストがダウン通知を受付け、処理を継続
する動作について、第1図の各手段の動作を説明しなが
ら、第8図、第9図、第10図を参照して詳細に説明す
る。
Next, the operation of the standby host accepting a down notification and continuing processing will be explained in detail with reference to Figures 8, 9, and 10 while explaining the operation of each means in Figure 1. do.

第1図の処理継続手段4は、第8図のステップ81でダ
ウン通知を監視手段3から受取ると、ステップ82でダ
ウンしたホストから引継ぐべき共用資源以外の資源の切
換要求を行ない、論理ホスト番号引継き手段6へ通知を
行なう。この通知を、第9図のステップ91で受取った
論理ホスト番号引継ぎ手段6は、ステップ92で論理ホ
スト番号引継ぎ処理を行ない、ステップ93で第1図の
資源情報入力手段7に資源情報の取込み要求を発行する
。その要求を受けた資源情報入力手段7は、第4図のス
テップ41で共用資源定義情報格納域13から資源定義
情報を読込み、閉塞解除手段11を起動する。
When the processing continuation means 4 in FIG. 1 receives the down notification from the monitoring means 3 in step 81 in FIG. A notification is sent to the takeover means 6. The logical host number takeover means 6, which received this notification in step 91 of FIG. 9, performs logical host number takeover processing in step 92, and requests the resource information input means 7 of FIG. 1 to take in resource information in step 93. Issue. Upon receiving the request, the resource information input means 7 reads the resource definition information from the shared resource definition information storage area 13 in step 41 of FIG. 4, and activates the block release means 11.

第1図の閉塞解除手段11は起動されると、第10図の
ステップ101において、ステップ92で論理ホスト番
号引継ぎ手段6が引継いだ論理ホスト番号と、ステップ
41で資源情報入力手段7が得た資源定義情報に従って
、既に待機系ホストにおいて閉塞されていた閉塞情報の
削除を行ない、次のステップ102でその削除が正常終
了かのチェックを行ない、正常であれば処理を終了し、
異常終了ならばステップ103でエラー処理を行なう。
When the blocking release means 11 in FIG. 1 is activated, in step 101 in FIG. According to the resource definition information, the blockage information that has already been blocked in the standby host is deleted, and in the next step 102, it is checked whether the deletion has been completed normally, and if it is normal, the process is terminated,
If the process ends abnormally, error processing is performed in step 103.

第1図の論理ホスト番号引継ぎ手段6は第9図のステッ
プ94で以上のような資源情報人力手段7と閉塞解除手
段11の資源情報処理の確認をした後、ステップ95で
処理の終了通知を処理継続手段4に行なう。
The logical host number handover means 6 in FIG. 1 confirms the resource information processing by the resource information manual means 7 and the blockage release means 11 as described above in step 94 in FIG. 9, and then sends a processing completion notification in step 95. The processing continuation means 4 performs the processing.

上記通知を第8図のステップ85で受けた処理継続手段
4は、それまでに、ステップ84で資源切換処理の終了
確認を行なっておき、ステップ86で監視手段3に監視
モードを待機系から稼動系へのモードに切換えるよう通
知し、次のステップ87でそれまで待機していた処理ジ
ョブまたはタスクに処理再開の通知を行なう。
The processing continuation means 4, which has received the above notification at step 85 in FIG. In the next step 87, the processing jobs or tasks that have been waiting until then are notified of restarting the processing.

以上のような処理により、例えば第13図(a)におい
て稼動系ホスト22が障害等によりダカンすると、第1
3図(b)に示すように第13図(a)の待機系ホスト
23は論理ホスト番号「2」を引継いで稼動系ホスト2
3°になると共に稼動系ホスト22で使用されていた共
用資源28に対するアクセスが可能となる。なお、第1
3図(b)は、元は稼動系ホスト22であった待機系ホ
スト22′ に対し論理ホスト番号「3」が与えられ、
新たな待機系ホストとして待機させた状態を示す。この
ように、本発明では、論理ホスト番号は個々の処理装置
即ちホストとは関連なしに引継がれ、共用資源は論理ホ
スト番号に従って引継がれることになる。
Through the above-described processing, if the active host 22 fails due to a failure or the like in FIG. 13(a), the first
As shown in FIG. 3(b), the standby host 23 in FIG. 13(a) takes over the logical host number "2" and becomes the active host 2.
When the temperature reaches 3°, access to the shared resource 28 used by the active host 22 becomes possible. In addition, the first
In Figure 3(b), the standby host 22', which was originally the active host 22, is given the logical host number "3",
Indicates a standby state as a new standby host. Thus, in the present invention, logical host numbers are inherited without regard to individual processing units or hosts, and shared resources are inherited according to logical host numbers.

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

以上説明したように、本発明によれば、各ホストは、自
ホストに入力された論理ポスト番号と論理番号対応の共
用資源定義情報に基づいて自ホストからアクセスしては
ならない資源を閉塞する閉塞情報を生成し、アクセス時
にこの閉塞情報をチェックしてアクセスの可否を決定す
るものであり、複数のホスト間で共用可能な共用資源へ
の所定ホスト以外のホストからのアクセスをガードでき
る効果がある。
As explained above, according to the present invention, each host blocks resources that should not be accessed from the host based on the logical post number input to the host and the shared resource definition information corresponding to the logical number. It generates information and checks this blockage information at the time of access to determine whether access is allowed or not, and has the effect of guarding against access from hosts other than the designated host to shared resources that can be shared among multiple hosts. .

また、各々の共有資源は物理的に接続された状態である
ことから、あるホストから他のホストに共有資源を切換
える処理を即時に行なうことができる効果もある。
Furthermore, since each shared resource is physically connected, there is an advantage that the shared resource can be instantly switched from one host to another.

更に、物理的なホストとは独立の論理ホスト番号に対応
して共用資源定義情報を設けであるので、例えば本発明
を2台以上のホストで構成されその内の少なくとも1台
は待機系ホストとして他の稼動系ホストの処理を引継げ
るように待機しているシステムに適用した場合、待機系
ホストは特定のホストに決める必要はなく、順次に変え
ることが可能となる効果もある。
Furthermore, since shared resource definition information is provided corresponding to logical host numbers independent of physical hosts, for example, if the present invention is configured with two or more hosts, at least one of which is used as a standby host, When applied to a system that is on standby so that it can take over the processing of another active host, there is no need to decide on a specific host as the standby host, and it has the advantage that it can be changed sequentially.

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

第1図は本発明で使用するホストの実施例のブロック図
、 第2図は第1図の構成を有する複数のホストで構成され
るシステム例を示すブロック図、第3図は論理ホスト番
号入力手段5の処理例の流れ図、 第4図は資源情報入力手段7の処理例の流れ図、第5図
は閉塞手段8の処理例の流れ図、第6図は監視手段3の
稼動系モード時の処理例の流れ図、 第7図は監視手段3の待機系モード時の処理例の流れ図
、 第8図は処理継続手段4の処理例の流れ図、第9図は論
理ホスト番号引継ぎ手段6の処理例の流れ図、 第10図は閉塞解除手段11の処理例の流れ図、第11
図は閉塞チェック手段9の処理例の流れ図、第12図は
閉塞チェックバイパス手段10の処理例の流れ図および
、 第13図はホストダウン発生前後のシステム状態例を示
す図である。 図において、1・・・処理装置、2・・・外部記憶媒体
、3・・・監視手段、4・・・処理継続手段、5・・・
論理ホスト番号入力手段、6・・・論理ホスト番号引継
ぎ手段、7・・・資源情報入力手段、8・・・閉塞手段
、9・・・閉塞チェック手段、10・・・閉塞チェック
バイパス手段、11・・・閉塞解除手段、12・・・閉
塞情報格納域、13・・・共用資源定義情報格納域。
Fig. 1 is a block diagram of an embodiment of the host used in the present invention, Fig. 2 is a block diagram showing an example of a system consisting of multiple hosts having the configuration shown in Fig. 1, and Fig. 3 is a logical host number input. 4 is a flowchart of an example of processing of the resource information input means 7, FIG. 5 is a flowchart of an example of processing of the blocking means 8, and FIG. 6 is a flowchart of an example of processing of the monitoring means 3 in the active mode. FIG. 7 is a flowchart of a processing example of the monitoring means 3 in standby mode, FIG. 8 is a flowchart of a processing example of the processing continuation means 4, and FIG. 9 is a flowchart of a processing example of the logical host number takeover means 6. Flowchart, FIG. 10 is a flowchart of a processing example of the blockage release means 11,
12 is a flowchart of an example of processing by the blockage check means 9, FIG. 12 is a flowchart of an example of processing by the blockage check bypass means 10, and FIG. 13 is a diagram showing an example of the system state before and after the host goes down. In the figure, 1...processing device, 2...external storage medium, 3...monitoring means, 4...processing continuation means, 5...
Logical host number input means, 6... Logical host number transfer means, 7... Resource information input means, 8... Blockage means, 9... Blockage check means, 10... Blockage check bypass means, 11 . . . Block release means, 12 . . . Blockage information storage area, 13 . . . Shared resource definition information storage area.

Claims (1)

【特許請求の範囲】 複数のホスト計算機間で共用可能な共用資源への所定ホ
スト計算機以外のホスト計算機からのアクセスをガード
する方式において、 前記複数のホスト計算機は前記共用資源と物理的に接続
され、且つ、 前記複数のホスト計算機の各々は、 ホスト立上げ時に論理ホスト番号を入力する論理ホスト
番号入力手段と、 外部記憶媒体上の共用資源定義情報格納域に論理ホスト
番号対応に格納された共用資源定義情報と前記入力され
た論理ホスト番号とに基づいて閉塞情報を生成し、該生
成した閉塞情報を閉塞情報格納域に格納する閉塞手段と
、 共用資源へのアクセス要求時に前記閉塞情報格納域に格
納された閉塞情報をチェックしてアクセスの可否を決定
する閉塞チェック手段とを具備したことを特徴とする複
数ホスト計算機間の共用資源アクセスガード方式。
[Claims] In a method for guarding access from host computers other than a predetermined host computer to a shared resource that can be shared among a plurality of host computers, the plurality of host computers are physically connected to the shared resource. , and each of the plurality of host computers includes: a logical host number input means for inputting a logical host number at the time of host startup; and a shared resource definition information storage area on an external storage medium stored in correspondence with the logical host number. A blocking means that generates blocking information based on the resource definition information and the input logical host number and stores the generated blocking information in a blocking information storage area; 1. A shared resource access guarding method between a plurality of host computers, comprising blockage check means for checking blockage information stored in a computer to determine whether or not access is permitted.
JP61044632A 1986-02-28 1986-02-28 Shared resource access guard system among plural host computers Pending JPS62202249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61044632A JPS62202249A (en) 1986-02-28 1986-02-28 Shared resource access guard system among plural host computers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61044632A JPS62202249A (en) 1986-02-28 1986-02-28 Shared resource access guard system among plural host computers

Publications (1)

Publication Number Publication Date
JPS62202249A true JPS62202249A (en) 1987-09-05

Family

ID=12696798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61044632A Pending JPS62202249A (en) 1986-02-28 1986-02-28 Shared resource access guard system among plural host computers

Country Status (1)

Country Link
JP (1) JPS62202249A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009104771A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Information processing device, control method and program therefor
JP2009258978A (en) * 2008-04-16 2009-11-05 Hitachi Ltd Computer system, and method for monitoring communication path

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009104771A1 (en) * 2008-02-19 2009-08-27 日本電気株式会社 Information processing device, control method and program therefor
JP2009199166A (en) * 2008-02-19 2009-09-03 Nec Corp Information processing device, control method and program therefor
JP2009258978A (en) * 2008-04-16 2009-11-05 Hitachi Ltd Computer system, and method for monitoring communication path

Similar Documents

Publication Publication Date Title
US6757769B1 (en) Cooperative lock override procedure
US7418627B2 (en) Cluster system wherein failover reset signals are sent from nodes according to their priority
US6725295B2 (en) Multi-path computer system
US4480304A (en) Method and means for the retention of locks across system, subsystem, and communication failures in a multiprocessing, multiprogramming, shared data environment
US6691194B1 (en) Selective association of lock override procedures with queued multimodal lock
EP0351536B1 (en) Systematic recovery of excessive spin loops in an n-way mp environment
US6105085A (en) Lock mechanism for shared resources having associated data structure stored in common memory include a lock portion and a reserve portion
US7062676B2 (en) Method and system for installing program in multiple system
US6718448B1 (en) Queued locking of a shared resource using multimodal lock types
US5564040A (en) Method and apparatus for providing a server function in a logically partitioned hardware machine
US5784617A (en) Resource-capability-based method and system for handling service processor requests
US5948109A (en) Quorum mechanism in a two-node distributed computer system
US5416921A (en) Apparatus and accompanying method for use in a sysplex environment for performing escalated isolation of a sysplex component in the event of a failure
JPH06195293A (en) Computer system
JPH0831047B2 (en) Apparatus and method for inter-partition control in a logical partition data processor
US6609178B1 (en) Selective validation for queued multimodal locking services
JPS62202249A (en) Shared resource access guard system among plural host computers
JPH0821025B2 (en) Multiprocessor system and method of initializing the system
EP0049423B1 (en) Multiprocessor system
US6029255A (en) Input/output control device and method applied to fault-resilient computer system
US6438689B1 (en) Remote reboot of hung systems in a data processing system
US11216372B2 (en) Execution manager for binary objects operating across private address spaces
JPH03138753A (en) Boot loader for multiprocessor system
JP2001092696A (en) Data storage device
JPH0430245A (en) Multiprocessor control system