JPH0567057A - Exclusive file control system - Google Patents

Exclusive file control system

Info

Publication number
JPH0567057A
JPH0567057A JP3227676A JP22767691A JPH0567057A JP H0567057 A JPH0567057 A JP H0567057A JP 3227676 A JP3227676 A JP 3227676A JP 22767691 A JP22767691 A JP 22767691A JP H0567057 A JPH0567057 A JP H0567057A
Authority
JP
Japan
Prior art keywords
file
central processing
exclusive control
control software
update
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
JP3227676A
Other languages
Japanese (ja)
Inventor
Shuji Kanda
修司 神田
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 Solution Innovators Ltd
Original Assignee
NEC Software Kyushu Ltd
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 Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP3227676A priority Critical patent/JPH0567057A/en
Publication of JPH0567057A publication Critical patent/JPH0567057A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To operate a file sharing for a file having an occasion of an updating by operating an exclusive control so as not to simultaneously operate the update from two central processing units for a file in a shared external storage device. CONSTITUTION:An update request 31 for a file 11 is outputted from an application software 4 of a central processing unit 1 of a main system to a logic input and output control software 6. The control software 6 delivers the update request 31 to an exclusive control software 8 by a processing 32. The exclusive control software 8 checks whether or not a central processing unit 2 of a conventional system uses the file 11 by a processing 33, and when the file 11 is not used by the central processing unit 2, it is communicated by a processing 34. The exclusive control software 8 operates the actual update 35 for the file 11, and stores the update history in an update history storage part 12 by a processing 36. When an update request 37 is outputted from an application software 5 of the conventional system to the same file 11, the information that the file 11 is not used is communicated by a processing 30 in the same way.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、中央処理装置を二重化
した情報処理システムにおいて、両方の中央処理装置間
で共有する外部記憶装置内のファイルに関し、更新の矛
盾が起きないようにするためのファイルの排他制御方式
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing system in which a central processing unit is duplicated so as not to cause a contradiction in updating a file in an external storage device shared by both central processing units. Regarding exclusive control method of file.

【0002】[0002]

【従来の技術】従来のファイル排他制御として、中央処
理装置が1台の情報処理システムにおいて、複数のプロ
グラムから同一ファイルへの更新要求を行なっていた。
2. Description of the Related Art As conventional file exclusion control, a plurality of programs make update requests to the same file in an information processing system with one central processing unit.

【0003】図3において、プログラム102からのフ
ァイル更新要求108に対し、排他制御ソフトウェア1
04は、排他制御情報部105を参照し、その結果要求
のあったファイル107が使用中でなければ、実更新1
11を外部記憶装置部106のファイル107に対して
行う。
In FIG. 3, the exclusive control software 1 responds to a file update request 108 from the program 102.
04 refers to the exclusive control information section 105, and as a result, if the requested file 107 is not in use, the actual update 1
11 is performed on the file 107 of the external storage device unit 106.

【0004】この時点で、プログラム103から同一フ
ァイル107に対し更新要求112が出された場合、排
他制御ソフトウェア104は、排他制御情報部105を
参照し、その結果既にプログラム102により、要求の
あったファイル107が使用中のため、更新要求を待ち
合わせ、プログラム103の実行を一時中断させる。ま
たは、プログラム103に対して、他のプログラム10
2で当該ファイル107が既に使用中である旨を通知す
る。
At this point, when the program 103 issues an update request 112 to the same file 107, the exclusive control software 104 refers to the exclusive control information section 105, and as a result, the program 102 has already made a request. Since the file 107 is in use, the update request is waited for and the execution of the program 103 is suspended. Alternatively, for the program 103, another program 10
In step 2, the fact that the file 107 is already in use is notified.

【0005】さらに、中央処理装置を二重化したデュア
ルシステム、またはデュプレックスシステムにおいて
は、両系からのファイル同時更新による矛盾が生じない
ように、更新を伴わない入力要求のみ可能であった。
Further, in a dual system or a duplex system in which the central processing unit is duplicated, only an input request without updating is possible so that no contradiction occurs due to simultaneous updating of files from both systems.

【0006】[0006]

