JP4572857B2 - Tape virtualization system, tape virtualization method, and tape virtualization program - Google Patents
Tape virtualization system, tape virtualization method, and tape virtualization program Download PDFInfo
- Publication number
- JP4572857B2 JP4572857B2 JP2006094274A JP2006094274A JP4572857B2 JP 4572857 B2 JP4572857 B2 JP 4572857B2 JP 2006094274 A JP2006094274 A JP 2006094274A JP 2006094274 A JP2006094274 A JP 2006094274A JP 4572857 B2 JP4572857 B2 JP 4572857B2
- Authority
- JP
- Japan
- Prior art keywords
- jcl
- save
- tape
- file
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明はテープ仮想化システム、テープ仮想化方法およびテープ仮想化プログラムに関し、特に既存の磁気テープ使用ジョブに使用していたJCLを変更することなく、磁気テープ代替機能を使用可能とするテープ仮想化システム、テープ仮想化方法およびテープ仮想化プログラムに関する。 The present invention relates to a tape virtualization system, a tape virtualization method, and a tape virtualization program, and in particular, a tape virtualization that makes it possible to use a magnetic tape replacement function without changing the JCL used for an existing magnetic tape use job. The present invention relates to a system, a tape virtualization method, and a tape virtualization program.
従来の仮想テープ装置の一例が、特許文献1に記載されている。
従来の仮想テープ装置は、磁気テープ装置と同じ入出力インタフェースを持ち、仮想テープ装置への入出力を変換することで、磁気テープの代わりに磁気ディスクなどの他種の記憶装置にファイルを格納するように実現している。
また、上記記憶装置を一次記憶装置として、さらに別の記憶装置(これを二次記憶装置と呼ぶ)にファイルを移動することを可能としているものもある。
二次記憶装置には、外部保管に利用可能なテープ装置や、低速であるが大容量で安価な磁気ディスク装置などさまざまなものが使用されている。
また、特許文献1に記載の発明では、ユーザの指定などに基づいて、上記一次(または二次)記憶装置を複数の種類の記憶装置から選択して利用できるようにしている。
An example of a conventional virtual tape device is described in
The conventional virtual tape device has the same input / output interface as the magnetic tape device, and converts the input / output to / from the virtual tape device to store the file in another type of storage device such as a magnetic disk instead of the magnetic tape. Has been realized.
In some cases, the storage device is used as a primary storage device, and a file can be moved to another storage device (referred to as a secondary storage device).
Various types of secondary storage devices such as a tape device that can be used for external storage and a low-speed but large-capacity and inexpensive magnetic disk device are used.
Further, in the invention described in
従来の仮想テープ装置には、以下の2つの問題があった。
第1の問題点は、仮想テープを実現する専用装置が必要となり、使用できる一次記憶装置や二次記憶装置が仮想テープ装置に接続できる(組み込まれている)ものに限られてしまうということである。また、より多くの種類の記憶装置が使用できるような仮想テープ装置を実現したとしても、高額なものになってしまうという問題があった。
The conventional virtual tape device has the following two problems.
The first problem is that a dedicated device for realizing the virtual tape is required, and the primary storage device and the secondary storage device that can be used are limited to those that can be connected to (installed in) the virtual tape device. is there. Further, even if a virtual tape device that can use more types of storage devices is realized, there is a problem that the cost becomes high.
第2の問題点は、仮想テープ装置は、仮想テープ装置に接続された(組み込まれた)記憶装置でファイルの移動を行うため、FTP(File Transfer Protocol)などのホストコンピュータ内のソフトウェアで実現した機能や仮想テープ装置と独立した外部記憶装置を利用できないという問題があった。
また、上記のような仮想テープ装置を利用せずに、FTPなどのホストコンピュータが持つ機能やホストコンピュータに接続された他の外部記憶装置を利用したい場合は、従来磁気テープを利用していたジョブを、FTPなどの機能や他の外部記憶装置を利用するジョブに変更する必要があった。しかし、ユーザのJCL資産は膨大であり、JCLの変更にはコストがかかるため、全てのJCLを別装置や別機能を使用するように変更することが困難であるという問題があった。
なお、本明細書では、JCLとはジョブ制御言語(Job Control Language)で記述されたジョブ記述を指し、ジョブとはこのジョブ記述に従って順に実行されるプログラム群を指す。
The second problem is realized by software in the host computer such as FTP (File Transfer Protocol) because the virtual tape device moves files with a storage device connected to (embedded in) the virtual tape device. There is a problem that an external storage device independent of the function and the virtual tape device cannot be used.
In addition, if you want to use the functions of a host computer such as FTP or other external storage devices connected to the host computer without using the virtual tape device as described above, you can use a job that previously used magnetic tape. Must be changed to a job that uses a function such as FTP or another external storage device. However, there is a problem that it is difficult to change all the JCLs to use different devices and functions because the JCL resources of the user are enormous and it is costly to change the JCLs.
In this specification, JCL refers to a job description described in a job control language, and a job refers to a group of programs that are executed in order according to the job description.
本発明の目的は、既存の磁気テープ使用ジョブのJCLを変更することなく、用途や目的に応じてホストコンピュータの持つ磁気テープ代替機能や代替記憶装置を利用可能とするテープ仮想化システムを提供することにある。 An object of the present invention is to provide a tape virtualization system that makes it possible to use a magnetic tape replacement function and an alternative storage device of a host computer according to the application and purpose without changing the JCL of an existing magnetic tape use job. There is.
本発明の、テープ仮想化システムは、磁気テープ媒体名、この磁気テープ媒体名と一次記憶装置を対応付ける規則である割り当て先変更規則および一次記憶装置から二次記憶装置へのファイルの退避を制御する退避JCLと二次記憶装置から一次記憶装置へのファイルの復元を制御する復元JCLを生成する規則であるJCL生成規則を含む仮想テープ定義情報を記憶する仮想テープ定義情報記憶部と、退避JCLを生成するための雛形である退避JCL雛形と復元JCLを生成するための雛形である復元JCL雛形を記憶するJCL雛形記憶部と、ホストコンピュータの磁気テープ使用ジョブから磁気テープ媒体へのファイルの割り当て要求があったときに、仮想テープ定義情報を参照しファイルの割当先を磁気テープ媒体から一次記憶装置に変換する割り当て先変換手段と、磁気テープ使用ジョブからファイルの解放要求があったときに、テープ使用ジョブに記述されたファイル割り当て情報と退避JCL雛形とJCL生成規則に基づいて退避JCLを生成し、磁気テープ使用ジョブからファイルの入力オープン要求があったときに、ファイル割り当て情報と復元JCL雛形とJCL生成規則に基づいて復元JCLを生成する退避/復元JCL生成手段と、退避JCLに基づいてファイルの退避を実行し、復元JCLに基づいてファイルの復元を実行するテープ仮想化制御手段とを備えている(請求項1から請求項5)。
The tape virtualization system of the present invention controls a magnetic tape medium name, an assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and saving of files from the primary storage device to the secondary storage device. A virtual tape definition information storage unit that stores virtual tape definition information including a JCL generation rule that is a rule for generating a save JCL and a restore JCL that controls restoration of a file from the secondary storage device to the primary storage device, and a save JCL A JCL template storage unit for storing a saved JCL template that is a template for generating and a restored JCL template that is a template for generating a restored JCL, and a file allocation request from a magnetic tape use job of a host computer to a magnetic tape medium When there is a file, the virtual tape definition information is referenced to assign the file allocation destination from the magnetic tape medium to the primary storage device. When a file release request is issued from an assignment destination conversion means for converting to a magnetic tape use job, a save JCL is generated based on file assignment information described in the tape use job, a save JCL template, and a JCL generation rule. , A save / restore JCL generation unit that generates a restore JCL based on file allocation information, a restore JCL template, and a JCL generation rule when a file input open request is received from a magnetic tape use job, and a file based on the save JCL And tape virtualization control means for executing file restoration based on the restoration JCL (
上記テープ仮想化システムによれば、磁気テープ媒体へのファイル割り当て要求があったときに、割り当て先変換手段が、仮想テープ定義情報に従って、ファイルの割り当て先を磁気テープ使用ジョブで指定された磁気テープ媒体から磁気ディスク等の一次記憶装置へ変換する。
一次記憶装置へのデータ出力完了後に、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と退避JCL雛形とにより、一次記憶装置から二次記憶装置へファイルを退避するためのJCLが生成および実行される。また、一次記憶装置の入力に先立って、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と復元JCL雛形とにより、二次記憶装置から一次記憶装置にファイルを復元するためのJCLが生成および実行される。
そのため、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ磁気テープ代替機能や記憶装置を利用できる。
また、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく二次記憶装置を利用することができる。
According to the tape virtualization system, when there is a file allocation request to a magnetic tape medium, the allocation destination conversion unit specifies the file allocation destination in the magnetic tape use job according to the virtual tape definition information. Conversion from a medium to a primary storage device such as a magnetic disk.
After the data output to the primary storage device is completed, JCL for saving the file from the primary storage device to the secondary storage device is generated and generated according to the JCL generation rules defined in the file allocation information and virtual tape definition information and the save JCL template. Executed. Prior to input to the primary storage device, JCL for restoring files from the secondary storage device to the primary storage device is generated based on the JCL generation rules and restoration JCL templates defined in the file allocation information and virtual tape definition information. And executed.
Therefore, the host computer can use the magnetic tape replacement function and storage device of the host computer without changing the magnetic tape usage JCL describing the magnetic tape usage job.
Further, the host computer can use the secondary storage device without changing the magnetic tape usage JCL describing the magnetic tape usage job.
上記テープ仮想化システムにおいて、JCL雛形記憶部には、複数の退避JCL雛形と複数の復元JCL雛形が記憶され、仮想テープ定義情報には、磁気テープ媒体毎に使用する退避JCL雛形と復元JCL雛形を特定する情報が含まれているようにしてもよい(請求項2)。
このようにすれば、仮想テープ定義情報に、磁気テープ使用ジョブにより指定された磁気テープ媒体名に応じて異なるJCL雛形を使用するように設定し、磁気テープ媒体名に応じて、異なる退避ジョブおよび復元ジョブを実行できる。
そのため、磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ複数の磁気テープ代替機能や記憶装置から任意のものを選択して利用することができる。
In the tape virtualization system, the JCL template storage unit stores a plurality of saved JCL templates and a plurality of restored JCL templates, and the virtual tape definition information includes saved JCL templates and restored JCL templates used for each magnetic tape medium. May be included (claim 2).
In this way, the virtual tape definition information is set to use a different JCL template according to the magnetic tape medium name specified by the magnetic tape use job, and a different save job and different depending on the magnetic tape medium name. You can run a restore job.
Therefore, it is possible to select and use any of the plurality of magnetic tape alternative functions and storage devices of the host computer without changing the magnetic tape use JCL.
上記テープ仮想化システムにおいて、仮想テープ定義情報には、磁気テープ媒体毎に退避JCLの実行の契機となる条件である退避規則が含まれ、テープ仮想化制御手段は、磁気テープ媒体毎に指定された退避規則にしたがって退避JCLを実行するようにしてもよい(請求項3)。
このようにすれば、仮想テープ定義情報に、磁気テープ毎に一次記憶装置から二次記憶装置へのファイル退避タイミングを退避規則として記述しておき、二次記憶装置への退避を待たずに一次記憶装置へのデータ出力が完了した時点で磁気テープ使用ジョブを終了することができる。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。
In the tape virtualization system, the virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL for each magnetic tape medium, and the tape virtualization control means is specified for each magnetic tape medium. The evacuation JCL may be executed according to the evacuation rules.
In this way, in the virtual tape definition information, the file save timing from the primary storage device to the secondary storage device is described as a save rule for each magnetic tape, and the primary tape without waiting for the save to the secondary storage device. When the data output to the storage device is completed, the magnetic tape use job can be ended.
Therefore, the execution time of the magnetic tape use job can be shortened.
上記テープ仮想化システムにおいて、退避規則は、一次記憶装置の使用記憶容量が所定の閾値を越えたときに退避JCLを実行するものとしてもよい(請求項4)。
このようにすれば、テープ仮想化制御手段は、ファイル解放要求があってもすぐには退避ジョブを実行せずに、一次記憶装置の使用記憶容量が閾値を越えたときに実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避回数を減らし、システムの負荷を減らすことができる。
In the tape virtualization system, the save rule may execute the save JCL when the used storage capacity of the primary storage device exceeds a predetermined threshold (claim 4).
In this way, the tape virtualization control means does not immediately execute the save job even when a file release request is made, but executes it when the used storage capacity of the primary storage device exceeds the threshold.
Therefore, the execution time of the magnetic tape use job can be shortened. In addition, the number of saves from the primary storage device to the secondary storage device can be reduced, and the load on the system can be reduced.
上記テープ仮想化システムにおいて、退避規則は、所定の時刻に退避JCLを実行するものとしてもよい(請求項5)。
このようにすれば、テープ仮想化制御手段は、ファイル解放要求があってもすぐには退避ジョブを実行せずに、退避規則で指定された時刻に実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避をシステムの負荷の低い時間帯に実行することができる。
In the tape virtualization system, the save rule may execute the save JCL at a predetermined time.
In this way, the tape virtualization control means does not immediately execute the save job even when there is a file release request, but executes it at the time specified by the save rule.
Therefore, the execution time of the magnetic tape use job can be shortened. Further, saving from the primary storage device to the secondary storage device can be executed in a time zone when the system load is low.
本発明の、テープ仮想化方法は、磁気テープ媒体名、この磁気テープ媒体名と一次記憶装置を対応付ける規則である割り当て先変更規則および一次記憶装置から二次記憶装置へのファイルの退避を制御する退避JCLと二次記憶装置から一次記憶装置へのファイルの復元を制御する復元JCLを生成する規則であるJCL生成規則を含む仮想テープ定義情報を予め記憶装置に記憶する記憶工程と、ホストコンピュータの磁気テープ使用ジョブから磁気テープ媒体へのファイルの割り当て要求があったときに、仮想テープ定義情報を参照しファイルの割当先を磁気テープ媒体から一次記憶装置に変換する割り当て先変換工程と、磁気テープ使用ジョブからファイルの解放要求があったときに、テープ使用ジョブに記述されたファイル割り当て情報と退避JCL雛形とJCL生成規則に基づいて退避JCLを生成し、磁気テープ使用ジョブからファイルの入力オープン要求があったときに、ファイル割り当て情報と復元JCL雛形とJCL生成規則に基づいて復元JCLを生成する退避/復元JCL生成工程と、退避JCLに基づいてファイルの退避を実行し、復元JCLに基づいてファイルの復元を実行するテープ仮想化制御工程とを備えている(請求項6から請求項10)。 The tape virtualization method of the present invention controls a magnetic tape medium name, an assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and saving of files from the primary storage device to the secondary storage device. A storage step of storing virtual tape definition information including a JCL generation rule that is a rule for generating a backup JCL and a restoration JCL for controlling restoration of a file from the secondary storage device to the primary storage device; An allocation destination conversion step of converting a file allocation destination from a magnetic tape medium to a primary storage device by referring to virtual tape definition information when a file allocation request is made from a magnetic tape use job to a magnetic tape medium; and a magnetic tape File allocation information described in the tape usage job when a file release request is received from the usage job. The save JCL is generated based on the save JCL template and the JCL generation rule, and when there is a file input open request from the magnetic tape use job, the restore JCL is generated based on the file allocation information, the restore JCL template, and the JCL generation rule. A save / restore JCL generation step to be generated, and a tape virtualization control step of executing file save based on the save JCL and executing file restore based on the restore JCL. 10).
上記テープ仮想化方法によれば、割り当て先変換工程では、磁気テープ媒体へのファイル割り当て要求があったときに、仮想テープ定義情報に従って、ファイルの割り当て先を磁気テープ使用ジョブで指定された磁気テープ媒体から磁気ディスク等の一次記憶装置へ変換する。
一次記憶装置へのデータ出力完了後に、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と退避JCL雛形とにより、一次記憶装置から二次記憶装置へファイルを退避するためのJCLが生成および実行される。また、一次記憶装置の入力に先立って、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と復元JCL雛形とにより、二次記憶装置から一次記憶装置にファイルを復元するためのJCLが生成および実行される。
そのため、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ磁気テープ代替機能や記憶装置を利用できる。
また、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく二次記憶装置を利用することができる。
According to the tape virtualization method, in the allocation destination conversion step, when there is a file allocation request to the magnetic tape medium, the file allocation destination is specified by the magnetic tape use job according to the virtual tape definition information. Conversion from a medium to a primary storage device such as a magnetic disk.
After the data output to the primary storage device is completed, JCL for saving the file from the primary storage device to the secondary storage device is generated and generated according to the JCL generation rules defined in the file allocation information and virtual tape definition information and the save JCL template. Executed. Prior to input to the primary storage device, JCL for restoring files from the secondary storage device to the primary storage device is generated based on the JCL generation rules and restoration JCL templates defined in the file allocation information and virtual tape definition information. And executed.
Therefore, the host computer can use the magnetic tape replacement function and storage device of the host computer without changing the magnetic tape usage JCL describing the magnetic tape usage job.
Further, the host computer can use the secondary storage device without changing the magnetic tape usage JCL describing the magnetic tape usage job.
上記テープ仮想化方法において、記憶工程では、複数の退避JCLと複数の復元JCLを記憶装置に記憶し、仮想テープ定義情報には、磁気テープ毎に使用する退避JCL雛形と復元JCL雛形を特定する情報が含まれるようにしても良い(請求項7)。
このようにすれば、仮想テープ定義情報に、磁気テープ使用ジョブにより指定された磁気テープ媒体名に応じて異なるJCL雛形を使用するように設定し、磁気テープ媒体名に応じて、異なる退避ジョブおよび復元ジョブを実行できる。
そのため、磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ複数の磁気テープ代替機能や記憶装置から任意のものを選択して利用することができる。
In the tape virtualization method, in the storage step, a plurality of saved JCLs and a plurality of restored JCLs are stored in the storage device, and the saved JCL template and restored JCL template used for each magnetic tape are specified in the virtual tape definition information. Information may be included (claim 7).
In this way, the virtual tape definition information is set to use a different JCL template according to the magnetic tape medium name specified by the magnetic tape use job, and a different save job and different depending on the magnetic tape medium name. You can run a restore job.
Therefore, it is possible to select and use any of the plurality of magnetic tape alternative functions and storage devices of the host computer without changing the magnetic tape use JCL.
上記テープ仮想化方法において、仮想テープ定義情報には、退避JCLの実行の契機となる条件である退避規則が含まれ、テープ仮想化制御工程では、退避規則にしたがって退避JCLを実行するようにしても良い(請求項8)。
このようにすれば、仮想テープ定義情報に、磁気テープ毎に一次記憶装置から二次記憶装置へのファイル退避タイミングを退避規則として記述しておき、二次記憶装置への退避を待たずに一次記憶装置へのデータ出力が完了した時点で磁気テープ使用ジョブを終了することができる。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。
In the tape virtualization method, the virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL. In the tape virtualization control process, the save JCL is executed according to the save rule. (Claim 8).
In this way, in the virtual tape definition information, the file save timing from the primary storage device to the secondary storage device is described as a save rule for each magnetic tape, and the primary tape without waiting for the save to the secondary storage device. When the data output to the storage device is completed, the magnetic tape use job can be ended.
Therefore, the execution time of the magnetic tape use job can be shortened.
上記テープ仮想化方法において、退避規則は、一次記憶装置の使用記憶容量が所定の閾値を越えたときに退避JCLを実行するものとしても良い(請求項9)。
このようにすれば、テープ仮想化制御工程では、ファイル解放要求があってもすぐには退避ジョブを実行せずに、一次記憶装置の使用記憶容量が閾値を越えたときに実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避回数を減らし、システムの負荷を減らすことができる。
In the tape virtualization method, the save rule may be that the save JCL is executed when the used storage capacity of the primary storage device exceeds a predetermined threshold.
In this way, in the tape virtualization control step, even if there is a file release request, the save job is not executed immediately, but is executed when the used storage capacity of the primary storage device exceeds the threshold value.
Therefore, the execution time of the magnetic tape use job can be shortened. In addition, the number of saves from the primary storage device to the secondary storage device can be reduced, and the load on the system can be reduced.
上記テープ仮想化方法において、退避規則は、所定の時刻に退避JCLを実行するものとしても良い(請求項10)。
このようにすれば、テープ仮想化制御工程では、ファイル解放要求があってもすぐには退避ジョブを実行せずに、退避規則で指定された時刻に実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避をシステムの負荷の低い時間帯に実行することができる。
In the tape virtualization method, the save rule may execute save JCL at a predetermined time.
In this way, in the tape virtualization control step, even if there is a file release request, the save job is not executed immediately, but is executed at the time specified by the save rule.
Therefore, the execution time of the magnetic tape use job can be shortened. Further, saving from the primary storage device to the secondary storage device can be executed in a time zone when the system load is low.
本発明の、テープ仮想化プログラムは、コンピュータに、磁気テープ媒体名、この磁気テープ媒体名と一次記憶装置を対応付ける規則である割り当て先変更規則および一次記憶装置から二次記憶装置へのファイルの退避を制御する退避JCLと二次記憶装置から一次記憶装置へのファイルの復元を制御する復元JCLを生成する規則であるJCL生成規則を含む仮想テープ定義情報を予め記憶装置に記憶する記憶機能と、ホストコンピュータの磁気テープ使用ジョブから磁気テープ媒体へのファイルの割り当て要求があったときに、仮想テープ定義情報を参照しファイルの割当先を磁気テープ媒体から一次記憶装置に変換する割り当て先変換機能と、磁気テープ使用ジョブからファイルの解放要求があったときに、テープ使用ジョブに記述されたファイル割り当て情報と退避JCL雛形とJCL生成規則に基づいて退避JCLを生成し、磁気テープ使用ジョブからファイルの入力オープン要求があったときに、ファイル割り当て情報と復元JCL雛形とJCL生成規則に基づいて復元JCLを生成する退避/復元JCL生成機能と、退避JCLに基づいてファイルの退避を実行し、復元JCLに基づいてファイルの復元を実行するテープ仮想化制御機能とを実行させる(請求項11から請求項15)。 The tape virtualization program according to the present invention stores a magnetic tape medium name, an assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and saving of files from the primary storage device to the secondary storage device. A storage function for preliminarily storing virtual tape definition information including a JCL generation rule that is a rule for generating a backup JCL for controlling the file and a restoration JCL for controlling restoration of a file from the secondary storage device to the primary storage device; An allocation destination conversion function for referring to virtual tape definition information and converting a file allocation destination from a magnetic tape medium to a primary storage device when a file allocation request to a magnetic tape medium is received from a magnetic tape use job of a host computer When a file release request is received from a magnetic tape use job, it is described in the tape use job. The saved JCL is generated based on the file allocation information, the saved JCL template, and the JCL generation rule, and when there is a file input open request from the magnetic tape use job, the file allocation information, the restored JCL template, and the JCL creation rule are used. A save / restore JCL generation function for generating a restored JCL and a tape virtualization control function for executing a file save based on the saved JCL and executing a file restore based on the restored JCL. To claim 15).
上記テープ仮想化プログラムによれば、割り当て先変換機能は、磁気テープ媒体へのファイル割り当て要求があったときに、仮想テープ定義情報に従って、ファイルの割り当て先を磁気テープ使用ジョブで指定された磁気テープ媒体から磁気ディスク等の一次記憶装置へ変換する。
一次記憶装置へのデータ出力完了後に、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と退避JCL雛形とにより、一次記憶装置から二次記憶装置へファイルを退避するためのJCLが生成および実行される。また、一次記憶装置の入力に先立って、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と復元JCL雛形とにより、二次記憶装置から一次記憶装置にファイルを復元するためのJCLが生成および実行される。
そのため、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ磁気テープ代替機能や記憶装置を利用できる。
また、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく二次記憶装置を利用することができる。
According to the tape virtualization program described above, the allocation destination conversion function, when a file allocation request is made to a magnetic tape medium, in accordance with the virtual tape definition information, specifies the file allocation destination in the magnetic tape use job. Conversion from a medium to a primary storage device such as a magnetic disk.
After the data output to the primary storage device is completed, JCL for saving the file from the primary storage device to the secondary storage device is generated and generated according to the JCL generation rules defined in the file allocation information and virtual tape definition information and the save JCL template. Executed. Prior to input to the primary storage device, JCL for restoring files from the secondary storage device to the primary storage device is generated based on the JCL generation rules and restoration JCL templates defined in the file allocation information and virtual tape definition information. And executed.
Therefore, the host computer can use the magnetic tape replacement function and storage device of the host computer without changing the magnetic tape usage JCL describing the magnetic tape usage job.
Further, the host computer can use the secondary storage device without changing the magnetic tape usage JCL describing the magnetic tape usage job.
上記テープ仮想化プログラムにおいて、記憶機能を、複数の前記退避JCLと複数の前記復元JCLを前記記憶装置に記憶するものとし、仮想テープ定義情報には、磁気テープ媒体毎に使用する退避JCL雛形と復元JCL雛形を特定する情報が含まれるようにしても良い(請求項12)。
このようにすれば、仮想テープ定義情報に、磁気テープ使用ジョブにより指定された磁気テープ媒体名に応じて異なるJCL雛形を使用するように設定し、磁気テープ媒体名に応じて、異なる退避ジョブおよび復元ジョブを実行できる。
そのため、磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ複数の磁気テープ代替機能や記憶装置から任意のものを選択して利用することができる。
In the tape virtualization program, the storage function stores a plurality of the save JCLs and a plurality of the restore JCLs in the storage device, and the virtual tape definition information includes a save JCL template used for each magnetic tape medium. Information for specifying the restored JCL template may be included (claim 12).
In this way, the virtual tape definition information is set to use a different JCL template according to the magnetic tape medium name specified by the magnetic tape use job, and a different save job and different depending on the magnetic tape medium name. You can run a restore job.
Therefore, it is possible to select and use any of the plurality of magnetic tape alternative functions and storage devices of the host computer without changing the magnetic tape use JCL.
上記テープ仮想化プログラムにおいて、仮想テープ定義情報には、磁気テープ媒体毎に退避JCLの実行の契機となる条件である退避規則が含まれ、テープ仮想化制御機能は、磁気テープ媒体毎に指定された退避規則にしたがって退避JCLを実行するものとしても良い(請求項13)。
このようにすれば、仮想テープ定義情報に、磁気テープ毎に一次記憶装置から二次記憶装置へのファイル退避タイミングを退避規則として記述しておき、二次記憶装置への退避を待たずに一次記憶装置へのデータ出力が完了した時点で磁気テープ使用ジョブを終了することができる。
In the tape virtualization program, the virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL for each magnetic tape medium, and the tape virtualization control function is specified for each magnetic tape medium. The evacuation JCL may be executed according to the evacuation rules (claim 13).
In this way, in the virtual tape definition information, the file save timing from the primary storage device to the secondary storage device is described as a save rule for each magnetic tape, and the primary tape without waiting for the save to the secondary storage device. When the data output to the storage device is completed, the magnetic tape use job can be ended.
上記テープ仮想化プログラムにおいて、退避規則は、一次記憶装置の使用記憶容量が所定の閾値を越えたときに退避JCLを実行するものとしても良い(請求項14)。
このようにすれば、テープ仮想化制御機能は、ファイル解放要求があってもすぐには退避ジョブを実行せずに、一次記憶装置の使用記憶容量が閾値を越えたときに実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避回数を減らし、システムの負荷を減らすことができる。
In the tape virtualization program, the save rule may be that the save JCL is executed when the used storage capacity of the primary storage device exceeds a predetermined threshold.
In this way, the tape virtualization control function is executed when the used storage capacity of the primary storage device exceeds the threshold without immediately executing the save job even if there is a file release request.
Therefore, the execution time of the magnetic tape use job can be shortened. In addition, the number of saves from the primary storage device to the secondary storage device can be reduced, and the load on the system can be reduced.
上記テープ仮想化プログラムにおいて、退避規則は、所定の時刻に退避JCLを実行するものとしても良い(請求項15)。
このようにすれば、テープ仮想化制御機能では、ファイル解放要求があってもすぐには退避ジョブを実行せずに、退避規則で指定された時刻に実行する。
そのため、磁気テープ使用ジョブの実行時間を短縮することができる。また、一次記憶装置から二次記憶装置への退避をシステムの負荷の低い時間帯に実行することができる。
In the tape virtualization program, the save rule may be that the save JCL is executed at a predetermined time.
In this way, in the tape virtualization control function, even if a file release request is made, the save job is not executed immediately, but is executed at the time specified by the save rule.
Therefore, the execution time of the magnetic tape use job can be shortened. Further, saving from the primary storage device to the secondary storage device can be executed in a time zone when the system load is low.
本発明によれば、磁気テープ媒体のファイル割り当て要求があったときに、仮想テープ定義情報に従って、ファイルの割り当て先を磁気テープ使用ジョブで指定された磁気テープ媒体から磁気ディスク等の一次記憶装置へ変換する。
一次記憶装置へのデータ出力完了後に、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則にと退避JCL雛形とにより、一次記憶装置から二次記憶装置へファイルを退避するためのJCLが生成および実行される。また、一次記憶装置の入力に先立って、ファイル割り当て情報と仮想テープ定義情報に定義したJCL生成規則と復元JCL雛形とにより、二次記憶装置から一次記憶装置にファイルを復元するためのJCLが生成および実行される。
そのため、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ磁気テープ代替機能や記憶装置を利用できる。
また、ホストコンピュータは、磁気テープ使用ジョブを記述した磁気テープ使用JCLを変更することなく二次記憶装置を利用することができる。
According to the present invention, when a file allocation request for a magnetic tape medium is made, the file allocation destination is transferred from the magnetic tape medium designated by the magnetic tape use job to the primary storage device such as a magnetic disk in accordance with the virtual tape definition information. Convert.
After the data output to the primary storage device is completed, JCL for saving the file from the primary storage device to the secondary storage device is generated based on the JCL generation rules defined in the file allocation information and virtual tape definition information and the save JCL template And executed. Prior to input to the primary storage device, JCL for restoring files from the secondary storage device to the primary storage device is generated based on the JCL generation rules and restoration JCL templates defined in the file allocation information and virtual tape definition information. And executed.
Therefore, the host computer can use the magnetic tape replacement function and storage device of the host computer without changing the magnetic tape usage JCL describing the magnetic tape usage job.
Further, the host computer can use the secondary storage device without changing the magnetic tape usage JCL describing the magnetic tape usage job.
図を参照しながら本発明の第1の実施形態であるテープ仮想化システム1の構成と動作について説明する。
図1は、テープ仮想化システム1の機能ブロック図である。
テープ仮想化システム1は、ファイルの割り当て/解放、ファイルのオープン/クローズ、データ入出力の機能を有するファイル管理12と、ファイルの割り当て先を磁気テープから磁気ディスク等の一次記憶装置へ変換する割り当て先変換手段13と、一次記憶装置と二次記憶装置間でファイルの退避/復元を行うJCLを生成する退避/復元JCL生成手段14と、ファイル管理12からの要求による退避/復元JCLの生成、生成したJCLの実行、および、ジョブの実行結果の応答などを制御するテープ仮想化制御手段15とを備えている。これらの各手段は、テープ仮想システム1の図示しないCPUがテープ仮想化プログラムを実行しテープ仮想化システム1のハードウェアを制御することにより実現される。
また、テープ仮想化システム1は、RAM(Random Access Memory)等の記憶装置により構成されるJCL雛形記憶部26に、退避JCL生成時の入力となる退避JCL雛形18と、復元JCL生成時の入力となる復元JCL雛形19とを、RAM等の記憶装置により構成される仮想テープ定義情報記憶部27に、仮想テープ定義情報24を記憶している。
The configuration and operation of the
FIG. 1 is a functional block diagram of the
The
Also, the
例えば、一次記憶装置16は、テープ仮想化システム1に接続され、ハードディスク装置等の磁気テープ媒体以外の記憶媒体に対して情報の書き込みと読み出しを行う記憶装置とすることができる。つまり、一次記憶装置16から見るとテープ仮想化システム1がホストコンピュータとなる。
例えば、二次記憶装置17は、テープ仮想化システム1あるいは他のホストコンピュータに接続され、LTO(Linear Tape-Open)装置等の一次記憶装置とは異なる種類の記憶媒体に対して情報の書き込みと読み出しを行う記憶装置とすることができる。
二次記憶装置17がテープ仮想化システム1に接続されている場合は、たとえば、日中は一次記憶装置16を利用して処理を高速化し、夜間に一次記憶装置16から二次記憶装置17にファイルを退避する。
二次記憶装置17が他のホストコンピュータに接続されている場合は、テープ仮想化システム1と他のコンピュータを、例えばLAN(Local Area Network)やSAN(Storage Area Network)を介して接続し、例えば、テープ仮想化システム1が実行するFTPクライアントソフトウェアにより一時記憶装置16と二次記憶装置17との間でファイル転送が可能に構成する。
For example, the
For example, the
When the
When the
磁気テープ使用ジョブ11は、磁気テープファイルの割り当て、ファイルのオープン、データの入出力、ファイルのクローズ、ファイルの解放という流れで、ファイル管理12の機能を呼び出す。
ファイル管理12は、磁気テープ使用ジョブからの要求に応じてファイルの割り当て/解放、ファイルのオープン/クローズ、データの入出力を行う機能を提供する。このような機能を持つものは、従来から用いられており、ホストコンピュータによってはファイルシステムやデータ管理と呼ばれることもある。
テープ仮想化システム1では、ファイル管理12は上記の機能に加えて、さらに以下の処理を行う。
磁気テープファイルの割り当て要求を受けると、割り当て先変換手段13に割り当て先の変換を要求し、変換後の割り当て先に対して、ファイルの割り当てを行う。
ファイル出力後のファイル解放要求を受けると、テープ仮想化制御手段15にファイルの退避を要求し、ファイル退避の完了を待って、ファイルを解放する。
ファイルの入力オープン要求を受けると、テープ仮想化制御手段15にファイルの復元を要求し、ファイル復元の完了を待って、ファイルをオープンする。
The magnetic
The
In the
When a magnetic tape file allocation request is received, the allocation
When a file release request after file output is received, the tape
When the file input open request is received, the tape virtualization control means 15 is requested to restore the file, and the file is opened after the completion of the file restoration.
割り当て先変換手段13は、ファイル管理12から割り当て先の変換要求を受けると、磁気テープ使用ジョブ11の磁気テープファイル割り当て情報と、仮想テープ定義情報24に設定された割り当て先変更規則に従って、ファイルの割り当て先を磁気テープから磁気ディスクすなわち、一次記憶装置16へ変換する。
なお、従来磁気テープ媒体上に格納されるファイルは順編成ファイルと呼ばれ、出力時はファイルの先頭から順にデータを書き込み、入力時はファイルの先頭から順にデータを読み込むという特徴のファイルであり、ファイルのオープン、データの出力または入力、ファイルのクローズは、磁気ディスク上の順編成ファイルと同じアプリケーションプログラムインタフェースを利用できるため、磁気テープ使用ジョブのプログラムやJCLを修正する必要はない。また、磁気テープファイルの解放処理については、割り当て時に指定したファイル識別子(内部ファイル名、FDとも呼ぶ)を指定して解放するため、解放対象が磁気テープファイルから磁気ディスクファイルへ変わってもプログラムやJCLを修正する必要はない。
Upon receiving the allocation destination conversion request from the
In addition, a file stored on a conventional magnetic tape medium is called a sequential file, and is a file characterized by writing data sequentially from the beginning of the file when outputting, and reading data sequentially from the beginning of the file when inputting, Since the same application program interface as the sequential file on the magnetic disk can be used for opening the file, outputting or inputting data, and closing the file, it is not necessary to modify the program or JCL of the magnetic tape use job. In addition, the release process of the magnetic tape file is performed by designating and releasing the file identifier (internal file name, also called FD) specified at the time of allocation, so that even if the release target is changed from the magnetic tape file to the magnetic disk file, There is no need to modify the JCL.
テープ仮想化制御手段15は、ファイル管理12からファイルの退避要求を受けると、退避/復元JCL生成手段14に退避JCLの生成を要求し、その結果生成された退避JCL20を使って、退避ジョブ22を実行する。その結果、一次記憶装置16から二次記憶装置17へファイルが退避される。
また、ファイルの復元要求を受けると、退避/復元JCL生成手段14に復元JCLの生成を要求し、その結果生成された復元JCL21を使って、復元ジョブ23を実行する。その結果、二次記憶装置17から一次記憶装置16へファイルが復元される。
When the tape
When receiving a file restoration request, the save / restore
退避/復元JCL生成手段14は、テープ仮想化制御手段15から退避JCLの生成要求を受けると、磁気テープ使用ジョブ11の磁気テープ割り当て情報と、仮想テープ定義情報24に設定されたJCL生成規則に従って、退避JCL雛形18を元に、一次記憶装置16から二次記憶装置17へファイルを退避するための退避JCL20を生成する。
また、復元JCLの生成要求を受けると、磁気テープ使用ジョブ11の磁気テープ割り当て情報と、仮想テープ定義情報24に設定されたJCL生成規則に従って、復元JCL雛形19を元に、二次記憶装置17から一次記憶装置16へファイルを復元するための復元JCL21を生成する。
When the save / restore
Further, upon receiving the restoration JCL generation request, the
図2(a)に、磁気テープ使用ジョブ11内のJCLのファイル割り当て記述の例を示す。
ファイル割り当て記述30には、内部ファイル名、外部ファイル名、装置種別、媒体名などファイルをジョブに割り当てるために必要な情報が指定されている。
外部ファイル名とは、媒体上のファイルの名前である。
装置種別とは、磁気ディスクや磁気テープなどの装置の種別を表す情報である。
媒体名とは、上記ファイルを格納する記憶装置上にある媒体ごとに付けられた名前である。
内部ファイル名とは、実行したジョブのアプリケーションプログラム内部でファイルのオープン/クローズ、およびデータの入出力、ファイルの解放時に指定するファイル識別子のことで、これらの処理と割り当てたファイルとを関連づけるための識別子である。
FIG. 2A shows an example of a JCL file allocation description in the magnetic
The file assignment description 30 specifies information necessary for assigning a file to a job, such as an internal file name, an external file name, a device type, and a medium name.
The external file name is the name of a file on the medium.
The device type is information indicating the type of device such as a magnetic disk or a magnetic tape.
The medium name is a name given to each medium on the storage device that stores the file.
The internal file name is a file identifier that is specified when opening / closing a file, inputting / outputting data, and releasing a file within the application program of the executed job, and is used to associate these processes with the allocated file. It is an identifier.
ジョブが実行され、ファイル割り当て記述30によりファイルが割り当てられると、ファイル管理12は、ファイル割り当て記述30ごとにファイル割り当て情報として値を保持する。
ファイル割り当て情報の例を図2(b)に示す。
ファイル割り当て情報40は、内部ファイル名41、外部ファイル名42、装置種別43、媒体名44等のファイル割り当て記述30に記述されている情報に対応したフィールドと仮想テープか否か45、変更前割り当て情報46を持ったテーブルとなっている。仮想テープか否か45には、ファイル割り当て先が変更されておらず仮想テープが未設定の場合は「未設定」、ファイル割り当て先が変更され仮想テープが設定された後は「YES」が記憶される。変更前割り当て情報46には、割り当て先の変更前は「未設定」が、割り当て先の変更後は、変更前の装置種別と媒体名が記憶される。
ファイル割り当て情報40は、以降のファイルのオープンやデータの入出力、ファイルのクローズ、ファイルの解放時に、ファイル管理12が参照する。
When the job is executed and a file is allocated by the file allocation description 30, the
An example of file allocation information is shown in FIG.
The
The
図3に仮想テープ定義情報24の実施例を示す。
仮想テープ定義情報は、磁気テープ媒体名51、割り当て先変更規則52、JCL生成規則53で構成される。
磁気テープ媒体名51には、テープ仮想化システム1の対象となる仮想の磁気テープ媒体名を設定する。
割り当て先変更規則52には、割り当て先変換手段13が割り当て先を変更する一次記憶装置16を設定する。
JCL生成規則53には、退避JCL雛形18や復元JCL雛形19から、退避JCL20や復元JCL21を生成するための、置換パラメータを設定する。この置換パラメータには、退避/復元ジョブ固有のパラメータや二次記憶装置17の情報を指定するため、「置換キーワード=置換後文字列」という形で複数指定することができる。
この置換キーワードの名前は利用者が定義することができる。
FIG. 3 shows an example of the virtual
The virtual tape definition information includes a magnetic
In the magnetic
In the assignment
In the
The name of this replacement keyword can be defined by the user.
次に、図1〜8の構成図およびフローチャートを参照してテープ仮想化システム1の動作について詳細に説明する。
図4に、磁気テープ使用ジョブ11からファイルの割り当て要求があったときのファイル管理12、および、割り当て先変換手段13の動作を示す。
ファイル管理12は、ファイルの割り当て要求を受けると、その要求が磁気テープファイルの割り当て要求であれば(S101の判定がイエスであれば)、割り当て先変換手段13に割り当て先の変換を要求し、その要求が磁気テープファイル以外の割り当て要求であれば、割り当て先を変更せずにファイルの割り当てに進む(S101の判定がノー、S105)。
Next, the operation of the
FIG. 4 shows the operations of the
When the
割り当て先変換手段13は、磁気テープファイルのファイル割り当て情報で割り当て先として指定された媒体名を、仮想テープ定義情報24の磁気テープ媒体名51から検索する(S102)。
一致する媒体名が見つからなかった場合、ファイル割り当て先は変更せず(S103の判定がノー、S105)、一致する媒体名が見つかった場合、ファイル割り当て先を仮想テープ定義情報24の同じ行の割り当て先変更規則52に設定されている一次記憶装置16に変更する(S103の判定がイエス、S104)。
ファイル管理12は、ファイルの解放やファイルの入力オープン時に参照するために、仮想テープ(割り当て先を一時記憶装置16に変更した)か否か、および、仮想テープの場合はさらに変更前のファイル割り当て情報を「仮想テープか否か45」および「変更前割り当て情報」46に保持する(S105)。
ファイル管理12は、割り当て先に従ってファイルを割り当てる(S106)。
The assignment destination conversion means 13 searches the magnetic
If no matching media name is found, the file allocation destination is not changed (No in S103, S105). If a matching media name is found, the file allocation destination is assigned to the same line in the virtual
The
The
図5に、磁気テープ使用ジョブ11が一次記憶装置16上のファイルにデータを出力した後、ファイルの解放要求を行ったときのファイル管理12の動作を示す。
ファイル管理12は、ファイルの解放要求を受けると、解放対象のファイルがある媒体が仮想テープ(一次記憶装置16)か否かを判定する(S111)。仮想テープでなかった場合は、ファイルの解放処理に進む(S111の判定がノー、S115)。
解放対象のファイルが仮想テープにある場合は、ファイル管理12は、実行されたジョブが出力だった否かを判定する(S112)。当該ファイルの処理が出力でなかった場合は、解放処理に進む(S112の判定がノー、S115)。
当該ファイルの処理が出力だった場合は、ファイル割り当て時に保持していた変更前のファイル割り当て情報を指定して、テープ仮想化制御手段15にファイルの退避を要求する(S112の判定がイエス、S113)。
続いてテープ仮想化制御手段15からの退避の完了通知を待ち(S114)、完了通知を受けるとファイルを解放する(S115)。
FIG. 5 shows the operation of the
Upon receiving the file release request, the
If the file to be released exists on the virtual tape, the
If the processing of the file is an output, the file allocation information before the change that was held at the time of file allocation is specified, and the tape
Subsequently, the process waits for a save completion notification from the tape virtualization control unit 15 (S114), and releases the file when the completion notification is received (S115).
図6に、磁気テープ使用ジョブ11が磁気テープファイルのデータを入力するためにファイルを入力オープンしたときのファイル管理12の動作を示す。
ファイル管理12は、ファイルの入力オープン要求を受けると、ファイルを割り当てた媒体から、ファイルを検索する(S121)。
ファイルが見つかった場合は、ファイルのオープン処理を継続する(S122の判定がイエス、S128)。
ファイルが見つからなかった場合、ファイル管理12は、そのファイルが格納されている媒体が仮想テープか否かを判定する(S123)。
仮想テープでなかった場合、ファイルが見つからなかった旨のエラーを呼び出し元に返却する(S123の判定がノー、S127)。
仮想テープだった場合、ファイル割り当て時に保持していた変更前のファイル割り当て情報を指定して、テープ仮想化制御手段15にファイルの復元を要求する(S123の判定がイエス、S124)。
続いてテープ仮想化制御手段15からの復元の完了通知を待つ(S125)。
完了通知を受け、復元が成功していれば、ファイルのオープン処理を継続し(S125の判定がイエス、S128)、復元に失敗していれば、復元に失敗した旨のエラーを呼び出し元に返却する(S125の判定がノー、S127)。
FIG. 6 shows the operation of the
Upon receiving the file input open request, the
If the file is found, the file open process is continued (Yes in S122, S128).
When the file is not found, the
If it is not a virtual tape, an error indicating that the file was not found is returned to the caller (No in S123, S127).
In the case of a virtual tape, the file allocation information before the change that was held at the time of file allocation is specified, and the tape virtualization control means 15 is requested to restore the file (Yes in S123, S124).
Subsequently, a restoration completion notification from the tape
When the completion notification is received and the restoration is successful, the file open process is continued (Yes in S125, S128). If the restoration fails, an error indicating that the restoration has failed is returned to the caller. (No in S125, S127).
図7に、ファイル管理12から退避または復元要求を受けたときのテープ仮想化制御手段15の動作を示す。
テープ仮想化制御手段15は、退避または復元要求を受けると、要求時に指定されたファイル割り当て情報と退避か復元かを指定して、退避/復元JCL生成手段14にJCLの生成を要求する(S131)。
生成されたJCLが退避/復元JCL生成手段14から返却されると、そのJCLを使用してジョブを実行し(S132)、実行したジョブの終了を待ち合わせる(S133)。
ジョブの終了が通知されると、一次記憶装置16上のファイルを削除し(S134)、ジョブの実行結果を要求元に返却する(S135)。
FIG. 7 shows the operation of the tape virtualization control means 15 when a save or restore request is received from the
When the tape
When the generated JCL is returned from the save / restore JCL generation means 14, a job is executed using the JCL (S132), and the end of the executed job is waited (S133).
When the end of the job is notified, the file on the
図8に、テープ仮想化制御手段15からJCLの生成要求を受けたときの退避/復元JCL生成手段14の動作を示す。
退避/復元JCL生成手段14は、JCLの生成要求を受けると、要求時に指定されたファイル割り当て情報の媒体名と仮想テープ定義情報24(図3参照)の磁気テープ媒体名が一致する行を検索する(S141)。
要求が退避JCLの生成か否かを判定し(S142)、要求時に指定された退避か復元かの指示に従って、退避JCL雛形18または復元JCL雛形19をオープンする(S143またはS144)。
次に、JCL雛形から1行分のデータを読み込み(S145)、置換キーワードを検索する(S146)。 置換キーワードの検索処理では、例えば、奇数番目に現れた"%"の文字から次に現れた"%"の文字までの文字列を置換キーワードとして抜き出すようにすればよい。
置換キーワードが見つからなければ(S147の判定がノーならば)、出力JCLに書き出す処理(S155)へ進む。
FIG. 8 shows the operation of the save / restore
When the save / restore
It is determined whether or not the request is generation of saved JCL (S142), and the saved
Next, one line of data is read from the JCL template (S145), and a replacement keyword is searched (S146). In the replacement keyword search process, for example, a character string from the odd-numbered “%” character to the next “%” character may be extracted as the replacement keyword.
If no replacement keyword is found (if the determination in S147 is no), the process proceeds to the process of writing to the output JCL (S155).
置換キーワードが見つかると置換キーワードが予約キーワードか否かを判定する(S147の判定がイエス、S148)。予約キーワードとは、利用者がJCL生成規則53の置換パラメータに指定した置換キーワード以外の文字列で、あらかじめテープ仮想化システム1で予め定義されている文字列を指す。例えば、予約キーワードは"_"で始まる文字列とし、JCL生成規則53に利用者が定義する置換パラメータのキーワードは"_"で始まらない文字列というように規定することで、予約キーワードか否かを区別できるようにしておく。
予約キーワードでなければ、S141で抜き出した行のJCL生成規則53の置換パラメータから一致するキーワードを検索し(S149)、一致するキーワードがある場合は設定されている値で置換し(S150)、キーワードのある位置が行の最後か否かを判定する(S154)。
予約キーワードであれば(S148の判定がイエスであれば)、予約キーワードがファイル割り当て情報の予約キーワードか仮想テープ定義情報の予約キーワードかを判定し(S151)、ファイル割り当て情報のキーワードであれば、ファイル割り当て情報に設定されている値で置換し(S152)、仮想テープ定義情報のキーワードであれば、S141で抜き出した仮想テープ定義情報50(図3参照)に設定されている値で置換する(S153)。
ここで、ファイル割り当て情報の予約キーワードとは、ファイル割り当て記述に指定できるパラメータごとに、内部ファイル名であれば"%_ifn%"、外部ファイル名であれば"%_efn%"、媒体名であれば"%_media%"と規定し、仮想テープ定義情報の予約キーワードとは、JCL生成規則53の置換パラメータ以外の指定に対応するもので、例えば、割り当て先変更規則の媒体名であれば、%_workdisk%と規定しているものとする。
If a replacement keyword is found, it is determined whether or not the replacement keyword is a reserved keyword (Yes in S147, S148). The reserved keyword is a character string other than the replacement keyword designated by the user as the replacement parameter of the
If it is not a reserved keyword, a matching keyword is searched from the replacement parameters of the
If it is a reserved keyword (if the determination in S148 is yes), it is determined whether the reserved keyword is a reserved keyword for file allocation information or a reserved keyword for virtual tape definition information (S151), and if it is a keyword for file allocation information, Replace with the value set in the file allocation information (S152), and if it is a keyword of the virtual tape definition information, replace it with the value set in the virtual tape definition information 50 (see FIG. 3) extracted in S141 (see FIG. 3). S153).
Here, the reserved keyword of the file allocation information can be "% _ifn%" for an internal file name, "% _efn%" for an external file name, or a media name for each parameter that can be specified in the file allocation description. “% _Media%” and the reserved keyword of the virtual tape definition information corresponds to the designation other than the replacement parameter of the
行の最後までキーワードの検索が終わっていなければ、S146に進み、行の最後までキーワードの検索が終わっていれば、置換した行を出力JCLに1行書き出す(S154の判定がイエス、S155)。
JCL雛形の最後の行まで読み込んでいたら、JCL雛形をクローズし(S156の判定がイエス、S157)、そうでない場合は、S145に進む。
最後に、生成したJCLをテープ仮想化制御手段15に返却する(S158)。
If the keyword search has not been completed to the end of the line, the process proceeds to S146. If the keyword search has been completed to the end of the line, the replaced line is written to the output JCL (Yes in S154, S155).
If the last line of the JCL template has been read, the JCL template is closed (Yes in S156, S157). If not, the process proceeds to S145.
Finally, the generated JCL is returned to the tape virtualization control unit 15 (S158).
テープ仮想化システム1によれば、磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ磁気テープ代替機能や記憶装置を利用できる。
その理由は、磁気テープ使用ジョブのファイル割り当て時に、割り当て先変換手段13が仮想テープ定義情報24に定義した割り当て先変更規則52を参照してファイル割り当て先を磁気テープ媒体から別の一次記憶装置16に切り替え、一次記憶装置へのデータ出力完了後に、退避/復元JCL生成手段14が仮想テープ定義情報24に定義したJCL生成規則53と退避JCL雛形18とにより、一次記憶装置から二次記憶装置へファイルを退避するための退避JCL20を生成し、それをテープ仮想化制御手段15が実行し、一次記憶装置16の入力に先立って、退避/復元JCL生成手段14が仮想テープ定義情報24に定義したJCL生成規則53と復元JCL雛形19とにより、二次記憶装置17から一次記憶装置16にファイルを復元するための復元JCL21を生成し、それをテープ仮想化制御手段15が実行するためである。
According to the
The reason for this is that, when assigning a file of a magnetic tape use job, the assignment destination conversion means 13 refers to the assignment
次に、図を参照しながら本発明の第2の実施形態であるテープ仮想化システム2の構成と動作について説明する。テープ仮想化システム2の構成と動作は、テープ仮想化システム1と多くの部分が共通するので、共通する部分には図に同じ符号を付して説明を省略する。
図10は、テープ仮想化システム2の機能ブロックである。
テープ仮想化システム2は、退避JCL雛形18と復元JCL雛形19をそれぞれ複数記憶している。そのため、退避/復元JCL生成手段14aの動作と仮想テープ定義情報24aのデータ構造が図1のテープ仮想化システム1と異なっている。
Next, the configuration and operation of the
FIG. 10 is a functional block of the
The
退避/復元JCL生成手段14aは、退避JCLの生成要求を受けると、磁気テープ使用ジョブ11に記述された磁気テープ割り当て情報と、仮想テープ定義情報24aに設定されたJCL生成規則に従って、退避JCL雛形18を元に、一次記憶装置16から二次記憶装置17へファイルを退避する退避JCL20を生成する。
また、退避/復元JCL生成手段14は、復元JCLの生成要求を受けると、磁気テープ使用ジョブ11に記述された磁気テープ割り当て情報と、仮想テープ定義情報24aに設定されたJCL生成規則に従って、復元JCL雛形19を元に、二次記憶装置17から一次記憶装置16へファイルを復元する復元JCL21を生成する。
このとき、退避JCL雛形や復元JCL雛形として、仮想テープ定義情報24aのJCL生成規則53aに指定された雛形が使用される。
When the save / restore
In addition, when the save / restore
At this time, the template specified in the
図11に、仮想テープ定義情報24aの一例を示す。
仮想テープ定義情報24aのデータ構造は、図3と基本的には同様であるが、JCL生成規則53aの内容が異なっている。
JCL生成規則53aには、置換パラメータの他に、JCLの生成に用いる退避JCL雛形と復元JCL雛形を指定する記述が含まれている。この記述は、行ごと(磁気テープ使用ジョブごと)に異なる設定とすることができる。
これにより、例えば、「TAPE01」という磁気テープ媒体を使用する磁気テープ使用ジョブは、退避JCL雛形「JCL01」を使ってLTOへファイルを退避することができ(図10の1行目、符号50d)、「TAPE02」という磁気テープ媒体を使用する磁気テープ使用ジョブは、退避JCL雛形「JCL11」を使ってFTPでファイルを退避することができるようになる(図10の2行目、符号50e)。
FIG. 11 shows an example of the virtual
The data structure of the virtual
In addition to the replacement parameters, the
Thus, for example, a magnetic tape use job using a magnetic tape medium “TAPE01” can save a file to the LTO using the save JCL template “JCL01” (first line in FIG. 10,
テープ仮想化システム2の動作は、基本的には図4ないし図8に示したテープ仮想化システム1の動作と同様であるが、テープ仮想化制御手段15からJCLの生成要求を受けたときの退避/復元JCL生成手段14の動作が図8の場合と異なっている。
図12は、テープ仮想化制御手段15からJCLの生成要求を受けたときの退避/復元JCL生成手段14aの動作を示すフローチャートである。
退避/復元JCL生成手段14aは、JCLの生成要求を受けると、ファイル割り当て情報の媒体名と仮想テープ定義情報24aの磁気テープ媒体名が一致する行を取得する(S141)。
要求時に指定された退避か復元かの指示に従って(S142)、退避JCL雛形または復元JCL雛形をオープンするが、仮想テープ定義情報24aのJCL生成規則53aに設定されているJCL雛形を使用する(S163またはS164)。
以降のステップS145〜S158は、図8と同じである。
The operation of the
FIG. 12 is a flowchart showing the operation of the save / restore
When the save / restore
According to the save or restore instruction specified at the time of request (S142), the save JCL template or the restored JCL template is opened, but the JCL template set in the
The subsequent steps S145 to S158 are the same as those in FIG.
テープ仮想化システム2によれば、磁気テープ使用JCLを変更することなく、ホストコンピュータの持つ複数の磁気テープ代替機能や記憶装置から選択して利用できる。
その理由は、仮想テープ定義情報24aに、磁気テープ割り当て情報に応じて異なる退避JCL雛形18と復元JCL雛形19を使用するように設定することで、退避/復元JCL生成手段14aが、磁気テープ使用ジョブ11のファイル割り当て記述に指定した磁気テープ媒体名に応じて、異なる退避ジョブと復元ジョブを実行できるためである。
According to the
The reason is that the save / restore
次に、図を参照しながら本発明の第3の実施形態であるテープ仮想化システム3の構成と動作について説明する。テープ仮想化システム3の構成と動作は、テープ仮想化システム1と多くの部分が共通するので、共通する部分には図に同じ符号を付して説明を省略する。
図13は、テープ仮想化システム3の機能ブロックである。
テープ仮想化システム3では、ファイル管理12bのファイル解放時の動作、テープ仮想化制御手段15bの退避要求時の動作が図1のテープ仮想化システム1と異なる。また、仮想テープ定義情報24bに退避要求時の動作を決める退避規則が追加されている。さらに、退避状態を管理するための退避状態管理表25が追加されている。
Next, the configuration and operation of the tape virtualization system 3 according to the third embodiment of the present invention will be described with reference to the drawings. Since the configuration and operation of the tape virtualization system 3 are similar to those of the
FIG. 13 is a functional block of the tape virtualization system 3.
The tape virtualization system 3 is different from the
ファイル管理12bは、ファイル出力後のファイル解放要求を受けると、テープ仮想化制御手段15bにファイルの退避を要求する。そして、仮想テープ定義情報24bに退避規則がなければ、ファイル退避の完了を待って、ファイルを解放する。仮想テープ定義情報24bに退避規則があれば、ファイル退避の完了を待たずに、ファイルを解放する。
When the
テープ仮想化制御手段15bは、ファイルの退避要求を受けると、退避/復元JCL生成手段14に退避JCLの生成を要求する。そして、仮想テープ定義情報24bに退避規則がなければ、生成された退避JCL20を使って、退避ジョブ22を実行し、退避ジョブ22の実行結果を退避要求元に通知する。
仮想テープ定義情報24bに退避規則があれば、退避ジョブ22をただちには実行せず、退避規則に指定されたタイミングで退避ジョブ22を実行する。
When receiving the file save request, the tape
If there is a save rule in the virtual
図15に、仮想テープ定義情報24bの一例を示す。
仮想テープ定義情報24bは、基本的には、図3または図11に示したものと同様であるが、退避規則54が追加されている。退避規則54には、退避ジョブの実行を一次記憶装置16の記憶スペース不足が発生した時に行うか(図15の1行目、符号50g)、または、指定の時刻に行うか(図15の2行目、符号50h)を指定する。指定の時刻に実行する場合は、退避時刻も合わせて設定する。スペース不足が発生した時に退避ジョブを実行する場合、スペース不足と判断するスペース量閾値はテープ仮想化システム3にあらかじめ記憶しておく。
退避規則は、上記以外の条件に基づいて設定しても良い。
FIG. 15 shows an example of the virtual
The virtual
The evacuation rule may be set based on conditions other than those described above.
図18に、退避状態管理表25の一例を示す。
退避状態管理表25は、退避JCL名61、割り当て先変更規則62、退避規則63で構成される。
退避JCL名61には、ファイル解放時に実行しなかった退避ジョブに対応する退避JCLの名前が設定される。
割り当て先変更規則62、退避規則63には、上記退避JCL生成時に参照した仮想テープ定義情報24bの割り当て先変更規則52と退避規則54を保存する。
FIG. 18 shows an example of the save state management table 25.
The save state management table 25 includes a save
In the save
In the assignment
次に、図16、図17、図19、図20のフローチャートを参照してテープ仮想化システム3の動作について詳細に説明する。
図16に、磁気テープ使用ジョブ11が一次記憶装置16上のファイルにデータを出力した後、ファイルの解放要求を行ったときのファイル管理12bの動作を示す。
ファイル管理12bの動作は、図5のS113とS114の間に、S181ないしS183が追加されたものである。
ファイル管理12bは、テープ仮想化制御手段15bにファイルの退避要求を行った後、仮想テープ定義情報24bから、ファイル割り当て情報の媒体名と仮想テープ定義情報の磁気テープ媒体名が一致する行を検索する(S181)。
仮想テープ定義情報24bの退避規則54を参照し(S182)、退避規則がなければ(S183の判定がノーならば)、テープ仮想化制御手段15bからの退避の完了通知を待ち(S114)、退避完了後にファイルを解放する(S115)。
退避規則があれば(S183の判定がイエスならば)、退避完了を待たずにファイルを解放する(S115)。
Next, the operation of the tape virtualization system 3 will be described in detail with reference to the flowcharts of FIGS. 16, 17, 19, and 20.
FIG. 16 shows the operation of the
The operation of the
After making a file save request to the tape
The
If there is a save rule (if YES in S183), the file is released without waiting for the save to complete (S115).
図17に、ファイル管理12bから退避/復元要求を受けたときのテープ仮想化制御手段15bの動作を示す。
テープ仮想化制御手段15bの動作は、図7のS131とS132の間に、ステップS191ないしS197が追加されたものである。
テープ仮想化制御手段15bは、退避/復元JCLの生成要求後、仮想テープ定義情報24bから、ファイル割り当て情報の媒体名と仮想テープ定義情報の磁気テープ媒体名が一致する行を検索する(S191)。
退避要求でなければ(S192の判定がノーならば)、復元ジョブを実行しその結果を要求元に返却する(S132ないしS135)。
退避要求であれば(S192の判定がイエスならば)、仮想テープ定義情報24bの退避規則54を参照する(S193)。
仮想テープ定義情報24bに、退避規則がなければ(S194の判定がノーならば)、退避ジョブを実行しその結果を要求元に返却する(S132ないしS135)。
退避規則があれば(S194の判定がイエスならば)、退避JCL名、割り当て先変更規則、退避規則を退避状態管理表25に保存する(S195)。なお、生成した退避JCL20にはテープ仮想化システム3で一意に識別できる名前を付与するものとする。
退避規則が時刻指定であれば(S196の判定がイエスならば)、退避時刻にタイマーを設定し(S197)、処理を終了する。
退避規則が時刻指定でなければ(S196の判定がノーならば)、タイマーの設定は行わずに処理を終了する。
FIG. 17 shows the operation of the tape
The operation of the tape
The tape
If it is not an evacuation request (if the determination in S192 is no), the restoration job is executed and the result is returned to the request source (S132 to S135).
If it is a save request (if the determination in S192 is YES), the
If there is no save rule in the virtual
If there is a save rule (if the determination in S194 is YES), the save JCL name, assignment destination change rule, and save rule are saved in the save status management table 25 (S195). Note that a name that can be uniquely identified by the tape virtualization system 3 is assigned to the generated save
If the save rule is a time designation (if the determination in S196 is YES), a timer is set at the save time (S197), and the process ends.
If the save rule is not time designation (if the determination in S196 is no), the process ends without setting the timer.
図19に、実行されずに退避状態管理表25に保存された退避ジョブが、スペース監視により実行されるときの動作を示す。
テープ仮想化制御手段15bは、割り当て先変更規則に設定されている一次記憶装置16のスペースを監視し(S201)、記憶スペース使用量があらかじめ規定された閾値を超えているか否か判定する(S202)。スペース監視のタイミングは、例えば、インターバルで一次記憶装置16のスペース使用量を取得する方法でもよいし、一次記憶装置16に閾値を超えたことを通知する仕組みを設けるようにしても良い。
閾値を超えたことを検出すると、テープ仮想化制御手段15bは、退避状態管理表25から、退避規則63がスペース監視で、割り当て先変更規則62の媒体名が閾値を超えた一次記憶装置16と一致する行を検索する(S203)。
上記の条件を満たす行が見つかった場合、その行の退避JCL名61に設定されている退避JCLを使って、退避ジョブを実行する(S204の判定がイエス、S205)。退避ジョブの実行が終了すると(S206)、実行した退避JCL、退避状態管理表25の検索条件と一致した行、一次記憶装置16上のファイルを削除する(S207、S208)。退避状態管理表25の最後の行まで検索が終わっていなければ(S209の判定がノーならば)、S203に戻る。
FIG. 19 shows an operation when a save job saved in the save state management table 25 without being executed is executed by space monitoring.
The tape
When detecting that the threshold value has been exceeded, the tape
When a line satisfying the above condition is found, the save job is executed using the save JCL set in the save
図20に、実行されずに退避状態管理表25に保存された退避ジョブが、タイムアウトにより実行されるときの動作を示す。
テープ仮想化制御手段15bは、テープ仮想化制御手段15bが図17のS197でタイマーに設定した時刻になりタイムアウト通知を受けると、タイムアウト時刻を取得する(S211)。
退避状態管理表25から退避規則63に時刻指定が含まれ、かつ、そこに記憶された退避時刻がS211で取得したタイムアウト時刻と一致する行を検索する(S212)。
上記の条件を満たす行が見つかった場合、その行の退避JCL名61に設定されている退避JCLを使って、退避ジョブを実行する(S213の判定がイエス、S214)。退避ジョブの実行が終了すると(S215)、実行した退避JCL、退避状態管理表25の検索条件に一致した行、一次記憶装置16上のファイルを削除する(S216、S217)。退避状態管理表25の最後の行まで検索が終わっていなければ(S218の判定がノーならば)、S212に戻る。
FIG. 20 shows an operation when a save job saved in the save state management table 25 without being executed is executed due to a timeout.
When the tape
A search is made for a row in which the time specification is included in the
When a line satisfying the above condition is found, the save job is executed using the save JCL set in the save
テープ仮想化システム3によれば、磁気テープ使用ジョブの実行時間を短縮することができる。
その理由は、仮想テープ定義情報24bに、一次記憶装置16から二次記憶装置17への退避タイミングを指定する条件、例えば指定時刻や一次記憶装置16の記憶用容量不足、を設定することで、テープ仮想化制御手段15bは、二次記憶装置17へのファイル退避を待たずに一次記憶装置16へのデータ出力が完了した時点で磁気テープ使用ジョブを終了することができるためである。
According to the tape virtualization system 3, the execution time of a magnetic tape use job can be shortened.
The reason is that the virtual
次に、具体的な実施例を用いてテープ仮想化システム1の動作を説明する。
図3に示すように、仮想テープ定義情報24の磁気テープ媒体名が「TAPE01」に対応する行(符号50a)には、割り当て先変更規則として、一次記憶装置の装置種別が「磁気ディスク」、媒体名が「WORKDISK1」と設定されている。
また、JCL生成規則には、置換パラメータとして、「poolid=POOL01」と設定されている。これは、図8のJCL生成処理(S150)において、JCL雛形に「%poolid%」という文字列(キーワード)が見つかった場合に「POOL01」という文字列で置き換えることを意味する。
Next, the operation of the
As shown in FIG. 3, in the row (reference numeral 50a) corresponding to the magnetic tape medium name “TAPE01” in the virtual
In the JCL generation rule, “poolid = POOL01” is set as a replacement parameter. This means that when the character string (keyword) “% poolid%” is found in the JCL template in the JCL generation process (S150) of FIG. 8, it is replaced with the character string “POOL01”.
次に図9(a)に示すように、ファイル割り当て記述57に、内部ファイル名が「IFN01」、外部ファイル名が「FILE01」、装置種別が「磁気テープ」、媒体名が「TAPE01」と記述された磁気テープ使用ジョブ11を使ってジョブを実行した場合の動作を説明する。
なお、退避JCL雛形18は、図9(b)に示すように「INFILE」パラメータに指定された磁気ディスク上のファイルを、「POOLID」に指定されたLTO媒体上のファイルにバックアップする退避ジョブのJCL雛形である。退避ジョブの詳細な仕組みは、周知の技術であるから説明を省略する。
Next, as shown in FIG. 9A, in the
The save
まず、このジョブが磁気テープファイルへの出力処理を行ったときの動作例を説明する。
ファイルの割り当て要求では、図4のフローチャートに従って、仮想テープ定義情報24の媒体名が「TAPE01」に対応する行(図3の50a)が検索され、割り当て先変更規則52に従って、ファイルの割り当て先が、装置種別が「磁気ディスク」、媒体名が「WORKDISK1」に変更される。
以降のファイルのオープン、データの出力、ファイルのクローズ要求は、上記「WORKDISK1」上のファイル「FILE01」に対して処理される。
First, an operation example when this job performs output processing to a magnetic tape file will be described.
In the file allocation request, the line (50a in FIG. 3) corresponding to the medium name “TAPE01” in the virtual
Subsequent file open, data output, and file close requests are processed for the file “FILE01” on “WORKDISK1”.
ファイルの解放要求では、図5、図7、図8のフローチャートに従って、退避JCLが生成され、退避ジョブとして実行される。
このときの退避JCLの生成例を説明する。
テープ仮想化システム1のJCL生成時の予約キーワードとして、ファイル割り当て情報40の外部ファイル名は「%_efn%」、仮想テープ定義情報24の割り当て先変更規則52の媒体名は「%_workdisk%」とあらかじめ規定されているものとする。
ファイル割り当て情報40の行40a(図2(b))の外部ファイル名42より、退避JCL雛形18の「%_efn%」という文字列は「FILE01」という文字列に置き換えられ、仮想テープ定義情報24の行50a(図3)の割り当て先変更規則52より、図9(b)の退避JCL雛形18の「%_workdisk%」という文字列は「WORKDISK1」という文字列に置き換えられ、仮想テープ定義情報24の行50aのJCL生成規則53の置換パラメータより、退避JCL雛形18の「%poolid%」という文字列は「POOL01」という文字列に置き換えられ、図9(b)に示す退避JCL20が生成される。
In the file release request, a save JCL is generated and executed as a save job according to the flowcharts of FIGS. 5, 7, and 8.
An example of generating the saved JCL at this time will be described.
As reserved keywords when generating JCL in the
From the
このJCLを使ってジョブを実行することにより、磁気ディスク媒体「WORKDISK1」(一時記憶装置16)上のファイル「FILE01」が、LTO媒体「POOL01」(二次記憶装置17)上のファイル「FILE01」にバックアップされる。このジョブの実行が終了すると、磁気ディスク媒体「WORKDISK1」上のファイル「FILE01」は削除され、退避ジョブの終了がファイル管理12に通知されると、ファイルが解放される。
By executing a job using this JCL, the file “FILE01” on the magnetic disk medium “WORKDISK1” (temporary storage device 16) is changed to the file “FILE01” on the LTO medium “POOL01” (secondary storage device 17). Will be backed up. When the execution of this job ends, the file “FILE01” on the magnetic disk medium “WORKDISK1” is deleted, and when the end of the save job is notified to the
次に、磁気テープファイルの入力処理を行う磁気テープ使用ジョブ11を実行したときの動作例を説明する。
ファイル割り当て要求では、磁気テープファイルへの出力処理の場合と同じである。
ファイルの入力オープンの要求では、図6、図7、図8のフローチャートに従って、復元JCL21が生成され、ジョブとして実行される。復元JCLの生成は、図9の退避JCL雛形が復元JCL雛形のものに変わるだけなので、説明は省略する。
復元ジョブを実行することにより、LTO媒体「POOL01」(二次記憶装置17)上のファイル「FILE01」が、磁気ディスク媒体「WORKDISK1」(一時記憶装置16)上のファイル「FILE01」にリストアされる。このジョブの実行が終了すると、復元ジョブの終了がファイル管理12に通知され、ファイルのオープン処理が行われる。
以降のデータの入力、ファイルのクローズ、ファイルの解放要求は、上記「WORKDISK1」上のファイル「FILE01」に対して処理される。
Next, an operation example when the magnetic
The file allocation request is the same as that for output processing to a magnetic tape file.
In response to the file input open request, the
By executing the restoration job, the file “FILE01” on the LTO medium “POOL01” (secondary storage device 17) is restored to the file “FILE01” on the magnetic disk medium “WORKDISK1” (temporary storage device 16). . When the execution of this job ends, the end of the restoration job is notified to the
Subsequent data input, file close, and file release requests are processed for the file “FILE01” on “WORKDISK1”.
次に、具体的な実施例を用いてテープ仮想化システム2の動作を説明する。
図11に示すように、仮想テープ定義情報24aの磁気テープ媒体名51が「TAPE02」に対応する行50eには、割り当て先変更規則として、一次記憶装置16の装置種別が「磁気ディスク」、媒体名が「WORKDISK1」と設定されている。また、JCL生成規則53aには、退避JCL雛形として「JCL11」、復元JCL雛形として「JCL12」が設定され、置換パラメータとして、「ipaddr=123.456.789.123、user=user01、pswd=3245h9af、directory=/home/user01、workfile=GRP1.USER01」が設定されている。
これは、図12のJCL生成処理において、退避JCLの雛形には「JCL11」というJCLを使用し、復元JCLの雛形には「JCL12」を使用することを意味する。また、置換パラメータに指定されたキーワードが雛形JCLから見つかれば対応する文字列で置き換えることを意味する。
Next, the operation of the
As shown in FIG. 11, in the
This means that in the JCL generation process of FIG. 12, the JCL “JCL11” is used for the saved JCL template and “JCL12” is used for the restored JCL template. In addition, if the keyword specified in the replacement parameter is found from the template JCL, it means that the corresponding character string is replaced.
次に図14(a)に示すように、ファイル記述58に、内部ファイル名が「IFN02」、外部ファイル名が「FILE02」、装置種別が「磁気テープ」、媒体名が「TAPE02」と記述された磁気テープ使用JCLを実行した場合のJCLの生成例を説明する。
なお、図14(b)に示す退避JCL雛形18は、「INFILE」パラメータに指定された磁気ディスク上のファイルを、指定されたIPアドレスのマシンの指定されたフォルダにFTPで格納する退避ジョブのJCL雛形である。
Next, as shown in FIG. 14A, the
The save
テープ仮想化システム2のJCL生成時の予約キーワードとして、ファイル割り当て情報の外部ファイル名は「%_efn%」、仮想テープ定義情報の割り当て先変更規則の媒体名は「%_workdisk%」とあらかじめ規定されているものとする。
テープ仮想化システム1のJCL生成処理と同様に、退避JCL雛形18の「%_efn%」という文字列は「FILE02」という文字列に、「%_workdisk%」という文字列は「WORKDISK1」という文字列に、「%ipaddr%」という文字列は「123.456.789.123」という文字列に、「%user%」という文字列は「user01」という文字列に、「%pswd%」という文字列は「245h9af」という文字列に、「%directory%」という文字列は「/home/user01」という文字列に、「%workfile%」という文字列は「GRP1.USER01」という文字列に、それぞれ置き換えられて、図14(b)の退避JCL20が生成される。
この退避JCLを使ってジョブを実行することにより、磁気ディスク媒体「WORKDISK1」(一時記憶装置16)上のファイル「FILE02」が、IPアドレスが「123.456.789.123」というサーバのディスク装置(二次記憶装置17)上の「/home/user01」というフォルダにFTPで転送される。
As reserved keywords when generating JCL in the
Similar to the JCL generation processing of the
By executing the job using the saved JCL, the file “FILE02” on the magnetic disk medium “WORKDISK1” (temporary storage device 16) is stored in the disk device (secondary storage) of the server whose IP address is “123.456.789.123”. It is transferred to the folder “/ home / user01” on the apparatus 17) by FTP.
次に、具体的な実施例を用いてテープ仮想化システム3の動作を説明する。
図15に示すように、仮想テープ定義情報24bの磁気テープ媒体名が「TAPE01」に対応する行50gには、退避規則54に、スペース監視で退避するように設定されている。
また、磁気テープ媒体名が「TAPE02」に対応する行50hには、退避規則54に、時刻指定が設定され退避時刻が「23:00」に設定されている。
これらの設定がされているシステムで、図9(a)と図14(a)の例にあるファイル割り当て記述を持つ磁気テープにデータを出力するジョブを実行した場合、それぞれの磁気テープ使用ジョブは一次記憶装置16へファイルを格納したところで終了し、二次記憶装置17への退避は行われない。このとき作成した退避JCLはそれぞれ「退避JCL_001」、「退避JCL_002」という名前で退避状態管理表25に保存される。また、退避時刻の指定に従い「23:00」にタイマーが設定される。
Next, the operation of the tape virtualization system 3 will be described using a specific embodiment.
As shown in FIG. 15, the
Further, in the
When a job that outputs data to a magnetic tape having the file allocation description shown in the examples of FIGS. 9A and 14A is executed in a system in which these settings are made, each magnetic tape use job is The process ends when the file is stored in the
テープ仮想化制御手段15bが「WORKDISK1」のスペース使用量が閾値を超えたことを検出すると、退避状態管理表25から、退避規則63がスペース監視で、割り当て先変更規則62の媒体名が「WORKDISK1」である行を検索する。
次に、見つかった行60aの退避JCL名61に指定されている「退避JCL_001」というJCLを使って退避ジョブを実行する。
When the tape
Next, the save job is executed using the JCL “Save JCL_001” specified in the save
また、テープ仮想化制御手段15bが23:00にタイムアウトの通知を受けると、退避状態管理表25から、退避規則53が時刻指定かつ退避時刻が23:00である行を検索する。
次に、見つかった行60bの退避JCL名61に指定されている「退避JCL_002」というJCLを使って退避ジョブを実行する。
Further, when the tape virtualization control means 15b receives a timeout notification at 23:00, the save status management table 25 is searched for a row in which the
Next, the save job is executed using the JCL “Save JCL_002” specified in the save
1、2、3 テープ仮想化システム
11 磁気テープ使用ジョブ
12、12b ファイル管理
13 割り当て先変換手段
14、14a 退避/復元JCL生成手段
15、15b テープ仮想化制御手段
16 一次記憶装置
17 二次記憶装置
18 退避JCL雛形
19 復元JCL雛形
20 退避JCL
21 復元JCL
22 退避ジョブ
23 復元ジョブ
24、24a、24b 仮想テープ定義情報
25 退避状態管理表
26 JCL雛形記憶部
27 仮想テープ定義情報記憶部
1, 2, 3
21 Restored JCL
22 save
Claims (15)
前記退避JCLを生成するための雛形である退避JCL雛形と前記復元JCLを生成するための雛形である復元JCL雛形を記憶するJCL雛形記憶部と、
ホストコンピュータの磁気テープ使用ジョブから前記磁気テープ媒体へのファイルの割り当て要求があったときに、前記仮想テープ定義情報を参照し前記ファイルの割当先を前記磁気テープ媒体から前記一次記憶装置に変換する割り当て先変換手段と、
前記磁気テープ使用ジョブから前記ファイルの解放要求があったときに、前記テープ使用ジョブに記述されたファイル割り当て情報と前記退避JCL雛形と前記JCL生成規則に基づいて前記退避JCLを生成し、前記磁気テープ使用ジョブから前記ファイルの入力オープン要求があったときに、前記ファイル割り当て情報と前記復元JCL雛形と前記JCL生成規則に基づいて前記復元JCLを生成する退避/復元JCL生成手段と、
前記退避JCLに基づいて前記ファイルの退避を実行し、前記復元JCLに基づいて前記ファイルの復元を実行するテープ仮想化制御手段とを備えたことを特徴としたテープ仮想化システム。 From the magnetic tape medium name, the assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and the save JCL for controlling the save of the file from the primary storage device to the secondary storage device and the secondary storage device A virtual tape definition information storage unit for storing virtual tape definition information including a JCL generation rule that is a rule for generating a restoration JCL for controlling restoration of the file to the primary storage device;
A JCL template storage unit that stores a saved JCL template that is a template for generating the saved JCL and a restored JCL template that is a template for generating the restored JCL;
When there is a file allocation request from the magnetic tape use job of the host computer to the magnetic tape medium, the virtual tape definition information is referenced to convert the file allocation destination from the magnetic tape medium to the primary storage device. Assignee conversion means,
When the release request for the file is received from the magnetic tape use job, the save JCL is generated based on the file allocation information described in the tape use job, the save JCL template, and the JCL generation rule, and the magnetic A save / restore JCL generation unit that generates the restored JCL based on the file allocation information, the restored JCL template, and the JCL creation rule when there is an input open request for the file from a tape use job;
A tape virtualization system comprising: tape virtualization control means for executing the save of the file based on the save JCL and executing the restoration of the file based on the restore JCL.
前記仮想テープ定義情報には、前記磁気テープ媒体毎に使用する前記退避JCL雛形と前記復元JCL雛形を特定する情報が含まれていることを特徴とした請求項1に記載のテープ仮想化システム。 The JCL template storage unit stores a plurality of the saved JCL templates and a plurality of the restored JCL templates,
The tape virtualization system according to claim 1, wherein the virtual tape definition information includes information for specifying the save JCL template and the restored JCL template used for each magnetic tape medium.
前記テープ仮想化制御手段は、前記磁気テープ媒体毎に指定された前記退避規則に従って前記退避JCLを実行することを特徴とした請求項1または請求項2に記載のテープ仮想化システム。 The virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL for each magnetic tape medium,
3. The tape virtualization system according to claim 1, wherein the tape virtualization control unit executes the evacuation JCL according to the evacuation rule specified for each magnetic tape medium.
ホストコンピュータの磁気テープ使用ジョブから前記磁気テープ媒体への前記ファイルの割り当て要求があったときに、前記仮想テープ定義情報を参照し前記ファイルの割当先を前記磁気テープ媒体から前記一次記憶装置に変換する割り当て先変換工程と、
前記磁気テープ使用ジョブから前記ファイルの解放要求があったときに、前記テープ使用ジョブに記述されたファイル割り当て情報と前記退避JCL雛形と前記JCL生成規則に基づいて前記退避JCLを生成し、前記磁気テープ使用ジョブから前記ファイルの入力オープン要求があったときに、前記ファイル割り当て情報と前記復元JCL雛形と前記JCL生成規則に基づいて前記復元JCLを生成する退避/復元JCL生成工程と、
前記退避JCLに基づいて前記ファイルの退避を実行し、前記復元JCLに基づいて前記ファイルの復元を実行するテープ仮想化制御工程とを備えたことを特徴としたテープ仮想化方法。 From the magnetic tape medium name, the assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and the save JCL for controlling the save of the file from the primary storage device to the secondary storage device and the secondary storage device A storage step of previously storing in the storage device virtual tape definition information including a JCL generation rule that is a rule for generating a recovery JCL for controlling the recovery of the file to the primary storage device;
When there is a request to allocate the file to the magnetic tape medium from a magnetic tape use job of a host computer, the virtual tape definition information is referenced to convert the file allocation destination from the magnetic tape medium to the primary storage device Assignee conversion process to
When the release request for the file is received from the magnetic tape use job, the save JCL is generated based on the file allocation information described in the tape use job, the save JCL template, and the JCL generation rule, and the magnetic A save / restore JCL generation step for generating the restored JCL based on the file allocation information, the restored JCL template, and the JCL creation rule when there is an input open request for the file from a tape use job;
A tape virtualization method comprising: a tape virtualization control step of executing saving of the file based on the saving JCL and executing restoration of the file based on the restoration JCL.
前記仮想テープ定義情報には、前記磁気テープ媒体毎に使用する前記退避JCL雛形と前記復元JCL雛形を特定する情報が含まれていることを特徴とした請求項6に記載のテープ仮想化方法。 In the storage step, a plurality of the save JCL and a plurality of the restoration JCL are stored in the storage device,
The tape virtualization method according to claim 6, wherein the virtual tape definition information includes information for specifying the saved JCL template and the restored JCL template used for each magnetic tape medium.
前記テープ仮想化制御工程では、前記磁気テープ媒体毎に指定された前記退避規則に従って前記退避JCLを実行することを特徴とした請求項6または請求項7のいずれかひとつに記載のテープ仮想化方法。 The virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL for each magnetic tape medium,
8. The tape virtualization method according to claim 6, wherein in the tape virtualization control step, the evacuation JCL is executed in accordance with the evacuation rule specified for each magnetic tape medium. .
磁気テープ媒体名、この磁気テープ媒体名と一次記憶装置を対応付ける規則である割り当て先変更規則および前記一次記憶装置から二次記憶装置へのファイルの退避を制御する退避JCLと前記二次記憶装置から前記一次記憶装置への前記ファイルの復元を制御する復元JCLを生成する規則であるJCL生成規則を含む仮想テープ定義情報を予め記憶装置に記憶する記憶機能と、
ホストコンピュータの磁気テープ使用ジョブから前記磁気テープ媒体への前記ファイルの割り当て要求があったときに、前記仮想テープ定義情報を参照し前記ファイルの割当先を前記磁気テープ媒体から前記一次記憶装置に変換する割り当て先変換機能と、
前記磁気テープ使用ジョブから前記ファイルの解放要求があったときに、前記テープ使用ジョブに記述されたファイル割り当て情報と前記退避JCL雛形と前記JCL生成規則に基づいて前記退避JCLを生成し、前記磁気テープ使用ジョブから前記ファイルの入力オープン要求があったときに、前記ファイル割り当て情報と前記復元JCL雛形と前記JCL生成規則に基づいて前記復元JCLを生成する退避/復元JCL生成機能と、
前記退避JCLに基づいて前記ファイルの退避を実行し、前記復元JCLに基づいて前記ファイルの復元を実行するテープ仮想化制御機能とを実行させることを特徴としたテープ仮想化プログラム。 On the computer,
From the magnetic tape medium name, the assignment destination change rule that is a rule for associating the magnetic tape medium name with the primary storage device, and the save JCL for controlling the save of the file from the primary storage device to the secondary storage device and the secondary storage device A storage function for preliminarily storing, in a storage device, virtual tape definition information including a JCL generation rule that is a rule for generating a recovery JCL for controlling the recovery of the file to the primary storage device;
When there is a request to allocate the file to the magnetic tape medium from a magnetic tape use job of a host computer, the virtual tape definition information is referenced to convert the file allocation destination from the magnetic tape medium to the primary storage device Assign destination conversion function,
When the release request for the file is received from the magnetic tape use job, the save JCL is generated based on the file allocation information described in the tape use job, the save JCL template, and the JCL generation rule, and the magnetic A save / restore JCL generation function for generating the restored JCL based on the file allocation information, the restored JCL template, and the JCL creation rule when an input open request for the file is received from a tape use job;
A tape virtualization program for executing a tape virtualization control function for executing the saving of the file based on the saving JCL and executing the restoration of the file based on the restoration JCL.
前記仮想テープ定義情報には、前記磁気テープ媒体毎に使用する前記退避JCL雛形と前記復元JCL雛形を特定する情報が含まれていることを特徴とした請求項11に記載のテープ仮想化プログラム。 The storage function stores a plurality of the save JCL and a plurality of the restoration JCL in the storage device,
12. The tape virtualization program according to claim 11, wherein the virtual tape definition information includes information for specifying the save JCL template and the restored JCL template used for each magnetic tape medium.
前記テープ仮想化制御機能は、前記磁気テープ媒体毎に指定された前記退避規則に従って前記退避JCLを実行するものであることを特徴とした請求項11または請求項12に記載のテープ仮想化プログラム。 The virtual tape definition information includes a save rule that is a condition that triggers execution of the save JCL for each magnetic tape medium,
The tape virtualization program according to claim 11 or 12, wherein the tape virtualization control function executes the save JCL according to the save rule specified for each magnetic tape medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006094274A JP4572857B2 (en) | 2006-03-30 | 2006-03-30 | Tape virtualization system, tape virtualization method, and tape virtualization program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006094274A JP4572857B2 (en) | 2006-03-30 | 2006-03-30 | Tape virtualization system, tape virtualization method, and tape virtualization program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007272316A JP2007272316A (en) | 2007-10-18 |
JP4572857B2 true JP4572857B2 (en) | 2010-11-04 |
Family
ID=38675096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006094274A Expired - Fee Related JP4572857B2 (en) | 2006-03-30 | 2006-03-30 | Tape virtualization system, tape virtualization method, and tape virtualization program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4572857B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007287236A (en) * | 2006-04-17 | 2007-11-01 | Sony Corp | Recording/reproducing device and reproducing device |
JP5958440B2 (en) * | 2013-09-02 | 2016-08-02 | 日本電気株式会社 | Virtual tape control device, virtual tape device, control method, program, and recording medium |
JP6016831B2 (en) * | 2014-03-05 | 2016-10-26 | 三菱電機インフォメーションシステムズ株式会社 | Storage control device and storage control program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001188710A (en) * | 1999-11-09 | 2001-07-10 | Internatl Business Mach Corp <Ibm> | Method and system for performing access to data set and product |
JP2001273723A (en) * | 2000-03-28 | 2001-10-05 | Matsushita Electric Ind Co Ltd | Hard disk device, medium and information aggregate |
JP2002334049A (en) * | 2001-05-11 | 2002-11-22 | Hitachi Ltd | Storage subsystem and control method for storage subsystem |
JP2003058326A (en) * | 2001-08-17 | 2003-02-28 | Hitachi Ltd | Method and device for acquiring backup |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01279341A (en) * | 1988-05-02 | 1989-11-09 | Nec Corp | Library save system |
JPH03269622A (en) * | 1990-03-19 | 1991-12-02 | Nec Corp | Generating device for job control statement |
-
2006
- 2006-03-30 JP JP2006094274A patent/JP4572857B2/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001188710A (en) * | 1999-11-09 | 2001-07-10 | Internatl Business Mach Corp <Ibm> | Method and system for performing access to data set and product |
JP2001273723A (en) * | 2000-03-28 | 2001-10-05 | Matsushita Electric Ind Co Ltd | Hard disk device, medium and information aggregate |
JP2002334049A (en) * | 2001-05-11 | 2002-11-22 | Hitachi Ltd | Storage subsystem and control method for storage subsystem |
JP2003058326A (en) * | 2001-08-17 | 2003-02-28 | Hitachi Ltd | Method and device for acquiring backup |
Also Published As
Publication number | Publication date |
---|---|
JP2007272316A (en) | 2007-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5082310B2 (en) | Data migration apparatus and program | |
KR100446339B1 (en) | Real time data migration system and method employing sparse files | |
JP4741371B2 (en) | System, server apparatus, and snapshot format conversion method | |
JP4809040B2 (en) | Storage apparatus and snapshot restore method | |
JP4975882B2 (en) | Partial movement of objects to another storage location in a computer system | |
JP4615344B2 (en) | Data processing system and database management method | |
US9996421B2 (en) | Data storage method, data storage apparatus, and storage device | |
JP2007073039A (en) | System, program product, method and computer software for providing content based anticipative storage management | |
JP4283440B2 (en) | Native data signing in the file system | |
JP2008108258A (en) | Distributed snapshot process | |
JP2006268139A (en) | Data reproduction device, method and program and storing system | |
JP4225206B2 (en) | Replicated data storage system for storage device and replicated data storage program | |
JP4755244B2 (en) | Information generation method, information generation program, and information generation apparatus | |
US9015526B2 (en) | Restoring method and computer system | |
JP2008276488A (en) | Storage system and information migration method for storage system | |
CN106528338B (en) | Remote data copying method, storage device and storage system | |
MXPA01012371A (en) | Method for optimizing the performance of a computer and main non-volatile storage mean optimized with specific purpose sections. | |
JP4572857B2 (en) | Tape virtualization system, tape virtualization method, and tape virtualization program | |
EP2320313B1 (en) | Method and system for offline data access on computer systems | |
JP5556025B2 (en) | Storage system | |
JP3848268B2 (en) | Computer system, computer apparatus, data access method and program in computer system | |
JP4159506B2 (en) | Hierarchical storage device, recovery method thereof, and recovery program | |
JP4893214B2 (en) | Storage control device, storage control method, and storage control program | |
JP2005099971A (en) | Input/output control method of virtual tape device | |
JP2010231684A (en) | Physical computer having virtual computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100308 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100316 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100514 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20100720 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20100802 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4572857 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130827 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |