JP2005050104A - Data backup method and virtual magnetic tape device - Google Patents

Data backup method and virtual magnetic tape device Download PDF

Info

Publication number
JP2005050104A
JP2005050104A JP2003281078A JP2003281078A JP2005050104A JP 2005050104 A JP2005050104 A JP 2005050104A JP 2003281078 A JP2003281078 A JP 2003281078A JP 2003281078 A JP2003281078 A JP 2003281078A JP 2005050104 A JP2005050104 A JP 2005050104A
Authority
JP
Japan
Prior art keywords
magnetic tape
virtual
backup
virtual medium
magnetic
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
JP2003281078A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Ishii
義之 石井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2003281078A priority Critical patent/JP2005050104A/en
Publication of JP2005050104A publication Critical patent/JP2005050104A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent reduction of reuse efficiency of a magnetic tape due to difference of a backup cycle. <P>SOLUTION: For storing a virtual medium of a magnetic disk drive 3 in a magnetic tape via a magnetic tape drive 5, a magnetic tape matching the backup cycle of the virtual medium is selected and data of the virtual medium are stored in the selected magnetic tape. Only the virtual media having mutually similar backup periods are stored in each magnetic tape, and necessity of a waiting time for reuse, which is retarded conventionally until the virtual medium having a relatively long backup cycle becomes unnecessary, of the magnetic tape can be removed. Consequently, overwriting to the magnetic tape can be carried out smoothly, and the reuse efficiency of the magnetic tape is improved. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、1次記憶用の磁気ディスクドライブと2次記憶用の磁気テープドライブとを使用して上位装置のデータを磁気テープに2次バックアップとして保存するデータバックアップ方法および仮想磁気テープ装置の改良に関する。   The present invention improves a data backup method and a virtual magnetic tape device that use a primary storage magnetic disk drive and a secondary storage magnetic tape drive to store data of a host device on a magnetic tape as a secondary backup. About.

上位装置のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブと、複数の磁気テープを選択的に使用して磁気ディスクドライブの仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブとを用い、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させ、当該仮想媒体の記憶されていた磁気ディスクドライブの記憶領域を開放して再利用できるようにしたデータバックアップ方法および仮想磁気テープ装置が公知である。   Magnetic disk drive for primary storage that stores the data of the host device as a virtual medium, and magnetic tape for secondary storage that selectively uses a plurality of magnetic tapes to store the virtual medium of the magnetic disk drive on the magnetic tape Data backup that uses a drive to store the virtual medium of the magnetic disk drive on the magnetic tape via the magnetic tape drive, and frees up the storage area of the magnetic disk drive in which the virtual medium was stored. Methods and virtual magnetic tape devices are known.

しかし、短いバックアップ周期で上書きされるデータを記憶した1次記憶用の仮想媒体と長いバックアップ周期で上書きされるデータを記憶した1次記憶用の仮想媒体とが同じ2次記憶用の磁気テープに記憶されてしまうと、長いバックアップ周期で上書きされる仮想媒体が不要となるまでの間、この磁気テープに対する上書きが行なえないことになり、磁気テープの再利用効率が低下するといった問題がある。   However, the primary storage virtual medium storing the data to be overwritten in a short backup cycle and the primary storage virtual medium storing the data to be overwritten in a long backup cycle are the same on the magnetic tape for secondary storage. Once stored, the magnetic tape cannot be overwritten until a virtual medium that is overwritten with a long backup cycle becomes unnecessary, and there is a problem in that the efficiency of reusing the magnetic tape is reduced.

また、短いバックアップ周期で上書きされるデータを記憶した1次記憶用の仮想媒体と長いバックアップ周期で上書きされるデータを記憶した1次記憶用の仮想媒体とを同じ2次記憶用の磁気テープに記憶させてしまってから改めて複数の磁気テープ間に亘って仮想媒体の再配置処理を行ってバックアップ周期が合致する仮想媒体を同じ磁気テープに再配列するといったことも考えられるが、磁気テープドライブと磁気ディスクドライブとの間のデータの遣り取りが頻繁となって装置の負荷が増大し、磁気テープに対する読み書きも頻繁に行なわれるようになって磁気テープに磨耗等の損傷が生じやすくなる弊害がある。   Further, a primary storage virtual medium storing data to be overwritten with a short backup cycle and a primary storage virtual medium storing data to be overwritten with a long backup cycle are used on the same secondary storage magnetic tape. It is conceivable to re-arrange virtual media across a plurality of magnetic tapes after they have been stored and rearrange virtual media with the same backup cycle to the same magnetic tape. Data exchange with the magnetic disk drive is frequently performed, the load on the apparatus is increased, and reading / writing with respect to the magnetic tape is frequently performed, so that the magnetic tape is likely to be damaged such as wear.

磁気テープの再利用効率を高めるための技術としては、例えば、特許文献1に開示されるデータ複写・復元システムや特許文献2に開示される記憶媒体の管理方式が既に提案されている。   For example, a data copying / restoring system disclosed in Patent Document 1 and a storage medium management system disclosed in Patent Document 2 have already been proposed as techniques for increasing the reuse efficiency of magnetic tape.

特許文献1のデータ複写・復元システムは、第1階層の仮想磁気テープのデータを第二階層の磁気テープにマイグレーションする際に、前の世代の仮想磁気テープを第2階層の磁気テープから消去することで磁気テープの再利用効率を高めるもの、つまり、再利用効率の面では従来技術にあたり、予め保存期間を定められた仮想媒体を記憶した磁気テープの再利用効率を高めるためのものではない。   The data copying / restoring system disclosed in Patent Document 1 erases the previous generation virtual magnetic tape from the second level magnetic tape when migrating the data of the first level virtual magnetic tape to the second level magnetic tape. Thus, the magnetic tape reuse efficiency is improved, that is, in terms of the reuse efficiency, the conventional technique is not for increasing the reuse efficiency of the magnetic tape storing the virtual medium having a predetermined storage period.

また、特許文献2の記憶媒体の管理方式は、仮想媒体の必要保存期間に適した耐用期間を有する磁気テープを選択することによって仮想媒体の存続を保証するもの、言い換えれば、磁気テープの劣化によって仮想媒体が消滅するのを防止するための再バックアップ処理を不要として装置の運用効率を高めるものに過ぎず、磁気テープ上のデータを開放して磁気テープを効果的に再使用したり、磁気テープの必要数を削減したりするためのものではない。   In addition, the storage medium management method disclosed in Patent Document 2 guarantees the continuity of the virtual medium by selecting a magnetic tape having a lifetime that is suitable for the required storage period of the virtual medium, in other words, due to deterioration of the magnetic tape. This is just a way to increase the operational efficiency of the device by eliminating the need for re-backup processing to prevent the virtual media from disappearing. The data on the magnetic tape is released and the magnetic tape can be effectively reused. It is not intended to reduce the required number.

特開平11−272426号公報JP-A-11-272426 特開平8−7533号公報JP-A-8-7533

本発明の課題は、仮想媒体のバックアップ周期の相違による磁気テープの再利用効率の低下や、磁気テープ上での仮想媒体の再配列処理による装置の負荷の増大および磁気テープの磨耗等を防止し、2次記憶用の磁気テープを効率よく再利用することのできるデータバックアップ方法および仮想磁気テープ装置を提供することにある。   An object of the present invention is to prevent a decrease in magnetic tape reuse efficiency due to a difference in the backup cycle of virtual media, an increase in load on the apparatus due to a rearrangement process of virtual media on the magnetic tape, and wear of the magnetic tape. An object of the present invention is to provide a data backup method and a virtual magnetic tape device that can efficiently reuse a magnetic tape for secondary storage.

本発明のデータバックアップ方法は、上位装置のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブと、複数の磁気テープを選択的に使用して磁気ディスクドライブの仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブとを用い、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させ、当該仮想媒体の記憶されていた磁気ディスクドライブの記憶領域を開放して再利用するようにしたデータバックアップ方法において、
上位装置が磁気ディスクドライブの仮想媒体にデータを上書きするバックアップ周期に対応させて磁気テープの各々に格納仮想媒体周期を設定しておき、
磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、当該仮想媒体のバックアップ周期に対応する磁気テープを選択して当該仮想媒体のデータを記憶させることを特徴とした構成を有する。
In the data backup method of the present invention, a magnetic disk drive for primary storage that stores data of a host device as a virtual medium and a plurality of magnetic tapes are selectively used to store the virtual medium of the magnetic disk drive on the magnetic tape. The secondary storage magnetic tape drive is used to store the virtual medium of the magnetic disk drive on the magnetic tape via the magnetic tape drive, and the storage area of the magnetic disk drive in which the virtual medium is stored is released. In the data backup method to be reused,
The host device sets a storage virtual medium cycle for each magnetic tape in correspondence with a backup cycle in which data is overwritten on the virtual medium of the magnetic disk drive,
A configuration in which when a virtual medium of a magnetic disk drive is stored on a magnetic tape via a magnetic tape drive, a magnetic tape corresponding to a backup cycle of the virtual medium is selected and data of the virtual medium is stored Have

以上の構成により、個々の磁気テープにはバックアップ周期の近似する仮想媒体のみが記憶されることになり、相対的に長いバックアップ周期を有する仮想媒体が不要となるまで磁気テープの再利用を待つといった必要がなくなり、磁気テープに対する上書きを円滑に行なえるようになるため、磁気テープの再利用効率が向上する。従って、2次記憶用に必要とされる磁気テープの本数も抑制される。同時に、バックアップ周期に応じて複数の磁気テープ間で仮想媒体の再配置処理を行う必要もなくなるので、磁気テープドライブと磁気ディスクドライブとの間での冗長なデータの遣り取りも減少して装置の負荷が軽減され、磁気テープに対する読み書き回数も低減されるため、磁気テープの実質的な耐久性を向上させることができる。   With the above configuration, each virtual tape stores only a virtual medium whose backup cycle approximates, and waits for reuse of the magnetic tape until a virtual medium having a relatively long backup cycle becomes unnecessary. This eliminates the need for overwriting on the magnetic tape, thereby improving the efficiency of reusing the magnetic tape. Therefore, the number of magnetic tapes required for secondary storage is also suppressed. At the same time, there is no need to relocate virtual media between multiple magnetic tapes according to the backup cycle, reducing redundant data exchange between the magnetic tape drive and magnetic disk drive, and reducing the load on the device. Is reduced, and the number of times of reading and writing with respect to the magnetic tape is reduced, so that the substantial durability of the magnetic tape can be improved.

また、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際には、古い記憶履歴を有する仮想媒体を選択して磁気テープに記憶させることが望ましい。   Further, when the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, it is desirable to select a virtual medium having an old storage history and store it on the magnetic tape.

上位装置からの頻繁なアクセスが不要と考えられる古い仮想媒体を磁気テープに記憶させて磁気ディスクドライブの記憶領域を開放することにより、磁気ディスクドライブの利用効率も適正な状態に維持することができる。
この他にも、仮想媒体毎に優先順位を設定して優先順位の低いものから順に磁気テープに記憶させるといった方法が考えられる。
The storage efficiency of the magnetic disk drive can be maintained in an appropriate state by storing the old virtual medium that is considered unnecessary to be frequently accessed from the host device on the magnetic tape and releasing the storage area of the magnetic disk drive. .
In addition, a method may be considered in which a priority order is set for each virtual medium and stored on the magnetic tape in order from the lowest priority order.

更に、磁気ディスクドライブの記憶領域が必要量だけ開放されるまでの間、同一の記憶履歴を有する仮想媒体を選択し続けるようにしてもよい。   Further, virtual media having the same storage history may be continuously selected until a necessary amount of the storage area of the magnetic disk drive is released.

古い記憶履歴を有する仮想媒体を選択して磁気テープに記憶させるようにした場合であっても、また、優先順位の低い仮想媒体を選択して磁気テープに記憶させるようにした場合でも、最初に選択された仮想媒体と同等のバックアップ周期を有する仮想媒体が纏めて選択され、磁気ディスクドライブの記憶領域を大幅に回復させることができる。   Even if you select a virtual medium with an old storage history and store it on the magnetic tape, or select a virtual medium with a low priority and store it on the magnetic tape, Virtual media having backup cycles equivalent to the selected virtual media are selected together, and the storage area of the magnetic disk drive can be greatly recovered.

また、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際には、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択することが望ましい。   In addition, when storing the virtual media of a magnetic disk drive on a magnetic tape via a magnetic tape drive, the magnetic tape in use is preferentially selected, and only when there is no magnetic tape in use, a new magnetic It is desirable to select a tape.

磁気テープに対して仮想媒体が連続的に記憶されることになるので、2次記憶用に必要とされる磁気テープの本数を抑制することができる。   Since virtual media are continuously stored on the magnetic tape, the number of magnetic tapes required for secondary storage can be suppressed.

本発明の仮想磁気テープ装置は、上位装置のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブと、複数の磁気テープを選択的に使用して磁気ディスクドライブの仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブと、前記磁気ディスクドライブおよび磁気テープドライブを駆動制御し、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させ、当該仮想媒体の記憶されていた磁気ディスクドライブの記憶領域を開放する制御手段とを備えた仮想磁気テープ装置であり、前記と同様の課題を達成するため、特に、
上位装置が磁気ディスクドライブの仮想媒体にデータを上書きするバックアップ周期を各仮想媒体毎に記憶するバックアップ周期記憶テーブルと、各磁気テープ毎の格納仮想媒体周期を記憶するローテーション周期記憶テーブルとを制御手段に併設すると共に、
前記制御手段には、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、前記バックアップ周期記憶テーブルおよびローテーション周期記憶テーブルを参照し、当該仮想媒体のバックアップ周期に対応する磁気テープを選択して当該仮想媒体のデータを記憶させる磁気テープ選択機能が配備されていることを特徴とした構成を有する。
The virtual magnetic tape device of the present invention uses a magnetic disk drive for primary storage that stores data of a host device as a virtual medium and a plurality of magnetic tapes selectively to use the virtual medium of the magnetic disk drive as a magnetic tape. The magnetic tape drive for secondary storage to be stored, the magnetic disk drive and the magnetic tape drive are driven and controlled, the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, and the virtual medium is stored. A virtual magnetic tape device comprising a control means for releasing the storage area of the magnetic disk drive, and in order to achieve the same problem as described above,
Control means for a backup cycle storage table for storing a backup cycle for each virtual medium in which a host device overwrites data on a virtual medium of a magnetic disk drive and a rotation cycle storage table for storing a storage virtual medium cycle for each magnetic tape Along with
When the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the control means refers to the backup cycle storage table and the rotation cycle storage table and corresponds to the backup cycle of the virtual medium. A magnetic tape selection function for selecting a magnetic tape and storing data of the virtual medium is provided.

磁気ディスクドライブの仮想媒体を磁気テープに記憶させる際に、制御手段がバックアップ周期記憶テーブルおよびローテーション周期記憶テーブルを参照して当該仮想媒体のバックアップ周期に対応する磁気テープを選択し、この磁気テープに当該仮想媒体のデータを記憶させるので、個々の磁気テープにはバックアップ周期の近似する仮想媒体のみが記憶されることになる。従って、相対的に長いバックアップ周期を有する仮想媒体が不要となるまで磁気テープの再利用を待つといった必要がなくなり、磁気テープの再利用効率が向上し、2次記憶用に必要とされる磁気テープの本数も抑制される。同時に、バックアップ周期に応じて複数の磁気テープ間で仮想媒体の再配置処理を行うといった必要もなくなるので、磁気テープドライブと磁気ディスクドライブとの間での冗長なデータの遣り取りも減少して装置の負荷が軽減され、磁気テープに対する読み書き回数も低減されるため、磁気テープの実質的な耐久性を向上させることができる。   When storing the virtual medium of the magnetic disk drive on the magnetic tape, the control means refers to the backup cycle storage table and the rotation cycle storage table, selects the magnetic tape corresponding to the backup cycle of the virtual medium, Since the data of the virtual medium is stored, only the virtual medium having an approximate backup cycle is stored on each magnetic tape. Therefore, there is no need to wait for the reuse of the magnetic tape until a virtual medium having a relatively long backup cycle is no longer needed, and the reuse efficiency of the magnetic tape is improved, and the magnetic tape required for secondary storage is used. Is also suppressed. At the same time, since there is no need to perform virtual media relocation processing between multiple magnetic tapes according to the backup cycle, the exchange of redundant data between the magnetic tape drive and the magnetic disk drive is reduced. Since the load is reduced and the number of times of reading and writing on the magnetic tape is reduced, the substantial durability of the magnetic tape can be improved.

また、仮想媒体に対するデータの上書き実行日を記憶するフィールドをバックアップ周期記憶テーブルに設け、
前記制御手段には、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、前記バックアップ周期記憶テーブルを参照して古い上書き実行日を有する仮想媒体を選択して磁気テープに記憶させる仮想媒体自動選択機能を配備するとよい。
In addition, a field for storing the execution date of overwriting data on the virtual medium is provided in the backup cycle storage table,
When the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the control means selects the virtual medium having the old overwrite execution date with reference to the backup cycle storage table and selects the magnetic tape It is preferable to provide a virtual medium automatic selection function to be stored in.

上位装置からの頻繁なアクセスが不要と考えられる古い仮想媒体を磁気テープに記憶させて磁気ディスクドライブの記憶領域を開放することにより、磁気ディスクドライブの利用効率も向上する。   The use efficiency of the magnetic disk drive is also improved by storing the old virtual medium considered unnecessary to be frequently accessed from the host device on the magnetic tape and releasing the storage area of the magnetic disk drive.

更に、前記制御手段には、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、磁気ディスクドライブの記憶領域が必要量だけ開放されるまでの間、同一のバックアップ周期を有する仮想媒体を選択し続ける仮想媒体連続選択機能を配備することが可能である。   Further, when the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the control means has the same backup cycle until the storage area of the magnetic disk drive is released by a necessary amount. It is possible to provide a virtual medium continuous selection function that continues to select virtual media having

仮想媒体が纏めて選択されて磁気テープに記憶されるので、磁気ディスクドライブの記憶領域を纏めて開放することができる。   Since the virtual media are collectively selected and stored on the magnetic tape, the storage area of the magnetic disk drive can be collectively released.

また、前記制御手段には、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択する磁気テープ選択順位決定機能を配備することができる。   In addition, when the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the control means preferentially selects the magnetic tape in use and there is no magnetic tape in use. A magnetic tape selection order determining function for selecting a new magnetic tape can be provided.

磁気テープに対して仮想媒体が連続的に記憶されることになるので、2次記憶用に必要とされる磁気テープの本数を抑制することができる。   Since virtual media are continuously stored on the magnetic tape, the number of magnetic tapes required for secondary storage can be suppressed.

また、この制御手段には、上位装置から与えられたバックアップ周期をバックアップ周期記憶テーブルに設定するバックアップ周期設定機能を設けることができる。   Further, this control means can be provided with a backup cycle setting function for setting the backup cycle given from the host device in the backup cycle storage table.

あるいは、上位装置とは別に専用の管理用システムを構築し、この管理用システムから制御手段にバックアップ周期を与えてバックアップ周期記憶テーブルに設定させるようにしてもよい。   Alternatively, a dedicated management system may be constructed separately from the host device, and a backup cycle may be given to the control means from the management system and set in the backup cycle storage table.

更には、データの上書き実行日に基いてバックアップ周期を求めてバックアップ周期記憶テーブルに設定するバックアップ周期自動設定機能を前記制御手段に設けることも可能である。   Furthermore, it is also possible to provide the control means with a backup cycle automatic setting function for obtaining a backup cycle based on the data overwrite execution date and setting it in the backup cycle storage table.

このような構成を適用した場合、オペレータ自らが上位装置や管理用システムを操作して仮想媒体毎のバックアップ周期を入力する必要がなくなるので、データのバックアップ作業が更に簡便なものとなる。制御手段は、最新の上書き実行日と其の直前の上書き実行日との差分に基いて基本的なバックアップ周期を求めることが可能である。
また、有効なデータが格納されていない磁気テープに対応するローテーション周期記憶テーブルの格納仮想媒体周期は、未設定とする事ができる。格納仮想媒体周期が未設定の磁気テープには、いずれのバックアップ周期をもつ仮想媒体も格納可能とし、仮想媒体が格納された際にその仮想媒体のバックアップ周期を格納仮想媒体周期として設定する。この事により、上書き可能な磁気テープ媒体を異なるバックアップ周期をもつ仮想媒体の格納用として共有する事が可能である。
When such a configuration is applied, it is not necessary for the operator to input the backup cycle for each virtual medium by operating the host device or the management system, so that the data backup operation is further simplified. The control means can obtain a basic backup cycle based on the difference between the latest overwrite execution date and the immediately preceding overwrite execution date.
Further, the storage virtual medium period of the rotation period storage table corresponding to the magnetic tape in which no valid data is stored can be set unset. A magnetic tape having a storage virtual medium period not set can store any virtual medium having any backup period, and when the virtual medium is stored, the backup period of the virtual medium is set as the storage virtual medium period. As a result, the rewritable magnetic tape medium can be shared for storing virtual media having different backup cycles.

本発明のデータバックアップ方法および仮想磁気テープ装置は、個々の磁気テープにバックアップ周期の近似する仮想媒体のみを記憶させるようにしているので、バックアップ周期の長短に関わりなく仮想媒体を無秩序に磁気テープに記憶させる従来のデータバックアップ方法および装置とは違って、相対的に長いバックアップ周期を有する仮想媒体が不要となるまで磁気テープの再利用を待つといった必要がなく、磁気テープに対する上書きを円滑に行なえるようになるので、磁気テープの再利用効率が向上する。この結果、2次記憶用に必要とされる磁気テープの本数も抑制される。同時に、バックアップ周期に応じて複数の磁気テープ間で仮想媒体の再配置処理を行う必要もなくなるので、磁気テープドライブと磁気ディスクドライブとの間での冗長なデータの遣り取りも減少して装置の負荷が軽減され、磁気テープに対する読み書き回数も低減されるため、磁気テープの実質的な耐久性を向上させることができる。   In the data backup method and virtual magnetic tape apparatus of the present invention, only the virtual medium whose backup cycle is approximated is stored in each magnetic tape. Therefore, the virtual medium is randomly placed on the magnetic tape regardless of the length of the backup cycle. Unlike conventional data backup methods and apparatuses that store data, there is no need to wait for reuse of the magnetic tape until a virtual medium having a relatively long backup cycle is no longer needed, and the magnetic tape can be overwritten smoothly. As a result, the recycling efficiency of the magnetic tape is improved. As a result, the number of magnetic tapes required for secondary storage is also suppressed. At the same time, there is no need to relocate virtual media between multiple magnetic tapes according to the backup cycle, reducing redundant data exchange between the magnetic tape drive and magnetic disk drive, and reducing the load on the device. Is reduced, and the number of times of reading and writing with respect to the magnetic tape is reduced, so that the substantial durability of the magnetic tape can be improved.

また、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際には、上位装置からの頻繁なアクセスが不要と考えられる古い記憶履歴を有する仮想媒体を選択して磁気テープに記憶させるようにしているので、磁気テープから磁気ディスクドライブへのリカバリを頻繁に行なう必要がなく、磁気ディスクドライブの利用効率も適正な状態に維持することができる。   In addition, when storing a virtual medium of a magnetic disk drive on a magnetic tape via a magnetic tape drive, select a virtual medium having an old storage history that is considered unnecessary to be frequently accessed from a host device and select it on the magnetic tape. Since the data is stored, it is not necessary to frequently recover from the magnetic tape to the magnetic disk drive, and the utilization efficiency of the magnetic disk drive can be maintained in an appropriate state.

更に、磁気ディスクドライブの記憶領域が必要量だけ開放されるまでの間、同一のバックアップ周期を有する仮想媒体を選択し続けるようにしているので、磁気ディスクドライブの記憶領域を纏めて開放することができる。   Furthermore, the virtual disk having the same backup period is continuously selected until the necessary amount of storage area of the magnetic disk drive is released, so that the storage area of the magnetic disk drive can be released collectively. it can.

また、磁気ディスクドライブの仮想媒体を磁気テープドライブを介して磁気テープに記憶させる際に、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択するようにしているので、磁気テープに対して仮想媒体を連続的に記憶させることができ、2次記憶用に必要とされる磁気テープの本数を抑制することが可能となる。   In addition, when storing a virtual medium of a magnetic disk drive on a magnetic tape via a magnetic tape drive, the magnetic tape in use is preferentially selected, and a new magnetic tape is used only when there is no magnetic tape in use. Thus, the virtual medium can be continuously stored on the magnetic tape, and the number of magnetic tapes required for secondary storage can be suppressed.

特に、本発明の仮想磁気テープ装置では、其の制御手段に、上位装置から与えられたバックアップ周期をバックアップ周期記憶テーブルに設定するバックアップ周期設定機能を設けているので、仮想媒体毎のバックアップ周期をオペレータの判断により任意に設定することができる。   In particular, in the virtual magnetic tape device of the present invention, the control means is provided with a backup cycle setting function for setting the backup cycle given from the host device in the backup cycle storage table. It can be set arbitrarily according to the judgment of the operator.

更に、データの上書き実行日に基いてバックアップ周期を求めてバックアップ周期記憶テーブルに設定するバックアップ周期自動設定機能を設けているので、オペレータが意識して仮想媒体毎のバックアップ周期を入力する必要がなく、データのバックアップ作業を簡単に行なうことができる。   In addition, a backup cycle automatic setting function is provided to determine the backup cycle based on the data overwrite execution date and set it in the backup cycle storage table, so that the operator does not need to input the backup cycle for each virtual medium. Data backup can be easily performed.

ここで、本発明を適用した最良の形態の作用原理について図1を参照して簡単に説明する。   Here, the operation principle of the best mode to which the present invention is applied will be briefly described with reference to FIG.

図1の仮想磁気テープ装置1は、上位装置2のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブ3と、複数の磁気テープを選択的に使用して磁気ディスクドライブ3の仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブ5を有する。また、仮想磁気テープ装置1は、磁気ディスクドライブ3および磁気テープドライブ5を駆動制御し、磁気ディスクドライブ3の仮想媒体を磁気テープドライブ5を介して磁気テープに記憶させ、この仮想媒体の記憶されていた磁気ディスクドライブ3の記憶領域を開放する制御手段6を備える。   The virtual magnetic tape device 1 of FIG. 1 includes a magnetic disk drive 3 for primary storage that stores data of the host device 2 as a virtual medium, and a virtual medium of the magnetic disk drive 3 that selectively uses a plurality of magnetic tapes. Has a magnetic tape drive 5 for secondary storage. Further, the virtual magnetic tape device 1 drives and controls the magnetic disk drive 3 and the magnetic tape drive 5, stores the virtual medium of the magnetic disk drive 3 on the magnetic tape via the magnetic tape drive 5, and stores the virtual medium. Control means 6 for releasing the storage area of the magnetic disk drive 3 is provided.

制御手段6には、不揮発性メモリからなる仮想媒体ローテーション管理部7が併設され、この仮想媒体ローテーション管理部7に、バックアップ周期記憶テーブルとローテーション周期記憶テーブルとが設けられている。   The control means 6 is provided with a virtual medium rotation management unit 7 composed of a nonvolatile memory, and the virtual medium rotation management unit 7 is provided with a backup cycle storage table and a rotation cycle storage table.

バックアップ周期記憶テーブルは、上位装置2が磁気ディスクドライブ3の仮想媒体にデータを上書きするバックアップ周期を各仮想媒体毎に記憶し、また、ローテーション周期記憶テーブルは、各磁気テープ毎のローテーション周期と格納仮想媒体周期とを記憶する。   The backup cycle storage table stores, for each virtual medium, the backup cycle in which the host device 2 overwrites data on the virtual medium of the magnetic disk drive 3, and the rotation cycle storage table stores the rotation cycle for each magnetic tape. The virtual medium period is stored.

バックアップ周期記憶テーブルに対するバックアップ周期の設定は、上位装置2を利用してオペレータが入力したバックアップ周期を制御手段6の内部処理でバックアップ周期記憶テーブルに書き込むことによって行なうか、あるいは、上位装置2とは別の管理用システム8を利用して同様の入力操作を行なうことで達成する(バックアップ周期設定機能)。あるいは、制御手段6が磁気ディスクドライブ3の各仮想媒体に対する上書きの実行日を見張り、最新の上書き実行日と其の直前の上書き実行日との差分に基いて基本的なバックアップ周期を求め、このバックアップ周期をバックアップ周期記憶テーブルに書き込むようにする(バックアップ周期自動設定機能)。   The setting of the backup cycle for the backup cycle storage table is performed by writing the backup cycle input by the operator using the host device 2 into the backup cycle storage table by the internal processing of the control means 6, or with the host device 2 This is achieved by performing a similar input operation using another management system 8 (backup cycle setting function). Alternatively, the control means 6 looks at the execution date of overwriting on each virtual medium of the magnetic disk drive 3, and obtains a basic backup cycle based on the difference between the latest overwriting execution date and the immediately preceding overwriting execution date. Write the backup cycle to the backup cycle storage table (automatic backup cycle setting function).