【発明が解決しようとする課題】上述した従来の排他制
御は、シンプレックスシステムを前提としたものであ
り、中央処理装置を二重化したデュアルシステムやデュ
プレックスシステムでは使用できない。
The above-mentioned conventional exclusive control is based on the simplex system and cannot be used in a dual system or a duplex system in which the central processing unit is duplicated.

【0007】また、従来のデュアルシステムやデュプレ
ックスシステムにおいては、2台の中央処理装置で共有
する外部記憶装置内のファイルに対し、同時に動作可能
なものは更新を伴わない入力要求のみのため、更新を伴
うファイルに関しては、各中央処理装置毎に個別に保有
しなければならない。
Further, in the conventional dual system or duplex system, the files in the external storage device shared by the two central processing units can be updated simultaneously because only those input requests that do not involve updating can be performed. The files accompanied by must be held individually for each central processing unit.

【0008】[0008]

【課題を解決するための手段】本発明のファイル排他制
御方式は、中央処理装置間で相互通信を行うための通信
パスと、各々の前記中央処理装置内で動作するアプリケ
ーションソフトウェアと、各々の前記中央処理装置内で
動作する論理入出力制御ソフトウェアと、主系(マス
タ)の前記中央処理装置内で動作する排他制御ソフトウ
ェアと、前記排他制御ソフトウェアが管理する排他制御
情報部と、2台の前記中央処理装置間で共有する外部記
憶装置と、前記記憶装置内に存在するファイルと、前記
外部記憶装置内に存在する前記ファイルの更新履歴格納
部とを有している。
According to the file exclusion control method of the present invention, a communication path for performing mutual communication between central processing units, application software operating in each central processing unit, and each of the above The logical input / output control software operating in the central processing unit, the exclusive control software operating in the central processing unit of the main system (master), the exclusive control information section managed by the exclusive control software, and the two units It has an external storage device shared between the central processing units, a file existing in the storage device, and an update history storage unit of the file existing in the external storage device.

【0009】[0009]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0010】図1は本発明のファイルの排他制御方式の
一実施例を示す構成図である。情報処理システムは二重
化システムを構成する2台の中央処理装置1および2が
あり主系(マスタ)の中央処理装置1と従系(スレー
ブ)の中央処理装置2とからなり、2台の中央処理装置
1,2間でデータ授受を行うための通信パス3と、各々
の中央処理装置1,2で動作するアプリケーションソフ
トウェア4および5と、各々の中央処理装置1,2で動
作する論理入出力制御ソフトウェア6および7と、主系
の中央処理装置1で動作する排他制御ソフトウェア8
と、主系の中央装置1に存在する排他制御情報部9と、
2台の中央処理装置1,2間で共有する外部記憶装置1
0と、外部記憶装置10内に存在するファイル11と、
外部記憶装置10内に存在する更新履歴格納部12とか
ら構成される。
FIG. 1 is a block diagram showing an embodiment of a file exclusive control system of the present invention. The information processing system has two central processing units 1 and 2 which form a duplex system, and comprises a central processing unit 1 of a main system (master) and a central processing unit 2 of a slave system (slave). A communication path 3 for exchanging data between the devices 1 and 2, application software 4 and 5 operating on the central processing units 1 and 2, and logical input / output control operating on the central processing units 1 and 2. Software 6 and 7, and exclusive control software 8 that operates in the central processing unit 1 of the main system
And an exclusive control information section 9 existing in the central device 1 of the main system,
External storage device 1 shared between two central processing units 1 and 2
0, and a file 11 existing in the external storage device 10,
It is composed of an update history storage unit 12 existing in the external storage device 10.

