JPH036633A - File access system among plural host computers - Google Patents
File access system among plural host computersInfo
- Publication number
- JPH036633A JPH036633A JP1140848A JP14084889A JPH036633A JP H036633 A JPH036633 A JP H036633A JP 1140848 A JP1140848 A JP 1140848A JP 14084889 A JP14084889 A JP 14084889A JP H036633 A JPH036633 A JP H036633A
- Authority
- JP
- Japan
- Prior art keywords
- file
- host computer
- memory device
- control block
- storage device
- 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
Links
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000013523 data management Methods 0.000 claims description 41
- 238000007726 management method Methods 0.000 claims description 29
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
Landscapes
- Multi Processors (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はファイルアクセス方式に関し、特に複数ホスト
コンピュータ間におけるファイルアクセス方式に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a file access method, and particularly to a file access method between multiple host computers.
従来、複数のホストコンピュータからアクセス可能な補
助記憶装置(以下、共有記憶装置上)上のファイルを1
つのホストコンピュータで集巾約に管理(データ管理)
している計算機システムにおける複数ホストコンピュー
タ間におけるファイルアクセス方式では、データ管理を
行っていないホストコンピュータから共存記憶装置上の
ファイルがアクセスされる場合に、データ管理を行って
いるホストコンピュータ(以下、管理ホストコンビエー
タという)を介してそのアクセスが行われていた。Conventionally, files on an auxiliary storage device (hereinafter referred to as a shared storage device) that can be accessed from multiple host computers are stored in one
Centralized management (data management) with one host computer
In a file access method between multiple host computers in a computer system that uses data management, when a file on a co-located storage device is accessed from a host computer that is not managing data, That access was done through a host combinator (called a host combinator).
上述した従来の複数ホストコンピュータ間におけるファ
イルアクセス方式では、データ管理を行っていないホス
トコンピュータ(管理ホストコンピュータ以外のホスト
コンピュータ)から共有記憶装置上のファイルがアクセ
スされる場合に、管理ホストコンピュータを介してその
アクセスが行われているので、管理ホストコンピュータ
以外のホストコンピュータからの共有記憶装置上のファ
イルに対するアクセス時間が長くなり、管理ホストコン
ピュータに負荷が集中し、当該計算機システムにおける
処理効率が悪くなるという欠点があ本発明の目的は、上
述の点に鑑み、管理ホストコンピュータ以外のホストコ
ンピュータからの共有記憶装置上のファイルに対するア
クセス時間を短縮し、1つのホストコンピュータ(管理
ホストコンピュータ)への負荷の集中を回避することが
できる複数ホストコンピュータ間におけるファイルアク
セス方式を提供することにある。In the conventional file access method between multiple host computers described above, when a file on a shared storage device is accessed from a host computer that does not manage data (a host computer other than the management host computer), the file is accessed via the management host computer. Since the access is being performed by a host computer other than the management host computer, the access time for files on the shared storage device from host computers other than the management host computer becomes longer, the load is concentrated on the management host computer, and the processing efficiency of the computer system becomes worse. In view of the above-mentioned points, it is an object of the present invention to shorten the access time for files on a shared storage device from host computers other than the management host computer, and reduce the load on one host computer (management host computer). An object of the present invention is to provide a file access method between multiple host computers that can avoid concentration of files.
本発明の複数ホストコンピュータ間におけるファイルア
クセス方式は、複数のホストコンピュータからアクセス
可能な共有記憶mW上のファイルを1つの管理ホストコ
ンピュータが集中的に管理している計算機システムにお
いて、管理ホストコンピュータによるファイルの制御等
のために作成されるファイル制御ブロックを記憶する固
有メモリ装置と、各ホストコンピュータからのアクセス
が可能であり管理ホストコンピュータ以外のホストコン
ピュータから共有記憶装置上のファイルのアクセスが行
われる場合に前記固有メモリ装置上の当該ファイルのフ
ァイル制御ブロックに基づく当該ファイルのファイル制
御 1卸ブロツクのコピーを記憶する共有メモリ装置と
、管理ホストコンピュータ以外のホストコンピュータか
ら共有記憶装置上のファイルのアクセスが行われる場合
のファイルオープン時に前記固有メモリ装置上に当該フ
ァイルのファイル制御ブロックを作成し管理ホストコン
ピュータ以外の当該ホストコンピュータから直接に参照
/更新できる当該ファイルのファイルtldJ jBプ
ロフクのコピーを当該ファイルのファイル制御ブロック
に基づき前記共有メモリ装置上に作成する管理ホストコ
ンピュータ内の集中データ管理機構とを有する。The file access method between multiple host computers of the present invention is a computer system in which one management host computer centrally manages files on a shared memory mW that can be accessed from multiple host computers. A unique memory device that stores file control blocks created for control, etc., and is accessible from each host computer, and when files on a shared storage device are accessed from a host computer other than the management host computer. File control of the file based on the file control block of the file on the specific memory device 1 A shared memory device that stores a copy of the wholesale block, and a file on the shared storage device that cannot be accessed from a host computer other than the management host computer. When the file is opened, a file control block for the file is created on the specific memory device and a copy of the file tldJ jB profile of the file that can be directly referenced/updated from the host computer other than the management host computer is created. and a centralized data management mechanism in a management host computer created on the shared memory device based on file control blocks.
本発明の複数ホストコンビ二−タ間におけるファイルア
クセス方式では、固有メモリ装置が管理ホストコンピュ
ータによるファイルの制御等のために作成されるファイ
ル制御ブロックを記憶し、各ホストコンピュータからの
アクセスが可能である共有メモリ装置が管理ホストコン
ビエータ以外のホストコンピュータから共存記憶装置上
のファイルのアクセスが行われる場合に固有メモリ装置
上の当該ファイルのファイル制?′nブロックに基づく
当該ファイルのファイル制御ゴ■フ゛ロフクのコピーを
記憶し、管理ホストコンピュータ内の集中データ管理機
構が管理ホストコンピュータ以外のホストコンピュータ
から共存記憶装置上のファイルのアクセスが行われる場
合のファイルオープン時に固有メモリ装置上に当該ファ
イルのファイル制御ブロックを作成し管理ホストコンピ
ュータ以外の当該ホストコンピュータから直接に参照/
更新できる当該ファイルのファイル制御ブロックのコピ
ーを当該ファイルのファイル制御ブロックに基づき共有
メモリ装置上に作成する。In the file access method between multiple host combiners of the present invention, a unique memory device stores a file control block created for file control by a management host computer, and can be accessed from each host computer. When a shared memory device accesses a file on a coexisting storage device from a host computer other than the management host combiator, what is the file system for the file on the private memory device? The central data management mechanism in the management host computer stores a copy of the file control file of the file based on the 'n block, and the central data management mechanism in the management host computer performs the following operations when the file on the co-located storage device is accessed from a host computer other than the management host computer. When a file is opened, a file control block for the file is created on the specific memory device and can be referenced directly from the host computer other than the management host computer.
A copy of the file control block of the file that can be updated is created on the shared memory device based on the file control block of the file.
次に、本発明について図面を参1!!ff Lで説明す
る。Next, please refer to the drawings regarding the present invention! ! This will be explained in ffL.
第1図は、本発明の複数ホストコンピュータ間における
ファイルアクセス方式の一実施例の構成を示すブロック
図である。本実施例の複数ポストコンピュータ間におけ
るファイルアクセス方式は、ホストコンピュータ3上で
動くユーザプログラムlと、ホストコンピュータ4上で
動くユーザプログラム2と、共有記tej g 17上
のファイルのデータ管理を集中的に行うための集中デー
タ管理機構30を有するホストコンピュータ3 (管理
ホストコンピュータ)と、データ管理を行わないホスト
コンピュータ4と、ホストコンピュータ3によるファイ
ルの制御等のために作成されるファイル制御ブロックを
記t9する固有メモリ装置5 (ホストコンピュータ3
に付随して存在する。上記ta装置上にも補助記憶装置
上にも実現できる)と、ホストコンピュータ3とホスト
コンピュータ4との両方からアクセス可能な共をメモリ
装置6 (主記憶装置上にも補助記憶装置上にも実現で
きる)と、ホストコンピュータ3とホストコンピュータ
4との両方からアクセス可能な補助記憶装置でありファ
イル制御情報領域域70(存在するファイルの制御情報
を格納する領域)を有する共有記憶装置7とを含んで構
成されている。FIG. 1 is a block diagram showing the configuration of an embodiment of a file access method between multiple host computers according to the present invention. The file access method between multiple postcomputers of this embodiment centralizes data management of the user program 1 running on the host computer 3, the user program 2 running on the host computer 4, and the files on the shared memory 17. A host computer 3 (management host computer) that has a centralized data management mechanism 30 for data management, a host computer 4 that does not perform data management, and a file control block created for file control etc. by the host computer 3 are recorded. t9 specific memory device 5 (host computer 3
exists in conjunction with. A memory device 6 (which can be implemented on both the main storage device and the auxiliary storage device) that can be accessed from both the host computer 3 and the host computer 4 ) and a shared storage device 7 which is an auxiliary storage device that can be accessed from both the host computer 3 and the host computer 4 and has a file control information area 70 (an area for storing control information of existing files). It is made up of.
第2図は、固有メモリ装置5に作成されるファイル制御
ブロックの構成を示す図である(共有メモリ装置6に作
成されるファイル制御ブロックのコピーの構成も当然に
同様である)、各ファイルの制御情報を有するファイル
制御ブロックは、コピー存在フラグ(当該ファイル制御
ブロックのコピーの存在の有無を示すフラグ)、使用ブ
ロック状況、ブロックサイズおよびファイルに対して行
っている処理等の情報を含んで構成されている。FIG. 2 is a diagram showing the configuration of a file control block created in the private memory device 5 (naturally, the configuration of a copy of the file control block created in the shared memory device 6 is also the same). A file control block with control information includes information such as a copy existence flag (a flag indicating whether or not a copy of the file control block exists), used block status, block size, and processing being performed on the file. has been done.
次に、このように構成された本実施例の複数ホストコン
ピュータ間におけるファイルアクセス方式の動作につい
て説明する。Next, the operation of the file access method between the plurality of host computers of this embodiment configured as described above will be explained.
まず初めに、ホストコンピュータ3上でユーザプログラ
ム1が起動された場合の本実施例の複数ホストコンピュ
ータ間におけるファイルアクセス方式の動作について説
明する。First, the operation of the file access method between multiple host computers of this embodiment when the user program 1 is started on the host computer 3 will be described.
ホストコンピュータ3上で起動されたユーザプログラム
1は、ホストコンビエータ3内の集中データ管理機構3
0にファイルFl(ユーザプログラム1が使用するファ
イル)のopen要求(ファイルオープン要求)を行う
。The user program 1 started on the host computer 3 is executed by the centralized data management mechanism 3 in the host combiator 3.
0, an open request (file open request) is made to file Fl (file used by user program 1).
このときに、ユーザプログラムlは、あらかじめファイ
ルF1に関する使用ブロック数を推定し、共有記憶装置
7にアロケート(割当て)するブロック数としてその使
用ブロック数をI断定する。At this time, the user program I estimates the number of used blocks for the file F1 in advance and determines the number of used blocks I as the number of blocks to be allocated to the shared storage device 7.
open要求を受けた集中データ管理機構30は、共存
記憶装置7にファイルFlの領域を指定ブロック数分だ
けアロケートし、ファイルF1のファイル制御ブロック
(第2図に示すような情報を存するファイル制御ブロッ
ク)を共有記憶装置7内のファイル制御情@i領域70
中の情報に基づいて固有メモリ装置5上に作成する。Upon receiving the open request, the centralized data management mechanism 30 allocates the area of the file Fl in the coexisting storage device 7 for the specified number of blocks, and creates a file control block of the file F1 (a file control block containing information as shown in FIG. 2). ) in the shared storage device 7 @i area 70
is created on the specific memory device 5 based on the information therein.
このファイル制御ブロックの作成の際に、集中データ管
理機構30は、ファイルF1がユーザプログラムlによ
ってファイルオープンされたものであることを認識し、
この認識に基づいて当該ファイル制御ブロック内のコピ
ー存在フラグに0FF(当該ファイル制御ブロックのコ
ピーが存在しないことを示す情報)を設定する。When creating this file control block, the centralized data management mechanism 30 recognizes that the file F1 was opened by the user program l,
Based on this recognition, the copy existence flag in the file control block is set to 0FF (information indicating that there is no copy of the file control block).
上述のopen処理(o p e n要求に基づく処理
)が終了すると、集中データ管理機構30は、ファイル
F1のopen処理が終了したことをユーザプログラム
lに通知し、制御をユーザプログラムlに戻す。When the above-described open processing (processing based on an open request) is completed, the centralized data management mechanism 30 notifies the user program 1 that the open processing of the file F1 has been completed, and returns control to the user program 1.
ユーザプログラム1は、処理の過程でデータを作成し、
そのデータ作成に基づいてファイルF1へのwrite
要求(データの書込み要求)を集中データ管理機構30
に対して発行する。User program 1 creates data in the process of processing,
Write to file F1 based on the data creation
The request (data write request) is sent to the central data management mechanism 30.
Issued to.
write要求を受けた集中データ管理機構30は、共
存記憶装置7上のファイルF1へのwriLe処理(デ
ータの書込み処理)を行い、そのWr、ILe処理を反
映して固有メモリ装置5上に存在しているファイルF1
のファイル制御ブロック内の使用ブロック状況等の情報
を更新する。The centralized data management mechanism 30 that received the write request performs wriLe processing (data writing processing) to the file F1 on the coexisting storage device 7, and reflects the Wr and ILe processing to the file F1 on the specific memory device 5. file F1
Updates information such as the usage block status in the file control block.
上述のwrite処理が終了すると、集中データ管理機
構30は、write処理が終了したことをユーザプロ
グラムlに通知し、制御をユーザプログラム1に戻す。When the write process described above ends, the centralized data management mechanism 30 notifies the user program 1 that the write process has ended, and returns control to the user program 1.
ユーザプログラム1は、処理の過程でファイルFlのr
ead要求(データの読出し要求)を集中データ管理機
構30に対して発行する。User program 1 saves r of file Fl during processing.
An ead request (data read request) is issued to the centralized data management mechanism 30.
read要求を受けた集中データ管理機構30は、固有
メモリ装置5上に存在しているファイルF1のファイル
制御ブロックを参照して共存記憶装置7上のファイルF
lのread処理(データの読出し処理)を行う。Upon receiving the read request, the centralized data management mechanism 30 refers to the file control block of the file F1 existing on the private memory device 5 and reads the file F1 on the co-located storage device 7.
1 read processing (data reading processing) is performed.
上述のread処理が終了すると、集中データ管理機構
30は、read処理が終了したことをユーザプログラ
ム1に通知し、制御をユーザプログラム1に戻す。When the above read process is completed, the centralized data management mechanism 30 notifies the user program 1 that the read process has ended, and returns control to the user program 1.
ここで、ユーザプログラム1は、read処理が行われ
たデータを更新し、そのデータに関して再びwrite
要求を集中データ管理機構30に発行するものとする。Here, the user program 1 updates the data that has been read and performs write operations on the data again.
Assume that a request is issued to the centralized data management facility 30.
ユーザプログラム1がwrite要求を再び発行すると
きに行われるwrite処理で、そのwrite処理に
より更新されたデータがファイルF1のサイズ(プロツ
クサイズ)を越える場合には、集中データ管理機構30
は以下に示すようなa11ocate処理−(領域の7
0ケート処理)を行う。In the write process performed when the user program 1 issues a write request again, if the data updated by the write process exceeds the size (block size) of the file F1, the central data management mechanism 30
is the a11ocate process as shown below - (region 7
0 Cate processing).
すなわち、共有記憶装置7上に必要な分だけの領域のア
ロケートを行う。That is, the necessary amount of area is allocated on the shared storage device 7.
さらに、固有メモリ装置5上に存在しているファイルF
1のファイル制御ブロック内のコピー存在フラグ(この
場合にはOFFが設定されている)を参照し、コピー存
在フラグのOFFに基づいて共有メモリ装置6上にファ
イルF1のファイル制御ブロックのコピーが存在しない
ことを認識し、固有メモリ装置5上に存在しているファ
イルF1のファイル制御ブロック内の情報を上述のal
locate処理を反映して更新する。Furthermore, the file F existing on the specific memory device 5
A copy existence flag (in this case, OFF is set) in the file control block of file F1 is referred to, and a copy of the file control block of file F1 exists on the shared memory device 6 based on the OFF of the copy existence flag. The information in the file control block of the file F1 existing on the specific memory device 5 is transferred to the above al.
Update to reflect the locate process.
上述のallocate処理を含むwrite処理が終
了すると、集中データ管理R横30は、write処理
が終了したことをユーザプログラムlに通知し、制御を
ユーザプログラムlに戻す。When the write process including the above-mentioned allocate process is completed, the central data management R side 30 notifies the user program l that the write process has ended, and returns control to the user program l.
ユーザプログラム1におけるファイルF1に対する処理
が全て終了すると、ユーザプログラムlはファイルF1
のclose要求(ファイルクローズ要求)を集中デー
タ管理機構30に対して発行する。When all the processes for file F1 in user program 1 are completed, user program l
A close request (file close request) is issued to the centralized data management mechanism 30.
close要求を受けた集中データ管理機構30は、共
有記憶装置7上のファイルFl内の未使用ブロックのf
ree処理(解放処理)を行い、固有メモリ装置5上に
存在しているファイルF1のファイル制御ブロック内の
コピー存在フラグを参照し、コピー存在フラグのOFF
に基づいて固有メモリ装置5上に存在しているファイル
F1のファイル制御ブロック内の情報を上述のf re
e処理を反映して更新する。Upon receiving the close request, the centralized data management mechanism 30 closes the unused block f in the file Fl on the shared storage device 7.
Performs ree processing (release processing), refers to the copy existence flag in the file control block of file F1 existing on the specific memory device 5, and turns the copy existence flag OFF.
The information in the file control block of the file F1 existing on the specific memory device 5 based on the above f re
Update to reflect e-processing.
さらに、集中データ管理機構30は、その更新に基づい
て共有記憶装置7上のファイル制御情報領域70を更新
し、その後に固有メモリ装置5上に存在しているファイ
ルF1のファイル制御ブロックを削除する。Further, the centralized data management mechanism 30 updates the file control information area 70 on the shared storage device 7 based on the update, and then deletes the file control block of the file F1 existing on the private memory device 5. .
上述のclose処理が終了すると、集中データ管理機
構30は、close処理が終了したことヲユーザプロ
グラムlに通知し、制御をユーザプログラムlに戻す。When the above-described close processing is completed, the centralized data management mechanism 30 notifies the user program 1 that the close processing has ended, and returns control to the user program 1.
続いて、ホストコンピュータ4上でユーザプログラム2
が起動された場合の本実施例の複数ホストコンピュータ
間におけるファイルアクセス方式の動作について説明す
る。Next, run the user program 2 on the host computer 4.
The operation of the file access method among a plurality of host computers according to this embodiment when the host computer is activated will be described.
ホストコンピュータ4上で起動されたユーザプログラム
2は、ホストコンピュータ4を介してホストコンピュー
タ3にファイルF2(ユーザプログラム2が使用するフ
ァイル)のopen要求を行う(ホストコンピュータ4
からホストコンピュータ3に制御が移る)。The user program 2 started on the host computer 4 requests the host computer 3 via the host computer 4 to open the file F2 (the file used by the user program 2).
control is then transferred to the host computer 3).
このときに、ユーザプログラム2は、あらかしめファイ
ルF2に関する使用ブロック数を推定し、共有記憶装置
7にアロケートするブロック数としてその使用ブロック
数を指定する。At this time, the user program 2 estimates the number of used blocks for the preliminary file F2, and specifies the number of used blocks as the number of blocks to be allocated to the shared storage device 7.
open要求を受けたホストコンピュータ3は、そのo
pen要求を集中データ管理機構30に発行して集中デ
ータ管理機構30を起動する。The host computer 3 that received the open request
A pen request is issued to the central data management mechanism 30 to start the central data management mechanism 30.
集中データ管理機構30は、共有記憶装置7にファイル
F2の領域を指定ブロック数分だけアロケートし、ファ
イルF2のファイル制御ブロック (第2図に示すよう
な情報を有するファイル制御ブロック)を共存記憶装置
7内のファイル制御情報領域70中の情報に基づいて固
有メモリ装置5上に作成する。The centralized data management mechanism 30 allocates the area of the file F2 for the specified number of blocks in the shared storage device 7, and transfers the file control block of the file F2 (the file control block having information as shown in FIG. 2) to the shared storage device 7. It is created on the specific memory device 5 based on the information in the file control information area 70 in 7.
このファイル制御ブロックの作成の際に、集中データ管
理機構30は、ファイルF2がユーザプログラム2(ホ
ストコンピュータ4側からのopen要求)によってフ
ァイルオープンされたものであることを認識し、この認
識に基づいて当該ファイル制御ブロック内のコピー存在
フラグにON(当言亥ファイルII?卸ブロックのコピ
ーが存在することを示す情報)を設定し、共有メモリ装
置6上にファイルF2のファイル制御ブロックのコピー
を作成する。When creating this file control block, the centralized data management mechanism 30 recognizes that the file F2 was opened by the user program 2 (open request from the host computer 4 side), and based on this recognition, , sets the copy existence flag in the file control block to ON (information indicating that a copy of the current file II? wholesale block exists), and copies the file control block of file F2 on the shared memory device 6. create.
上述のopen処理が終了すると、集中データ管理機構
30は、ファイルF2のopen処理が終了したことを
ホストコンピュータ3を介してホストコンピュータ4上
で動作するユーザプログラム2に通知する(ホストコン
ピュータ3からホストコンピュータ4に制御が移り、制
御がユーザプログラム2に戻る)。When the above-mentioned open processing is completed, the centralized data management mechanism 30 notifies the user program 2 running on the host computer 4 via the host computer 3 that the open processing of the file F2 has been completed. Control is transferred to computer 4, and control is returned to user program 2).
ユーザプログラム2は、処理の過程でデータを作成し、
そのデータ作成に基づいてファイルF2へのWrite
要求を発行する。The user program 2 creates data in the process of processing,
Write to file F2 based on the data creation
Issue a request.
ホストコンピュータ4の制御により、このwrite要
求に基づく共有記憶装置7上のファイルF2へのwri
te処理が行われ、共有メモリ装置6上に存在している
ファイルF2のファイル制御フロックのコピー内の使用
ブロック状況等の情悩が更新される。Under the control of the host computer 4, write to the file F2 on the shared storage device 7 based on this write request is executed.
The te process is performed to update information such as the status of used blocks in the copy of the file control block of the file F2 existing on the shared memory device 6.
上述のwrite処理が終了すると、制御がユーザプロ
グラム2に戻る。When the write process described above is completed, control returns to the user program 2.
ユーザプログラム2は、処理の過程でファイルF2のr
ead要求を発行する。User program 2 saves r of file F2 during processing.
Issue an ead request.
ホストコンピュータ4の制御により、このread要求
に基づく共有メモリ装置6上に存在しているファイルF
2のファイル制御ブロックのコピーの参照が行われ、そ
の参照に基づき共有記憶装置7上のファイルF2のre
ad処理が行われる。Under the control of the host computer 4, the file F existing on the shared memory device 6 based on this read request is
The copy of the file F2 on the shared storage device 7 is referenced based on the reference.
ad processing is performed.
上述のread処理が終了すると、制御がユーザプログ
ラム2に戻る。When the above read process is completed, control returns to the user program 2.
ここで、ユーザプログラム2は、read処理が行われ
たデータを更新し、そのデータに関して再びwrite
要求を発行するものとする。Here, the user program 2 updates the data that has been read and performs write operations on the data again.
shall issue a request.
ユーザプログラム2がwrite要求を再び発行すると
きに行われるwrite処理で、そのwrite処理に
より更新されたデータがファイルF2のサイズ(ブロッ
クサイズ)を越える場合には、以下に示すようなall
ocate処理が行われる。In the write process performed when user program 2 issues a write request again, if the data updated by the write process exceeds the size (block size) of file F2, all
ocate processing is performed.
すなわち、共有記憶装置7上に必要な分だけの領域のア
ロケートを行う旨の指示がホストコンピュータ4からホ
ストコンピュータ3に通知され、ホストコンピュータ4
からホストコンピュータ3に制御が移る。That is, the host computer 4 notifies the host computer 3 of an instruction to allocate the necessary amount of space on the shared storage device 7, and the host computer 4
Control then transfers to the host computer 3.
ホストコンピュータ3は集中データ管理機構30を起動
し、起動された集中データ管理機構30は共有記憶装置
7上に必要な分だけの領域のアロケートを行う。The host computer 3 activates the centralized data management mechanism 30, and the activated central data management mechanism 30 allocates a necessary amount of area on the shared storage device 7.
さらに、集中データ管理機構30は、固有メモリ装置5
上に存在しているファイルF2のファイル制御ブロック
内のコピー存在フラグ(この場合にはONが設定されて
いる)を参照し、コピー存在フラグのONに基づいて共
有メモリ装置6上にファイルF2のファイル制御ブロッ
クのコピーが存在していることを認識し、共有メモリ装
置6上に存在しているファイルF2のファイル制御ブロ
ックのコピー内の情報を上述のallocaLe処理を
反映して更新する。Further, the centralized data management facility 30 includes a specific memory device 5.
The copy existence flag (in this case, ON is set) in the file control block of the file F2 that exists above is referred to, and the file F2 is stored on the shared memory device 6 based on the ON of the copy existence flag. It is recognized that a copy of the file control block exists, and the information in the copy of the file control block of file F2 existing on the shared memory device 6 is updated to reflect the above-mentioned allocaLe processing.
上述のallocate処理を含むy r i t e
処理が終了すると、集中データ管理機構30は、ファイ
ルF2のwrite処理が終了したことをホストコンピ
ュータ3を介してホストコンピュータ4上で動作するユ
ーザプログラム2に通知する(ホストコンピュータ3か
らホストコンピュータ4に制御が移り、制御がユーザプ
ログラム2に戻る)。y r i t e including the above-mentioned allocate process
When the processing is completed, the centralized data management mechanism 30 notifies the user program 2 running on the host computer 4 via the host computer 3 that the write processing of the file F2 has been completed (from the host computer 3 to the host computer 4). control is transferred and control is returned to user program 2).
ユーザプログラム2におけるファイルF2に対する処理
が全て終了すると、ユーザプログラム2はファイルF2
のclose要求を発行する。When all the processes for file F2 in user program 2 are completed, user program 2
issue a close request.
close要求が発行されると、ホストコンピュータ4
からホストコンピュータ3に制御が移り、ホストコンピ
ュータ3はそのclose要求に基づいて集中データ管
理機構30を起動する。When a close request is issued, the host computer 4
Then control is transferred to the host computer 3, and the host computer 3 starts up the centralized data management mechanism 30 based on the close request.
集中データ管理機構30は、共有記憶袋F7上のファイ
ルF2内の未使用ブロックのr r e e処理を行い
、固有メモリ装置5上に存在しているファイルF2のフ
ァイル制御ブロック内のコピー存在フラグを参照し、コ
ピー存在フラグのONに基づいて共有メモリ装置6上に
存在しているファイルF2のファイル制御卸ブロックの
コピー内の情報を上述のf ree処理を反映して更新
する。The centralized data management mechanism 30 performs r e processing on the unused blocks in the file F2 on the shared storage bag F7, and sets the copy existence flag in the file control block of the file F2 existing on the private memory device 5. , and based on the ON of the copy existence flag, the information in the copy of the file control wholesale block of the file F2 existing on the shared memory device 6 is updated to reflect the above-described free processing.
さらに、集中データ管理機構30は、その更新に基づい
て共有記憶装置7上のファイル制御情報領域70を更新
し、その後に固有メモリ装置5上に存在しているファイ
ルF2のファイル制御ブロックおよび共有メモリ装置6
に存在しているファイルF2のファイル制御ブロックの
コピーを削除する。Furthermore, the centralized data management mechanism 30 updates the file control information area 70 on the shared storage device 7 based on the update, and then updates the file control block of the file F2 existing on the private memory device 5 and the shared memory Device 6
Delete the copy of the file control block of file F2 that exists in .
上述のclose処理が終了すると、集中データ管理機
構30は、C1ose処理が終了したことをホストコン
ピュータ3を介してホストコンピュータ4上で動作する
ユーザプログラム2に通知する(ホストコンピュータ3
からホストコンピュータ4に制1111が移り、制御が
ユーザプログラム2に戻る)。When the above-mentioned close processing is completed, the centralized data management mechanism 30 notifies the user program 2 running on the host computer 4 via the host computer 3 that the C1ose processing has ended (the host computer 3
control is then transferred to the host computer 4, and control is returned to the user program 2).
以上のように、ホストコンピュータ4がらのファイルの
read処理/write処理(アクセス)については
、共有メモリ装置6上に処理対象のファイルのファイル
制御ブロックのコピーが作成されるので、ホストコンピ
ュータ4がう直接に(管理ホストコンピュータであるホ
ストコンピュータ3を介さずに)共有メモリ装置6上の
ファイル制御ブロックのコピーを参照/更新して処理を
行うことができる。As described above, for read/write processing (access) of a file from the host computer 4, a copy of the file control block of the file to be processed is created on the shared memory device 6, so the host computer 4 Processing can be performed by directly referencing/updating the copy of the file control block on the shared memory device 6 (without going through the host computer 3 that is the management host computer).
〔発明の効果]
以上説明したように本発明は、管理ホストコンピュータ
以外のホストコンピュータからも管理ホストコンピュー
タを介さずに共存記憶装置上のファイルのアクセスを行
うことが可能になるごとにより、管理ホストコンピュー
タ以外のホストコンピュータからの共有記憶装置上のフ
ァイルに対するアクセス時間を短縮することができ(特
に、大量のデータアクセスが行われる場合にアクセスの
高速化の効果が大きい)、1つのホストコンピュータ(
管理ホストコンピュータ)への負荷の集中を回避するこ
とができるという効果がある。[Effects of the Invention] As explained above, the present invention enables host computers other than the management host computer to access files on a co-located storage device without going through the management host computer. It is possible to shorten the access time for files on a shared storage device from a host computer other than a computer (the effect of speeding up access is particularly large when a large amount of data is accessed), and one host computer (
This has the effect of avoiding concentration of load on the management host computer.
第1図は本発明の一実施例の構成を示すプロ。
り図、
第2図は第1図中の固有メモリ装置に作成されるファイ
ル制御ブロックの構成を示す図である。
図において、
1、 2・・・ユーザプログラム、
3.4・・・ホストコンピュータ、
5・・・・・固有メモリ装置、
6・・・・・共有メモリ装置、
7・・・・・共有記憶装置、
30・・・・・集中データ管理機構、
70・・・・・ファイル制御情報領域である。
第1図FIG. 1 is a diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing the configuration of a file control block created in the private memory device in FIG. 1. In the figure, 1, 2... User program, 3.4... Host computer, 5... Private memory device, 6... Shared memory device, 7... Shared storage device. , 30... central data management mechanism, 70... file control information area. Figure 1
Claims (1)
装置上のファイルを1つの管理ホストコンピュータが集
中的に管理している計算機システムにおいて、 管理ホストコンピュータによるファイルの制御等のため
に作成されるファイル制御ブロックを記憶する固有メモ
リ装置と、 各ホストコンピュータからのアクセスが可能であり管理
ホストコンピュータ以外のホストコンピュータから共有
記憶装置上のファイルのアクセスが行われる場合に前記
固有メモリ装置上の当該ファイルのファイル制御ブロッ
クに基づく当該ファイルのファイル制御ブロックのコピ
ーを記憶する共有メモリ装置と、 管理ホストコンピュータ以外のホストコンピュータから
共有記憶装置上のファイルのアクセスが行われる場合の
ファイルオープン時に前記固有メモリ装置上に当該ファ
イルのファイル制御ブロックを作成し管理ホストコンピ
ュータ以外の当該ホストコンピュータから直接に参照/
更新できる当該ファイルのファイル制御ブロックのコピ
ーを当該ファイルのファイル制御ブロックに基づき前記
共有メモリ装置上に作成する管理ホストコンピュータ内
の集中データ管理機構と を有することを特徴とする複数ホストコンピュータ間に
おけるファイルアクセス方式。[Scope of Claim] In a computer system in which one management host computer centrally manages files on a shared storage device that can be accessed by a plurality of host computers, created for the purpose of controlling the files by the management host computer. a specific memory device that stores file control blocks to be stored in the shared storage device; and a specific memory device that can be accessed from each host computer and is stored in the specific memory device when a file on the shared storage device is accessed from a host computer other than the management host computer. a shared memory device that stores a copy of the file control block of the file based on the file control block of the file; and a shared memory device that stores a copy of the file control block of the file based on the file control block of the file; Create a file control block for the file on the memory device and refer to it directly from the host computer other than the management host computer.
and a centralized data management mechanism in a management host computer that creates an updateable copy of a file control block of the file on the shared memory device based on the file control block of the file. Access method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1140848A JPH036633A (en) | 1989-06-02 | 1989-06-02 | File access system among plural host computers |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1140848A JPH036633A (en) | 1989-06-02 | 1989-06-02 | File access system among plural host computers |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH036633A true JPH036633A (en) | 1991-01-14 |
Family
ID=15278136
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1140848A Pending JPH036633A (en) | 1989-06-02 | 1989-06-02 | File access system among plural host computers |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH036633A (en) |
-
1989
- 1989-06-02 JP JP1140848A patent/JPH036633A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3830886B2 (en) | Method for storing data in nonvolatile memory | |
| CA2047696C (en) | Method of reading and writing files on non-erasable storage media | |
| US20060047926A1 (en) | Managing multiple snapshot copies of data | |
| CN114328018B (en) | Snapshot creation method, computing device and storage medium | |
| JPH04219844A (en) | High-speed medium preferential release type exclusive system | |
| JP3882461B2 (en) | Storage device system and backup acquisition method thereof | |
| JPH036633A (en) | File access system among plural host computers | |
| JP2006039942A (en) | File management device in hierarchical storage system, and its file management method | |
| CN107422990A (en) | A kind of dynamic migration method and device | |
| JPH06110759A (en) | File system | |
| JP2785451B2 (en) | Storage control method and device | |
| JPS61251944A (en) | Buffer area control system | |
| JPH09231012A (en) | Volume copy system between direct access type external storage devices | |
| JP2574537B2 (en) | Process management equipment | |
| JPH07319839A (en) | Distributed shared memory management method and network computer system | |
| JP4131579B2 (en) | Data management system and data management method | |
| JP2609705B2 (en) | File control method | |
| JPH0337748A (en) | External storage accessing system utilizing main storage | |
| JPH05151037A (en) | Reorganization processing system for database in business processing | |
| JP2817911B2 (en) | Access control method for keyed files | |
| JPH01253049A (en) | Electronic computer | |
| JPH03268146A (en) | Fast file access system | |
| JPH04350738A (en) | Disk space management system | |
| JP2735400B2 (en) | Asynchronous I/O control method | |
| JPH02193231A (en) | File space free area management system |