上位装置2あるいは管理用システム8を利用してオペレータがバックアップ周期記憶テーブルに対するバックアップ周期の設定を明示的に行なう場合は、これと同等の手続きによってローテーション周期記憶テーブルに各磁気テープ毎のローテーション周期と、各磁気テープに格納する仮想媒体のバックアップ周期とを設定することができる。また、制御手段6が磁気ディスクドライブ3の各仮想媒体に対する上書きの実行日を見張り、最新の上書き実行日と其の直前の上書き実行日との差分に基いて基本的なバックアップ周期を求めてバックアップ周期記憶テーブルに書き込むのと同様に、ローテーション周期記憶テーブルに最新の記録日を格納し、磁気テープの上書き実行日と其の直前の記録日との差分に基づいて基本的なローテーション周期を設定することができる。この場合の様に、バックアップ周期が予め分かっていない場合には、仮想媒体を新規の磁気テープに記憶させる際に、その仮想媒体のバックアップ周期を磁気テープの格納仮想媒体周期とする。この基本的なローテーション周期を、上位装置2あるいは管理用システム8を利用して変更することにより、磁気テープに仮想媒体がそれ以上格納できない状態になる前に磁気テープをローテーションさせたり、また、異なるバックアップ周期の仮想媒体を格納する他の磁気テープのローテーション周期との差を計算し、差が少なくなるように磁気テープの対応付けを変更したりすることができる。   When the operator explicitly sets the backup cycle for the backup cycle storage table using the host device 2 or the management system 8, the rotation cycle for each magnetic tape is stored in the rotation cycle storage table by the same procedure. The backup cycle of the virtual medium stored on each magnetic tape can be set. Further, the control means 6 monitors the execution date of overwriting for each virtual medium of the magnetic disk drive 3, and obtains a basic backup cycle based on the difference between the latest overwriting execution date and the immediately preceding overwriting execution date. As with writing to the periodic storage table, the latest recording date is stored in the rotational period storage table, and the basic rotation period is set based on the difference between the overwrite date of the magnetic tape and the recording date immediately before it. be able to. As in this case, when the backup cycle is not known in advance, when the virtual medium is stored on a new magnetic tape, the backup cycle of the virtual medium is set as the storage virtual medium cycle of the magnetic tape. By changing this basic rotation cycle by using the host device 2 or the management system 8, the magnetic tape can be rotated before the virtual medium can no longer be stored on the magnetic tape, or different. It is possible to calculate a difference from the rotation period of another magnetic tape that stores the virtual medium of the backup period, and to change the correspondence of the magnetic tape so that the difference is reduced.

以上のような初期設定処理が完了した後、1次記憶用の磁気ディスクドライブ3の記憶領域に不足が生じたような場合には、磁気ディスクドライブ3の仮想媒体の幾つかを選択し、磁気テープドライブ5を介して磁気テープに記憶させ、この仮想媒体を記憶していた磁気ディスクドライブ3の記憶領域を開放し、当該記憶領域にデータの上書きを可能な状態とする。   If the storage area of the primary storage magnetic disk drive 3 is insufficient after the above initial setting process is completed, some of the virtual media of the magnetic disk drive 3 are selected and the magnetic The data is stored on the magnetic tape via the tape drive 5, the storage area of the magnetic disk drive 3 storing the virtual medium is released, and data can be overwritten in the storage area.

磁気テープに記憶させる仮想媒体の選択基準は、仮想媒体の記憶履歴の新旧あるいは仮想媒体に記憶されたデータの重要性の優先順位等に基く(仮想媒体自動選択機能)。この際、同一のバックアップ周期を有する仮想媒体を纏めて選択するようにしてもよい(仮想媒体連続選択機能)。仮想媒体の記憶履歴の新旧は、磁気ディスクドライブ3の仮想媒体に対してデータの上書きが行なわれた際に、データの上書き実行日を制御手段6がバックアップ周期記憶テーブルの特定のフィールドに書き込むことで、その後、制御手段6によって認識され得る状態となる。   The selection criteria of the virtual medium to be stored on the magnetic tape are based on the new or old of the storage history of the virtual medium or the priority of the importance of the data stored in the virtual medium (virtual medium automatic selection function). At this time, virtual media having the same backup cycle may be selected together (virtual media continuous selection function). According to the new or old storage history of the virtual medium, when data is overwritten on the virtual medium of the magnetic disk drive 3, the control means 6 writes the data overwriting execution date in a specific field of the backup cycle storage table. Then, the control unit 6 can recognize the state.

磁気ディスクドライブ3の仮想媒体を磁気テープドライブ5を介して磁気テープに記憶させる際には、制御手段6が仮想媒体ローテーション管理部7のバックアップ周期記憶テーブルおよびローテーション周期記憶テーブルを参照し、当該仮想媒体のバックアップ周期に対応する磁気テープを選択して当該仮想媒体のデータを記憶させることで(磁気テープ選択機能)、個々の磁気テープにバックアップ周期の近似する仮想媒体のみが記憶されるようにする。   When the virtual medium of the magnetic disk drive 3 is stored on the magnetic tape via the magnetic tape drive 5, the control means 6 refers to the backup cycle storage table and the rotation cycle storage table of the virtual medium rotation management unit 7, and By selecting the magnetic tape corresponding to the backup period of the medium and storing the data of the virtual medium (magnetic tape selection function), only the virtual medium whose backup period approximates is stored on each magnetic tape. .

また、当該仮想媒体のバックアップ周期に対応する磁気テープが幾つか存在する場合には、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択することで(磁気テープ選択順位決定機能)、磁気テープ上に仮想媒体が連続的に記憶されるようにし、2次記憶用に必要とされる磁気テープの本数を抑制する。   In addition, if there are several magnetic tapes corresponding to the backup cycle of the virtual medium, the magnetic tape in use is preferentially selected, and a new magnetic tape is inserted only when there is no magnetic tape in use. By selecting (magnetic tape selection order determining function), virtual media are continuously stored on the magnetic tape, and the number of magnetic tapes required for secondary storage is suppressed.

このように、個々の磁気テープにバックアップ周期の近似する仮想媒体のみを記憶させることで、磁気テープに記憶された全てのデータが上書きされることによって磁気テープの再利用が可能となるまでの期間を短縮し、相対的に長いバックアップ周期を有する仮想媒体が不要となるまで磁気テープの再利用が不能となるといった制限を解消し、磁気テープに対する上書きを円滑に行なえるようにして磁気テープの再利用効率を向上させる。
同時に、バックアップ周期に応じて複数の磁気テープ間で仮想媒体の再配置処理が必要となるといった不都合を解消し、磁気テープドライブ5と磁気ディスクドライブ3との間での冗長なデータの遣り取りをなくして仮想磁気テープ装置1の内部処理に関わる負荷を軽減し、併せて、磁気テープに対する読み書き回数も低減させて磁気テープの磨耗等を防止することで磁気テープの実質的な耐久性の向上を図る。
As described above, by storing only virtual media whose backup cycle approximates to each magnetic tape, the period until all the data stored on the magnetic tape is overwritten and the magnetic tape can be reused. This eliminates the restriction that the magnetic tape cannot be reused until a virtual medium having a relatively long backup cycle is no longer needed, and allows the magnetic tape to be overwritten smoothly. Improve usage efficiency.
At the same time, it eliminates the inconvenience that a virtual medium rearrangement process is required between a plurality of magnetic tapes according to the backup cycle, and eliminates redundant data exchange between the magnetic tape drive 5 and the magnetic disk drive 3. This reduces the load on the internal processing of the virtual magnetic tape device 1 and also reduces the number of times of reading and writing to the magnetic tape to prevent the magnetic tape from being worn, thereby improving the substantial durability of the magnetic tape. .

次に、具体的な実施例の幾つかについて図面を参照して詳細に説明する。   Next, some specific embodiments will be described in detail with reference to the drawings.

図1は、本発明のデータバックアップ方法を適用した一実施例の仮想磁気テープ装置1と上位装置2および管理用システム8との接続関係、および、システムの主要部を構成する仮想磁気テープ装置1の内部構造について示した機能ブロック図である。   FIG. 1 shows a connection relationship between a virtual magnetic tape device 1 of an embodiment to which a data backup method of the present invention is applied, a host device 2 and a management system 8, and a virtual magnetic tape device 1 constituting the main part of the system. It is the functional block diagram shown about the internal structure of.

仮想磁気テープ装置1は、上位装置2のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブ3と、複数の磁気テープを選択的に使用して磁気ディスクドライブ3の仮想媒体を何れかの磁気テープに記憶させる2次記憶用の磁気テープドライブ5を有する。ここでいう上位装置とは、例えば、ワークステーションやパーソナルコンピュータ等のコンピュータシステムである。   The virtual magnetic tape device 1 is either a magnetic disk drive 3 for primary storage that stores data of the host device 2 as a virtual medium, or a virtual medium of the magnetic disk drive 3 selectively using a plurality of magnetic tapes. A magnetic tape drive 5 for secondary storage to be stored on the magnetic tape. The host device here is, for example, a computer system such as a workstation or a personal computer.

2次記憶用の磁気テープドライブ5としては、例えば、図2に示されるように、磁気テープリード&ライタ9と、複数の磁気テープを格納するテープ収容棚10、および、磁気テープリード&ライタ9とテープ収容棚10との間で磁気テープの遣り取りを行なうアクセッサ11とで構成される磁気テープライブラリ装置等を利用することができる。   As the magnetic tape drive 5 for secondary storage, for example, as shown in FIG. 2, a magnetic tape read & writer 9, a tape storage shelf 10 for storing a plurality of magnetic tapes, and a magnetic tape read & writer 9 For example, a magnetic tape library device including an accessor 11 for exchanging magnetic tape between the tape storage rack 10 and the tape storage shelf 10 can be used.

2次記憶用の磁気テープドライブ5の主要部を構成する磁気テープリード&ライタ9とアクセッサ11、および、1次記憶用の磁気ディスクドライブ3の構成については既に公知であり、これらの要素は、仮想磁気テープ装置1の制御手段6によって駆動制御されるようになっている。   The configuration of the magnetic tape read & writer 9 and the accessor 11 constituting the main part of the magnetic tape drive 5 for secondary storage and the configuration of the magnetic disk drive 3 for primary storage are already known. The drive is controlled by the control means 6 of the virtual magnetic tape device 1.

制御手段6の主要部は、図2に示される通り、演算手段としてのCPU12と該CPU12の駆動制御プログラムを格納したROM13、および、データの一時記憶等に利用されるRAM14と、仮想媒体ローテーション管理部7として機能する不揮発性メモリ、更には、上位装置2や管理用システム8との間で情報伝達を行なうためのインターフェイス15によって構成され、前述の磁気ディスクドライブ3,磁気テープリード&ライタ9,アクセッサ11は入出力回路16を介してCPU12からの指令で駆動制御されるようになっている。   As shown in FIG. 2, the main part of the control unit 6 includes a CPU 12 as a calculation unit, a ROM 13 storing a drive control program for the CPU 12, a RAM 14 used for temporary storage of data, and a virtual medium rotation management. The non-volatile memory functioning as the unit 7 and the interface 15 for transmitting information to and from the host device 2 and the management system 8 include the above-described magnetic disk drive 3, magnetic tape read & writer 9, The accessor 11 is driven and controlled by a command from the CPU 12 via the input / output circuit 16.

図3は不揮発性メモリからなる仮想媒体ローテーション管理部7に設けられたバックアップ周期記憶テーブルの一例を示した概念図、また、図4はローテーション周期記憶テーブルの一例を示した概念図である。
この実施例では、バックアップ周期記憶テーブルに対するバックアップ周期の設定およびローテーション周期記憶テーブルに対するローテーション周期の設定は、上位装置2または管理用システム8を利用してオペレータがテンキー操作を行ない、制御手段6の主要部を構成するCPU12がこれらの数値をテーブルに設定することで達成している(バックアップ周期設定機能)。
FIG. 3 is a conceptual diagram illustrating an example of a backup cycle storage table provided in the virtual medium rotation management unit 7 including a nonvolatile memory, and FIG. 4 is a conceptual diagram illustrating an example of a rotation cycle storage table.
In this embodiment, the setting of the backup cycle for the backup cycle storage table and the setting of the rotation cycle for the rotation cycle storage table are performed by the operator using the host device 2 or the management system 8 and the numeric keypad operation. This is achieved by the CPU 12 constituting the unit setting these numerical values in a table (backup cycle setting function).

また、図3に示されるように、バックアップ周期記憶テーブルに付与された更新履歴記憶フィールドには、上位装置2から当該仮想媒体に対して行なわれた最新のバックアップ実行日がCPU12の内部処理によって記憶履歴として逐次更新して記憶されるようになっている。
更に、図4に示されるように、ローテーション周期記憶テーブルに付与されたステイタス記憶フィールドには、磁気ディスクドライブ3から磁気テープに対して最初のバックアップ処理が行なわれた段階で、CPU12の内部処理により、この磁気テープに対応するフィールドに使用中を示すフラグがセットされるようになっている。バックアップデータを記憶していない磁気テープに対応するステイタス記憶フィールドには使用可能を示すフラグがセットされており、磁気テープの全長に亘ってデータが記憶された場合、使用済のフラグがセットされる。また、磁気テープに格納されている全ての仮想媒体が上位装置2から上書きされる事により無効なデータとなった場合には、磁気テープは再使用可能となり、使用可能を示すフラグが再設定されるようになっている。
Further, as shown in FIG. 3, in the update history storage field given to the backup cycle storage table, the latest backup execution date performed on the virtual medium from the host device 2 is stored by the internal processing of the CPU 12. It is updated and stored as a history.
Further, as shown in FIG. 4, the status storage field assigned to the rotation cycle storage table is stored by the internal processing of the CPU 12 when the first backup processing is performed from the magnetic disk drive 3 to the magnetic tape. The flag indicating that the magnetic tape is in use is set in the field corresponding to the magnetic tape. In the status storage field corresponding to the magnetic tape that does not store the backup data, a flag indicating that it can be used is set. When data is stored over the entire length of the magnetic tape, the used flag is set. . If all the virtual media stored on the magnetic tape become invalid data by being overwritten from the host device 2, the magnetic tape can be reused and the flag indicating that it can be used is reset. It has become so.

