JP2000250845A - Method and device for controlling recording medium competition and medium recorded with the processing program therefor - Google Patents

Method and device for controlling recording medium competition and medium recorded with the processing program therefor

Info

Publication number
JP2000250845A
JP2000250845A JP11054262A JP5426299A JP2000250845A JP 2000250845 A JP2000250845 A JP 2000250845A JP 11054262 A JP11054262 A JP 11054262A JP 5426299 A JP5426299 A JP 5426299A JP 2000250845 A JP2000250845 A JP 2000250845A
Authority
JP
Japan
Prior art keywords
recording medium
medium
magnetic tape
file
use request
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
JP11054262A
Other languages
Japanese (ja)
Inventor
Shoji Masui
章二 増井
Yoshiaki Niimura
義章 新村
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.)
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi 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 Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP11054262A priority Critical patent/JP2000250845A/en
Publication of JP2000250845A publication Critical patent/JP2000250845A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce a waiting time caused by the competition of access generated to the same recording medium by stopping using a recording medium when a use request to the recording medium under use is generated and performing processing for which the use request is generated. SOLUTION: A file output processing part 121 of a memory 102 performs archive processing for moving the prescribed file of low use frequency or the like among files stored in a magnetic disk device 103 built in an information processor 100 to a magnetic tape library device 110. Afterwards, while the use request to a magnetic tape medium 113 under use is generated, the use of the magnetic tape medium is stopped by a medium use end processing part 123 of the memory 102 and the notice of use end is sent to a medium use request processing part 122 which generates the use request to the magnetic tape medium. Thus, the waiting time caused by the competition of access generated to the same recording medium can be reduced.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はファイルの入出力処
理を行う際の記録媒体へのアクセスを制御する記録媒体
競合制御方法に関し、特に使用中の磁気テープ媒体に対
して他の使用要求が発生した場合に当該磁気テープ媒体
へのアクセスを制御する記録媒体競合制御方法に適用し
て有効な技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording medium contention control method for controlling access to a recording medium when performing file input / output processing, and in particular, generates another use request for a magnetic tape medium in use. The present invention relates to a technique which is effective when applied to a recording medium contention control method for controlling access to the magnetic tape medium.

【0002】[0002]

【従来の技術】従来の情報処理装置において多くのデー
タを格納して管理する場合には、磁気テープカートリッ
ジ等の多数の記録媒体を備える大容量のライブラリ装置
を情報処理装置に接続し、必要に応じて情報処理装置と
前記ライブラリ装置との間でファイルの移動を行って管
理している。
2. Description of the Related Art When storing and managing a large amount of data in a conventional information processing apparatus, a large-capacity library apparatus having a large number of recording media such as a magnetic tape cartridge is connected to the information processing apparatus, and is required. Accordingly, the file is moved between the information processing device and the library device and managed.

【0003】前記ライブラリ装置を接続した情報処理装
置では、情報処理装置に内蔵された磁気ディスク装置等
の記憶装置の空き容量が低下した場合等の所定の状態に
なると、使用頻度が低い等の所定のファイルを情報処理
装置からライブラリ装置内の所定の記録媒体上へ移動す
るアーカイブ処理を行う。
In an information processing apparatus to which the library apparatus is connected, when a predetermined state such as when the free space of a storage device such as a magnetic disk device built in the information processing apparatus is reduced, a predetermined state such as infrequent use is determined. Archive processing for moving the file from the information processing device to a predetermined recording medium in the library device.

【0004】ユーザがアクセスしようとしたファイルが
ライブラリ装置に移動されていた場合には、アクセス要
求のあったファイルをライブラリ装置の記録媒体上から
情報処理装置の磁気ディスク装置上に移動するリコール
処理を行った後に磁気ディスク装置上のファイルへのア
クセスを行っている。この際に複数のユーザからライブ
ラリ装置内の同じ記録媒体に対する使用要求が競合した
場合には、先に要求を行った処理が完了するまで他の要
求を待たせた後、先の処理が完了してから他の処理を行
う。
When a file that a user tries to access has been moved to a library device, a recall process for moving a file requested to be accessed from a recording medium of the library device to a magnetic disk device of the information processing device is performed. After that, the file on the magnetic disk device is accessed. At this time, if a request for use of the same recording medium in the library device by a plurality of users conflicts, another request is made to wait until the previously requested process is completed, and then the previous process is completed. And then perform other processing.

【0005】前記の様にライブラリ装置を接続した情報
処理装置では必要に応じて情報処理装置とライブラリ装
置との間でファイルの移動を行う為、ユーザはライブラ
リ装置の存在を意識することなく大容量の記憶領域を使
用することができる。なお、コンピュータデータのライ
ブラリ管理方法において、ユーザがライブラリ装置を意
識することなくデータの書き込み及び読み出しを行うこ
とが可能な自動ライブラリ制御方法については、特開平
9−128153号公報に記載されている。
[0005] As described above, in the information processing apparatus to which the library apparatus is connected, the file is moved between the information processing apparatus and the library apparatus as needed, so that the user can obtain a large capacity without being aware of the existence of the library apparatus. Storage area can be used. Note that, in the library management method for computer data, an automatic library control method that allows a user to write and read data without being conscious of the library device is described in Japanese Patent Application Laid-Open No. 9-128153.