【0011】図2は本発明の動作の概念を示す図であ
る。主系のアプリケーションソフトウェア4から、ファ
イル11に対する更新要求31を論理入出力制御ソフト
ウェア6に出す。論理入出力制御ソフトウェアは、この
更新要求31を32により排他制御ソフトウェア8へ渡
す。排他制御ソフトウェア8は、33により当該ファイ
ル11が従系の中央処理装置2により使用されているか
否かをチェックし、使用されていなければその旨を34
により通知する。当該ファイル11の未使用通知を受け
取った排他制御ソフトウェア8は、ファイル11に対し
て実更新35を行うとともに、その更新履歴を36によ
り更新履歴格納部12へ格納する。次いで、従系のアプ
リケーションソフトウェア4から同一ファイル11に対
して、更新要求37が出されると、その要求を受け取っ
た従系の論理入出力制御ソフトウェア7は、通信パス3
を経由して38により主系の排他制御ソフトウェア8へ
更新要求を転送する。排他制御ソフトウェア8は、39
により当該ファイル11が主系の中央処理装置1により
使用されているか否かをチェックし、使用されていれば
その旨を30により通知する。この時点で、従系からの
更新要求は待ち合わせを行うか、または主系により使用
中である旨を、通信パス3を通して従系の論理入出力制
御ソフトウェア7へ通知する。
FIG. 2 is a diagram showing the concept of the operation of the present invention. The master application software 4 issues an update request 31 for the file 11 to the logical input / output control software 6. The logical input / output control software passes the update request 31 to the exclusive control software 8 by 32. The exclusive control software 8 checks by 33 whether or not the file 11 is being used by the subordinate central processing unit 2, and if it is not being used, then 34
Notify by. The exclusive control software 8 that has received the unused notification of the file 11 performs the actual update 35 on the file 11 and stores the update history in the update history storage unit 12 by 36. Next, when an update request 37 is issued from the slave application software 4 to the same file 11, the slave logical I / O control software 7 that has received the request sends the update request 37 to the communication path 3
The update request is transferred to the exclusive control software 8 of the main system via 38 via. Exclusive control software 8 is 39
Checks whether the file 11 is being used by the central processing unit 1 of the main system, and if it is being used, 30 is notified to that effect. At this point, the update request from the slave system waits or notifies the logical input / output control software 7 of the slave system via the communication path 3 that the update request is in use.

【0012】主系および従系からの更新要求順序が逆の
場合は、主系の更新要求が待たされることになる。
When the order of update requests from the master system and the slave system is reversed, the update request of the master system is kept waiting.

【0013】また、主系の中央処理装置1に障害が発生
して、主系として機能不可能となった場合は、それまで
従系であった中央処理装置2が主系として働くため、排
他制御ソフトウェア8および排他制御情報部9もそれま
で従系であった中央処理装置2へ移ることになる。さら
に、障害発生時点の共有ファイルの内容は、更新履歴格
納部12の情報により、最新状態に復元される。
When a failure occurs in the central processing unit 1 of the main system and the central processing unit 2 cannot function as the main system, the central processing unit 2 which has been the sub system until then functions as the main system. The control software 8 and the exclusive control information section 9 are also transferred to the central processing unit 2 which has been a slave. Further, the contents of the shared file at the time of failure occurrence are restored to the latest state by the information in the update history storage unit 12.

【0014】本発明の排他制御は、共有ファイルの更新
時のみ機能し、更新を伴わない参照要求については機能
しない。つまり、2台の中央処理装置1,2から同時に
参照可能とする。
The exclusive control of the present invention works only when updating a shared file, and does not work for reference requests that do not involve updating. That is, the two central processing units 1 and 2 can simultaneously refer to each other.

【0015】[0015]

【発明の効果】以上説明したように本発明は、中央処理
装置が二重化されたデュアルシステム/デュプレックス
システムにおいて、共有する外部記憶装置内のファイル
に対して、2台の中央処理装置から同時に更新が行われ
ないよう排他制御を行うことにより、更新を伴ったファ
イルの共有が可能となる。
As described above, according to the present invention, in the dual system / duplex system in which the central processing units are duplicated, the files in the shared external storage device can be simultaneously updated from the two central processing units. By performing exclusive control so as not to be performed, it becomes possible to share a file with an update.

【0016】これによって、二重化システムにおける効
率的なデータ共用ならびに障害時におけるデータの引き
継ぎが容易に行える。
As a result, efficient data sharing in the duplex system and data takeover at the time of failure can be easily performed.

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

【図1】本発明のファイルの排他制御方式の一実施例を
示す構成図である。
FIG. 1 is a configuration diagram showing an embodiment of a file exclusive control system of the present invention.

【図2】本実施例の動作の概念を示す図である。FIG. 2 is a diagram showing the concept of the operation of the present embodiment.

【図3】従来の排他制御の動作の概念を示す図である。FIG. 3 is a diagram showing a concept of conventional exclusive control operation.

【符号の説明】[Explanation of symbols]

1 主系の中央処理装置 2 従系の中央処理装置 3 中央処理装置間の通信パス 4 主系のアプリケーションソフトウェア 5 従系のアプリケーションソフトウェア 6 主系の論理入出力制御ソフトウェア 7 従系の論理入出力制御ソフトウェア 8 排他制御ソフトウェア 9 排他制御情報部 10 外部記憶装置 11 ファイル 12 更新履歴格納部 1 central processing unit 2 slave central processing unit 3 communication path between central processing units 4 master application software 5 slave application software 6 master logical I / O control software 7 slave logical input / output Control software 8 Exclusive control software 9 Exclusive control information section 10 External storage device 11 File 12 Update history storage section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置を二重化したシステムにお
いて、中央処理装置間で相互通信を行うための通信パス
と、各々の前記中央処理装置内で動作するアプリケーシ
ョンソフトウェアと、各々の前記中央処理装置内で動作
する論理入出力制御ソフトウェアと、主系(マスタ)の
前記中央処理装置内で動作する排他制御ソフトウェア
と、前記排他制御ソフトウェアが管理する排他制御情報
部と、2台の前記中央処理装置間で共有する外部記憶装
置と、前記記憶装置内に存在するファイルと、前記外部
記憶装置内に存在する前記ファイルの更新履歴格納部と
を備えることを特徴とするファイルの排他制御方式。
1. In a system having dual central processing units, a communication path for performing mutual communication between the central processing units, application software operating in each of the central processing units, and in each of the central processing units. Between the two central processing units, the logical input / output control software operating in the main processing unit, the exclusive control software operating in the central processing unit of the main system (master), the exclusive control information unit managed by the exclusive control software, An exclusive control system for a file, comprising: an external storage device shared by a storage device, a file existing in the storage device, and an update history storage unit for the file existing in the external storage device.
JP3227676A 1991-09-09 1991-09-09 Exclusive file control system Pending JPH0567057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3227676A JPH0567057A (en) 1991-09-09 1991-09-09 Exclusive file control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3227676A JPH0567057A (en) 1991-09-09 1991-09-09 Exclusive file control system

Publications (1)

Publication Number Publication Date
JPH0567057A true JPH0567057A (en) 1993-03-19

Family

ID=16864588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3227676A Pending JPH0567057A (en) 1991-09-09 1991-09-09 Exclusive file control system

Country Status (1)

Country Link
JP (1) JPH0567057A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156770A (en) * 2005-12-05 2007-06-21 Ricoh Co Ltd Data processor, program and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156770A (en) * 2005-12-05 2007-06-21 Ricoh Co Ltd Data processor, program and recording medium

Similar Documents

Publication Publication Date Title
US20190303255A1 (en) Cluster availability management
FI101432B (en) Fault-tolerant computer system
US8301811B1 (en) Techniques for performing online data migration while effectively migrating SCSI reservations between source and target arrays
US7774785B2 (en) Cluster code management
CN111125261B (en) Data transmission method based on distributed cache
US20210089379A1 (en) Computer system
KR20020013401A (en) Merge protocol for clustered computer system
JP4677443B2 (en) Method for maintaining write sets and write set boundaries across data storage systems and multiple heterogeneous storage controllers
JPH0567057A (en) Exclusive file control system
JP2001109642A (en) Cluster system and data copying method therefor
JPH08316957A (en) Dual network management system
JPH11120017A (en) Automatic numbering system, duplex system, and cluster system
JP3494545B2 (en) Distributed computer system, computer and distributed processing method
CN113138722B (en) Replication snapshot method, system and medium for distributed block storage system
JP2004005113A (en) Virtual computer system operated on a plurality of actual computers, and control method thereof
KR20240031878A (en) Systems and methods for recovery with a distributed lock manager
JP2008225643A (en) Inter-server mirror disk controller and expansion card
JPH0458636A (en) Communication path duplicate control system
JP3992767B2 (en) Computer processing system
JP2664197B2 (en) Synchronization assurance processing method for duplicated volumes
JP3697467B2 (en) Switch object update system
CN117632525A (en) Systems and methods for recovery with a distributed lock manager
JPH0474739B2 (en)
JPH02133845A (en) Duplex auxiliary storage device
JPH07141309A (en) Information processor