上位装置2から磁気ディスクドライブ3へ仮想媒体のバックアップを行なう際の手続きの一例を図5に示す。   An example of a procedure for backing up a virtual medium from the host device 2 to the magnetic disk drive 3 is shown in FIG.

この例では、バックアップの対象となるデータに関する全体のバックアップを日曜日に行い、月曜日から土曜日の間の各曜日は、日曜日のデータからの変更分のみを保存する差分バックアップを行うようにしている。バックアップには全部で10本の仮想媒体を用い、月曜日から土曜日までの1週間は各曜日毎の差分バックアップを残し、1週間毎に更新される全体のバックアップは3週間前の分まで残すようにするため、仮想媒体(1)〜仮想媒体(6)の6本の仮想媒体を差分バックアップ用に、また、仮想媒体(7)〜仮想媒体(10)の4本の仮想媒体を全体バックアップ用に使っている。   In this example, the entire backup relating to the data to be backed up is performed on Sunday, and on each day of the week from Monday to Saturday, a differential backup is performed in which only changes from the data on Sunday are stored. Use a total of 10 virtual media for backup, leave differential backups for each day of the week from Monday to Saturday, and leave all backups updated every week up to the previous 3 weeks Therefore, the six virtual media from the virtual medium (1) to the virtual medium (6) are used for differential backup, and the four virtual media from the virtual medium (7) to the virtual medium (10) are used for overall backup. using.

従って、例えば、仮想媒体(1)には日曜日のデータと月曜日の最終データとの間の変更分が差分バックアップとして1週間周期で記憶され、また、仮想媒体(2)には日曜日のデータと火曜日の最終データとの間の変更分が差分バックアップとして1週間周期で記憶されることになる。以下、同様にして、仮想媒体(3)〜仮想媒体(6)の各々には、夫々、日曜日のデータと水曜日の最終データとの間の変更分,日曜日のデータと木曜日の最終データとの間の変更分,日曜日のデータと金曜日の最終データとの間の変更分,日曜日のデータと土曜日の最終データとの間の変更分が、差分バックアップとして各仮想媒体毎に1週間周期で記憶される。   Therefore, for example, the change between the Sunday data and the last data on Monday is stored in the virtual medium (1) as a differential backup in a one-week cycle, and the Sunday data and Tuesday are stored in the virtual medium (2). The change from the last data is stored as a differential backup in a cycle of one week. Similarly, each of the virtual medium (3) to the virtual medium (6) includes a change between the Sunday data and the last data on Wednesday, and the data between the Sunday data and the last data on Thursday. Changes, changes between Sunday data and last data on Friday, changes between Sunday data and last data on Saturday are stored as differential backups for each virtual medium in a one-week cycle. .

また、仮想媒体(7)〜仮想媒体(10)の4本の仮想媒体の各々には、日曜日毎の全体のバックアップが4週間周期(1ヶ月周期)で記憶され、仮想媒体(7)〜仮想媒体(10)の4本の仮想媒体を合わせれば、日曜日毎に更新される全体のバックアップが、現在の週を合わせて全体で4週間分(1ヶ月)だけ記憶されることになる。   In addition, in each of the four virtual media of the virtual medium (7) to the virtual medium (10), the entire backup every Sunday is stored in a cycle of four weeks (one month cycle), and the virtual media (7) to virtual By combining the four virtual media of the medium (10), the entire backup updated every Sunday is stored for a total of four weeks (one month) including the current week.

次に、制御手段6のCPU12が実行する処理の概略を示した図6〜図8のフローチャートを参照して本実施例の仮想磁気テープ装置1の全体的な動作、および、仮想媒体自動選択機能実現手段,仮想媒体連続選択機能実現手段,磁気テープ選択機能実現手段,磁気テープ選択順位決定機能実現手段として機能するCPU12の処理動作について具体的に説明する。   Next, the overall operation of the virtual magnetic tape device 1 of this embodiment and the virtual medium automatic selection function with reference to the flowcharts of FIGS. 6 to 8 showing the outline of the processing executed by the CPU 12 of the control means 6 The processing operation of the CPU 12 functioning as the realization means, the virtual medium continuous selection function realization means, the magnetic tape selection function realization means, and the magnetic tape selection order determination function realization means will be specifically described.

図6は磁気ディスクドライブ3の仮想媒体を磁気テープに記憶させてから当該仮想媒体の記憶されていた磁気ディスクドライブ3の記憶領域を開放して再利用できるようにするために制御手段6の主要部を構成するCPU12が実行する2次バックアップ処理の全体的な流れについて示したフローチャート、図7は特に仮想媒体自動選択機能および仮想媒体連続選択機能を実現するCPU12の仮想媒体選択処理について示したフローチャート、また、図8は特に磁気テープ選択機能および磁気テープ選択順位決定機能を実現するCPU12の媒体割り当て処理について示したフローチャートである。   FIG. 6 shows the main part of the control means 6 for storing the virtual medium of the magnetic disk drive 3 on the magnetic tape and then releasing the storage area of the magnetic disk drive 3 in which the virtual medium is stored so that it can be reused. 7 is a flowchart showing an overall flow of secondary backup processing executed by the CPU 12 constituting the unit, and FIG. FIG. 8 is a flowchart showing the medium allocation process of the CPU 12 that realizes the magnetic tape selection function and the magnetic tape selection order determination function.

図6の2次バックアップ処理は、磁気ディスクドライブ3の記憶容量の未使用分が不足気味となった場合にオペレータからの指示に基いて起動されるか、あるいは、磁気ディスクドライブ3の記憶容量の未使用分を見張るCPU12の内部処理によって自動的に起動されるようになっている。   The secondary backup process of FIG. 6 is started based on an instruction from the operator when the unused capacity of the magnetic disk drive 3 becomes insufficient, or the storage capacity of the magnetic disk drive 3 It is automatically activated by the internal processing of the CPU 12 that keeps an eye on the unused portion.

図6の2次バックアップ処理を開始したCPU12は、まず、2次バックアップの対象とする磁気ディスクドライブ3内の仮想媒体の選択に関わる仮想媒体選択処理(ステップS101)を実行する。   The CPU 12 that has started the secondary backup process of FIG. 6 first executes a virtual medium selection process (step S101) related to selection of a virtual medium in the magnetic disk drive 3 to be subjected to secondary backup.

ここでは、一例として、磁気ディスクドライブ3の記憶領域が必要量まで開放されるように、古い記憶履歴を有する仮想媒体を選択した後、当該仮想媒体と同一のバックアップ周期を有する幾つかの仮想媒体を纏めて選択して2次バックアップの対象とする場合の処理について、図7の仮想媒体選択処理(サブルーチン)を参照して説明する。   Here, as an example, after selecting a virtual medium having an old storage history so that the storage area of the magnetic disk drive 3 is released to a necessary amount, several virtual media having the same backup cycle as the virtual medium are selected. A process for selecting all of them as a target of secondary backup will be described with reference to a virtual medium selection process (subroutine) in FIG.

仮想媒体自動選択機能実現手段として機能するCPU12は、図7の仮想媒体選択処理を開始した後、まず、図3に示されるバックアップ周期記憶テーブルにおける更新履歴のフィールドを検索し、バックアップ実行日が最も古い仮想媒体を1つ2次バックアップの対象として選択すると共に、当該仮想媒体に対応するバックアップ周期をバックアップ周期記憶テーブルにより特定して一時記憶する(ステップS201)。   After starting the virtual medium selection processing of FIG. 7, the CPU 12 functioning as the virtual medium automatic selection function implementing means first searches the update history field in the backup cycle storage table shown in FIG. One old virtual medium is selected as a target for secondary backup, and the backup period corresponding to the virtual medium is specified by the backup period storage table and temporarily stored (step S201).

そして、CPU12は、当該仮想媒体が占めるディスク容量を計算し、この仮想媒体が占める記憶領域を開放することによって磁気ディスクドライブ3の記憶容量の未使用分が必要量にまで回復され得るか否かを判定する(ステップS202)。   Then, the CPU 12 calculates the disk capacity occupied by the virtual medium, and determines whether or not the unused capacity of the magnetic disk drive 3 can be recovered to the required amount by releasing the storage area occupied by the virtual medium. Is determined (step S202).

ここで、この仮想媒体が占める記憶領域のみを開放しても磁気ディスクドライブ3の記憶容量の未使用分が必要量にまで回復され得ないと判定された場合には、仮想媒体連続選択機能実現手段として機能するCPU12が、更に、図3に示されるバックアップ周期記憶テーブルにおけるバックアップ周期のフィールドを検索し、ステップS201の処理で特定されたバックアップ周期と同じバックアップ周期を有する仮想媒体が磁気ディスクドライブ3中に存在するか否かを判定する(ステップS203)。そして、ステップS201の処理で特定されたバックアップ周期を有する仮想媒体が磁気ディスクドライブ3中に存在する場合には、この仮想媒体を2次バックアップの対象として追加的に選択する(ステップS204)。   If it is determined that the unused storage capacity of the magnetic disk drive 3 cannot be recovered to the required amount even if only the storage area occupied by the virtual medium is released, the virtual medium continuous selection function is realized. The CPU 12 functioning as a means further searches the backup cycle field in the backup cycle storage table shown in FIG. 3, and a virtual medium having the same backup cycle as the backup cycle specified in the process of step S201 is the magnetic disk drive 3 It is determined whether or not it exists inside (step S203). When a virtual medium having the backup cycle specified in the process of step S201 exists in the magnetic disk drive 3, this virtual medium is additionally selected as a secondary backup target (step S204).

次いで、仮想媒体連続選択機能実現手段として機能するCPU12は、再びステップS202の判定処理に復帰し、これまでに選択された幾つかの仮想媒体が占める全ての記憶領域を開放することによって磁気ディスクドライブ3の記憶容量の未使用分が必要量にまで回復され得るか否かを判定するが(ステップS202)、これらの仮想媒体が占める全ての記憶領域を開放しても磁気ディスクドライブ3の記憶容量の未使用分が必要量にまで回復され得ないと判定された場合には、前記と同様にしてステップS203,S204,S202の処理を繰り返し実行し、磁気ディスクドライブ3の記憶容量の未使用分を必要量にまで回復させるに足るだけの仮想媒体を次々と追加的に選択し、ステップS202の判定結果が真となった段階で、この仮想媒体選択処理を終了する。ここで選択される仮想媒体のバックアップ周期は全て同一である。   Next, the CPU 12 functioning as the virtual medium continuous selection function realizing unit returns to the determination process in step S202 again, and releases all storage areas occupied by some of the virtual media selected so far, thereby causing the magnetic disk drive. It is determined whether or not the unused portion of the storage capacity of 3 can be recovered to the required amount (step S202), but even if all the storage areas occupied by these virtual media are released, the storage capacity of the magnetic disk drive 3 When it is determined that the unused portion cannot be recovered to the required amount, the processes of steps S203, S204, and S202 are repeatedly performed in the same manner as described above, and the unused portion of the storage capacity of the magnetic disk drive 3 is executed. Are selected one after another to restore the necessary amount to the required amount, and when the determination result in step S202 becomes true, It terminates the virtual media selection process. The virtual media backup cycles selected here are all the same.

一方、このような処理を繰り返し実行する間にステップS203の判定結果が偽となった場合には、ステップS201の処理で特定されたバックアップ周期を有する全ての仮想媒体を2次バックアップの対象として選択して記憶領域を開放しても磁気ディスクドライブ3の記憶容量の未使用分を必要量にまで回復させられないが、同一バックアップ周期の仮想媒体が磁気ディスクドライブ3にそれ以上存在しないことを意味する。従って、この場合は、ステップS201の処理で特定されたバックアップ周期を有する全ての仮想媒体を2次バックアップの対象として選択した段階、つまり、ステップS203の判定結果が偽となった段階で仮想媒体選択処理を終了することになる。   On the other hand, if the determination result in step S203 becomes false while repeatedly executing such processing, all virtual media having the backup cycle specified in step S201 are selected as secondary backup targets. Even if the storage area is released, the unused storage capacity of the magnetic disk drive 3 cannot be recovered to the required amount, but there is no more virtual media in the same backup cycle in the magnetic disk drive 3. To do. Therefore, in this case, the virtual medium selection is performed when all virtual media having the backup period specified in the process of step S201 have been selected as secondary backup targets, that is, when the determination result of step S203 is false. Processing will be terminated.

磁気ディスクドライブ3の記憶容量の未使用分を必要量にまで回復させる必要があれば、全ての処理を完了させた段階で改めて図6の2次バックアップ処理を再実行させればよい。   If it is necessary to recover the unused amount of the storage capacity of the magnetic disk drive 3 to the required amount, the secondary backup process of FIG. 6 may be re-executed once all the processes are completed.

全ての処理を完了させ、前述の処理により2次バックアップの対象として選択された仮想媒体が占めていた記憶領域を全て開放した後で改めて2次バックアップ処理を実行すれば、前述のステップS201の処理で特定された記憶履歴に比べて僅かに新しい記憶履歴を有する仮想媒体が前記と同様の処理手順で2次バックアップの対象として選択されることになるので、必要に応じて図6の2次バックアップ処理を繰り返すことにより、最終的には、磁気ディスクドライブ3の記憶容量の未使用分を必要量にまで回復させることが可能である。   If all the processes are completed and the secondary backup process is executed again after the storage area occupied by the virtual medium selected as the secondary backup target by the above process is released, the process of step S201 described above is performed. Since a virtual medium having a storage history slightly newer than the storage history specified in (2) is selected as a secondary backup target in the same processing procedure as described above, the secondary backup in FIG. By repeating the processing, it is possible to finally recover the unused portion of the storage capacity of the magnetic disk drive 3 to the required amount.

ここでは、一例として、古い記憶履歴を有する仮想媒体を2次バックアップの対象として選択するようにした場合の処理について述べたが、この他にも、仮想媒体毎に優先順位を設定して優先順位の低いものから順に2次バックアップの対象として選択するといった方法や、無作為に仮想媒体を選択して2次バックアップの対象として選択するといった方法も可能である。   Here, as an example, the processing in the case where a virtual medium having an old storage history is selected as the target of secondary backup has been described, but in addition to this, priority is set by setting priority for each virtual medium. It is also possible to select a secondary backup target in descending order, or to select a virtual medium at random and select a secondary backup target.