【0006】[0006]

【発明が解決しようとする課題】前記従来の情報処理装
置では、同一の記録媒体へのアクセスが競合すると後か
らの使用要求が待たされる為、複数のファイルを記録媒
体に移動するアーカイブ処理を行っている際にその記録
媒体に格納されているファイルへアクセスするリコール
処理が発生した場合、アーカイブ処理が終了するまでリ
コール処理が長時間待ち状態となるという問題がある。
特に記録媒体として容量の大きい磁気テープ媒体を複数
備えるライブラリ装置を用いた場合には、多量のデータ
を前記磁気テープに移動するアーカイブ処理が終了する
までの待ち状態が数時間にも及ぶこともある。
In the conventional information processing apparatus, when contention for access to the same recording medium conflicts, a later use request is waited. Therefore, archive processing for moving a plurality of files to the recording medium is performed. If a recall process for accessing a file stored in the recording medium occurs during the operation, there is a problem that the recall process waits for a long time until the archive process ends.
In particular, when a library device having a plurality of large-capacity magnetic tape media is used as a recording medium, the waiting state until the archiving process of moving a large amount of data to the magnetic tape is completed may reach several hours. .

【0007】本発明の目的は上記問題を解決し、同一記
録媒体に対して発生したアクセス競合による待ち時間を
削減することが可能な技術を提供することにある。
An object of the present invention is to solve the above-mentioned problem and to provide a technique capable of reducing a waiting time due to an access conflict occurring on the same recording medium.

【0008】[0008]

【課題を解決するための手段】本発明は、同一の記録媒
体への複数の入出力処理によるアクセスを制御する記録
媒体競合制御方法において、使用中の記録媒体に対する
使用要求が発生した場合に当該記録媒体の使用を中止し
て前記使用要求を発生した処理を行うものである。
According to the present invention, there is provided a recording medium contention control method for controlling access to the same recording medium by a plurality of input / output processes. The use of the recording medium is stopped and the process of generating the use request is performed.

【0009】本発明では、ライブラリ装置の記録媒体上
のファイルにアクセスするファイル入力処理の際にアク
セス対象の記録媒体が使用中であるかどうかを調べ、ア
クセス対象の記録媒体が使用中である場合に当該記録媒
体に対する使用要求を生成して当該記録媒体の使用終了
通知を待つ待ち状態に入る。
According to the present invention, it is determined whether or not a recording medium to be accessed is in use during file input processing for accessing a file on a recording medium in a library device. Then, a use request for the recording medium is generated, and a wait state for waiting for a use end notification of the recording medium is entered.

【0010】情報処理装置からライブラリ装置へ複数の
ファイルを移動するファイル出力処理では、各ファイル
を記録媒体に移動する度に当該記録媒体に対する使用要
求が生成されていないかを調べ、出力処理中の記録媒体
に対する使用要求がファイル入力処理によって生成され
ている場合に当該記録媒体への出力処理を中止して当該
ファイル入力処理へ使用終了通知を送った後、記録媒体
を変更して出力処理を続行する。ファイル入力処理で
は、前記使用終了通知を受け取った後に当該記録媒体へ
のアクセスを行う。なおファイル出力処理では前記ファ
イル入力処理の完了を待って同一記録媒体への出力処理
を再開しても良い。
In the file output process for moving a plurality of files from the information processing device to the library device, every time each file is moved to the recording medium, it is checked whether a use request for the recording medium has been generated. If the use request for the recording medium has been generated by the file input processing, the output processing to the recording medium is stopped, a use end notification is sent to the file input processing, the recording medium is changed, and the output processing is continued. I do. In the file input process, access to the recording medium is performed after receiving the use end notification. In the file output process, the output process to the same recording medium may be restarted after the completion of the file input process.

【0011】以上の様に本発明の記録媒体競合制御方法
によれば、使用中の記録媒体に対する使用要求が発生し
た場合に当該記録媒体の使用を中止するので、同一記録
媒体に対して発生したアクセス競合による待ち時間を削
減することが可能である。
As described above, according to the recording medium contention control method of the present invention, when a use request for a used recording medium is issued, the use of the recording medium is stopped. It is possible to reduce the waiting time due to access competition.

【0012】[0012]

【発明の実施の形態】以下に磁気テープライブラリ装置
を接続した情報処理装置でファイル出力処理によって使
用中の磁気テープ媒体に対してファイル入力処理を行お
うとする場合に磁気テープ媒体の選択を制御する一実施
形態の記録媒体競合制御方法について説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following, when a file input process is to be performed on a magnetic tape medium being used by a file output process in an information processing device connected to a magnetic tape library device, selection of a magnetic tape medium is controlled. A recording medium contention control method according to an embodiment will be described.

【0013】図1は本実施形態の計算機システムの概略
構成を示す図である。図1に示す様に本実施形態の情報
処理装置100は、ファイル入力処理部120と、ファ
イル出力処理部121と、媒体使用要求処理部122
と、媒体使用終了処理部123とを有している。
FIG. 1 is a diagram showing a schematic configuration of a computer system according to the present embodiment. As shown in FIG. 1, the information processing apparatus 100 of the present embodiment includes a file input processing unit 120, a file output processing unit 121, a medium use request processing unit 122
And a medium use end processing unit 123.

【0014】ファイル入力処理部120は、磁気テープ
ライブラリ装置110に移動されたファイルの内でユー
ザからアクセス要求のあったファイルを磁気ディスク装
置103に移動するリコール処理を行う処理部である。
The file input processing unit 120 is a processing unit that performs a recall process of moving a file requested to be accessed by a user among the files moved to the magnetic tape library device 110 to the magnetic disk device 103.

【0015】ファイル出力処理部121は、情報処理装
置100に内蔵された磁気ディスク装置103に格納さ
れたファイルの内で、使用頻度の低い等の所定のファイ
ルを磁気テープライブラリ装置110へ移動するアーカ
イブ処理を行う処理部である。
The file output processing unit 121 is an archive for moving a predetermined file, such as an infrequently used file, from the files stored in the magnetic disk device 103 built in the information processing device 100 to the magnetic tape library device 110. This is a processing unit that performs processing.

【0016】媒体使用要求処理部122は、アクセス要
求のあった磁気テープ媒体113が使用中である場合に
当該磁気テープ媒体に対する使用要求を生成して当該磁
気テープ媒体の使用が終了したことを示す使用終了通知
を待つ処理部である。
The medium use request processing unit 122 generates a use request for the magnetic tape medium 113 to which the access request has been made when the magnetic tape medium 113 is in use, and indicates that the use of the magnetic tape medium has been completed. The processing unit waits for a use end notification.

【0017】媒体使用終了処理部123は、使用中の磁
気テープ媒体113に対する使用要求が生成されている
場合に当該磁気テープ媒体の使用を中止して当該磁気テ
ープ媒体に対する使用要求を生成した媒体使用要求処理
部122へ使用終了通知を送る処理部である。
When a use request for the magnetic tape medium 113 in use is generated, the medium use end processing unit 123 stops using the magnetic tape medium and generates a use request for the magnetic tape medium. A processing unit that sends a use end notification to the request processing unit 122.

【0018】情報処理装置100をファイル入力処理部
120、ファイル出力処理部121、媒体使用要求処理
部122及び媒体使用終了処理部123として機能させ
る為のプログラムは、磁気テープ等の記録媒体に記録さ
れ、磁気ディスク装置103に格納された後、メモリ1
02にロードされて実行されるものとする。なお前記プ
ログラムを記録する媒体は磁気テープ以外の他の媒体で
も良い。
A program for causing the information processing apparatus 100 to function as the file input processing section 120, the file output processing section 121, the medium use request processing section 122, and the medium use end processing section 123 is recorded on a recording medium such as a magnetic tape. After being stored in the magnetic disk device 103, the memory 1
02 and executed. The medium on which the program is recorded may be a medium other than the magnetic tape.

【0019】本実施形態の磁気テープライブラリ装置1
10には入力用磁気テープ装置111及び出力用磁気テ
ープ装置112が装備され、磁気テープ媒体113が複
数本格納されている。全ての磁気テープ媒体113は磁
気テープ媒体登録簿106で管理されており、格納され
ている磁気テープ媒体113を使用する場合は、入力用
磁気テープ装置111又は出力用磁気テープ装置112
にマウントして使用する。なお入力用磁気テープ装置1
11及び出力用磁気テープ装置112をそれぞれ複数台
装備することが可能で、複数台装備している場合には複
数台の中から未使用の装置を選択し、未使用の装置が無
い場合は未使用となるのを待って使用する。
The magnetic tape library device 1 of the present embodiment
10 is equipped with an input magnetic tape device 111 and an output magnetic tape device 112, and stores a plurality of magnetic tape media 113. All the magnetic tape media 113 are managed in the magnetic tape medium directory 106. When the stored magnetic tape media 113 is used, the input magnetic tape device 111 or the output magnetic tape device 112 is used.
Mount and use. The input magnetic tape device 1
11 and the output magnetic tape device 112 can be provided respectively. If a plurality of devices are provided, an unused device is selected from the plurality of devices. Wait for use before using.

【0020】図2は本実施形態の磁気テープ媒体登録簿
106のデータ形式を示す図である。図中の1件のデー
タが1本の磁気テープ媒体113と対応している。ボリ
ューム通し番号21は、磁気テープライブラリ装置11
0に格納されている個々の磁気テープ媒体113を識別
する番号であり、このボリューム通し番号21を指定し
て入力用磁気テープ装置111又は出力用磁気テープ装
置112に磁気テープ媒体113をマウントさせること
ができる。
FIG. 2 is a diagram showing the data format of the magnetic tape medium directory 106 according to this embodiment. One piece of data in the figure corresponds to one magnetic tape medium 113. The volume serial number 21 corresponds to the magnetic tape library device 11.
0 is a number for identifying each magnetic tape medium 113 stored therein, and it is possible to mount the magnetic tape medium 113 on the input magnetic tape device 111 or the output magnetic tape device 112 by designating this volume serial number 21. it can.

【0021】使用/未使用フラグ22は磁気テープ媒体
113の使用状況を記録しているフラグで、その磁気テ
ープ媒体113が現時点で使用されているか否かを示し
ている。使用率23はその磁気テープ媒体113の全容
量の内のどこまで使用されているかを示すものである。
格納ファイル数24はその磁気テープ媒体113に格納
されているファイル数を示すもので、「0」の場合、そ
の磁気テープ媒体113にはファイルが何も記録されて
いないことを示している。
The used / unused flag 22 is a flag that records the use status of the magnetic tape medium 113, and indicates whether the magnetic tape medium 113 is currently used. The usage rate 23 indicates how much of the total capacity of the magnetic tape medium 113 is used.
The number of stored files 24 indicates the number of files stored in the magnetic tape medium 113. When “0”, it indicates that no file is recorded in the magnetic tape medium 113.

【0022】図3は本実施形態のファイル入力処理部1
20の処理手順を示すフローチャートである。図3では
本実施形態において磁気テープライブラリ装置110に
格納されたファイルを読み出すファイル入力処理の概要
を表しており、以下の手順で入力処理を行う。
FIG. 3 shows a file input processing unit 1 according to this embodiment.
20 is a flowchart illustrating a processing procedure of Step 20. FIG. 3 shows an outline of a file input process for reading a file stored in the magnetic tape library device 110 in the present embodiment, and the input process is performed in the following procedure.

【0023】本実施形態の情報処理装置100におい
て、プログラムやデータを格納したファイルをユーザが
アクセスしようとしたときに、そのファイルが磁気テー
プライブラリ装置110に移動されていた場合には、ア
クセス要求のあったファイルが格納されている磁気テー
プ媒体113のボリューム通し番号21をファイル登録
簿107から読み出して、そのファイルの入力要求を行
う。
In the information processing apparatus 100 according to the present embodiment, when a file storing a program or data is accessed by a user and the file is moved to the magnetic tape library apparatus 110, an access request The volume serial number 21 of the magnetic tape medium 113 in which the file is stored is read from the file directory 107, and an input request for the file is made.

【0024】ボリューム通し番号21を指示したファイ
ルの入力要求があった場合、ステップ30でファイル入
力処理部120は入力用磁気テープ装置111を割り当
て、ステップ31では入力用磁気テープ装置111にマ
ウントする磁気テープ媒体113を選択する。
When a file input requesting the volume serial number 21 is received, the file input processing unit 120 allocates an input magnetic tape device 111 in step 30 and a magnetic tape mounted on the input magnetic tape device 111 in step 31. The medium 113 is selected.

【0025】ステップ31の選択処理では、まずステッ
プ31Aで媒体使用要求処理部122により、磁気テー
プ媒体登録簿106からボリューム通し番号21をキー
として検索し、ボリューム通し番号21に対応する使用
/未使用フラグ22を参照する。
In the selection process of step 31, first, in step 31A, the medium use request processing unit 122 searches the magnetic tape medium directory 106 using the volume serial number 21 as a key, and uses / not use the flag 22 corresponding to the volume serial number 21. See

【0026】ステップ31Bで媒体使用要求処理部12
2は、入力要求があった磁気テープ媒体113が他で使
用中であるかどうかを使用/未使用フラグ22により判
定し、その磁気テープ媒体113が他で使用中である場
合にはステップ31Cに進む。
In step 31B, the medium use request processing unit 12
2 judges whether or not the magnetic tape medium 113 requested to be input is being used by another using the use / unused flag 22. If the magnetic tape medium 113 is being used by another, the process proceeds to step 31C. move on.

【0027】ステップ31Cで媒体使用要求処理部12
2は、入力待ちテーブルにボリューム通し番号21を登
録することにより、当該磁気テープ媒体の使用を要求す
る使用要求を生成して当該磁気テープ媒体の使用終了を
待つ待ち状態に入る。そして当該磁気テープ媒体の使用
が終了したことを示す使用終了通知を受け取ると、媒体
使用要求処理部122はファイル入力処理部120に制
御を戻してファイル入力処理部120に当該磁気テープ
媒体へのアクセスを開始させる。
In step 31C, the medium use request processing unit 12
2 registers the volume serial number 21 in the input wait table, generates a use request for requesting use of the magnetic tape medium, and enters a wait state to wait for the end of use of the magnetic tape medium. Upon receiving a use end notification indicating that the use of the magnetic tape medium has been completed, the medium use request processing unit 122 returns control to the file input processing unit 120 and causes the file input processing unit 120 to access the magnetic tape medium. To start.

【0028】ステップ31Dでファイル入力処理部12
0は、磁気テープ媒体登録簿106の該当するボリュー
ム通し番号21のデータの使用/未使用フラグ22を使
用中に変更して磁気テープ媒体登録簿106を更新し、
ステップ31Eで入力用磁気テープ装置111に当該磁
気テープ媒体をマウントする。
In step 31D, the file input processing unit 12
0 updates the magnetic tape medium directory 106 by changing the use / unused flag 22 of the data of the corresponding volume serial number 21 of the magnetic tape medium directory 106 to in use,
In step 31E, the magnetic tape medium is mounted on the input magnetic tape device 111.