優先順位の低いものから順に2次バックアップの対象として選択する場合には、バックアップ周期記憶テーブルの更新履歴のフィールドに前述の記憶履歴に代えて優先順位を表す値を設定し、仮想媒体の選択に関わるステップS201の処理を優先順位の低さに基いて行なうようにすればよい。この場合も、ステップS203,S204の処理は前記と同様にステップS201で特定された仮想媒体のバックアップ周期に基いて行なうようにする(優先順位が同じものを追加選択するわけではなく、バックアップ周期の等しいものを追加選択する)。   When selecting secondary backup targets in descending order of priority, a value representing the priority is set in the update history field of the backup cycle storage table in place of the storage history described above to select a virtual medium. What is necessary is just to make it perform the process of step S201 concerned based on the low priority. In this case as well, the processing in steps S203 and S204 is performed based on the backup cycle of the virtual medium specified in step S201 in the same manner as described above. Select additional equals).

また、無作為に仮想媒体を選択する場合には、ステップS201に代わる乱数発生処理および整数化処理によってバックアップ周期記憶テーブルのレコードを無作為に特定して仮想媒体の最初の1つを選択した後、前記と同様に、ステップS203,S204の処理でバックアップ周期の同一性に基いて仮想媒体の追加選択を行なえばよい(仮想媒体の選択基準は飽くまでもステップS201の処理で最初に特定されたバックアップ周期である)。   In addition, when selecting a virtual medium at random, after selecting the first one of the virtual medium by randomly specifying a record in the backup cycle storage table by random number generation processing and integer processing instead of step S201 In the same manner as described above, the virtual media may be additionally selected based on the identity of the backup cycle in the processing of steps S203 and S204 (the backup cycle specified first in the processing of step S201 until the selection criterion of the virtual media gets tired). Is).

以上のようにして仮想媒体選択処理が終了すると、CPU12は、選択した仮想媒体の記憶先となる磁気テープの選択に関わる媒体割り当て処理(ステップS102)を実行する。   When the virtual medium selection process is completed as described above, the CPU 12 executes a medium allocation process (step S102) related to selection of a magnetic tape as a storage destination of the selected virtual medium.

ここで、具体的な媒体割り当て処理の内容について、図8の媒体割り当て処理(サブルーチン)を参照して説明する。   Here, the specific contents of the medium allocation process will be described with reference to the medium allocation process (subroutine) in FIG.

磁気テープ選択順位決定機能実現手段として機能するCPU12は、図8の媒体割り当て処理を開始した後、まず、図4に示されるローテーション周期記憶テーブルを検索し、仮想媒体選択処理におけるステップS201の処理で特定されたバックアップ周期と同じ格納仮想媒体周期を有する磁気テープのなかに、使用中を示すフラグがセットされた磁気テープが存在するか否かを判定し(ステップS301)、使用中の磁気テープが存在すれば、磁気テープ選択機能実現手段として機能するCPU12が、同じローテーション周期を有する磁気テープの中からステップS301の処理で最初に検索された磁気テープを仮想媒体の記憶先として選択する(ステップS302)。   After starting the medium allocation process of FIG. 8, the CPU 12 functioning as the magnetic tape selection order determining function realizing unit first searches the rotation cycle storage table shown in FIG. 4 and performs the process of step S201 in the virtual medium selection process. In the magnetic tape having the same storage virtual medium period as the specified backup period, it is determined whether or not there is a magnetic tape in which a flag indicating in-use is set (step S301). If it exists, the CPU 12 functioning as the magnetic tape selection function realization means selects the magnetic tape first searched in the process of step S301 from among the magnetic tapes having the same rotation cycle as the storage destination of the virtual medium (step S302). ).

また、使用中の磁気テープが存在しない場合には、磁気テープ選択順位決定機能実現手段として機能するCPU12は、使用可能を示すフラグがセットされている磁気テープを1本選択し、この磁気テープに対応するローテーション周期記憶テーブルのステイタス記憶フィールドに使用中を示すフラグをセットすると共に、仮想媒体選択処理におけるステップS201の処理で特定されたバックアップ周期に倣って当該磁気テープの格納仮想媒体周期を定義し、この格納仮想媒体周期を当該磁気テープに対応するローテーション周期記憶テーブルの格納仮想媒体周期のフィールドに設定した後(ステップS303)、磁気テープ選択機能実現手段として機能するCPU12が、この磁気テープを仮想媒体の記憶先として選択する(ステップS304)。   When there is no magnetic tape in use, the CPU 12 functioning as the magnetic tape selection order determining function realization means selects one magnetic tape on which a flag indicating use is set, and the magnetic tape is selected as the magnetic tape. A flag indicating in-use is set in the status storage field of the corresponding rotation cycle storage table, and the storage virtual medium cycle of the magnetic tape is defined following the backup cycle specified in step S201 in the virtual medium selection process. After the storage virtual medium period is set in the storage virtual medium period field of the rotation period storage table corresponding to the magnetic tape (step S303), the CPU 12 functioning as the magnetic tape selection function realizing unit virtually stores the magnetic tape. Select as the storage destination of the medium (step S 04).

以上のようにして媒体割り当て処理が終了すると、制御手段6の主要部を構成するCPU12は、アクセッサ11を駆動制御し、媒体割り当て処理におけるステップS302もしくはステップS304の処理で選択された磁気テープを磁気テープリード&ライタ9にマウントし、更に、磁気テープリード&ライタ9を駆動して、仮想媒体の記憶を開始すべき位置つまり当該磁気テープ上の最終レコード位置まで磁気テープに送りを掛け(ステップS103)、仮想媒体選択処理におけるステップS201およびステップS204の処理で選択された仮想媒体を当該磁気テープに記憶させる2次バックアップを開始する(ステップS104)。   When the medium allocation process is completed as described above, the CPU 12 constituting the main part of the control means 6 controls the accessor 11 to magnetically select the magnetic tape selected in the process of step S302 or step S304 in the medium allocation process. The tape is mounted on the tape read & writer 9, and the magnetic tape read & writer 9 is further driven to feed the magnetic tape to the position where the storage of the virtual medium is to be started, that is, the final record position on the magnetic tape (step S103). ), The secondary backup for storing the virtual medium selected in the processes of step S201 and step S204 in the virtual medium selection process on the magnetic tape is started (step S104).

ステップS104における2次バックアップの実行中に、仮想媒体選択処理におけるステップS201およびステップS204の処理で選択された全ての仮想媒体が1本の磁気テープに記憶された場合、あるいは、現時点でマウントされている磁気テープの記憶領域に不足が生じて仮想媒体の継続記憶が不能となった場合には、制御手段6の主要部を構成するCPU12は、磁気テープリード&ライタ9およびアクセッサ11を駆動制御して当該磁気テープを巻き戻し、磁気テープリード&ライタ9からデマウントし、磁気テープの終わりまで書き込みを行った場合には当該磁気テープに対応するローテーション周期記憶テーブルのステイタス記憶フィールドに使用済を示すフラグをセットした後(ステップS105)、2次バックアップの完了した仮想媒体のみを磁気ディスクドライブ3の記憶領域から削除し、これらの仮想媒体を記憶していた記憶領域を開放して再使用可能な状態とする(ステップS106)。   During execution of the secondary backup in step S104, all the virtual media selected in the processing of step S201 and step S204 in the virtual media selection processing are stored on one magnetic tape, or mounted at the present time. When the storage area of the magnetic tape is insufficient and the continuous storage of the virtual medium becomes impossible, the CPU 12 constituting the main part of the control means 6 controls the drive of the magnetic tape read & writer 9 and the accessor 11. When the magnetic tape is rewound, demounted from the magnetic tape read & writer 9 and written to the end of the magnetic tape, a flag indicating used in the status storage field of the rotation cycle storage table corresponding to the magnetic tape Is set (step S105), the secondary backup Only virtual medium completion deleted from the storage area of the magnetic disk drive 3, and release these memory areas that has stored the virtual medium and reusable state (step S106).

次いで、CPU12は、2次バックアップの対象となっている仮想媒体の全てが磁気テープに記憶されたか否かを判定する(ステップS107)。   Next, the CPU 12 determines whether or not all of the virtual media subject to the secondary backup are stored on the magnetic tape (step S107).

ここで、2次バックアップの対象となっている全ての仮想媒体の記憶が完了していないと判定された場合、つまり、選択された磁気テープの記憶領域の不足のために2次バックアップが完了しなかった場合には、CPU12は、再びステップS102の処理に復帰して前記と同様の処理操作を繰り返し実行し、改めて別の磁気テープを選択して2次バックアップを継続して行ない、2次バックアップの対象となっている全ての仮想媒体を2本以上の磁気テープに跨って記憶させ、これらの仮想媒体を記憶していた磁気ディスクドライブ3の記憶領域を開放する(ステップS102〜S106)。   Here, if it is determined that the storage of all virtual media that are the targets of the secondary backup is not completed, that is, the secondary backup is completed due to a shortage of the storage area of the selected magnetic tape. If not, the CPU 12 returns to the process of step S102 again, repeatedly executes the same processing operation as described above, selects another magnetic tape again and continues the secondary backup, and performs the secondary backup. Are stored across two or more magnetic tapes, and the storage area of the magnetic disk drive 3 storing these virtual media is released (steps S102 to S106).

最終的に、2次バックアップの対象となっている全ての仮想媒体の記憶が完了したことがステップS107の判定処理で確認されると、CPU12は、更に、磁気ディスクドライブ3の記憶容量の未使用分が必要量にまで回復されているか否かを判定し(ステップS108)、この時点で記憶容量の未使用分が必要量にまで回復されていれば、2次バックアップに関わる全ての処理を完了する。   Finally, when it is confirmed in step S107 that the storage of all the virtual media that are the targets of the secondary backup is completed, the CPU 12 further determines that the storage capacity of the magnetic disk drive 3 is not used. It is determined whether or not the amount has been recovered to the required amount (step S108), and if the unused storage capacity has been recovered to the required amount at this time, all the processes related to the secondary backup are completed. To do.

しかし、前述したように、1回の仮想媒体選択処理で選択された全ての仮想媒体を2次バックアップの対象として選択して記憶領域を開放しても、磁気ディスクドライブ3の記憶容量の未使用分を必要量にまで回復させられない場合があり、このような場合では、ステップS108の判定結果が偽となる。   However, as described above, the storage capacity of the magnetic disk drive 3 is not used even if all the virtual media selected in one virtual media selection process are selected as secondary backup targets and the storage area is released. In some cases, the minute amount cannot be recovered to the required amount. In such a case, the determination result in step S108 is false.

この場合、CPU12はステップS101の処理まで復帰し、前記と同様の仮想媒体選択処理を繰り返し実行し、最初に実行された仮想媒体選択処理で選択された仮想媒体に比べて僅かに新しい記憶履歴を有する仮想媒体および当該仮想媒体と同じバックアップ周期を有する仮想媒体を2次バックアップの対象として改めて選択し、図6の2次バックアップ処理においてこれらの仮想媒体を磁気テープに記憶させ、磁気ディスクドライブ3の記憶領域を更に開放する。   In this case, the CPU 12 returns to the process of step S101, repeatedly executes the same virtual medium selection process as described above, and stores a slightly new storage history as compared with the virtual medium selected in the virtual medium selection process executed first. The virtual medium having the same backup cycle as that of the virtual medium is selected again as the target of the secondary backup, and these virtual media are stored on the magnetic tape in the secondary backup process of FIG. Further free up the storage area.

磁気ディスクドライブ3の記憶容量の未使用分が必要量に回復されるまでの間、これらの処理を繰り返し実行することで、最終的に、ステップS108の判定結果が真となって、2次バックアップに関わる全ての処理が完了する。   By repeatedly executing these processes until the unused amount of the storage capacity of the magnetic disk drive 3 is restored to the required amount, the determination result in step S108 is finally true and the secondary backup is performed. All processing related to is completed.

次に、1本の磁気テープに6本の仮想媒体が格納される場合を例にとって、本実施例を適用した場合の磁気テープの利用効率と従来技術を適用した場合の磁気テープの利用効率について比較する。   Next, taking as an example the case where six virtual media are stored on one magnetic tape, the utilization efficiency of the magnetic tape when this embodiment is applied and the utilization efficiency of the magnetic tape when the conventional technology is applied Compare.

図9は仮想媒体のバックアップ周期および磁気テープのローテーション周期に関わりなく、仮想媒体が上位装置2から磁気ディスクドライブ3に記憶された順に磁気ディスクドライブ3から磁気テープへの2次バックアップを行なった場合の磁気テープ上の記憶状況を示した概念図、また、図10は本実施例を適用してバックアップ周期が同じ仮想媒体を選択し、当該バックアップ周期に相当する格納仮想媒体周期を有する磁気テープを選んで2次バックアップを行なった場合の磁気テープ上の記憶状況を示した概念図である。但し、バックアップ手順に関しては図5を参照して説明した方法を適用している。   FIG. 9 shows a case where the secondary backup from the magnetic disk drive 3 to the magnetic tape is performed in the order in which the virtual medium is stored in the magnetic disk drive 3 from the host device 2 regardless of the backup period of the virtual medium and the rotation period of the magnetic tape. FIG. 10 is a conceptual diagram showing the storage status of the magnetic tape, and FIG. 10 shows a magnetic tape having a storage virtual medium period corresponding to the backup period selected by selecting a virtual medium having the same backup period by applying this embodiment. It is the conceptual diagram which showed the storage condition on the magnetic tape at the time of selecting and performing secondary backup. However, the method described with reference to FIG. 5 is applied to the backup procedure.

ここで、図9,図10において斜線が掛かっていない仮想媒体は、最初に上位装置2から仮想媒体(7)に書き込みが行われてから4週間後に、上書きせずに有効なデータとして残す必要のある仮想媒体である。   Here, virtual media that are not hatched in FIGS. 9 and 10 need to be left as valid data without being overwritten four weeks after the first writing from the host device 2 to the virtual medium (7). It is a virtual medium with

仮想媒体が書き込まれた順に磁気テープに書き込む従来の方法では、仮想媒体(7)は空き媒体である磁気テープ(1)に書き込みが行われる。続いて、磁気テープ(1)に格納できる限り仮想媒体を格納するため、仮想媒体(1)〜仮想媒体(5)も同じ磁気テープ(1)に書き込まれる。6本の仮想媒体を格納すると磁気テープ(1)にはそれ以上の仮想媒体が格納できなくなるため、仮想媒体(6)は磁気テープ(2)に書き込まれることになる。このように、書き込まれた順にデータを格納していくと、図9に示されるように、4週間後には磁気テープ(1)〜磁気テープ(5)の5本の磁気テープに有効な仮想媒体のデータが散らばる状態となってしまう。   In the conventional method of writing to the magnetic tape in the order in which the virtual medium is written, the virtual medium (7) is written to the magnetic tape (1), which is an empty medium. Subsequently, in order to store the virtual medium as much as possible on the magnetic tape (1), the virtual medium (1) to the virtual medium (5) are also written on the same magnetic tape (1). When six virtual media are stored, no more virtual media can be stored on the magnetic tape (1), so the virtual medium (6) is written on the magnetic tape (2). Thus, when data is stored in the order of writing, as shown in FIG. 9, a virtual medium effective for five magnetic tapes of magnetic tape (1) to magnetic tape (5) after four weeks, as shown in FIG. The data will be scattered.