【0029】ステップ32では前記マウントされた磁気
テープ媒体113からファイルを入力し、入力が完了し
たらステップ33で磁気テープ媒体113を解放する。
ステップ33の解放処理では、まずステップ33Aで入
力用磁気テープ装置111から磁気テープ媒体113を
デマウントし、使用した磁気テープ媒体113に対する
使用要求が入力待ちテーブルに登録されているかをステ
ップ33Bで判定する。使用した磁気テープ媒体113
に対する使用要求が入力待ちテーブルに登録されている
場合には他の処理部が待ち状態であると見なしてステッ
プ33Cに進み、待ち状態となっている使用要求元に通
知する。最後にステップ34で入力用磁気テープ装置1
11を解放する。
In step 32, a file is input from the mounted magnetic tape medium 113, and when the input is completed, the magnetic tape medium 113 is released in step 33.
In the release processing of step 33, first, in step 33A, the magnetic tape medium 113 is demounted from the input magnetic tape device 111, and it is determined in step 33B whether a use request for the used magnetic tape medium 113 is registered in the input waiting table. . Magnetic tape medium 113 used
If a use request for is registered in the input wait table, the other processing units are considered to be in a wait state, and the process proceeds to step 33C to notify the use request source in the wait state. Finally, in step 34, the input magnetic tape device 1
Release 11.

【0030】図4は本実施形態のファイル出力処理部1
21の処理手順を示すフローチャートである。図4では
本実施形態において磁気テープライブラリ装置110に
ファイルを格納するファイル出力処理の概要を表してお
り、以下の手順で出力処理を行う。
FIG. 4 shows a file output processing unit 1 according to this embodiment.
21 is a flowchart illustrating a processing procedure of a first embodiment. FIG. 4 shows an outline of a file output process for storing a file in the magnetic tape library device 110 in the present embodiment, and the output process is performed in the following procedure.

【0031】ステップ40でファイル出力処理部121
は、出力用磁気テープ装置112を割り当て、ステップ
41では出力用磁気テープ装置112にマウントする磁
気テープ媒体113を選択する。なおこの選択処理では
ボリューム通し番号21が指示されることはなく、ファ
イル出力処理部121で磁気テープ媒体113を決定す
る。
At step 40, the file output processing section 121
Assigns the output magnetic tape device 112, and selects the magnetic tape medium 113 to be mounted on the output magnetic tape device 112 in step 41. In this selection process, the volume serial number 21 is not specified, and the file output processing unit 121 determines the magnetic tape medium 113.

【0032】ステップ41の選択処理では、まずステッ
プ41Aで2個目以降のファイル出力であるかどうかを
調べ、2個目以降のファイルである場合にはステップ4
1Bに進み、2個目以降のファイルではない場合にはス
テップ41Eに進む。
In the selection process in step 41, first, it is checked in step 41A whether or not the output is the second or subsequent file.
Proceed to 1B, and if it is not the second or subsequent file, proceed to step 41E.

【0033】ステップ41Bでは、現在使用中の磁気テ
ープ媒体113に次のファイルを連続して出力可能な空
き容量があり、格納済みファイル数が予め定められた所
定の数以内であるかを当該磁気テープ媒体の使用率23
及び格納ファイル数24から判定し、連続して出力可能
であればステップ41Cに進む。現在使用中の磁気テー
プ媒体113に連続出力できない場合には磁気テープ媒
体113を出力用磁気テープ装置112からデマウント
し、当該磁気テープ媒体に対応する使用/未使用フラグ
22を未使用に変更してステップ41Eに進む。
In step 41B, it is determined whether or not the magnetic tape medium 113 currently in use has a free space capable of continuously outputting the next file and the number of stored files is within a predetermined number. Usage rate of tape media 23
And if the number of stored files is 24, the process proceeds to step 41C if output is possible continuously. If the magnetic tape medium 113 cannot be continuously output to the currently used magnetic tape medium 113, the magnetic tape medium 113 is demounted from the output magnetic tape device 112, and the use / unused flag 22 corresponding to the magnetic tape medium is changed to unused. Proceed to step 41E.

【0034】ステップ41Cで媒体使用終了処理部12
3により入力待ちテーブルを参照して現在使用中の磁気
テープ媒体113に対する使用要求が生成されているか
どうかを判定し、ファイル出力処理部121によって現
在使用中の磁気テープ媒体113に対する使用要求がフ
ァイル入力処理部120によって生成されている場合に
はステップ41Dに進む。
In step 41C, the medium use end processing unit 12
3 to determine whether a use request for the currently used magnetic tape medium 113 has been generated by referring to the input waiting table, and the file output processing unit 121 determines whether or not the use request for the currently used magnetic tape medium 113 is file input. If it is generated by the processing unit 120, the process proceeds to step 41D.

【0035】ステップ41Dで媒体使用終了処理部12
3は、現在使用中の磁気テープ媒体113の使用を中止
して磁気テープ媒体113を出力用磁気テープ装置11
2からデマウントし、当該磁気テープ媒体に対応する使
用/未使用フラグ22を未使用に変更した後、当該磁気
テープ媒体に対する使用要求を生成した媒体使用要求処
理部122へ使用終了通知を送る。この通知により媒体
使用要求処理部122のステップ31Cの待ち状態が解
除される。
In step 41D, the medium use end processing section 12
3 indicates that the magnetic tape medium 113 currently in use is stopped and the magnetic tape medium 113 is output to the output magnetic tape device 11.
2, the use / unused flag 22 corresponding to the magnetic tape medium is changed to unused, and then a use end notification is sent to the medium use request processing unit 122 that has generated a use request for the magnetic tape medium. With this notification, the waiting state in step 31C of the medium use request processing unit 122 is released.

【0036】ステップ41Eでファイル出力処理部12
1は、磁気テープ媒体登録簿106を参照し、ファイル
を出力できる空き容量があり、格納済みのファイル数が
予め定められた所定の数以内である磁気テープ媒体11
3を使用率23及び格納ファイル数24から判定し、選
択した磁気テープ媒体113について磁気テープ媒体登
録簿106の該当するボリューム通し番号21のデータ
の使用/未使用フラグ22を使用中に変更して磁気テー
プ媒体登録簿106を更新し、出力用磁気テープ装置1
12にその磁気テープ媒体113をマウントする。
At step 41E, the file output processing unit 12
Reference numeral 1 denotes a magnetic tape medium 11 which refers to the magnetic tape medium directory 106, has free space for outputting files, and has a stored number of files within a predetermined number.
3 is determined from the usage rate 23 and the number of stored files 24, and the used / unused flag 22 of the data of the corresponding volume serial number 21 in the magnetic tape medium directory 106 of the selected magnetic tape medium 113 is changed to “in use” to change the magnetic field. The tape medium directory 106 is updated, and the output magnetic tape device 1 is updated.
12, the magnetic tape medium 113 is mounted.

【0037】ステップ42では前記マウントされた磁気
テープ媒体113にファイルを出力し、出力が完了した
ら当該磁気テープ媒体に出力したファイルの名称を当該
磁気テープ媒体のボリューム通し番号21と共にファイ
ル登録簿107に登録する。ステップ43では、次のフ
ァイルを連続して出力するか否かを判定し、ファイルを
出力するのであればステップ41へ戻り、磁気テープ媒
体113の選択要求を行う。ファイルを出力しないので
あればステップ44に進み、磁気テープ媒体113を解
放する。
In step 42, the file is output to the mounted magnetic tape medium 113, and when the output is completed, the name of the file output to the magnetic tape medium is registered in the file register 107 together with the volume serial number 21 of the magnetic tape medium. I do. In step 43, it is determined whether or not to output the next file continuously. If the file is to be output, the process returns to step 41, and a request for selecting the magnetic tape medium 113 is made. If no file is output, the process proceeds to step 44, where the magnetic tape medium 113 is released.

【0038】ステップ44の解放処理では、まずステッ
プ44Aで出力用磁気テープ装置112から磁気テープ
媒体113をデマウントし、当該磁気テープ媒体に対応
する使用/未使用フラグ22を未使用に変更した後、使
用した磁気テープ媒体113に対する使用要求が入力待
ちテーブルに登録されているかどうかをステップ44B
で判定し、登録されている場合には他の処理部が待ち状
態であると見なしてステップ44Cに進み、待ち状態と
なっている使用要求元に通知する。最後にステップ45
で出力用磁気テープ装置112を解放する。
In the release processing in step 44, first, in step 44A, the magnetic tape medium 113 is demounted from the output magnetic tape device 112, and the used / unused flag 22 corresponding to the magnetic tape medium is changed to unused. Step 44B determines whether or not a use request for the used magnetic tape medium 113 is registered in the input waiting table.
If it has been registered, it is determined that another processing unit is in the waiting state, and the process proceeds to step 44C to notify the use request source in the waiting state. Finally step 45
To release the output magnetic tape device 112.

【0039】磁気テープ媒体113への出力処理が長時
間に及ぶ場合、同じ磁気テープ媒体113からの入力処
理は当該出力処理が完了するのを待たなければならない
為、長時間の待ちが発生してしまう。しかし本実施形態
によれば、出力処理の切れ目等で入力要求の有無を確認
することで、出力先の磁気テープ媒体113を解放して
別の磁気テープ媒体で出力処理を続行する為、出力処理
の処理時間の低下を最小限とし、入力処理の待ち時間を
大幅に削減させることができ、全体としてのスループッ
トを向上させることができる。
When the output processing to the magnetic tape medium 113 takes a long time, the input processing from the same magnetic tape medium 113 has to wait for the output processing to be completed. I will. However, according to the present embodiment, by checking the presence or absence of an input request at a break in the output processing, the output destination magnetic tape medium 113 is released, and the output processing is continued with another magnetic tape medium. In this case, it is possible to minimize the reduction in the processing time, greatly reduce the waiting time for input processing, and improve the overall throughput.