一方、本実施例を適用した方法では、仮想媒体(7)は空き媒体である磁気テープ(1)に書き込みが行われる。続いて仮想媒体(1)〜仮想媒体(6)は仮想媒体(7)とはバックアップ周期が異なるため、空き媒体である磁気テープ(2)に書き込まれる。次に仮想媒体(8)の書き込みが行われる時には、仮想媒体(8)とバックアップ周期が同じ仮想媒体(7)が既に書き込まれている磁気テープ(1)に対して書き込みが行なわれることになる。このように、バックアップ周期が同じ仮想媒体を同一の磁気テープに格納していくと、図10に示されるように、有効な仮想媒体のデータがまとまっている状態となる。   On the other hand, in the method to which this embodiment is applied, the virtual medium (7) is written on the magnetic tape (1) which is a free medium. Subsequently, since the virtual medium (1) to the virtual medium (6) have a different backup cycle from the virtual medium (7), they are written on the magnetic tape (2), which is an empty medium. Next, when the virtual medium (8) is written, the writing is performed on the magnetic tape (1) in which the virtual medium (7) having the same backup cycle as the virtual medium (8) is already written. . As described above, when virtual media having the same backup cycle are stored on the same magnetic tape, as shown in FIG. 10, data of valid virtual media is collected.

以上に説明したように、バックアップ周期の同じ仮想媒体を同一の磁気テープに書き込むことにより有効な仮想媒体のデータを磁気テープ上にまとめることができる。   As described above, data of effective virtual media can be collected on the magnetic tape by writing the virtual media having the same backup cycle to the same magnetic tape.

次に、一本の磁気テープに格納できる仮想媒体の数が異なる場合について、本実施例を適用した場合の磁気テープの利用効率と従来技術を適用した場合の磁気テープの利用効率について比較する。   Next, when the number of virtual media that can be stored on one magnetic tape is different, the utilization efficiency of the magnetic tape when this embodiment is applied and the utilization efficiency of the magnetic tape when the conventional technology is applied are compared.

図11は1本の磁気テープに格納できる仮想媒体の数が2本〜11本と変化した時に使用する磁気テープの平均使用本数を表したグラフである。図11中の実線は従来技術を適用した場合の磁気テープの平均使用本数を表し、図11中の破線は本実施例を適用した場合の磁気テープの平均使用本数を表している。   FIG. 11 is a graph showing the average number of magnetic tapes used when the number of virtual media that can be stored on one magnetic tape changes from 2 to 11. The solid line in FIG. 11 represents the average number of magnetic tapes used when the prior art is applied, and the broken line in FIG. 11 represents the average number of magnetic tapes used when this embodiment is applied.

磁気テープの平均使用本数は、全ての仮想媒体が磁気テープに書き込まれた時点から、全ての仮想媒体が少なくとも100回磁気テープに書き込まれるまでをシミュレーションして平均を求めた。   The average number of magnetic tapes used was obtained by simulating from the time when all virtual media were written to the magnetic tape until all virtual media were written to the magnetic tape at least 100 times.

図11に示すように、本実施例を適用した場合では、同じ本数の仮想媒体を格納するのに使用する磁気テープを従来技術に比べて少なくすることができる。   As shown in FIG. 11, when this embodiment is applied, the number of magnetic tapes used to store the same number of virtual media can be reduced as compared with the prior art.

次に、仮想媒体のバックアップ周期を1週間,1ヶ月,1年の3種類にした場合の例について説明する。   Next, an example in which the virtual media backup cycle is set to three types of one week, one month, and one year will be described.

この条件を適用した場合のローテーション管理部7のバックアップ周期記憶テーブルの一例を図12に示す。4週間に1回の周期で仮想媒体(11)〜仮想媒体(22)を用いてバックアップを行うため、仮想媒体(11)〜仮想媒体(22)の夫々のバックアップ周期は1年(4週を1ヶ月として12ヶ月分)となり、また、7日に1回の周期で仮想媒体(7)〜仮想媒体(10)を用いてバックアップを行うため、仮想媒体(7)〜仮想媒体(10)の夫々のバックアップ周期は1ヶ月(7日を1周として4週間分)となる。仮想媒体(1)〜仮想媒体(6)は日曜日を除く毎日のバックアップに用いられるので、仮想媒体(1)〜仮想媒体(6)の夫々のバックアップ周期は1週間である。   An example of the backup cycle storage table of the rotation management unit 7 when this condition is applied is shown in FIG. Since backup is performed using the virtual medium (11) to the virtual medium (22) once every four weeks, the backup period of each of the virtual medium (11) to the virtual medium (22) is one year (four weeks). Since the backup is performed using the virtual medium (7) to the virtual medium (10) once every seven days, the virtual medium (7) to the virtual medium (10) Each backup cycle is one month (four weeks with seven days as one lap). Since the virtual medium (1) to the virtual medium (6) are used for daily backup except Sunday, the backup period of each of the virtual medium (1) to the virtual medium (6) is one week.

このようなバックアップ手順を採用した場合において、1本の磁気テープに格納できる仮想媒体の数が2本〜11本と変化した時に使用される磁気テープの平均使用本数をグラフに表したのが図13である。実線が従来技術を適用した場合の磁気テープの平均使用本数、また、破線は本実施例を適用した場合の磁気テープの平均使用本数である。   When such a backup procedure is adopted, the average number of magnetic tapes used when the number of virtual media that can be stored on one magnetic tape changes from 2 to 11 is shown in a graph. 13. The solid line indicates the average number of magnetic tapes used when the conventional technology is applied, and the broken line indicates the average number of magnetic tapes used when the present embodiment is applied.

図13に示される通り、本実施例によれば、特に、バックアップ周期が大きく異なる仮想媒体が混在する場合において、使用する磁気テープの本数を従来技術に比べて大幅に削減することができる。   As shown in FIG. 13, according to the present embodiment, the number of magnetic tapes to be used can be greatly reduced as compared with the prior art, particularly when virtual media having greatly different backup cycles are mixed.

次に、バックアップの種別によって管理した際に、仮想媒体の本数の増減によって使用する磁気テープの本数がどのように変化するかについて説明する。   Next, it will be described how the number of magnetic tapes to be used changes according to the increase / decrease in the number of virtual media when managed according to the type of backup.

図14に仮想媒体ローテーション管理部の内容を示す。7日に一回の周期で週バックアップを行い、その週バックアップには仮想媒体(7)〜仮想媒体(N)の〔N−6〕本の仮想媒体を用いる。週バックアップを行う日以外の日は、日バックアップを行い、その日バックアップには仮想媒体(1)〜仮想媒体(6)の6本の仮想媒体を用いる。
このバックアップ手順において、週バックアップに使用する仮想媒体の本数を4〜12本と変化させた時に使用される磁気テープの平均使用本数をグラフに表したのが図15である。
FIG. 14 shows the contents of the virtual medium rotation management unit. A weekly backup is performed at a cycle of once every seven days, and [N-6] virtual media from the virtual medium (7) to the virtual medium (N) are used for the weekly backup. On days other than the day of weekly backup, day backup is performed, and six virtual media of virtual medium (1) to virtual medium (6) are used for the day backup.
FIG. 15 is a graph showing the average number of magnetic tapes used when the number of virtual media used for weekly backup is changed from 4 to 12 in this backup procedure.

本実施例によれば、このように、バックアップ種別に対して割り当てる仮想媒体の本数の変化すなわちバックアップで管理を行う世代数の変化に大きく影響を受けることなく、使用する磁気テープの本数を少なくすることができる。   According to this embodiment, the number of magnetic tapes to be used is reduced without being greatly affected by the change in the number of virtual media allocated to the backup type, that is, the change in the number of generations managed by backup. be able to.

次に、データの上書き実行日に基いて仮想磁気テープ装置の制御手段が仮想媒体毎のバックアップ周期を求めて2次バックアップにおける仮想媒体の選択処理や磁気テープの割り当て処理を管理するようにした実施例について簡単に説明する。   Next, the control unit of the virtual magnetic tape device obtains the backup cycle for each virtual medium based on the data overwrite execution date, and manages the virtual medium selection process and magnetic tape allocation process in the secondary backup. An example will be briefly described.

仮想磁気テープ装置のハードウェア上の構成に関しては図1および図2に示した仮想磁気テープ装置1と同様であるので説明を省略し、以下の説明では、図1および図2に記載された符号を引用しながら本実施例に固有の処理動作について説明する。   Since the hardware configuration of the virtual magnetic tape device is the same as that of the virtual magnetic tape device 1 shown in FIGS. 1 and 2, the description thereof will be omitted. In the following description, the reference numerals shown in FIGS. The processing operation unique to the present embodiment will be described with reference to FIG.

この実施例の仮想媒体ローテーション管理部7に設けられたバックアップ周期記憶テーブルの構成は図16に示されるようなもので、仮想媒体毎のバックアップ周期に加え、各仮想媒体毎に上書き実行日の最新日付けが記憶されるようになっている。   The configuration of the backup cycle storage table provided in the virtual medium rotation management unit 7 of this embodiment is as shown in FIG. 16, and in addition to the backup cycle for each virtual medium, the latest overwrite execution date for each virtual medium. The date is memorized.

次に、制御手段6に内蔵されたCPU12が実行するバックアップ周期自動設定処理について図17のフローチャートを参照して説明する。   Next, backup cycle automatic setting processing executed by the CPU 12 incorporated in the control means 6 will be described with reference to the flowchart of FIG.

上位装置2から磁気ディスクドライブ3の仮想媒体に対して書き込み命令が送られると、CPU12は、まず、この仮想媒体に設定されたポインタを参照し、当該仮想媒体におけるデータの記憶開始位置が当該仮想媒体の記憶領域の先頭にあるか否かを判定する(ステップS401)。   When a write command is sent from the host device 2 to the virtual medium of the magnetic disk drive 3, the CPU 12 first refers to the pointer set in the virtual medium, and the data storage start position in the virtual medium is the virtual storage medium. It is determined whether it is at the head of the storage area of the medium (step S401).

このポインタは、上位装置2から仮想媒体の使用開始時(仮想媒体のマウント時)には仮想媒体における記憶領域の先頭に設定されており、また、仮想媒体に対するデータの書き込みが行なわれた場合には、データの書き込みが終わった時点で、今回書き込まれたデータの最後尾に設定されるようになっている。更に上位システムから巻き戻し命令を受けた際には、このポインタは、初期位置すなわち当該仮想媒体における記憶領域の先頭に戻される。   This pointer is set at the beginning of the storage area of the virtual medium when the host device 2 starts using the virtual medium (when the virtual medium is mounted), and when data is written to the virtual medium. Is set at the end of the data written this time when the data writing is completed. Further, when a rewind command is received from the host system, this pointer is returned to the initial position, that is, the head of the storage area in the virtual medium.

従って、ステップS401の判定結果が真となるのは、上位装置2から仮想媒体のマウント命令を受けてから最初の書き込み命令である場合や、巻き戻し命令等の仮想媒体の先頭への位置付け命令後の最初の書き込み命令となり、書き込まれたデータの後ろに追加的に書き込みを行う書き込み命令ではこの判定結果は偽となる。   Therefore, the determination result in step S401 becomes true when the command is the first write command after receiving the virtual medium mount command from the host device 2, or after the positioning command to the head of the virtual medium such as a rewind command. This determination result is false for a write command that additionally writes after the written data.

そこで、CPU12は、図16に示されるようなバックアップ周期記憶テーブルを参照し、書き込み先として指定された仮想媒体に対応するバックアップ周期記憶テーブルの記録日のフィールドに上書き実行日が既に記憶されているか否か、つまり、この仮想媒体が初めて使用されるのか其れとも2回目以降の上書きの対象として使用されるのかを判定する(ステップS402)。   Therefore, the CPU 12 refers to the backup cycle storage table as shown in FIG. 16, and has the overwrite execution date already stored in the recording date field of the backup cycle storage table corresponding to the virtual medium designated as the write destination? In other words, it is determined whether this virtual medium is used for the first time or whether it is used for the second or later overwriting (step S402).

ここで、記録日のフィールドに上書き実行日が記憶されておらず、ステップS402の判定結果が偽となった場合には、この仮想媒体が初めて使用されることを意味するので、CPU12は、仮想媒体に対応するバックアップ周期記憶テーブルの記録日のフィールドに現在の日付けを第1回目の上書き実行日として記憶させ(ステップS405)、今回のバックアップ周期自動設定処理を終了する。但し、ここでいう第1回目の上書き実行日とは、実際には、この仮想媒体が初めて使用された日付けである。このような場合、バックアップ周期の算出は論理的に不可能であるので、この仮想媒体に対応するバックアップ周期記憶テーブルのバックアップ周期のフィールドに予め別の方法で値が設定されていない限り、改めて仮想媒体の先頭位置にデータが上書きされるまでの間、この仮想媒体のバックアップ周期は不定となる。   Here, when the overwrite execution date is not stored in the recording date field and the determination result in step S402 is false, this means that the virtual medium is used for the first time, and therefore the CPU 12 determines that the virtual The current date is stored as the first overwrite execution date in the recording date field of the backup cycle storage table corresponding to the medium (step S405), and the current backup cycle automatic setting process is terminated. However, the first overwriting execution date here is actually the date when this virtual medium was used for the first time. In such a case, since it is logically impossible to calculate the backup cycle, the virtual cycle is newly reinstated unless a value is previously set in the backup cycle field of the backup cycle storage table corresponding to this virtual medium. Until the data is overwritten at the head position of the medium, the backup period of the virtual medium is indefinite.