【0040】なお本実施形態では情報処理装置100で
の処理で用いられるプログラムやデータを格納したファ
イルを磁気テープライブラリ装置110との間で移動す
る処理について説明したが、セットトップボックス等の
磁気ディスク装置に格納された動画データ等のコンテン
ツをビデオテープとの間で移動する処理に適用しても良
い。
In the present embodiment, the process of moving a file storing programs and data used in the process of the information processing apparatus 100 to and from the magnetic tape library apparatus 110 has been described. The present invention may be applied to a process of moving content such as moving image data stored in a device to and from a video tape.

【0041】以上説明した様に本実施形態の記録媒体競
合制御方法によれば、使用中の記録媒体に対する使用要
求が発生した場合に当該記録媒体の使用を中止するの
で、同一記録媒体に対して発生したアクセス競合による
待ち時間を削減することが可能である。
As described above, according to the recording medium contention control method of the present embodiment, when the use request for the used recording medium is issued, the use of the recording medium is stopped. It is possible to reduce the waiting time due to the generated access conflict.

【0042】[0042]

【発明の効果】本発明によれば使用中の記録媒体に対す
る使用要求が発生した場合に当該記録媒体の使用を中止
するので、同一記録媒体に対して発生したアクセス競合
による待ち時間を削減することが可能である。
According to the present invention, when a use request for a used recording medium is issued, the use of the recording medium is stopped, so that the waiting time due to the access conflict occurring for the same recording medium can be reduced. Is possible.

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

【図1】本実施形態の計算機システムの概略構成を示す
図である。
FIG. 1 is a diagram illustrating a schematic configuration of a computer system according to an embodiment.

【図2】本実施形態の磁気テープ媒体登録簿106のデ
ータ形式を示す図である。
FIG. 2 is a diagram showing a data format of a magnetic tape medium directory 106 according to the embodiment.

【図3】本実施形態のファイル入力処理部120の処理
手順を示すフローチャートである。
FIG. 3 is a flowchart illustrating a processing procedure of a file input processing unit 120 according to the embodiment.

【図4】本実施形態のファイル出力処理部121の処理
手順を示すフローチャートである。
FIG. 4 is a flowchart illustrating a processing procedure of a file output processing unit 121 according to the embodiment.

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

100…情報処理装置、101…CPU、102…メモ
リ、103…磁気ディスク装置、104…キーボード、
105…ディスプレイ装置、106…磁気テープ媒体登
録簿、107…ファイル登録簿、110…磁気テープラ
イブラリ装置、111…入力用磁気テープ装置、112
…出力用磁気テープ装置、113…磁気テープ媒体、1
20…ファイル入力処理部、121…ファイル出力処理
部、122…媒体使用要求処理部、123…媒体使用終
了処理部、21…ボリューム通し番号、22…使用/未
使用フラグ、23…使用率、24…格納ファイル数。
100: information processing device, 101: CPU, 102: memory, 103: magnetic disk device, 104: keyboard,
105: display device, 106: magnetic tape medium directory, 107: file directory, 110: magnetic tape library device, 111: magnetic tape device for input, 112
... magnetic tape device for output, 113 ... magnetic tape medium, 1
20: File input processing unit, 121: File output processing unit, 122: Medium use request processing unit, 123: Medium use end processing unit, 21: Volume serial number, 22: Used / unused flag, 23: Usage rate, 24 ... Number of stored files.

フロントページの続き (72)発明者 新村 義章 神奈川県横浜市戸塚区戸塚町5030番地 株 式会社日立製作所ソフトウェア事業部内 Fターム(参考) 5B014 EB01 GD01 Continued on the front page (72) Inventor Yoshiaki Niimura 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Prefecture F-term in Hitachi Software Division Software Division (Reference) 5B014 EB01 GD01

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 同一の記録媒体への複数の入出力処理に
よるアクセスを制御する記録媒体競合制御方法におい
て、 アクセス対象の記録媒体が使用中である場合に当該記録
媒体に対する使用要求を生成して当該記録媒体の使用終
了通知を待つステップと、使用中の記録媒体に対する使
用要求が生成されている場合に当該記録媒体の使用を中
止して当該記録媒体に対する使用要求の生成元へ使用終
了通知を送るステップとを有することを特徴とする記録
媒体競合制御方法。
In a recording medium contention control method for controlling access to the same recording medium by a plurality of input / output processes, a use request for the recording medium is generated when a recording medium to be accessed is in use. Waiting for a use end notification of the recording medium; and, if a use request for the used recording medium has been generated, suspending use of the recording medium and sending a use end notification to a source of the use request for the recording medium. Sending a recording medium contention control method.
【請求項2】 同一の記録媒体への複数の入出力処理に
よるアクセスを制御する情報処理装置において、 アクセス対象の記録媒体が使用中である場合に当該記録
媒体に対する使用要求を生成して当該記録媒体の使用終
了通知を待つ媒体使用要求処理部と、使用中の記録媒体
に対する使用要求が生成されている場合に当該記録媒体
の使用を中止して当該記録媒体に対する使用要求の生成
元へ使用終了通知を送る媒体使用終了処理部とを備える
ことを特徴とする情報処理装置。
2. An information processing apparatus for controlling access to the same recording medium by a plurality of input / output processes, wherein when a recording medium to be accessed is being used, a use request for the recording medium is generated and the recording is performed. A medium use request processing unit that waits for a medium use end notification, and stops use of the recording medium when a use request for the used recording medium has been generated, and terminates use to the source of the use request for the recording medium. An information processing apparatus comprising: a medium use end processing unit that sends a notification.
【請求項3】 同一の記録媒体への複数の入出力処理に
よるアクセスを制御する情報処理装置としてコンピュー
タを機能させる為のプログラムを記録した媒体におい
て、 アクセス対象の記録媒体が使用中である場合に当該記録
媒体に対する使用要求を生成して当該記録媒体の使用終
了通知を待つ媒体使用要求処理部と、使用中の記録媒体
に対する使用要求が生成されている場合に当該記録媒体
の使用を中止して当該記録媒体に対する使用要求の生成
元へ使用終了通知を送る媒体使用終了処理部としてコン
ピュータを機能させる為のプログラムを記録したことを
特徴とする媒体。
3. A medium in which a program for causing a computer to function as an information processing apparatus for controlling access to the same recording medium by a plurality of input / output processes is recorded when a recording medium to be accessed is in use. A medium use request processing unit that generates a use request for the recording medium and waits for a use end notification of the recording medium, and stops using the recording medium when a use request for the used recording medium is generated. A medium on which a program for causing a computer to function as a medium use end processing unit for sending a use end notification to a source of a use request for the recording medium is recorded.
JP11054262A 1999-03-02 1999-03-02 Method and device for controlling recording medium competition and medium recorded with the processing program therefor Pending JP2000250845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11054262A JP2000250845A (en) 1999-03-02 1999-03-02 Method and device for controlling recording medium competition and medium recorded with the processing program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11054262A JP2000250845A (en) 1999-03-02 1999-03-02 Method and device for controlling recording medium competition and medium recorded with the processing program therefor

Publications (1)

Publication Number Publication Date
JP2000250845A true JP2000250845A (en) 2000-09-14

Family

ID=12965662

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11054262A Pending JP2000250845A (en) 1999-03-02 1999-03-02 Method and device for controlling recording medium competition and medium recorded with the processing program therefor

Country Status (1)

Country Link
JP (1) JP2000250845A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006190274A (en) * 2005-01-05 2006-07-20 Internatl Business Mach Corp <Ibm> Apparatus, system and method for optimizing recall of logical volume in virtual tape server
JP2018136752A (en) * 2017-02-22 2018-08-30 富士通株式会社 Information processing system, information processing device and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573213A (en) * 1991-09-12 1993-03-26 Hitachi Ltd External storage device system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573213A (en) * 1991-09-12 1993-03-26 Hitachi Ltd External storage device system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006190274A (en) * 2005-01-05 2006-07-20 Internatl Business Mach Corp <Ibm> Apparatus, system and method for optimizing recall of logical volume in virtual tape server
JP2018136752A (en) * 2017-02-22 2018-08-30 富士通株式会社 Information processing system, information processing device and program

Similar Documents

Publication Publication Date Title
US5668970A (en) Method and apparatus for generating a file allocation table for a storage medium with no file allocation table using file storage information
JPS60147855A (en) Memory managing apparatus
US7664910B2 (en) Data management method and apparatus, hierarchical storage apparatus and computer-readable storage medium
JP4402103B2 (en) Data storage device, data relocation method thereof, and program
US6665747B1 (en) Method and apparatus for interfacing with a secondary storage system
JP3178809B2 (en) Accessing portable recording media
US20040268070A1 (en) Method and apparatus for backing up data in virtual storage medium
JP2000181773A (en) Storage device system
JP2001034508A (en) Memory dump collection method and its execution device, and recording medium recording memory dump collection program
JP2000250845A (en) Method and device for controlling recording medium competition and medium recorded with the processing program therefor
JPH0330034A (en) Optical disk file managing method
JPH06124239A (en) Resident data controller for cache memory
JPH1153123A (en) Backup system
JP2001290713A (en) Storage device system and method for acquiring its backup
JP2001118365A (en) System and method for managing storage hierarchy and recording medium with storage hierarchical management program recorded thereon
JP2000076085A (en) Information processor, resource lack reporting method and recording medium
JP3925451B2 (en) Recording medium management method for changer recording apparatus
US6704754B1 (en) Method for shared use of medium-exchangeable storage device for purposes of backup and file system, and medium-exchangeable recording system
JPH08212064A (en) Switching system and method for shared subroutine
JPH0973372A (en) Method and device for storage control
JP3445848B2 (en) Buffer control method for external storage device
JP3186045B2 (en) Magnetic tape device embedded control method in multi-host system
JPH07146809A (en) Information processor
JP2650228B2 (en) Volume management method for collective auxiliary storage
JPH11345480A (en) Method for recording/reproducing on storage device and storage device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050615

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050712