一方、ステップS402の判定結果が真となった場合、つまり、この仮想媒体に対応するバックアップ周期記憶テーブルの記録日のフィールドに既に上書き実行日が記憶されている場合には、この仮想媒体の先頭位置から第2回目以降の上書きが行なわれようとしていることを意味するので、バックアップ周期自動設定機能実現手段として機能するCPU12は、バックアップ周期記憶テーブルの記録日のフィールドに記憶された上書き実行日と現在の日付けとの差分を求めて当該仮想媒体のバックアップ周期とし、この値をバックアップ周期記憶テーブルのバックアップ周期のフィールドに設定し(ステップS403)、この仮想媒体に対応するバックアップ周期記憶テーブルの記録日のフィールドに現在の日付けを新たな上書き実行日として記憶させ(ステップS404)、今回のバックアップ周期自動設定処理を終了する。   On the other hand, if the determination result in step S402 is true, that is, if the overwrite execution date is already stored in the recording date field of the backup cycle storage table corresponding to this virtual medium, the head of this virtual medium is stored. This means that the second and subsequent overwriting from the position is about to be performed. Therefore, the CPU 12 functioning as the backup cycle automatic setting function realizing means stores the overwrite execution date stored in the recording date field of the backup cycle storage table. The difference from the current date is obtained and used as the backup cycle of the virtual medium, and this value is set in the backup cycle field of the backup cycle storage table (step S403), and the backup cycle storage table corresponding to this virtual medium is recorded. The current date in the date field and the new overwrite date It is stored Te (step S404), and ends the current backup cycle automatic setting process.

次に、仮想媒体のバックアップ周期の算出方法の他の一例について簡単に説明する。仮想媒体のバックアップ周期がバックアップ周期記憶テーブルに既に記憶されている場合、つまり、第3回目以降の上書きを実行する際には、ステップS403におけるバックアップ周期の算出を、(バックアップ周期)=(現時点でバックアップ周期のフィールドに記憶されているバックアップ周期×A)+〔(現在の日付け−現時点で記録日のフィールドに記憶されている上書き実行日)×(1−A)〕、但し、0<A<1、の演算式に基いて実行するようにしてもよい。   Next, another example of a method for calculating the backup period of the virtual medium will be briefly described. When the backup cycle of the virtual medium is already stored in the backup cycle storage table, that is, when the third and subsequent overwrites are executed, the backup cycle is calculated in step S403 by (backup cycle) = (current time Backup cycle stored in the backup cycle field × A) + [(current date−overwrite execution date currently stored in the recording date field) × (1-A)], where 0 <A You may make it perform based on the arithmetic expression of <1.

ここで、Aは、新たなバックアップ周期の算出に際し、前々回の上書き実行日から前回の上書き実行日までの時間間隔と、前回の上書き実行日から今回の上書き実行日までの時間間隔の何れを優先させて求めるかを決めるための重み付けの変数であり、Aの値を小さく設定すれば、前回の上書き実行日から今回の上書き実行日までの時間間隔を強く反映させて新たなバックアップ周期を求めることができ、また、Aの値を大きく設定すれば、一番最初に設定されたバックアップ周期を強く反映させて新たなバックアップ周期を求めることができる。   Here, when calculating a new backup cycle, A gives priority to either the time interval from the previous overwrite execution date to the previous overwrite execution date or the time interval from the previous overwrite execution date to the current overwrite execution date. If the value of A is set small, the time interval from the previous overwrite execution date to the current overwrite execution date is strongly reflected to obtain a new backup cycle. If the value of A is set large, a new backup cycle can be obtained by strongly reflecting the first set backup cycle.

ここでは、一例として、磁気ディスクドライブ3内の仮想媒体毎のバックアップ周期をCPU12の内部処理によって自動設定する場合について述べたが、ローテーション周期記憶テーブルに、磁気テープのローテーション周期を記憶するフィールドと上書き実行日(初回使用日を含む)を記憶するフィールドとを設け、磁気ディスクドライブ3内の仮想媒体から磁気テープドライブ5内の磁気テープへのバックアップに際して、これらのローテーション周期および上書き実行日の記憶および算出について図17と同等の処理を適用することで、磁気テープドライブ5内の磁気テープ毎のローテーション周期を自動設定することができる。   Here, as an example, the case where the backup cycle for each virtual medium in the magnetic disk drive 3 is automatically set by the internal processing of the CPU 12 has been described. However, the rotation cycle storage table is overwritten with the field for storing the rotation cycle of the magnetic tape. A field for storing the execution date (including the first use date), and when backing up from the virtual medium in the magnetic disk drive 3 to the magnetic tape in the magnetic tape drive 5, By applying the same processing as that shown in FIG. 17 for the calculation, the rotation period for each magnetic tape in the magnetic tape drive 5 can be automatically set.

本実施例における他の処理動作は、図1〜図2および図6〜図8を参照して説明した実施例の場合と同様であるので説明を省略する。   Other processing operations in the present embodiment are the same as those in the embodiment described with reference to FIGS. 1 to 2 and FIGS.

本実施例の処理手順によって設定された仮想媒体のバックアップ周期および磁気テープの格納仮想媒体周期を、磁気ディスクドライブ3内の仮想媒体の選択処理および磁気テープドライブ5内の磁気テープの選択処理、より具体的には、仮想媒体選択処理におけるステップS203の処理(バックアップ周期記憶テーブルにおけるバックアップ周期の検索)および図8の媒体割り当て処理におけるステップS301の処理(ローテーション周期記憶テーブルにおけるローテーション周期の検索)に用いることで、バックアップ周期の大きく異なる仮想媒体を相異なる磁気テープに書き込むように制御することができる。
但し、計算により求めたバックアップ周期に基いてバックアップ対象とする仮想媒体の選択やバックアップ先の磁気テープの選択に関わる判定を行なう場合は、計算誤差等を考慮し、バックアップ周期の多少の相違は同じバックアップ周期として判定してよい。
The virtual media backup cycle and the magnetic tape storage virtual media cycle set by the processing procedure of the present embodiment are divided into a virtual media selection process in the magnetic disk drive 3 and a magnetic tape selection process in the magnetic tape drive 5. Specifically, it is used for the processing in step S203 in the virtual medium selection processing (search for the backup cycle in the backup cycle storage table) and the processing in step S301 in the medium allocation processing in FIG. 8 (search for the rotation cycle in the rotation cycle storage table). Thus, it is possible to control to write virtual media having greatly different backup cycles on different magnetic tapes.
However, when making a determination related to the selection of the virtual media to be backed up or the selection of the backup destination magnetic tape based on the backup cycle obtained by calculation, some differences in the backup cycle are the same considering the calculation error etc. It may be determined as a backup cycle.

以上に説明したように、仮想磁気テープ装置1内で仮想媒体のバックアップ周期や磁気テープの格納仮想媒体周期を求め、これらのバックアップ周期に基づいて、バックアップ周期の近似する仮想媒体を選択し、このバックアップ周期に相当あるいは近似する格納仮想媒体周期を有する磁気テープを選択して2次バックアップを実行することにより、上位装置2や管理用システム8によって仮想媒体毎のバックアップ周期や磁気テープ毎の格納仮想媒体周期を一々設定することなく磁気テープの再利用効率を高めることができる。   As described above, the virtual media backup period and the magnetic tape storage virtual medium period are obtained in the virtual magnetic tape device 1, and based on these backup periods, a virtual medium that approximates the backup period is selected, and this By selecting a magnetic tape having a storage virtual medium period corresponding to or close to the backup period and executing secondary backup, the host apparatus 2 or the management system 8 performs backup period for each virtual medium or storage virtual for each magnetic tape. It is possible to increase the reuse efficiency of the magnetic tape without setting the medium period one by one.

以上の実施例では、1つの磁気テープリード&ライタ9とアクセッサ11およびテープ収容棚10を有する磁気テープライブラリ装置を2次記憶用の磁気テープドライブ5として利用した仮想磁気テープ装置1の場合について説明したが、同等の磁気テープライブラリ装置を複数用いて磁気テープドライブ5を構築することも可能である。   In the above embodiment, the case of the virtual magnetic tape device 1 using the magnetic tape library device having one magnetic tape read & writer 9, the accessor 11, and the tape storage shelf 10 as the magnetic tape drive 5 for secondary storage will be described. However, the magnetic tape drive 5 can be constructed using a plurality of equivalent magnetic tape library devices.

本発明の技術思想は、3次以上のバックアップを実施するバックアップ装置、あるいは、磁気テープから磁気テープへのバックアップを行なうバックアップ装置に対しても適用することが可能である。   The technical idea of the present invention can also be applied to a backup device that performs tertiary or higher-order backup or a backup device that performs backup from a magnetic tape to a magnetic tape.

本発明のデータバックアップ方法を適用した一実施例の仮想磁気テープ装置と上位装置および管理用システムとの接続関係、および、主要部を構成する仮想磁気テープ装置の内部構造について示した機能ブロック図である。(実施例1)FIG. 3 is a functional block diagram showing a connection relationship between a virtual magnetic tape device of one embodiment to which a data backup method of the present invention is applied, a host device and a management system, and an internal structure of a virtual magnetic tape device constituting a main part. is there. Example 1 同実施例の仮想磁気テープ装置が備える制御手段の構成の概略を示したブロック図である。(実施例1)It is the block diagram which showed the outline of the structure of the control means with which the virtual magnetic tape apparatus of the Example is provided. Example 1 同実施例の仮想磁気テープ装置が備える制御手段の仮想媒体ローテーション管理部に設けられたバックアップ周期記憶テーブルの一例を示した概念図である。(実施例1)It is the conceptual diagram which showed an example of the backup period storage table provided in the virtual medium rotation management part of the control means with which the virtual magnetic tape apparatus of the Example is provided. Example 1 同実施例の仮想磁気テープ装置が備える制御手段の仮想媒体ローテーション管理部に設けられたローテーション周期記憶テーブルの一例を示した概念図である。(実施例1)It is the conceptual diagram which showed an example of the rotation period storage table provided in the virtual medium rotation management part of the control means with which the virtual magnetic tape apparatus of the Example is provided. Example 1 上位装置から磁気ディスクドライブへの仮想媒体のバックアップ手続きの一例を示した概念図である。(実施例1)It is the conceptual diagram which showed an example of the backup procedure of the virtual medium from a high-order apparatus to a magnetic disk drive. Example 1 同実施例の仮想磁気テープ装置が備える制御手段のCPUが実行する2次バックアップ処理の概略を示したフローチャートである。(実施例1)It is the flowchart which showed the outline of the secondary backup process which CPU of the control means with which the virtual magnetic tape apparatus of the Example is provided performs. Example 1 仮想媒体自動選択機能および仮想媒体連続選択機能を実現するCPUの仮想媒体選択処理について示したフローチャートである。(実施例1)It is the flowchart shown about the virtual medium selection process of CPU which implement | achieves a virtual medium automatic selection function and a virtual medium continuous selection function. Example 1 磁気テープ選択機能および磁気テープ選択順位決定機能を実現するCPUの媒体割り当て処理について示したフローチャートである。(実施例1)It is the flowchart shown about the medium allocation process of CPU which implement | achieves a magnetic tape selection function and a magnetic tape selection order determination function. Example 1 仮想媒体のバックアップ周期および磁気テープのローテーション周期に関わりなく、仮想媒体が上位装置から磁気ディスクドライブに記憶された順に磁気ディスクドライブから磁気テープへの2次バックアップを行なった場合の磁気テープ上の記憶状況を示した概念図である。(従来技術)Regardless of the backup period of the virtual medium and the rotation period of the magnetic tape, the storage on the magnetic tape when the secondary backup from the magnetic disk drive to the magnetic tape is performed in the order in which the virtual medium is stored in the magnetic disk drive. It is the conceptual diagram which showed the condition. (Conventional technology) 本実施例を適用してバックアップ周期が同じ仮想媒体を選択し、当該バックアップ周期に相当する格納仮想媒体周期を有する磁気テープを選んで2次バックアップを行なった場合の磁気テープ上の記憶状況を示した概念図である。(実施例1)This example shows the storage status on a magnetic tape when a virtual medium having the same backup cycle is selected, a magnetic tape having a storage virtual medium cycle corresponding to the backup cycle is selected, and secondary backup is performed. It is a conceptual diagram. Example 1 1本の磁気テープに格納できる仮想媒体の数が2本〜11本と変化した時に使用する磁気テープの平均使用本数を示したグラフであり、実線は従来技術を適用した場合の磁気テープの平均使用本数を表し、破線は本実施例を適用した場合の磁気テープの平均使用本数を表している。(実施例1と従来技術との比較)It is a graph showing the average number of magnetic tapes used when the number of virtual media that can be stored on one magnetic tape changes from 2 to 11, and the solid line is the average of the magnetic tapes when the conventional technology is applied The number used is shown, and the broken line shows the average number of magnetic tapes used when this embodiment is applied. (Comparison between Example 1 and prior art) 仮想媒体のバックアップ周期を1週間,1ヶ月,1年の3種類にした場合のローテーション管理部のバックアップ周期記憶テーブルの一例を示した概念図である。(実施例1に関わる変形例)It is the conceptual diagram which showed an example of the backup period storage table of a rotation management part when the backup period of a virtual medium is made into three types, 1 week, 1 month, and 1 year. (Variation related to Example 1) 1本の磁気テープに格納できる仮想媒体の数が2本〜11本と変化した時に使用される磁気テープの平均使用本数を示したグラフであり、実線は従来技術を適用した場合の磁気テープの平均使用本数を表し、破線は本実施例を適用した場合の磁気テープの平均使用本数を表している。(実施例1に関わる変形例と従来技術との比較)It is a graph showing the average number of magnetic tapes used when the number of virtual media that can be stored on one magnetic tape changes from 2 to 11, and the solid line shows the magnetic tapes when the conventional technology is applied. The average number of used tapes is shown, and the broken line shows the average number of magnetic tapes used when this embodiment is applied. (Comparison between Modification Example Related to Example 1 and Conventional Technology) バックアップ種別に対して割り当てる仮想媒体の本数を大きく変化させた場合のローテーション管理部のバックアップ周期記憶テーブルの一例を示した概念図である。(実施例1に関わる別の変形例)It is the conceptual diagram which showed an example of the backup period storage table of the rotation management part at the time of changing the number of virtual media allocated with respect to backup classification largely. (Another modification related to Example 1) バックアップ種別に対して割り当てる仮想媒体の本数を変化させた場合に使用される磁気テープの平均使用本数を示したグラフであり、実線は従来技術を適用した場合の磁気テープの平均使用本数を表し、破線は本実施例を適用した場合の磁気テープの平均使用本数を表している。(実施例1に関わる別の変形例と従来技術との比較)It is a graph showing the average number of magnetic tapes used when changing the number of virtual media allocated to the backup type, the solid line represents the average number of magnetic tapes used when applying the conventional technology, The broken line represents the average number of magnetic tapes used when this embodiment is applied. (Comparison between another modified example related to Example 1 and the prior art) データの上書き実行日に基いて制御手段が仮想媒体毎のバックアップ周期を求めて2次バックアップにおける仮想媒体の選択処理や磁気テープの割り当て処理を管理するようにした場合のローテーション管理部のバックアップ周期記憶テーブルの構成例を示した概念図である。(実施例2)Backup cycle storage of the rotation management unit when the control means obtains the backup cycle for each virtual medium based on the data overwriting execution date and manages the virtual media selection processing and magnetic tape allocation processing in the secondary backup. It is the conceptual diagram which showed the structural example of the table. (Example 2) バックアップ周期自動設定機能実現手段として機能するCPUが実行するバックアップ周期自動設定処理について示したフローチャートである。(実施例2)It is the flowchart shown about the backup period automatic setting process which CPU which functions as a backup period automatic setting function implementation means performs. (Example 2)

符号の説明Explanation of symbols

1 仮想磁気テープ装置
2 上位装置
3 磁気ディスクドライブ
5 磁気テープドライブ
6 制御手段
7 仮想媒体ローテーション管理部
8 管理用システム
9 磁気テープリード&ライタ
10 テープ収容棚
11 アクセッサ
12 CPU(磁気テープ選択機能実現手段,仮想媒体自動選択機能実現手段,仮想媒体連続選択機能実現手段,磁気テープ選択順位決定機能実現手段,バックアップ周期自動設定機能実現手段)
13 ROM
14 RAM
15 インターフェイス
16 入出力回
DESCRIPTION OF SYMBOLS 1 Virtual magnetic tape apparatus 2 Host apparatus 3 Magnetic disk drive 5 Magnetic tape drive 6 Control means 7 Virtual medium rotation management part 8 Management system 9 Magnetic tape read & writer 10 Tape storage shelf 11 Accessor 12 CPU (magnetic tape selection function realization means Virtual media automatic selection function realization means, virtual media continuous selection function realization means, magnetic tape selection order determination function realization means, backup cycle automatic setting function realization means)
13 ROM
14 RAM
15 Interface 16 Input / output times

Claims (10)

上位装置のデータを仮想的な磁気テープ媒体(仮想媒体)として記憶する1次記憶用の磁気ディスクドライブと、複数の磁気テープを選択的に使用して前記磁気ディスクドライブの仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブとを用い、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させ、当該仮想媒体の記憶されていた前記磁気ディスクドライブの記憶領域を開放して再利用するようにしたデータバックアップ方法において、
前記上位装置が前記磁気ディスクドライブの仮想媒体にデータを上書きするバックアップ周期に対応させて前記磁気テープの各々に格納する仮想媒体のバックアップ周期(格納仮想媒体周期)を設定しておき、
前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、当該仮想媒体のバックアップ周期に対応する磁気テープを選択して当該仮想媒体のデータを記憶させることを特徴としたデータバックアップ方法。
A magnetic disk drive for primary storage that stores data of the host device as a virtual magnetic tape medium (virtual medium) and a plurality of magnetic tapes are selectively used to convert the virtual medium of the magnetic disk drive into a magnetic tape. And storing the virtual medium of the magnetic disk drive on the magnetic tape via the magnetic tape drive, and storing the virtual disk stored in the virtual medium. In the data backup method that frees up the area and reuses it,
The host device sets a backup cycle (storage virtual medium cycle) of the virtual medium stored in each of the magnetic tapes in correspondence with a backup cycle in which data is overwritten on the virtual medium of the magnetic disk drive,
When the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the magnetic tape corresponding to the backup cycle of the virtual medium is selected and the data of the virtual medium is stored. Data backup method.
前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、古い記憶履歴を有する仮想媒体を選択して前記磁気テープに記憶させることを特徴とした請求項1記載のデータバックアップ方法。   2. The virtual medium having an old storage history is selected and stored on the magnetic tape when the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive. Data backup method. 前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、前記磁気ディスクドライブの記憶領域が必要量だけ開放されるまでの間、同一のバックアップ周期を有する仮想媒体を選択し続けることを特徴とした請求項1または請求項2記載のデータバックアップ方法。   When the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, the virtual medium having the same backup period until the storage area of the magnetic disk drive is released by a necessary amount 3. The data backup method according to claim 1, wherein the selection is continued. 前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択することを特徴とした請求項1,請求項2または請求項3記載のデータバックアップ方法。   When the virtual medium of the magnetic disk drive is stored on the magnetic tape via the magnetic tape drive, a magnetic tape in use is preferentially selected, and a new magnetic tape is only created when there is no magnetic tape in use. 4. The data backup method according to claim 1, wherein a tape is selected. 上位装置のデータを仮想媒体として記憶する1次記憶用の磁気ディスクドライブと、複数の磁気テープを選択的に使用して前記磁気ディスクドライブの仮想媒体を磁気テープに記憶させる2次記憶用の磁気テープドライブと、前記磁気ディスクドライブおよび前記磁気テープドライブを駆動制御し、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させ、当該仮想媒体の記憶されていた前記磁気ディスクドライブの記憶領域を開放する制御手段とを備えた仮想磁気テープ装置であって、
前記上位装置が前記磁気ディスクドライブの仮想媒体にデータを上書きするバックアップ周期を各仮想媒体毎に記憶するバックアップ周期記憶テーブルと、各磁気テープ毎のローテーション周期と各磁気テープに格納する仮想媒体のバックアップ周期とを記憶するローテーション周期記憶テーブルとを前記制御手段に併設すると共に、
前記制御手段には、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、前記バックアップ周期記憶テーブルおよびローテーション周期記憶テーブルを参照し、当該仮想媒体のバックアップ周期に対応する磁気テープを選択して当該仮想媒体のデータを記憶させる磁気テープ選択機能が配備されていることを特徴とした仮想磁気テープ装置。
Magnetic disk drive for primary storage that stores data of a host device as a virtual medium, and magnetic for secondary storage that selectively uses a plurality of magnetic tapes to store the virtual medium of the magnetic disk drive on the magnetic tape Drive control of the tape drive, the magnetic disk drive and the magnetic tape drive, and store the virtual medium of the magnetic disk drive on the magnetic tape via the magnetic tape drive, and store the magnetic medium stored in the virtual medium A virtual magnetic tape device comprising control means for releasing a storage area of a disk drive,
A backup cycle storage table that stores, for each virtual medium, a backup cycle in which the host device overwrites data on the virtual medium of the magnetic disk drive, a rotation cycle for each magnetic tape, and a backup of the virtual medium stored in each magnetic tape A rotation cycle storage table for storing the cycle and the control means;
The control means refers to the backup cycle storage table and the rotation cycle storage table when the virtual medium of the magnetic disk drive is stored in the magnetic tape via the magnetic tape drive, and the backup cycle of the virtual medium is referred to A virtual magnetic tape device is provided with a magnetic tape selection function for selecting a magnetic tape corresponding to the above and storing data of the virtual medium.
前記バックアップ周期記憶テーブルは、前記仮想媒体に対するデータの上書き実行日を記憶するフィールドを備え、
前記制御手段には、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、前記バックアップ周期記憶テーブルを参照し、古い上書き実行日を有する仮想媒体を選択して前記磁気テープに記憶させる仮想媒体自動選択機能が配備されていることを特徴とした請求項5記載の仮想磁気テープ装置。
The backup cycle storage table includes a field for storing a data overwrite execution date for the virtual medium,
When the virtual medium of the magnetic disk drive is stored in the magnetic tape via the magnetic tape drive, the control means refers to the backup cycle storage table and selects a virtual medium having an old overwrite execution date. 6. A virtual magnetic tape device according to claim 5, wherein a virtual medium automatic selection function for storing the data on the magnetic tape is provided.
前記制御手段には、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、前記磁気ディスクドライブの記憶領域が必要量だけ開放されるまでの間、同一のバックアップ周期を有する仮想媒体を選択し続ける仮想媒体連続選択機能が配備されていることを特徴とした請求項6記載の仮想磁気テープ装置。   When the virtual medium of the magnetic disk drive is stored in the magnetic tape via the magnetic tape drive, the control means is the same until the storage area of the magnetic disk drive is released by a necessary amount. 7. The virtual magnetic tape device according to claim 6, wherein a virtual medium continuous selection function for continuously selecting virtual media having a backup cycle is provided. 前記制御手段には、前記磁気ディスクドライブの仮想媒体を前記磁気テープドライブを介して前記磁気テープに記憶させる際に、使用中の磁気テープを優先的に選択し、使用中の磁気テープがない場合に限って新規の磁気テープを選択する磁気テープ選択順位決定機能が配備されていることを特徴とした請求項5,請求項6または請求項7記載の仮想磁気テープ装置。   When the control means stores the virtual medium of the magnetic disk drive on the magnetic tape via the magnetic tape drive, the magnetic tape being used is preferentially selected and there is no magnetic tape being used. 8. The virtual magnetic tape device according to claim 5, wherein a magnetic tape selection order determining function for selecting a new magnetic tape is provided only for the virtual magnetic tape device. 前記制御手段には、前記上位装置から与えられたバックアップ周期を前記バックアップ周期記憶テーブルに設定するバックアップ周期設定機能が配備されていることを特徴とした請求項5,請求項6,請求項7または請求項8記載の仮想磁気テープ装置。   The control means is provided with a backup cycle setting function for setting a backup cycle given from the host device in the backup cycle storage table. The virtual magnetic tape device according to claim 8. 前記制御手段には、データの上書き実行日に基いて前記バックアップ周期を求めて前記バックアップ周期記憶テーブルに設定するバックアップ周期自動設定機能が配備されていることを特徴とした請求項5,請求項6,請求項7または請求項8記載の仮想磁気テープ装置
5. The backup means is provided with a backup cycle automatic setting function for obtaining the backup cycle based on a data overwriting execution date and setting the backup cycle in the backup cycle storage table. 9. A virtual magnetic tape device according to claim 7 or claim 8.
JP2003281078A 2003-07-28 2003-07-28 Data backup method and virtual magnetic tape device Pending JP2005050104A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003281078A JP2005050104A (en) 2003-07-28 2003-07-28 Data backup method and virtual magnetic tape device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003281078A JP2005050104A (en) 2003-07-28 2003-07-28 Data backup method and virtual magnetic tape device

Publications (1)

Publication Number Publication Date
JP2005050104A true JP2005050104A (en) 2005-02-24

Family

ID=34266698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003281078A Pending JP2005050104A (en) 2003-07-28 2003-07-28 Data backup method and virtual magnetic tape device

Country Status (1)

Country Link
JP (1) JP2005050104A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100926865B1 (en) * 2006-12-11 2009-11-17 후지쯔 가부시끼가이샤 Data storage device, data relocation method, recording medium recording program
JP2011164867A (en) * 2010-02-08 2011-08-25 Fujitsu Ltd Storage device, method for controlling storage device, and program for controlling storage device
JP2015523633A (en) * 2013-04-22 2015-08-13 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー How to delete information

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02247747A (en) * 1989-03-22 1990-10-03 Hitachi Ltd File recovery system based upon accumulation of variable journals
JPH06274404A (en) * 1993-03-17 1994-09-30 Hitachi Software Eng Co Ltd Data storage managing method
JPH1127242A (en) * 1997-07-08 1999-01-29 Fujitsu Ltd Monitoring circuit of the number of errors generated in unit time in serial signal
JPH11194964A (en) * 1998-01-05 1999-07-21 Hitachi Ltd Data recording system
JPH11272426A (en) * 1998-03-20 1999-10-08 Fujitsu Ltd Data copying/restoring system and recording medium
JP2002182988A (en) * 2001-10-05 2002-06-28 Fujitsu Ltd Back-up controller for data processing system and its method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02247747A (en) * 1989-03-22 1990-10-03 Hitachi Ltd File recovery system based upon accumulation of variable journals
JPH06274404A (en) * 1993-03-17 1994-09-30 Hitachi Software Eng Co Ltd Data storage managing method
JPH1127242A (en) * 1997-07-08 1999-01-29 Fujitsu Ltd Monitoring circuit of the number of errors generated in unit time in serial signal
JPH11194964A (en) * 1998-01-05 1999-07-21 Hitachi Ltd Data recording system
JPH11272426A (en) * 1998-03-20 1999-10-08 Fujitsu Ltd Data copying/restoring system and recording medium
JP2002182988A (en) * 2001-10-05 2002-06-28 Fujitsu Ltd Back-up controller for data processing system and its method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100926865B1 (en) * 2006-12-11 2009-11-17 후지쯔 가부시끼가이샤 Data storage device, data relocation method, recording medium recording program
US7668875B2 (en) 2006-12-11 2010-02-23 Fujitsu Limited Data storage device, method of rearranging data and recording medium therefor
JP2011164867A (en) * 2010-02-08 2011-08-25 Fujitsu Ltd Storage device, method for controlling storage device, and program for controlling storage device
JP2015523633A (en) * 2013-04-22 2015-08-13 フジツウ テクノロジー ソリューションズ インタレクチュアル プロパティ ゲーエムベーハー How to delete information

Similar Documents

Publication Publication Date Title
US6557073B1 (en) Storage apparatus having a virtual storage area
CN1331063C (en) On-line data backup method based on data volume snapshot
US5559957A (en) File system for a data storage device having a power fail recovery mechanism for write/replace operations
JP4324616B2 (en) Data processing method in storage system
US7533378B2 (en) File-update apparatus for updating a file recorded on a recording medium
JP4900811B2 (en) Storage system and storage control method
JP4078039B2 (en) Snapshot image generation management method and generation management device
JPH01231150A (en) Method and device for controlling backup data dump
JP3785074B2 (en) Data processing system backup control apparatus and method
JP2011175642A (en) Data restoration utilizing forward and backward delta
JP2005346610A (en) Storage system and method for acquisition and use of snapshot
JPH11194964A (en) Data recording system
US8380952B2 (en) Storage system and data storage method using storage system which decides size of data to optimize the total of data size transfer efficiency
US7702864B2 (en) Apparatus, system, and method for writing stripes in parallel to unique persistent storage devices
JP2006011811A (en) Storage control system and storage control method
JP2005050104A (en) Data backup method and virtual magnetic tape device
JP4391793B2 (en) File update device
JP4026588B2 (en) Disk array device, disk cache management method, and program
JP2003076604A (en) Log information collecting system and method for flash memory
JP5398795B2 (en) Information processing apparatus and information processing program
US20060143423A1 (en) Storage device, data processing method thereof, data processing program thereof, and data processing system
JP4410271B2 (en) Memory control device
JP2006040065A (en) Device and method for storing data
JP3842772B2 (en) Disk array controller, disk array device, and disk array control program
JP4438333B2 (en) Data backup apparatus and method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070227

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070425

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070717

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070913

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071016

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080715