JP2010152603A - Device and method for migrating data recorded in recording medium - Google Patents

Device and method for migrating data recorded in recording medium Download PDF

Info

Publication number
JP2010152603A
JP2010152603A JP2008329430A JP2008329430A JP2010152603A JP 2010152603 A JP2010152603 A JP 2010152603A JP 2008329430 A JP2008329430 A JP 2008329430A JP 2008329430 A JP2008329430 A JP 2008329430A JP 2010152603 A JP2010152603 A JP 2010152603A
Authority
JP
Japan
Prior art keywords
data
recording medium
tape
read
information
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.)
Granted
Application number
JP2008329430A
Other languages
Japanese (ja)
Other versions
JP5106377B2 (en
Inventor
Kazuhiro Ozeki
和弘 尾関
Shinobu Fujiwara
忍 藤原
Hiroshi Itagaki
浩 板垣
Kenji Ishimoto
健志 石本
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.)
International Business Machines Corp
Original Assignee
International Business Machines 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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to JP2008329430A priority Critical patent/JP5106377B2/en
Priority to KR1020090115072A priority patent/KR101171439B1/en
Publication of JP2010152603A publication Critical patent/JP2010152603A/en
Application granted granted Critical
Publication of JP5106377B2 publication Critical patent/JP5106377B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data

Abstract

<P>PROBLEM TO BE SOLVED: To improve performance under the consideration of access frequency in data migration. <P>SOLUTION: In a controller 16 of a tape drive, if a command processing part 61 receives a data read instruction, a channel input/output part 63 reads data from a tape, Ram-count showing the number of times that the tape is mounted for reading is stored in each data on the tape, and Dm-readfreq showing the history of the number of data reads is stored in the read data. In data migration, a CM input/output part 64 reads the Ram-count and Dm-readfreq, a frequency calculation part 65 calculates the ratio of the number of times shown by Dm-readfreq to the Ram-count as access frequency, and a migration control part 66 controls a buffer management part 62 or the like so that the data read from the migration source tape can be recorded in the order of access frequency into the migration destination tape. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、記録媒体に記録されたデータの移行のための装置及び方法に関する。特に、本発明は、記録媒体に記録されたデータのその記録媒体又は他の記録媒体への移行を支援する装置及び方法に関する。   The present invention relates to an apparatus and method for transferring data recorded on a recording medium. In particular, the present invention relates to an apparatus and method for supporting migration of data recorded on a recording medium to the recording medium or another recording medium.

媒体に記録されたデータは、媒体や媒体ドライブ装置の寿命等により、別の新しい媒体へ移行されることがある。また、別の媒体への移行は、運用上の理由、例えば、よりコストパフォーマンスが高い媒体への切り替え等の理由により行われる場合もある。
かかるデータの移行時においては、より多くのアクセスがあるデータをパフォーマンス的に有利な位置に記録することが望ましい。例えば、データオブジェクトのように、複数のデータを1つのデータ群としてアクセスする場合、パフォーマンス的に最も不利な位置に記録されているデータが、データ群全体のパフォーマンスに影響を及ぼす場合があるからである。
The data recorded on the medium may be transferred to another new medium depending on the life of the medium or the medium drive device. Further, the transition to another medium may be performed for operational reasons, for example, switching to a medium with higher cost performance.
At the time of such data migration, it is desirable to record data having more accesses at a position advantageous in performance. For example, when accessing multiple data as one data group like a data object, the data recorded at the most disadvantageous position in performance may affect the performance of the entire data group. is there.

従来、媒体に記録されたデータを自身又は他の媒体に移行する場合に、データへのアクセス頻度を考慮することによりパフォーマンスを向上させる技術は知られていた(例えば、特許文献1〜3参照)。
特許文献1では、アクセス頻度の高い論理ボリュームを長時間通電モードのRAIDグループに、アクセス頻度が中程度の論理ボリュームを第1短時間通電モードのRAIDグループに、アクセス頻度が少ない論理ボリュームを第2短時間通電モードのRAIDグループに、それぞれ配置させるべく再配置計画を作成し、RAIDグループへのアクセス頻度に基づいて、再配置計画の実行時期を決定している。
Conventionally, when data recorded on a medium is migrated to itself or another medium, a technique for improving performance by considering the frequency of access to the data has been known (see, for example, Patent Documents 1 to 3). .
In Patent Document 1, a logical volume with a high access frequency is assigned to a RAID group in a long-time energization mode, a logical volume with a medium access frequency is assigned to a RAID group in a first short-time energization mode, and a logical volume with a low access frequency is set to a second. A rearrangement plan is created to be placed in each RAID group in the short-time energization mode, and the execution time of the rearrangement plan is determined based on the access frequency to the RAID group.

特許文献2では、複数のブロックで構成されるファイル単位のアクセス頻度を記憶し、このアクセス頻度が所定値以上でかつ相関関係のある複数のファイルを1つのグループとして抽出し、この抽出された各ファイルの各ブロックのデータを光ディスクから読み出してその光ディスク上の連続するブロック或いは近傍のブロックに順次書込むようにしている。
特許文献3では、テープカセットのカートリッジ内にメモリを設け、このメモリに各パーティション毎のアクセス頻度に関する情報を記録しておき、テープを複製する際には、このアクセス頻度情報を読み取り、アクセス頻度の高い順に、テープの先頭からデータを記録している。
In patent document 2, the access frequency of the file unit comprised by a some block is memorize | stored, this access frequency is more than a predetermined value, and several files with correlation are extracted as one group, and each of these extracted each The data of each block of the file is read from the optical disc and sequentially written into successive blocks on the optical disc or neighboring blocks.
In Patent Document 3, a memory is provided in a cartridge of a tape cassette, information on the access frequency for each partition is recorded in the memory, and when copying a tape, the access frequency information is read, Data is recorded from the top of the tape in descending order.

特開2007−164650号公報JP 2007-164650 A 特開平8−263335号公報JP-A-8-263335 特開平11−31376号公報JP-A-11-31376

しかしながら、引用文献1〜3におけるアクセス頻度は、複数のデータを含むデータ群(論理ボリューム、ファイル、パーティション)について記録されるものである。そのデータ群の中には、古くから存在しているデータと、最近作成されたデータとが混在しているかもしれない。そのような作成時期の異なるデータについて時間軸を基準にアクセス頻度を求めたのでは、本当の意味でのアクセス頻度は得られない。従って、引用文献1〜3の技術では、データを移行する際に真のアクセス頻度を考慮してパフォーマンスを向上することはできないという問題点があった。   However, the access frequency in the cited documents 1 to 3 is recorded for a data group (logical volume, file, partition) including a plurality of data. The data group may contain data that has existed for a long time and data that has been created recently. If the access frequency is obtained with reference to the time axis for such data with different creation times, the true access frequency cannot be obtained. Therefore, the techniques of the cited documents 1 to 3 have a problem that the performance cannot be improved in consideration of the true access frequency when data is migrated.

本発明の目的は、データを移行する際に、時間軸を用いない真のアクセス頻度を考慮してパフォーマンスを向上することにある。   An object of the present invention is to improve performance in consideration of a true access frequency without using a time axis when migrating data.

かかる目的のもと、本発明は、第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する装置であって、第1の記録媒体に記録された各データについて、第1の記録媒体に各データが書き込まれた後に第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、第1の記録媒体から各データが読み出された回数を示す第2の情報とを取得する取得部と、取得部により取得された第1の情報と第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、把握部により把握されたアクセス頻度に基づいて、第2の記録媒体における各データの記録位置を決定する決定部とを含む、装置を提供する。   For this purpose, the present invention is an apparatus for supporting the transfer of data recorded on the first recording medium to the second recording medium, and for each data recorded on the first recording medium, First information indicating the number of times any data is read from the first recording medium after each data is written to the first recording medium, and each data is read from the first recording medium The acquisition unit that acquires the second information indicating the number of times, the grasping unit that grasps the access frequency of each data using the first information and the second information obtained by the obtaining unit, and the grasping unit There is provided an apparatus including a determination unit that determines a recording position of each data in a second recording medium based on the grasped access frequency.

ここで、この装置は、第1の記録媒体から特定のデータが読み出された場合に、各データについて、第1の情報を更新し、特定のデータについて、第2の情報を更新する更新部を更に含む、ものであってよい。その場合、特定のデータは、主データと、主データの付加情報であるメタデータとを含み、更新部は、第1の記録媒体から主データ及びメタデータの少なくとも何れか一方が読み出された場合に、特定のデータが読み出されたと判定する、ものであってよい。
また、第1の情報は、第1の記録媒体に各データが書き込まれた後に第1の記録媒体が記憶装置にマウントされた回数によって、第1の記録媒体に各データが書き込まれた後に第1の記録媒体から何れかのデータが読み出された回数を示す、ものであってよい。
更に、把握部は、第1の情報が示す回数に対する第2の情報が示す回数の比率を、アクセス頻度として把握する、ものであってもよいし、第1の情報が示す回数が所定の範囲にあるデータについて、第2の情報を用いて、アクセス頻度を把握する、ものであってもよい。
また、第2の情報は、各データの読出しの履歴を複数のビット値で表す情報であって、第1の記録媒体からのM回のデータの読出しのうち各データが読み出された回数を、複数のビット値のうちN(N<M)個のビット値で表す、ものであってよい。
更に、決定部は、アクセス頻度が高いデータが第2の記録媒体における第1の記録位置に記録され、かつ、アクセス頻度が低いデータが第2の記録媒体における第1の記録位置よりもデータの読出しに時間がかかる第2の記録位置に記録されるように、第2の記録媒体における各データの記録位置を決定する、ものであってよい。その場合、第2の記録媒体は、第1の端部から第2の端部へ向けてデータの読出しが開始されるテープ媒体であり、第2の記録位置は、第1の記録位置よりも第2の端部に近い位置である、ものであってもよいし、第2の記録媒体は、第1の端部から第2の端部へ向けてデータの読出しが開始され、かつ、長手方向の少なくとも1つの位置で分割することで形成された複数の領域を有するテープ媒体であり、第1の記録位置は、複数の領域のうちの第1の領域内の位置であり、第2の記録位置は、複数の領域のうち、第1の領域よりも第2の端部に近い第2の領域内の位置である、ものであってもよい。
Here, when specific data is read from the first recording medium, the apparatus updates the first information for each data and updates the second information for the specific data. May further be included. In this case, the specific data includes main data and metadata that is additional information of the main data, and the update unit reads at least one of the main data and the metadata from the first recording medium. In this case, it may be determined that specific data has been read.
The first information is stored in the first recording medium after each data is written on the first recording medium according to the number of times the first recording medium is mounted on the storage device after each data is written on the first recording medium. It may indicate the number of times any data is read from one recording medium.
Further, the grasping unit may grasp a ratio of the number of times indicated by the second information to the number of times indicated by the first information as an access frequency, or the number of times indicated by the first information is within a predetermined range. The second information may be used to grasp the access frequency for the data in the data.
The second information is information representing a history of reading each data with a plurality of bit values, and the number of times each data is read out of M times of data reading from the first recording medium. , It may be represented by N (N <M) bit values among a plurality of bit values.
Further, the determining unit records data having a high access frequency at the first recording position on the second recording medium, and data having a low access frequency is stored on the second recording medium than the first recording position on the data. The recording position of each data on the second recording medium may be determined so as to be recorded at the second recording position that takes time to read. In this case, the second recording medium is a tape medium from which data reading is started from the first end toward the second end, and the second recording position is higher than the first recording position. The second recording medium may be a position close to the second end, and the second recording medium starts reading data from the first end toward the second end, and is long. A tape medium having a plurality of areas formed by dividing at least one position in the direction, wherein the first recording position is a position in the first area of the plurality of areas, The recording position may be a position in a second area that is closer to the second end than the first area among the plurality of areas.

また、本発明は、記録媒体におけるデータの再配置を支援する装置であって、記録媒体に記録された各データについて、記録媒体に各データが書き込まれた後に記録媒体から何れかのデータが読み出された回数を示す第1の情報と、記録媒体から各データが読み出された回数を示す第2の情報とを取得する取得部と、取得部により取得された第1の情報と第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、把握部により把握されたアクセス頻度に基づいて、記録媒体における各データの記録位置を決定する決定部とを含む、装置も提供する。   In addition, the present invention is an apparatus that supports rearrangement of data on a recording medium, and for each data recorded on the recording medium, any data is read from the recording medium after each data is written on the recording medium. An acquisition unit that acquires first information indicating the number of times of output and second information indicating the number of times each piece of data is read from the recording medium; first information acquired by the acquisition unit; and second information And a determination unit that determines the recording position of each data on the recording medium based on the access frequency that is grasped by the grasping unit. provide.

また、本発明は、第1のテープ媒体に記録されたデータを第2のテープ媒体に移行する装置であって、第1のテープ媒体に記録され、主データと、主データの付随情報を示すメタデータとを含む各データについて、第1のテープ媒体に各データが書き込まれた後に第1のテープ媒体が何れかのデータの読出しのためにテープドライブにマウントされた回数を示す第1の情報と、第1のテープ媒体から各データが読み出された回数を示す第2の情報とを取得する取得部と、取得部により取得された第1の情報が示す回数に対する第2の情報が示す回数の比率を、各データのアクセス頻度として把握する把握部と、把握部により把握されたアクセス頻度が高いデータから順に第2のテープ媒体に書き込む書込み部とを含む、装置も提供する。   The present invention is also an apparatus for transferring data recorded on a first tape medium to a second tape medium, recorded on the first tape medium, and showing main data and accompanying information of the main data. For each data including metadata, first information indicating the number of times the first tape medium is mounted on the tape drive for reading any data after each data is written to the first tape medium. And an acquisition unit that acquires second information indicating the number of times each data has been read from the first tape medium, and second information for the number of times indicated by the first information acquired by the acquisition unit An apparatus is also provided that includes a grasping unit that grasps the ratio of the number of times as an access frequency of each data, and a writing unit that writes data to the second tape medium in order from the data with the highest access frequency grasped by the grasping unit.

更に、本発明は、第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する方法であって、第1の記録媒体に記録された各データについて、第1の記録媒体に各データが書き込まれた後に第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、第1の記録媒体から各データが読み出された回数を示す第2の情報とを取得するステップと、取得された第1の情報と第2の情報とを用いて、各データのアクセス頻度を把握するステップと、把握されたアクセス頻度に基づいて、第2の記録媒体における各データの記録位置を決定するステップとを含む、方法も提供する。   Furthermore, the present invention is a method for supporting the transfer of data recorded on a first recording medium to a second recording medium, wherein each data recorded on the first recording medium is recorded in the first recording medium. First information indicating the number of times any data is read from the first recording medium after each data is written on the medium, and a first information indicating the number of times each data is read from the first recording medium. 2, the step of determining the access frequency of each data using the acquired first information and the second information, and the second based on the acquired access frequency Determining the recording position of each data on the recording medium.

更にまた、本発明は、第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する装置としてコンピュータを機能させるプログラムであって、コンピュータを、第1の記録媒体に記録された各データについて、第1の記録媒体に各データが書き込まれた後に第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、第1の記録媒体から各データが読み出された回数を示す第2の情報とを取得する取得部と、取得部により取得された第1の情報と第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、把握部により把握されたアクセス頻度に基づいて、第2の記録媒体における各データの記録位置を決定する決定部として機能させる、プログラムも提供する。   Furthermore, the present invention is a program for causing a computer to function as an apparatus for supporting the transfer of data recorded on the first recording medium to the second recording medium, and recording the computer on the first recording medium. For each of the recorded data, first information indicating the number of times any data is read from the first recording medium after each data is written to the first recording medium, and each of the data from the first recording medium. Grasping the access frequency of each data using the acquisition unit that acquires the second information indicating the number of times the data has been read, and the first information and the second information acquired by the acquisition unit And a program that functions as a determination unit that determines the recording position of each data on the second recording medium based on the access frequency grasped by the grasping unit.

本発明によれば、データを移行する際に、時間軸を用いない真のアクセス頻度を考慮してパフォーマンスを向上することができる。   According to the present invention, when data is migrated, performance can be improved in consideration of the true access frequency without using a time axis.

以下、添付図面を参照して、本発明を実施するための最良の形態(以下、「実施の形態」という)について詳細に説明する。尚、本発明は如何なる記録媒体に対しても適用可能であるが、ここでは、テープ媒体(以下、単に「テープ」という)を例にとり説明する。増え続ける大量のデータの全てを高速な記憶装置に保管することが困難になってきている現状において、テープドライブ等の低速な記憶装置に保管するデータに関してもアクセス頻度を考慮したデータの配置が重要となっているからである。   The best mode for carrying out the present invention (hereinafter referred to as “embodiment”) will be described in detail below with reference to the accompanying drawings. Although the present invention can be applied to any recording medium, a tape medium (hereinafter simply referred to as “tape”) will be described as an example here. In the current situation where it is difficult to store all of the ever-increasing amounts of data in high-speed storage devices, it is important to place data in consideration of access frequency for data stored in low-speed storage devices such as tape drives. Because it is.

まず、本実施の形態が適用されるディジタルデータアーカイブ装置(以下、単に「アーカイブ装置」という)について説明する。
図1は、本実施の形態が適用されるアーカイブ装置100の構成例を示した図である。
図示するように、アーカイブ装置100は、テープドライブ10と、制御機構30と、アクセッサ40と、カートリッジスロット50とを備える。
このうち、テープドライブ10は、ホストインターフェイス(以下、「ホストI/F」という)11と、バッファ12と、チャネル13と、書込みヘッド14aと、読出しヘッド14bと、モータ15とを含む。また、コントローラ16と、ヘッド位置制御システム17と、モータドライバ18とを含む。更に、テープドライブ10には、テープカートリッジ(以下、単に「カートリッジ」という)20が挿入されることにより装填可能となっているので、ここでは、カートリッジ20も図示している。このカートリッジ20は、リール21、22に巻かれたテープ23を含む。テープ23は、リール21、22の回転に伴い、リール21からリール22の方向へ、又は、リール22からリール21の方向へ、長手方向に移動する。尚、テープ23としては、磁気テープが例示されるが、磁気テープ以外のテープ媒体でもよい。
First, a digital data archive device (hereinafter simply referred to as “archive device”) to which this embodiment is applied will be described.
FIG. 1 is a diagram illustrating a configuration example of an archive device 100 to which the exemplary embodiment is applied.
As illustrated, the archive device 100 includes a tape drive 10, a control mechanism 30, an accessor 40, and a cartridge slot 50.
Among these, the tape drive 10 includes a host interface (hereinafter referred to as “host I / F”) 11, a buffer 12, a channel 13, a write head 14 a, a read head 14 b, and a motor 15. Further, the controller 16, a head position control system 17, and a motor driver 18 are included. Furthermore, since a tape cartridge (hereinafter simply referred to as “cartridge”) 20 can be loaded into the tape drive 10, the cartridge 20 is also illustrated here. The cartridge 20 includes a tape 23 wound around reels 21 and 22. As the reels 21 and 22 rotate, the tape 23 moves in the longitudinal direction from the reel 21 to the reel 22 or from the reel 22 to the reel 21. In addition, although the magnetic tape is illustrated as the tape 23, tape media other than a magnetic tape may be sufficient.

また、カートリッジ20は、カートリッジメモリ24も含む。このカートリッジメモリ24は、例えば、テープ23上にどのようにデータが書かれたかの情報を記録する。そして、例えばRFインターフェイスを用いて非接触でテープ23に書かれたデータのインデックスやテープ23の使用状況等を調べることにより、データへの高速アクセスを可能としている。尚、図では、このRFインターフェイスのようなカートリッジメモリ24へのアクセスを行うためのインターフェイスを、カートリッジメモリインターフェイス(以下、「CMI/F」という)19として示している。   The cartridge 20 also includes a cartridge memory 24. The cartridge memory 24 records, for example, information on how data is written on the tape 23. Then, for example, by using an RF interface to check the index of data written on the tape 23 in a non-contact manner, the usage status of the tape 23, and the like, high-speed access to the data is possible. In the figure, an interface for accessing the cartridge memory 24 such as this RF interface is shown as a cartridge memory interface (hereinafter referred to as “CMI / F”) 19.

ここで、ホストI/F11は、制御機構30を介してホスト200との通信を行う。例えば、ホスト200から、テープ23へのデータの書込みを指示するコマンド、テープ23を目的の位置に移動させるコマンド、テープ23からのデータの読出しを指示するコマンドを受け取る。尚、このホストI/F11で用いる通信規格としては、SCSIが例示される。SCSIの場合、1つ目のコマンドは、Writeコマンドに相当し、2つ目のコマンドは、LocateコマンドやSpaceコマンドに相当し、3つ目のコマンドは、Readコマンドに相当する。また、ホストI/F11は、ホスト200に対し、これらのコマンドに応じた処理が成功したのか失敗したのかの応答を返す。   Here, the host I / F 11 communicates with the host 200 via the control mechanism 30. For example, the host 200 receives a command for instructing data writing to the tape 23, a command for moving the tape 23 to a target position, and a command for instructing reading of data from the tape 23. Note that SCSI is exemplified as a communication standard used in the host I / F 11. In the case of SCSI, the first command corresponds to the Write command, the second command corresponds to the Locate command and the Space command, and the third command corresponds to the Read command. Further, the host I / F 11 returns a response to the host 200 as to whether the processing according to these commands has succeeded or failed.

バッファ12は、テープ23に書き込むべきデータやテープ23から読み出されたデータを蓄積するメモリである。例えば、DRAM(Dynamic Random Access Memory)によって構成される。また、バッファ12は、複数のバッファセグメントからなり、各バッファセグメントが、テープ23に対する読み書きの単位であるデータセットを格納している。
チャネル13は、テープ23に書き込むべきデータを書込みヘッド14aに送ったり、テープ23から読み出されたデータを読出しヘッド14bから受け取ったりするために用いられる通信経路である。
書込みヘッド14aは、テープ23が長手方向に移動するとき、テープ23に対して情報を書き込み、読出しヘッド14bは、テープ23が長手方向に移動するとき、テープ23から情報を読み出す。
モータ15は、リール21、22を回転させる。尚、図では、1つの矩形でモータ15を表しているが、モータ15としては、リール21、22の各々に1つずつ、合計2個設けるのが好ましい。
The buffer 12 is a memory that stores data to be written to the tape 23 and data read from the tape 23. For example, it is configured by a DRAM (Dynamic Random Access Memory). The buffer 12 is composed of a plurality of buffer segments, and each buffer segment stores a data set that is a unit of reading and writing with respect to the tape 23.
The channel 13 is a communication path used for sending data to be written on the tape 23 to the write head 14a and receiving data read from the tape 23 from the read head 14b.
The write head 14a writes information to the tape 23 when the tape 23 moves in the longitudinal direction, and the read head 14b reads information from the tape 23 when the tape 23 moves in the longitudinal direction.
The motor 15 rotates the reels 21 and 22. In the figure, the motor 15 is represented by one rectangle, but it is preferable to provide two motors 15, one for each of the reels 21 and 22.

コントローラ16は、テープドライブ10の全体を制御する。例えば、ホストI/F11で受け付けたコマンドに従って、データのテープ23への書込みやテープ23からの読出しを制御する。また、ヘッド位置制御システム17やモータドライバ18の制御も行う。
ヘッド位置制御システム17は、書込みヘッド14a及び読出しヘッド14bが所望の1つ又は複数のラップを追跡するよう制御するシステムである。ここで、ラップとは、テープ23上の複数のトラックのグループである。ラップを切り換える必要が生じると、書込みヘッド14a及び読出しヘッド14bを電気的に切り換える必要も生じるので、このような切り換えの制御を、このヘッド位置制御システム17で行う。
モータドライバ18は、モータ15を駆動する。尚、上述したように、モータ15を2個使用する場合であれば、モータドライバ18も2個設けられる。
The controller 16 controls the entire tape drive 10. For example, data writing to the tape 23 and reading from the tape 23 are controlled in accordance with a command received by the host I / F 11. The head position control system 17 and the motor driver 18 are also controlled.
The head position control system 17 is a system that controls the write head 14a and the read head 14b to track one or more desired wraps. Here, the lap is a group of a plurality of tracks on the tape 23. When it is necessary to switch the wrap, it is also necessary to electrically switch the write head 14a and the read head 14b. Therefore, the head position control system 17 performs such switching control.
The motor driver 18 drives the motor 15. As described above, if two motors 15 are used, two motor drivers 18 are also provided.

また、制御機構30は、ホスト200からの指示に応じて、アクセッサ40及びテープドライブ10を制御する機構である。即ち、アクセッサ40に対しては、ホスト200から指示されたデータを読み出したり書き込んだりできるように、カートリッジ20をテープドライブ10に装填するように指示し、テープドライブ10に対しては、ホスト200から指示されたデータをアクセッサ40によって装填されたカートリッジ20から読み出すように又はカートリッジ20に書き込むように指示する。
アクセッサ40は、制御機構30の制御により、カートリッジ20をカートリッジスロット50から取り出してテープドライブ10に装填する。
カートリッジスロット50は、読み書きが行われていないカートリッジ20を保管しておくための場所である。ここでは、カートリッジスロット50を1つの矩形で示したが、実際には、複数のカートリッジをそれぞれ格納する複数のスロットである。
The control mechanism 30 is a mechanism that controls the accessor 40 and the tape drive 10 in accordance with an instruction from the host 200. That is, the accessor 40 is instructed to load the cartridge 20 into the tape drive 10 so that the data instructed by the host 200 can be read and written, and the host 200 is instructed to the tape drive 10. The instructed data is read from the cartridge 20 loaded by the accessor 40 or written to the cartridge 20.
The accessor 40 takes out the cartridge 20 from the cartridge slot 50 and loads it into the tape drive 10 under the control of the control mechanism 30.
The cartridge slot 50 is a place for storing a cartridge 20 that has not been read or written. Here, the cartridge slot 50 is shown as a single rectangle, but in reality it is a plurality of slots for storing a plurality of cartridges.

尚、図では、1台のテープドライブ10しか示していないが、複数台のテープドライブ10を設けてもよい。その場合、制御機構30は、読出し命令又は書込み命令の送り先であるテープドライブ10の識別情報をアクセッサ40に伝えることで、そのテープドライブ10へのカートリッジ20の装填を指示することになる。また、図では、1つのカートリッジ20のみ装填可能なテープドライブ10を示しているが、複数のカートリッジ20を装填可能なテープドライブ10を用いてもよい。   Although only one tape drive 10 is shown in the figure, a plurality of tape drives 10 may be provided. In that case, the control mechanism 30 instructs the loading of the cartridge 20 into the tape drive 10 by transmitting the identification information of the tape drive 10 to which the read command or the write command is sent to the accessor 40. Further, in the figure, the tape drive 10 capable of loading only one cartridge 20 is shown, but the tape drive 10 capable of loading a plurality of cartridges 20 may be used.

ところで、テープドライブ10によってテープ23に記録されるデータへのアクセス性能は、テープ23上の記録位置によって大きく異なってくる。従って、テープ23にデータを移行する際に、データへのアクセス頻度を考慮しないと、アクセス頻度の高いデータへのアクセス速度が遅くなり、データへのアクセス性能が低下するという問題が生じる。   By the way, the access performance to the data recorded on the tape 23 by the tape drive 10 varies greatly depending on the recording position on the tape 23. Accordingly, when data is transferred to the tape 23, if the access frequency to the data is not taken into consideration, the access speed to the data with high access frequency is slowed, and the access performance to the data is deteriorated.

また、テープドライブ10を、写真データ、映像データ等のアーカイブとして使用することが多くなっている現状において、データ(主データ)そのものだけでなく、その付加情報であるメタデータも、長期保管されるべきデータとして重要になってきている。ここで、メタデータとしては、例えば写真データに対しては、写真の撮影場所、日時、被写体、撮影者、撮影機器、記録フォーマット、ファイル名、ファイルサイズ等が考えられる。このように、メタデータはデータとの関連が強く一緒に扱われることが多いので、データをアーカイブとしてテープ23に保管する場合に、メタデータも同じテープ23上に保管するのであれば、データとメタデータを適切に配置しないと、アクセスのパフォーマンスが低下するという問題が生じる。   Further, in the current situation where the tape drive 10 is frequently used as an archive of photo data, video data, etc., not only the data (main data) itself but also metadata as its additional information is stored for a long time. It is becoming important as data to be used. Here, as the metadata, for example, for photo data, the photo shooting location, date / time, subject, photographer, photographing device, recording format, file name, file size, and the like can be considered. As described above, since the metadata is often strongly related to the data and is often handled together, if the data is stored on the tape 23 as an archive, if the metadata is also stored on the same tape 23, the data and If metadata is not properly placed, there is a problem that access performance is degraded.

そこで、本実施の形態では、テープ23上に記録された互いに関連するデータのアクセス頻度を記録し、そのアクセス頻度を用いてデータを移行する。これにより、データ移行におけるデータやメタデータ群のパフォーマンス的に適切な配置を実現する。
具体的には、以下のような構成を採用している。
即ち、データとメタデータをdm-idによって関連付けておき、データ又はメタデータへのアクセスが発生する都度、そのdm-idに対応するアクセスカウンタ変数(以下、単に「カウンタ」という)群にアクセス履歴を記録しておく。この場合、カウンタ群へのアクセス履歴の記録は、テープという順次アクセス記録媒体の特性に鑑み、時間を軸とするのではなく、データ読出しのためのテープ23のマウント回数を軸とすることにより行う。尚、カウンタ群は、テープ23の可搬性を考え、テープ23に付属する半導体メモリに記録する。
Therefore, in the present embodiment, the access frequency of mutually related data recorded on the tape 23 is recorded, and the data is transferred using the access frequency. As a result, an appropriate arrangement of data and metadata groups in data migration is realized.
Specifically, the following configuration is adopted.
That is, data and metadata are associated with each other by dm-id, and each time access to data or metadata occurs, an access history is stored in an access counter variable group (hereinafter simply referred to as “counter”) corresponding to the dm-id. Record. In this case, the recording of the access history to the counter group is performed not on the time axis but on the mount count of the tape 23 for data reading, in consideration of the characteristics of the sequential access recording medium called tape. . The counter group records in the semiconductor memory attached to the tape 23 in consideration of the portability of the tape 23.

このようにアクセス履歴を記録した後、ある記録媒体Aから別の記録媒体Bへデータを移行する際には、まず、記録媒体Aにおけるdm-idによって関連付けられるデータ及びメタデータへのアクセス頻度を、カウンタ群に基づくポリシーに則って算出する。そして、アクセス性能の観点から、アクセス頻度の高い順に記録媒体B上に再配置する。尚、ここでは、再配置の手法として、関連付けられるデータ及びメタデータを1つのまとまりとしてテープ23の先頭から順次書き出す手法を採用する。これにより、データ及びメタデータを最初から順次に読み出す場合のアクセス性能を向上させる。   After the access history is recorded in this way, when data is transferred from one recording medium A to another recording medium B, first, the access frequency to the data and metadata associated with the dm-id in the recording medium A is determined. The calculation is performed according to a policy based on the counter group. Then, from the viewpoint of access performance, they are rearranged on the recording medium B in the order of high access frequency. Here, as a rearrangement method, a method of sequentially writing the associated data and metadata as one unit from the top of the tape 23 is adopted. This improves the access performance when data and metadata are read sequentially from the beginning.

以下、このような動作を実現する構成について詳細に説明する。
その前提として、まず、データ及びメタデータの関連付けについて説明する。
図2は、データとメタデータを関連付けるときの様子を模式的に示した図である。
(a)に示すように、まず、ホスト200は、データとメタデータの関連を任意の識別番号dm-idを割り当てることで作成する。そして、データは、データポートを介して制御機構30に渡し、メタデータは、メタデータポートを介して制御機構30に渡す。
Hereinafter, a configuration for realizing such an operation will be described in detail.
First, the association between data and metadata will be described.
FIG. 2 is a diagram schematically showing how data and metadata are associated with each other.
As shown in (a), first, the host 200 creates an association between data and metadata by assigning an arbitrary identification number dm-id. The data is passed to the control mechanism 30 via the data port, and the metadata is passed to the control mechanism 30 via the metadata port.

次に、制御機構30では、データポートを介して渡された情報がデータとして扱われ、ID生成部31がd-idを生成してデータに割り当てる。ここで、d-idは、データの識別番号であって、少なくともアーカイブ装置100が動作する環境においてユニークな値である。また、メタデータポートを介して渡された情報がメタデータとして扱われ、ID生成部31がm-idを生成してメタデータに割り当てる。ここで、m-idは、メタデータの識別番号であって、少なくともアーカイブ装置100が動作する環境内においてユニークな値である。尚、データとメタデータは時間的に離れて渡されたとしても、アーカイブ装置100内でdm-idによってそれらの関係を構築することができる。   Next, in the control mechanism 30, information passed through the data port is handled as data, and the ID generation unit 31 generates d-id and assigns it to the data. Here, d-id is a data identification number and is a unique value at least in an environment in which the archive apparatus 100 operates. Also, information passed through the metadata port is handled as metadata, and the ID generation unit 31 generates m-id and assigns it to the metadata. Here, m-id is an identification number of metadata, and is a unique value at least in the environment in which the archive apparatus 100 operates. Even if the data and the metadata are passed apart in time, the relationship between them can be established in the archive device 100 by dm-id.

これにより、制御機構30は、dm-idに基づくデータとメタデータの関係をdm-aテーブル(以下、単に「dm-a」という)としてデータベース(DB)32に記録する。(b)にdm-aの形式を示す。ここでは、1つのデータに対して1つのメタデータが関連付けられているが、データとメタデータはM対Nの関係を持つことも可能である(M,Nは自然数)。
加えて、制御機構30は、データとメタデータのアーカイブ装置100内での記録場所をdm-lテーブル(以下、単に「dm-l」という)として個々のデータ及びメタデータごとにDB32に記録する。(c)にdm-lの形式を示す。ここで、アーカイブ装置100内に複数のストレージ空間が実装され、それらの空間にデータ又はメタデータの複数のコピーが存在する場合、そのコピーの数だけdm-lにエントリが登録されることになる。図では、そのようなエントリをLocation-1、Location-2、…で表している。
As a result, the control mechanism 30 records the relationship between the data based on the dm-id and the metadata in the database (DB) 32 as a dm-a table (hereinafter simply referred to as “dm-a”). (B) shows the format of dm-a. Here, one piece of metadata is associated with one piece of data, but the data and metadata can also have a relationship of M to N (M and N are natural numbers).
In addition, the control mechanism 30 records the recording location of the data and metadata in the archive device 100 as a dm-l table (hereinafter simply referred to as “dm-l”) in the DB 32 for each piece of data and metadata. . (C) shows the format of dm-l. Here, when a plurality of storage spaces are mounted in the archive device 100 and there are a plurality of copies of data or metadata in those spaces, entries corresponding to the number of copies are registered in dm-l. . In the figure, such entries are represented by Location-1, Location-2,.

ここで、データ及びメタデータの関連付けについて具体例を用いて説明する。
図3は、データ及びメタデータの関連付けの具体例を示した図である。
(a)は、媒体名が「A001」の記録媒体に、d-idで識別されるデータとm-idで識別されるメタデータとがdm-idで識別される関連を持って記録されている状態を表している。具体的には、d-idがd3のデータとm-idがm4、m6、m8のメタデータとがdm-idがdm03の関連を持って記録され、d-idがd1のデータとm-idがm1、m7のメタデータとがdm-idがdm01の関連を持って記録され、d-idがd2のデータとm-idがm5のメタデータとがdm-idがdm02の関連を持って記録され、d-idがd5のデータとm-idがm9のメタデータとがdm-idがdm04の関連を持って記録されている。尚、本明細書では、このようにdm-idによって関連付けられたデータとメタデータの組み合わせを「DM」と呼ぶことにする。
また、(b)は、dm-idがdm03のDMの識別子(d-id、m-id)がdm-aにリストされている様子を示している。
Here, the association between data and metadata will be described using a specific example.
FIG. 3 is a diagram showing a specific example of association between data and metadata.
(A) is recorded on the recording medium with the medium name “A001”, with the data identified by d-id and the metadata identified by m-id having a relation identified by dm-id. It represents the state. Specifically, data with d-id d3 and metadata with m-id m4, m6, and m8 are recorded with an association with dm-id dm03, and data with d-id d1 and m-id The metadata with id m1 and m7 is recorded with the relationship dm-id dm01, the data with d-id d2 and the metadata with m-id m5 have the relationship dm-id dm02 The d-id d5 data and the m-id m9 metadata are recorded with the relationship dm-id dm04. In this specification, a combination of data and metadata associated with each other by dm-id is called “DM”.
Further, (b) shows a state in which DM identifiers (d-id, m-id) whose dm-id is dm03 are listed in dm-a.

ところが、テープ23へのデータやメタデータの書込みはその準備が整った時点で行われることから、テープ23上のデータやメタデータの記録順序は一意的には決まらない。
従って、データとメタデータの間の関係がdm-idによって論理的に構築されていても、それらがテープ23上に記録された際には、テープ23上の物理的な記録位置は分散する可能性がある。
However, since the data and metadata are written to the tape 23 when the preparation is completed, the recording order of the data and metadata on the tape 23 is not uniquely determined.
Therefore, even if the relationship between data and metadata is logically constructed by dm-id, the physical recording positions on the tape 23 can be dispersed when they are recorded on the tape 23. There is sex.

図4は、このように分散記録されたテープ23上のデータ及びメタデータの例を示した図である。図示するように、テープ23上には、複数のラップが存在している。また、図中、白抜きの矢印がデータの書込み方向を示しており、実線の矢印がテープ23の走行方向が逆転することを示している。
ここでは、まず、ラップ#0に対して順方向に、m-idがm6のメタデータ、d-idがd3のデータ、m-idがm1のメタデータ、d-idがd1のデータ、m-idがm4のメタデータが書き込まれている。次に、ラップ#1に対して逆方向に、m-idがm5のメタデータ、d-idがd2のデータが書き込まれている。その後、ラップ#2に対して再び順方向に、m-idがm7のメタデータ、m-idがm9のメタデータ、d-idがd5のデータ、m-idがm8のメタデータが書き込まれている。
FIG. 4 is a diagram showing an example of data and metadata on the tape 23 distributed and recorded in this way. As illustrated, a plurality of wraps exist on the tape 23. Further, in the figure, the white arrow indicates the data writing direction, and the solid arrow indicates that the running direction of the tape 23 is reversed.
Here, first, in the forward direction with respect to wrap # 0, metadata with m-id m6, data with d-id d3, metadata with m-id m1, data with d-id d1, m -Metadata with id of m4 is written. Next, in the reverse direction to wrap # 1, metadata with m-id of m5 and data with d-id of d2 are written. Then, in the forward direction again for wrap # 2, metadata with m-id m7, metadata with m-id m9, data with d-id d5, and metadata with m-id m8 are written. ing.

即ち、ある記録媒体に図3(a)に示したようなデータとメタデータ群が保管されていたとしても、それらをテープ23に移行すると、データとメタデータの関連付けに関係なく配置されてしまう可能性がある。この場合、複数回のテープ23の位置合わせを行わなければ、あるdm-idのDMを読み出すことはできないので、テープ23の位置合わせの分だけアクセス性能が低下することになる。   That is, even if data and metadata groups as shown in FIG. 3A are stored in a certain recording medium, if they are transferred to the tape 23, they are arranged regardless of the association between the data and metadata. there is a possibility. In this case, since the DM of a certain dm-id cannot be read unless the tape 23 is aligned a plurality of times, the access performance is lowered by the amount corresponding to the alignment of the tape 23.

そこで、本実施の形態では、このように記録されたデータ及びメタデータを移行する際に、データ及びメタデータのアクセス頻度に基づいてそれらを再配置する。
ここでは、各DMに対して、以下の3つのカウンタを定義する。
Therefore, in the present embodiment, when data and metadata recorded in this way are migrated, they are rearranged based on the access frequency of the data and metadata.
Here, the following three counters are defined for each DM.

(1)Read Access Mount カウンタ(Ram-count)
このRam-countは、dm-idごとに定義されるカウンタである。dm-idによって関連付けられたデータ及びメタデータがテープ23に書かれた時点以降における読出しのためのテープ23のマウントの回数を保持する。尚、本実施の形態では、データを読み出す必要が生じる都度、そのデータが記録されたテープ23がテープドライブ10にマウントされることを想定している。以下、この読出しのためのテープ23のマウントを「読出しマウント」と呼ぶことにする。
(1) Read Access Mount counter (Ram-count)
This Ram-count is a counter defined for each dm-id. The number of mounts of the tape 23 for reading after the time when the data and metadata associated with the dm-id are written on the tape 23 is held. In the present embodiment, it is assumed that the tape 23 on which the data is recorded is mounted on the tape drive 10 every time it is necessary to read the data. Hereinafter, the mounting of the tape 23 for reading will be referred to as “reading mount”.

Ram-countをこのように定義すると、最も大きいRam-countを有するdm-idが、最も古くにテープ23に書かれたデータやメタデータを関連付けるdm-idとなる。また、各dm-idに割り当てられたRam-countを参照することにより、どのデータやメタデータが比較的古いか新しいかということや、そのデータやメタデータへの読出しアクセスの確率も知ることができる。尚、このカウンタは、ラップしないように大きな値を保持できるよう定義すべきだが、もしラップしたら、0にリセットする。   When the Ram-count is defined in this way, the dm-id having the largest Ram-count becomes the dm-id associated with the data and metadata written on the tape 23 the oldest. In addition, by referring to the Ram-count assigned to each dm-id, it is possible to know which data and metadata is relatively old or new and the probability of read access to that data and metadata. it can. This counter should be defined so that it can hold a large value so as not to wrap. If it wraps, it is reset to zero.

(2)Read Frequency カウンタ(Dm-readfreq)
このDm-readfreqも、dm-idごとに定義されるカウンタである。Ram-countで示される回数の読出しマウントが発生する間にこのdm-idによって関連付けられるデータやメタデータの読出しがどの程度行われてきたかの履歴を保持する。このカウンタは、データ、メタデータの何れかが読み出されることで更新されるものとする。
(2) Read Frequency counter (Dm-readfreq)
This Dm-readfreq is also a counter defined for each dm-id. A history of how much data and metadata associated with this dm-id have been read while the number of read mounts indicated by Ram-count has occurred is maintained. This counter is updated when either data or metadata is read.

ここで、例えば、Ram-countの最大値が16であるとする。つまり、過去16回の読出しマウントの履歴だけをカウントするものとする。この場合、Dm-readfreqの各ビットによってこのdm-idのデータやメタデータが読み出されたかどうかを表現することにすると、Dm-readfreqは16ビットで表わされることになる。
ところが、1回の読出しマウントに1ビットを割り当ててしまうと、例えば過去256回の読出しマウントの履歴から頻度を量りたいような場合に、32バイト(=256ビット)分のメモリ領域が必要となってしまう。
Here, for example, it is assumed that the maximum value of Ram-count is 16. That is, only the past 16 read mount histories are counted. In this case, assuming that each dm-id data and metadata is read by each bit of Dm-readfreq, Dm-readfreq is represented by 16 bits.
However, if 1 bit is assigned to one read mount, for example, when it is desired to measure the frequency from the history of the 256 previous read mounts, a memory area of 32 bytes (= 256 bits) is required. End up.

そこで、複数回の読出しマウントを1ビットで表す方法を考える。
例えば、8回の読出しマウントを1ビットで表現するようにすると、4バイト(=256ビット/8=32ビット)のメモリ領域で済む。尚、このような方法を採用すると、Dm-readfreqとは別に過去8回の読出しマウントのうちのdm-idのデータの読出し回数を保持するDmアクセスカウンタ(後述)が必要となる。
但し、この方法だと、過去8回の読出しマウントでdm-idのデータが1回でも読み出されれば、カウンタは1となる。そのため、8回の読出しマウントにおけるdm-idのデータの読出し回数が8回だったのか1回だったのか分からなくなる。
Therefore, a method of expressing a plurality of read mounts with 1 bit is considered.
For example, if 8 read mounts are expressed by 1 bit, a memory area of 4 bytes (= 256 bits / 8 = 32 bits) is sufficient. When such a method is adopted, a Dm access counter (described later) that holds the number of times of reading data of dm-id among the past eight read mounts is required in addition to Dm-readfreq.
However, with this method, the counter becomes 1 if the dm-id data is read even once in the past eight read mounts. Therefore, it is not clear whether the number of times of reading dm-id data in the eight read mounts is eight or one.

そこで、複数回の読出しマウントを複数ビットで表す方法を考える。
例えば、8回の読出しマウントを2ビットで表現するようにすると、8バイト(=256ビット/8×2=32ビット×2)のメモリ領域が必要となる。尚、この場合も、Dm-readfreqとは別に過去8回の読出しマウントのうちのdm-idのデータの読出し回数を保持するDmアクセスカウンタ(後述)が必要となる。
この方法では、2ビットを使って、例えば以下の頻度を表現することができる。
“00”:アクセスなし
“01”:1回から2回
“10”:3回から5回
“11”:6回から8回
この定義は頻度算定のポリシーによって変更することも可能である。
Therefore, a method of expressing a plurality of read mounts with a plurality of bits is considered.
For example, if 8 read mounts are expressed by 2 bits, a memory area of 8 bytes (= 256 bits / 8 × 2 = 32 bits × 2) is required. In this case as well, a Dm access counter (described later) that holds the number of times of reading data of dm-id out of the past eight read mounts is required in addition to Dm-readfreq.
In this method, for example, the following frequencies can be expressed using 2 bits.
“00”: No access “01”: 1 to 2 times “10”: 3 to 5 times “11”: 6 to 8 times This definition can be changed according to the frequency calculation policy.

(3)Dmアクセス・カウンタ(Dm-count)
このDm-countは、上述のDm-readfreqにおいて、M回の読出しマウントを一単位としてN(<M)ビットで表現する場合に、M回の読出しマウントのうちこのdm-idのDMが読み出された回数を保持するカウンタである。
例えば、過去8回の読出しマウントを一単位とした場合、8回全ての読出しマウントでこのdm-idのデータが読み出されれば、Dm-countは8となる。また、2回読み出されれば、Dm-countは2となる。
尚、読出しマウントの一単位、例えば8回テープ23に読出しマウントがあれば、Dm-countは0にリセットされる。ここで、8回という一単位を数えるためには、上述のRam-countを使う。即ち、8の倍数の回数の読出しマウントがあると、Dm-countをリセットする。
(3) Dm access counter (Dm-count)
In the above Dm-readfreq, this Dm-count is represented by N (<M) bits with M read mounts as a unit, and the DM of this dm-id is read out of the M read mounts. It is a counter that holds the number of times that has been performed.
For example, if the past eight read mounts are taken as one unit, Dm-count becomes 8 if the data of this dm-id is read by all eight read mounts. If read twice, Dm-count becomes 2.
Note that if there is a read mount in one unit of the read mount, for example, eight times on the tape 23, Dm-count is reset to zero. Here, in order to count one unit of 8 times, the above Ram-count is used. That is, if there are read mounts whose number is a multiple of 8, Dm-count is reset.

さて、これら3つのカウンタを用いると、次のような情報を得ることができる。
・過去X回のテープ23への読出しマウントのうち、対象のdm-idのDMが読み出された頻度
・対象のdm-idのDMが読み出された回数
・過去X回のテープ23への読出しマウントのうち、対象のdm-idのDMが読み出された回数に基づいて算出されるアクセス確率
・X回の読出しマウントにおけるアクセスの傾向、つまり、最近アクセスが多いのか、過去にアクセスが多いのか
By using these three counters, the following information can be obtained.
Of the read mounts to the tape 23 of the past X times, the frequency with which the DM of the target dm-id is read. The number of times the DM of the target dm-id has been read. Access probability calculated based on the number of times the DM of the target dm-id is read out of the read mounts. Access tendency in the X read mounts, that is, whether there are many recent accesses or many accesses in the past. Or

一般には、データへのアクセス頻度を語る場合、時間軸が考慮される。しかしながら、テープのようなリムーバル記録媒体においては、記憶装置から排出されている場合や、記憶装置の中でもテープへのアクセスがない場合は、ある意味「時間が止まった」状態になる。従って、本実施の形態では、時間軸を考慮に入れる代わりに、テープが読出し目的でマウントされたという実例を軸としている。   In general, when talking about the frequency of access to data, a time axis is considered. However, in the case of a removable recording medium such as a tape, if it is ejected from the storage device, or if there is no access to the tape in the storage device, it will be in a state where “time has stopped”. Therefore, in this embodiment, instead of taking the time axis into consideration, the example is that the tape is mounted for the purpose of reading.

これら3つのカウンタのサイズを確定する要素は以下の通りである。
・過去何回の読出しマウントを対象とするか
・何回の読出しマウントを何ビットで表現するか
例えば、上記で示した通り、過去256回の読出しマウントをアクセス頻度を量る対象とする場合、Ram-countは1バイトとなる。
また、8回の読出しマウントを一単位とし、それを2ビットで表現する場合、Dm-readfreqは8バイトとなり、Dm-countは4ビットとなる。
The elements that determine the size of these three counters are as follows.
-How many past read mounts are targeted-How many read mounts are represented by how many bits For example, as shown above, when the past 256 read mounts are targeted for measuring access frequency, Ram-count is 1 byte.
Also, when 8 read mounts are taken as one unit and expressed by 2 bits, Dm-readfreq is 8 bytes and Dm-count is 4 bits.

図5に、この場合の3つのカウンタについて示す。
ここでは、各dm-idに対して3つのカウンタを設けているので、dm-idも示している。
但し、上記でdm-idに割り当てるビット数は規定していないので、単純に1つの矩形で表している。
一方、3つのカウンタに割り当てるビット数は規定したので、1つのビットを1つの細長い矩形に対応付けて表している。具体的には、Ram-countは8ビットなので、8つの矩形で表している。Dm-countは4ビットなので、8つの矩形を示し、そのうち4つには網かけを施すことで未使用であることを示している。Dm-readfreqは64ビットなので、64個の矩形で表している。また、特に、このDm-readfreqにおいては、8回の読出しマウントを一単位として2ビットで表していることから、右端の2ビットを例として、その意味付けも示している。
FIG. 5 shows three counters in this case.
Here, since three counters are provided for each dm-id, dm-id is also shown.
However, since the number of bits assigned to dm-id is not defined above, it is simply represented by one rectangle.
On the other hand, since the number of bits to be allocated to the three counters is defined, one bit is represented in association with one elongated rectangle. Specifically, since Ram-count is 8 bits, it is represented by 8 rectangles. Since Dm-count is 4 bits, 8 rectangles are shown, and 4 of them are shaded to indicate that they are unused. Since Dm-readfreq is 64 bits, it is represented by 64 rectangles. In particular, in this Dm-readfreq, since eight read mounts are represented by 2 bits as a unit, the meaning of the rightmost 2 bits is also shown as an example.

そして、これら3つのカウンタの値は、dm-idごとにdmアクセスカウンタテーブルに記録されていく。
図6に、dmアクセスカウンタテーブルの一例を示す。
図において、Ram-countの欄には、dm-idが「dm01」のDMが書かれてから215回の読出しマウントがあったこと、dm-idが「dm02」のDMが書かれてから24回の読出しマウントがあったこと、dm-idが「dm03」のDMが書かれてから13回の読出しマウントがあったこと、dm-idが「dm04」のDMが書かれてから156回の読出しマウントがあったこと、dm-idが「dm05」のDMが書かれてから79回の読出しマウントがあったことが示されている。
The values of these three counters are recorded in the dm access counter table for each dm-id.
FIG. 6 shows an example of the dm access counter table.
In the figure, in the Ram-count column, there have been 215 read mounts since the DM with dm-id “dm01” was written, and 24 after the DM with dm-id “dm02” was written. Dm-id “dm03” DM was written 13 times read mount was written, dm-id “dm04” DM was written 156 times It is indicated that there was a read mount and that there were 79 read mounts since the DM with dm-id “dm05” was written.

また、Dm-countの欄には、dm-idが「dm01」のDM及びdm-idが「dm02」のDMが過去8回の読出しマウントのうち1回も読み出されていないこと、dm-idが「dm03」のDMが過去8回の読出しマウントのうち4回読み出されたこと、dm-idが「dm04」のDMが過去8回の読出しマウントのうち1回読み出されたこと、dm-idが「dm05」のDMが過去8回の読出しマウントのうち7回読み出されたことが示されている。そして、これらの回数は、Dm-readfreqの右端の2ビットに反映されている。   Also, in the Dm-count column, the DM with the dm-id “dm01” and the DM with the dm-id “dm02” have not been read once out of the past eight read mounts. The DM with id “dm03” has been read 4 times out of the past 8 read mounts, the DM with dm-id “dm04” has been read out once in the past 8 read mounts, It is shown that the DM with the dm-id “dm05” has been read 7 times out of the 8 read mounts in the past. These numbers are reflected in the two rightmost bits of Dm-readfreq.

更に、Dm-readfreqの欄には、8ビットでDMの読出しを示している。8回の読出しマウントにおけるDMの読出し回数を2ビットで表しているので、図では、25回から32回の読出しマウントにおけるDMの読出し回数が示されていることなる。尚、Dm-readfreqのビット列の左側の「. . . . .」は、ビット値が省略されていることを示している。また、dm-id「dm02」については、Ram-countが24なので、Dm-readfreqは6ビットで十分であり、dm-id「dm03」については、Ram-countが13なので、Dm-readfreqは4ビットで十分であるが、この場合も、左側を0のビット列で埋めて8ビットで示している。   In addition, the Dm-readfreq column indicates DM read with 8 bits. Since the DM read count in the eight read mounts is represented by 2 bits, the figure shows the DM read count in the 25 to 32 read mounts. Note that “....” On the left side of the bit string of Dm-readfreq indicates that the bit value is omitted. For dm-id “dm02”, Ram-count is 24, so 6 bits is sufficient for Dm-readfreq. For dm-id “dm03”, Ram-count is 13, so Dm-readfreq is 4. Bits are sufficient, but in this case as well, the left side is filled with 0 bit strings and is represented by 8 bits.

次に、これら3つのカウンタの更新について具体例により説明する。
図7は、テープドライブ10がWriteコマンドやReadコマンドを受けることにより、カートリッジ20に記憶された各カウンタがどのように更新されるかを示した図である。尚、これまでの説明では言及しなかったが、ここではTotal Readカウンタについても示している。このTotal Readカウンタは、dm-idごとではなく、テープ23ごとのカウンタであり、テープ23が読出しのためにマウントされると更新されるカウンタである。一方で、この図では、Dm-readfreqについては省略している。また、この図において、D1〜D3は、DMを一般化し、データとして示したものである。
Next, the update of these three counters will be described with a specific example.
FIG. 7 is a diagram showing how each counter stored in the cartridge 20 is updated when the tape drive 10 receives a Write command or a Read command. Although not mentioned in the above description, the Total Read counter is also shown here. This Total Read counter is a counter for each tape 23, not for each dm-id, and is a counter that is updated when the tape 23 is mounted for reading. On the other hand, in this figure, Dm-readfreq is omitted. In this figure, D1 to D3 are generalized DMs and are shown as data.

まず、Aに示すように、D1を対象とするWriteコマンドが送られてきたとする。この場合のTotal Readカウンタは0であるとする。また、D1のRam-countとDm-countは作成されるが、その値は0である。
次に、Bに示すように、D1を対象とするReadコマンドが送られてきたとする。この場合、Total Readカウンタは1となる。また、D1のRam-countとDm-countも1となる。
次いで、Cに示すように、D1を対象とするReadコマンドが送られてきたとする。この場合、Total Readカウンタは2となる。また、D1のRam-countとDm-countも2となる。
First, as shown in A, it is assumed that a Write command for D1 is sent. In this case, it is assumed that the Total Read counter is 0. D1 Ram-count and Dm-count are created, but their values are zero.
Next, as shown in B, it is assumed that a Read command for D1 is sent. In this case, the Total Read counter is 1. In addition, the Ram-count and Dm-count of D1 are also 1.
Next, as shown in C, it is assumed that a Read command for D1 is sent. In this case, the Total Read counter is 2. In addition, the Ram-count and Dm-count of D1 are also 2.

また、Dに示すように、D2を対象とするWriteコマンドが送られてきたとする。この場合、Total Readカウンタは2のままで、D1のRam-countとDm-countも2のままである。また、D2のRam-countとDm-countは作成されるが、その値は0である。
次に、Eに示すように、D1を対象とするReadコマンドが送られてきたとする。この場合、Total Readカウンタは3となる。また、D1のRam-countも3となり、D1が読み出されたので、D1のDm-countも3となる。一方、D2のRam-countは1となるが、D2が読み出されたわけではないので、D2のDm-countは0のままである。
次いで、Fに示すように、D2を対象とするReadコマンドが送られてきたとする。この場合、Total Readカウンタは4となる。一方、D1のRam-countは4となるが、D1が読み出されたわけではないので、D1のDm-countは3のままである。また、D2のRam-countは2となり、D2が読み出されたので、D2のDm-countは1となる。
Also, as shown in D, it is assumed that a Write command for D2 is sent. In this case, the Total Read counter remains 2, and the Ram-count and Dm-count of D1 also remain 2. In addition, Ram-count and Dm-count of D2 are created, but their values are zero.
Next, as shown in E, it is assumed that a Read command for D1 is sent. In this case, the Total Read counter is 3. Also, the Ram-count of D1 is 3, and since D1 is read, the Dm-count of D1 is also 3. On the other hand, the Ram-count of D2 is 1, but since D2 has not been read, the Dm-count of D2 remains 0.
Next, as shown in F, it is assumed that a Read command for D2 is sent. In this case, the Total Read counter is 4. On the other hand, the Ram-count of D1 is 4, but since D1 has not been read, the Dm-count of D1 remains 3. In addition, the Ram-count of D2 is 2, and D2 is read, so the Dm-count of D2 is 1.

その後、G、H、IでWriteコマンド及びReadコマンドが送られてきた場合も、上記と同様に、Total Readカウンタ、D1、D2、D3のRam-count、Dm-countは更新される。   Thereafter, when the Write command and the Read command are sent in G, H, and I, the total read counters, the Ram-count and Dm-count of D1, D2, and D3 are updated in the same manner as described above.

次に、データ及びメタデータを別のテープ23に移行するときのアクセス頻度に基づく再配置について説明する。
テープ23上のデータ及びメタデータを別のテープ23(又はそのテープ23自身)に移行(migration)する場合、図6に示したdmアクセスカウンタテーブルでアクセス頻度が高いものから、テープ23上のアクセス性能上有利な場所にそのdm-idに対応するデータ及びメタデータを記録する。
Next, the rearrangement based on the access frequency when data and metadata are transferred to another tape 23 will be described.
When the data and metadata on the tape 23 are migrated to another tape 23 (or the tape 23 itself), the access on the tape 23 starts from the one having the high access frequency in the dm access counter table shown in FIG. Data and metadata corresponding to the dm-id are recorded in a place advantageous in terms of performance.

このアクセス頻度の決定方法としては、Dm-count/Total Readカウンタを計算することによる方法が最も基本的である(以下、この決定方法を「基本的方法」と呼ぶことにする)。しかしながら、この基本的方法でアクセス頻度を求めると、DMがどの時点でテープ23に書かれたかによって結果にぶれが生じる。例えば、テープ23に最初に書かれたDMと既にRam-countが100になった後に書かれたDMとでは単純に比較できない。
そこで、本実施の形態では、次のようなアクセス頻度の決定方法を採用する。
As a method for determining the access frequency, a method by calculating a Dm-count / Total Read counter is the most basic (hereinafter, this determination method will be referred to as a “basic method”). However, when the access frequency is obtained by this basic method, the result varies depending on when the DM is written on the tape 23. For example, the DM first written on the tape 23 cannot be simply compared with the DM already written after the Ram-count reaches 100.
Therefore, in the present embodiment, the following access frequency determination method is adopted.

(第1の決定方法)
第1の決定方法は、Dm-count/Ram-countを計算することにより、DMに対する相対的なアクセス頻度を導き出す方法である。
これを図6に示した例で説明する。但し、ここでは、図6のDm-readfreqの省略部分「. . . . .」には、0のビット値の並びが存在しているものと仮定する。
まず、基本的方法を用いた場合、Total Readカウンタが250とすると、dm01のアクセス頻度は0.02(=5/250)、dm02のアクセス頻度は0、dm03のアクセス頻度は0.012(=3/250)、dm04のアクセス頻度は0.016(=4/250)、dm05のアクセス頻度は0.016(=4/250)となる。即ち、dm01、dm05、dm04、dm03、dm02の順にアクセス頻度が高くなっている(ポイントが同じ場合は、より最近のアクセス回数が多い方をアクセス頻度が高いと定義している)。
一方、第1の決定方法を用いた場合、dm01のアクセス頻度は0.023(=5/215)、dm02のアクセス頻度は0、dm03のアクセス頻度は0.231(=3/13)、dm04のアクセス頻度は0.026(=4/156)、dm05のアクセス頻度は0.051(=4/79)となる。即ち、dm03、dm05、dm04、dm01、dm02の順にアクセス頻度が高くなっており、基本的方法を用いた場合とは順序が異なっている。
(First determination method)
The first determination method is a method of deriving a relative access frequency for the DM by calculating Dm-count / Ram-count.
This will be described with reference to the example shown in FIG. However, in this case, it is assumed that an abbreviated portion “....” Of Dm-readfreq in FIG.
First, when the basic method is used, if the total read counter is 250, the access frequency of dm01 is 0.02 (= 5/250), the access frequency of dm02 is 0, and the access frequency of dm03 is 0.012 (= 3/250), the access frequency of dm04 is 0.016 (= 4/250), and the access frequency of dm05 is 0.016 (= 4/250). That is, the access frequency increases in the order of dm01, dm05, dm04, dm03, dm02 (if the points are the same, the access frequency that is more recent is defined as the higher access frequency).
On the other hand, when the first determination method is used, the access frequency of dm01 is 0.023 (= 5/215), the access frequency of dm02 is 0, the access frequency of dm03 is 0.231 (= 3/13), dm04 Access frequency is 0.026 (= 4/156), and dm05 access frequency is 0.051 (= 4/79). That is, the access frequency increases in the order of dm03, dm05, dm04, dm01, and dm02, and the order is different from the case where the basic method is used.

(第2の決定方法)
第2の決定方法は、各DMについて保持したRam-countを、アクセス頻度を算出するDMのクライテリアとする方法である。
例えば、最近書かれたDMをアクセス頻度を算出する対象から除外するような場合が考えられる。この場合は、Ram-countが例えば3以下のDMを除外するとよい。
また、過去のカートリッジの読出しマウントを何回目から何回目というように限定して、即ち、ある期間に限定して、DMへのアクセス頻度を量りたい場合も考えられる。この場合は、例えば、アクセス頻度を算出する対象のDMを、Ram-countが100から70のものに限定する。そして、読出しマウントの100回目から70回目に当たるDMへのアクセス回数をDm-readfreqから算出し、それらを比較して頻度の高い順に並べるとよい。
尚、この第2の決定方法で考慮されるRam-countの範囲は、アクセス頻度を把握する対象を限定するための所定の範囲の一例である。
(Second determination method)
The second determination method is a method in which the Ram-count held for each DM is used as the criteria for the DM for calculating the access frequency.
For example, a recently written DM may be excluded from the access frequency calculation target. In this case, DMs with a Ram-count of 3 or less may be excluded.
In addition, it is also conceivable that past cartridge read mounts are limited to the number of times from the number of times, that is, the access frequency to the DM is measured only during a certain period. In this case, for example, the target DM for calculating the access frequency is limited to those with Ram-count of 100 to 70. Then, the number of accesses to the DM corresponding to the 100th to 70th times of the read mount is calculated from Dm-readfreq, and they are compared and arranged in the descending order of frequency.
Note that the Ram-count range considered in the second determination method is an example of a predetermined range for limiting a target whose access frequency is grasped.

このようにしてアクセス頻度が算出されると、テープドライブ10は、このアクセス頻度に基づいて、あるテープから別のテープへデータを移行する。
図8は、データ移行後のテープ23上のデータ及びメタデータの例を示した図である。ここでも、図4と同様、テープ23上には、複数のラップが存在しており、白抜きの矢印がデータの書込み方向を、実線の矢印がテープ23の走行方向が逆転することをそれぞれ示している。また、この例では、アクセス頻度が高い方から、dm02、dm03、dm01、dm04であるとする。
ここでは、まず、ラップ#0に対して順方向に、dm-idがdm02のDMが、メタデータ、データの順に書き込まれている。次に、ラップ#1に対して逆方向に、dm-idがdm03のDMのうちメタデータが書き込まれている。その後、ラップ#2に対して再び順方向に、dm-idがdm04のDMのうちデータが書き込まれ、dm-idがdm04のDMが、メタデータ、データの順に書き込まれている。
即ち、データの移行後は、図4の例とは異なり、データ及びメタデータは、図3に示した論理的な関連付けごとに記録されている。これにより、データ及びメタデータをテープ23から順次に読み出していく場合に、不必要なテープ23の位置合わせをする必要がないので、アクセス性能が向上する。
When the access frequency is calculated in this way, the tape drive 10 migrates data from one tape to another based on this access frequency.
FIG. 8 is a diagram showing an example of data and metadata on the tape 23 after data migration. Here, as in FIG. 4, there are a plurality of wraps on the tape 23, and the white arrow indicates that the data writing direction is reversed, and the solid arrow indicates that the running direction of the tape 23 is reversed. ing. In this example, it is assumed that dm02, dm03, dm01, and dm04 are from the highest access frequency.
Here, first, DM with dm-id dm02 is written in the order of metadata and data in the forward direction with respect to wrap # 0. Next, metadata is written in the DM with the dm-id dm03 in the opposite direction to the wrap # 1. Thereafter, in the forward direction again with respect to lap # 2, data is written out of DMs with dm-id dm04, and DMs with dm-id dm04 are written in the order of metadata and data.
That is, after the data transfer, unlike the example of FIG. 4, data and metadata are recorded for each logical association shown in FIG. As a result, when data and metadata are sequentially read from the tape 23, it is not necessary to perform unnecessary alignment of the tape 23, thereby improving access performance.

このようなデータの移行方法では、本実施の形態で算出されるアクセス頻度によってデータが配置されるので、真にアクセス頻度の高いデータへのアクセス時間が短縮される。
また、移行前のテープ23に分散して配置されていたデータ及びメタデータをある規則で(本実施の形態では、順に)再配置することにより、データ及びメタデータのアクセス性能を高めることができる。
ディジタルデータのアーカイブシステム等では、大量のデータを保管するための階層化ストレージの実装形式として、テープ23を2次、3次ストレージとして用いる形式を採用することがある。その場合、アーカイブといえどもアクセス頻度の高いデータは存在し、実際にアクセスされることが前提である。本実施の形態は、それらのデータへのアクセス性能の向上にも寄与するものである。
In such a data migration method, data is arranged according to the access frequency calculated in the present embodiment, so that the access time to data with a truly high access frequency is shortened.
In addition, the data and metadata access performance can be improved by rearranging the data and metadata distributed on the tape 23 before migration according to a certain rule (in this embodiment, in order). .
A digital data archive system or the like may employ a format in which the tape 23 is used as a secondary or tertiary storage as a hierarchical storage mounting format for storing a large amount of data. In that case, even if it is an archive, data with high access frequency exists and is assumed to be actually accessed. This embodiment also contributes to improvement of access performance to such data.

ところで、上記では、移行元のテープ23に分散して配置されていたデータ及びメタデータをdm-idごとに順次に移行先のテープ23に記憶していった。しかしながら、移行先のテープ23における配置方法は、これに限られるものではない。
以下、他の配置方法について説明する。尚、ここで述べる配置方法は、データをテープ23上で再配置する際に、テープという媒体の特性を考えて、テープ23のマウント後に短時間でアクセスできる位置にアクセス頻度が高いデータを配置するものである。
By the way, in the above, the data and metadata distributed and arranged on the migration source tape 23 are sequentially stored in the migration destination tape 23 for each dm-id. However, the arrangement method on the transfer destination tape 23 is not limited to this.
Hereinafter, other arrangement methods will be described. In the arrangement method described here, when data is re-arranged on the tape 23, data with high access frequency is arranged at a position where the data can be accessed in a short time after the tape 23 is mounted in consideration of the characteristics of the medium called the tape. Is.

まず、テープ記憶装置の特性として、データを読み込むために次のような準備動作を行う点が挙げられる。
1.カートリッジを記憶装置にマウントする。
2.読み込むべきデータが記憶されている先頭の位置にテープ23の位置を合わせる。
即ち、カートリッジがマウントされた直後において、記憶装置のヘッドはテープ23の先頭に位置付けられることになる。従って、テープ23の先頭に近い位置に配置されたデータの方がテープ23の終端に近い位置に配置されたデータよりもアクセス速度が速いと言える。なぜなら、テープ23の終端の近くにデータが記録されている場合、テープ23をそこまで走らせて位置合わせをする必要があるからである。
First, as a characteristic of the tape storage device, the following preparation operation is performed to read data.
1. Mount the cartridge on the storage device.
2. The position of the tape 23 is adjusted to the head position where the data to be read is stored.
That is, immediately after the cartridge is mounted, the head of the storage device is positioned at the head of the tape 23. Therefore, it can be said that the data arranged at a position near the head of the tape 23 has a higher access speed than the data arranged at a position near the end of the tape 23. This is because when data is recorded near the end of the tape 23, it is necessary to align the position by running the tape 23 so far.

図9(a)に、LTO(Linear Tape-Open)規格に準拠したテープ23上での通常のデータの読み書きについて示す。
まず、矢印201で示すようにラップ#0に右方向にデータの読み書きを行った後、矢印202で示すようにテープ23の走行方向を逆転する。次に、ラップ#1に左方向にデータの読み書きを行った後、矢印203で示すようにテープ23の走行方向を逆転する。更に、ラップ#2に右方向にデータの読み書きを行った後、矢印204で示すようにテープ23の走行方向を逆転する。そして、最後は矢印205で示すようにラップ#55に左方向にデータの読み書きを行う。
FIG. 9A shows normal data reading / writing on the tape 23 compliant with the LTO (Linear Tape-Open) standard.
First, after reading and writing data to lap # 0 in the right direction as indicated by arrow 201, the running direction of tape 23 is reversed as indicated by arrow 202. Next, after reading and writing data to the lap # 1 in the left direction, the running direction of the tape 23 is reversed as indicated by an arrow 203. Further, after reading and writing data to lap # 2 in the right direction, the running direction of the tape 23 is reversed as indicated by an arrow 204. Finally, as indicated by an arrow 205, data is read / written to the wrap # 55 in the left direction.

このように、LTOでは、テープ23上に複数定義されているラップと呼ばれるデータ記憶域をテープ23の先頭から終端まで往復しながら、データの読み書きを行う。順次読み書きを行う場合は、このようにラップ上を往復するが、テープ23の幅方向にヘッドを移動させてラップを切り替える機械的動作は短時間で終了するので、このようなLTOフォーマットにおいても、テープ23の先頭に近い位置の方がテープ23の終端に近い位置よりも短時間でアクセスできる。
従って、テープ23の先頭に近い側にアクセス頻度が高いデータを配置し、テープ23の終端に近い側にアクセス頻度が低いデータを配置するという配置方法が好ましい。ここで、テープ23の先頭は第1の端部の一例であり、テープ23の終端は第2の端部の一例である。
Thus, in the LTO, data is read and written while reciprocating a data storage area called a wrap defined on the tape 23 from the beginning to the end of the tape 23. In the case of performing sequential reading and writing, it reciprocates on the wrap in this way, but since the mechanical operation of switching the wrap by moving the head in the width direction of the tape 23 is completed in a short time, even in such an LTO format, The position near the head of the tape 23 can be accessed in a shorter time than the position near the end of the tape 23.
Therefore, an arrangement method in which data with high access frequency is arranged near the head of the tape 23 and data with low access frequency is arranged near the end of the tape 23 is preferable. Here, the top of the tape 23 is an example of a first end, and the end of the tape 23 is an example of a second end.

また、テープ記憶装置によっては、セグメンテーションという機能が実装されているものがある。セグメンテーションとは、テープ23を複数のセグメントに分割し、最初のセグメントから順次データを書いていく手法である。ここで、セグメントは、長手方向の少なくとも1つの位置で分割することで形成された複数の領域の一例である。
図9(b)に、セグメンテーションを利用した場合のデータの読み書きについて示す。
まず、矢印211で示すようにラップ#0のセグメント#1の部分に右方向にデータの読み書きを行った後、矢印212で示すようにテープ23の走行方向を逆転する。次に、ラップ#1のセグメント#1の部分に左方向にデータの読み書きを行った後、矢印213で示すようにテープ23の走行方向を逆転する。更に、ラップ#2のセグメント#1の部分に右方向にデータの読み書きを行った後、矢印214で示すようにテープ23の走行方向を逆転する。そして、矢印215で示すようにラップ#55のセグメント#1の部分に左方向にデータの読み書きを行う。
Some tape storage devices have a function called segmentation. Segmentation is a method in which the tape 23 is divided into a plurality of segments, and data is sequentially written from the first segment. Here, the segment is an example of a plurality of regions formed by dividing at least one position in the longitudinal direction.
FIG. 9B shows data reading and writing when segmentation is used.
First, after reading / writing data in the right direction in the segment # 1 portion of the wrap # 0 as indicated by an arrow 211, the running direction of the tape 23 is reversed as indicated by an arrow 212. Next, after reading and writing data to the segment # 1 portion of the wrap # 1 in the left direction, the running direction of the tape 23 is reversed as indicated by an arrow 213. Further, after the data is read / written to the segment # 1 portion of the wrap # 2 in the right direction, the running direction of the tape 23 is reversed as indicated by an arrow 214. Then, as indicated by an arrow 215, data is read from and written to the segment # 1 portion of the wrap # 55 in the left direction.

その後、矢印220で示すように、ヘッドの位置をラップ#0のセグメント#2の部分に移動する。そして、矢印221で示すようにラップ#0のセグメント#2の部分に右方向にデータの読み書きを行った後、矢印222で示すようにテープ23の走行方向を逆転する。次に、ラップ#1のセグメント#2の部分に左方向にデータの読み書きを行った後、矢印223で示すようにテープ23の走行方向を逆転する。更に、ラップ#2のセグメント#2の部分に右方向にデータの読み書きを行った後、矢印224で示すようにテープ23の走行方向を逆転する。そして、最後は矢印225で示すようにラップ#55のセグメント#2の部分に左方向にデータの読み書きを行う。   Thereafter, as indicated by an arrow 220, the head position is moved to the segment # 2 portion of the lap # 0. Then, after reading / writing data in the right direction in the segment # 2 portion of the wrap # 0 as indicated by an arrow 221, the running direction of the tape 23 is reversed as indicated by an arrow 222. Next, after reading / writing data to the segment # 2 portion of the wrap # 1 in the left direction, the running direction of the tape 23 is reversed as indicated by an arrow 223. Further, after data is read / written to the segment # 2 portion of the wrap # 2 in the right direction, the running direction of the tape 23 is reversed as indicated by an arrow 224. Finally, as indicated by an arrow 225, data is read / written to the left in the segment # 2 portion of the wrap # 55.

このように、セグメント#1の方が、セグメント#2よりもアクセス速度が速い。3つ以上のセグメントを設けたとすると、一般に、テープ23の先頭に近いセグメントの方が、テープ23の終端に近いセグメントよりもアクセス速度が速いと言える。
従って、この特性を利用して、データをテープ23に移行する際に、アクセス頻度の高いデータ及びメタデータをテープ23の先頭に近いセグメントに配置し、アクセス頻度の低いデータ及びメタデータをテープ23の終端に近いセグメントに配置するのが好ましい。ここで、テープ23の先頭に近いセグメントは第1の領域の一例であり、テープ23の終端に近いセグメントは第2の領域の一例である。
Thus, segment # 1 has a faster access speed than segment # 2. If three or more segments are provided, it can be generally said that the segment closer to the head of the tape 23 has a higher access speed than the segment closer to the end of the tape 23.
Therefore, using this characteristic, when data is transferred to the tape 23, data and metadata with high access frequency are arranged in a segment near the head of the tape 23, and data and metadata with low access frequency are placed on the tape 23. It is preferable to arrange in a segment close to the end of. Here, the segment near the head of the tape 23 is an example of a first area, and the segment near the end of the tape 23 is an example of a second area.

図10は、セグメンテーションを利用したデータ移行後のテープ23上のデータ及びメタデータの例を示した図である。ここでも、図4と同様、テープ23上には、複数のラップが存在しており、白抜きの矢印がデータの書込み方向を、実線の矢印がテープ23の走行方向が逆転することをそれぞれ示している。また、この例でも、アクセス頻度が高い方から、dm02、dm03、dm01、dm04であるとする。
ここでは、まず、ラップ#0のセグメント#1の部分に対して順方向に、dm-idがdm02のDMが、メタデータ、データの順に書き込まれている。次に、ラップ#1のセグメント#1の部分に対して逆方向に、dm-idがdm02のDMのうちのデータの残りの部分が書き込まれている。その後、ラップ#2のセグメント#1の部分に対して再び順方向に、dm-idがdm03のDMが、メタデータ、データの順に書き込まれている。尚、d-idがd3のデータに続きがある場合は、図示しないが、ラップ#3のセグメント#1の部分に書き込まれる。
FIG. 10 is a diagram illustrating an example of data and metadata on the tape 23 after data migration using segmentation. Here, as in FIG. 4, there are a plurality of wraps on the tape 23, and the white arrow indicates that the data writing direction is reversed, and the solid arrow indicates that the running direction of the tape 23 is reversed. ing. Also in this example, it is assumed that dm02, dm03, dm01, and dm04 are from the highest access frequency.
Here, first, the DM having the dm-id dm02 is written in the order of metadata and data in the forward direction with respect to the segment # 1 portion of the wrap # 0. Next, the remaining portion of the data in the DM with dm-id dm02 is written in the opposite direction to the segment # 1 portion of wrap # 1. Thereafter, DM with dm-id dm03 is written in the order of metadata and data again in the forward direction with respect to the segment # 1 portion of wrap # 2. If there is a continuation of the data whose d-id is d3, it is written in the segment # 1 portion of the wrap # 3, although not shown.

その後、ラップ#0のセグメント#2の部分に対して順方向に、dm-idがdm01のDMが、メタデータ、データの順に書き込まれている。次に、ラップ#1のセグメント#2の部分に対して逆方向に、dm-idがdm04のDMが、メタデータ、データの順に書き込まれている。
即ち、データの移行後は、図4の例とは異なり、データ及びメタデータは、図3に示した論理的な関連付けごとに記録されている。これにより、データ及びメタデータをテープ23から順次に読み込んでいく場合に、不必要なテープ23の位置合わせをする必要がないので、アクセス性能が向上する。
Thereafter, DM with dm-id dm01 is written in the order of metadata and data in the forward direction with respect to the segment # 2 portion of wrap # 0. Next, in the reverse direction to the segment # 2 portion of wrap # 1, DM with dm-id dm04 is written in the order of metadata and data.
That is, after the data transfer, unlike the example of FIG. 4, data and metadata are recorded for each logical association shown in FIG. As a result, when data and metadata are sequentially read from the tape 23, it is not necessary to perform unnecessary alignment of the tape 23, thereby improving access performance.

尚、ここでは、データの移行先のテープ23を1つとしたが、複数のテープ23を移行先としてもよい。その場合は、1つ目のテープ23のセグメント#1を使い、それを使い切ったら2つ目のテープ23のセグメント#1を使い、それを使い切ったら3つ目のテープ23のセグメント#1を使い、これを移行先の全てのテープ23のセグメント#1を使い切るまで繰り返す。そして、移行先の全てのテープ23のセグメント#1を使い切ると、1つ目のテープ23から順にセグメント#2を使うようにするとよい。   Here, the data transfer destination tape 23 is one, but a plurality of tapes 23 may be the transfer destination. In that case, use segment # 1 of the first tape 23, use segment # 1 of the second tape 23 when it is used up, and use segment # 1 of the third tape 23 when it is used up. This is repeated until the segment # 1 of all the transfer destination tapes 23 are used up. Then, when the segment # 1 of all the transfer destination tapes 23 is used up, the segment # 2 may be used in order from the first tape 23.

このように、移行先のテープ23を複数用意することによって、より大きな記憶空間を提供でき、アクセス性能が高いセグメント#1に書き込めるデータやメタデータの量を増やすことが可能となる。即ち、短時間でアクセス可能なデータ、メタデータの量が増えることになる。
また、この手法では、移行先のテープ23の本数とセグメント定義の仕方を変更することで、移行元のテープ23上のデータのアクセス頻度に応じた記憶空間の提供ができる。例えば、アクセス頻度の高いデータが少ない場合は、最初のセグメントをテープ23の先頭よりに定義すればよい。また、アクセス頻度の高いデータが多い場合は、移行先のテープ23を多くしたり、必要に応じて最初のセグメントを大きく定義したりすることが考えられる。更に、アクセス頻度にばらつきがある場合は、セグメントの数を増やして、頻度ごとにデータをグルーピングしてそれぞれのセグメントに書き込むようにすることが考えられる。
In this way, by preparing a plurality of migration destination tapes 23, a larger storage space can be provided, and the amount of data and metadata that can be written to segment # 1 with high access performance can be increased. That is, the amount of data and metadata that can be accessed in a short time increases.
Further, in this method, by changing the number of transfer destination tapes 23 and the method of segment definition, it is possible to provide a storage space according to the access frequency of data on the transfer source tape 23. For example, when there is little data with high access frequency, the first segment may be defined from the beginning of the tape 23. If there is a lot of frequently accessed data, it is conceivable to increase the migration destination tape 23 or to define the first segment larger as required. Furthermore, when there is a variation in the access frequency, it is conceivable to increase the number of segments, group data for each frequency, and write to each segment.

このようなデータの移行方法では、本実施の形態で算出されるアクセス頻度によってデータが配置されるので、真にアクセス頻度の高いデータへ個別にアクセスが行われる場合のアクセス性能が向上する。
ディジタルデータのアーカイブシステム等では、大量のデータを保管するための階層化ストレージの実装形式として、テープ23を2次、3次ストレージとして用いる形式を採用することがある。その場合、アーカイブといえどもアクセス頻度の高いデータは存在し、実際にアクセスされることが前提である。本実施の形態は、それらのアーカイブされたデータが個別にアクセスされる状況下で、過去のアクセス頻度が高かったデータのアクセス性能の向上にも寄与するものである。
In such a data migration method, data is arranged according to the access frequency calculated in the present embodiment, so that the access performance is improved when individual access is made to data with a truly high access frequency.
A digital data archive system or the like may employ a format in which the tape 23 is used as a secondary or tertiary storage as a hierarchical storage mounting format for storing a large amount of data. In that case, even if it is an archive, data with high access frequency exists and is assumed to be actually accessed. The present embodiment contributes to the improvement of the access performance of data that has been frequently accessed in the past in a situation where these archived data are individually accessed.

尚、上記では、データ及びメタデータを読み出す場合のアクセス性能に着目して、データ及びメタデータの配置方法について考えてきた。しかしながら、データ及びメタデータを読み出す場合のアクセス性能に拘らない配置方法を採用してもよい。   Note that, in the above, focusing on the access performance when reading data and metadata, the arrangement method of data and metadata has been considered. However, an arrangement method irrespective of access performance when reading data and metadata may be adopted.

次に、これまでに述べてきたような動作を行うテープドライブ10について詳細に説明する。尚、ここでは、dmアクセスカウンタテーブルはカートリッジメモリ24に記憶されているものとする。また、図1では1つのカートリッジ20のみを装填可能なテープドライブ10を示したが、ここでは2つのカートリッジ20を装填可能なテープドライブ10を想定し、一方のカートリッジ20から他方のカートリッジ20へのデータの移行を、カートリッジ20を入れ替えることなく1つのテープドライブ10で行うことができるものとする。   Next, the tape drive 10 that performs the operation as described above will be described in detail. Here, it is assumed that the dm access counter table is stored in the cartridge memory 24. 1 shows the tape drive 10 in which only one cartridge 20 can be loaded, but here, the tape drive 10 in which two cartridges 20 can be loaded is assumed, and one cartridge 20 to the other cartridge 20 is assumed. It is assumed that data migration can be performed by one tape drive 10 without replacing the cartridge 20.

図11は、テープドライブ10のコントローラ16の機能構成例を示したブロック図である。
図示するように、コントローラ16は、コマンド処理部61と、バッファ管理部62と、チャネル入出力部63と、カートリッジメモリ入出力部(以下、「CM入出力部」という)64と、頻度算出部65と、移行制御部66と、ヘッド位置管理部67と、テープ走行管理部68とを備える。
FIG. 11 is a block diagram illustrating a functional configuration example of the controller 16 of the tape drive 10.
As illustrated, the controller 16 includes a command processing unit 61, a buffer management unit 62, a channel input / output unit 63, a cartridge memory input / output unit (hereinafter referred to as “CM input / output unit”) 64, and a frequency calculation unit. 65, a transition control unit 66, a head position management unit 67, and a tape running management unit 68.

このうち、コマンド処理部61は、ホストI/F11からコマンドを受け取る。ここで、コマンドとしては、バッファ12にデータを格納することを指示するWriteコマンド、バッファ12に格納されたデータをテープ23に書き込むことを指示する同期コマンド、テープ23からデータを読み出すことを指示するReadコマンド等がある。   Among these, the command processing unit 61 receives a command from the host I / F 11. Here, as a command, a Write command that instructs to store data in the buffer 12, a synchronous command that instructs to write data stored in the buffer 12 to the tape 23, and an instruction to read data from the tape 23 There is a Read command and the like.

バッファ管理部62は、コマンド処理部61がWriteコマンドを受け取った場合は、データをバッファ12内に用意する。また、コマンド処理部61が同期コマンドを受け取った場合は、データをバッファ12から読み出してチャネル入出力部63に出力する。更に、コマンド処理部61がReadコマンドを受け取った場合は、対象となるデータがバッファ12内になければチャネル入出力部63に対してそのデータを読み出すように指示し、対象となるデータがバッファ12内にあればそのデータをコマンド処理部61を介してホスト200に返す。   The buffer management unit 62 prepares data in the buffer 12 when the command processing unit 61 receives a Write command. When the command processing unit 61 receives a synchronization command, the data is read from the buffer 12 and output to the channel input / output unit 63. Further, when the command processing unit 61 receives a Read command, if the target data is not in the buffer 12, it instructs the channel input / output unit 63 to read the data, and the target data is stored in the buffer 12. If it exists, the data is returned to the host 200 via the command processing unit 61.

チャネル入出力部63は、バッファ管理部62がバッファ12から読み出したデータをチャネル13に出力したり、チャネル13から受け取ったデータをバッファ管理部62に出力したりする。   The channel input / output unit 63 outputs the data read from the buffer 12 by the buffer management unit 62 to the channel 13 and outputs the data received from the channel 13 to the buffer management unit 62.

CM入出力部64は、カートリッジメモリ24に記憶されたdmアクセスカウンタテーブルにCMI/F19を介して情報を書き込んだり、dmアクセスカウンタテーブルからCMI/F19を介して情報を読み出したりする。本実施の形態では、第1の記録媒体に各データが書き込まれた後に第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、第1の記録媒体から各データが読み出された回数を示す第2の情報とを取得する取得部の一例として、また、第1の情報と第2の情報とを更新する更新部の一例として、CM入出力部64を設けている。   The CM input / output unit 64 writes information to the dm access counter table stored in the cartridge memory 24 via the CMI / F 19 and reads information from the dm access counter table via the CMI / F 19. In the present embodiment, the first information indicating the number of times any data is read from the first recording medium after each data is written to the first recording medium, and the first information from the first recording medium. As an example of an acquisition unit that acquires second information indicating the number of times data has been read, and an example of an update unit that updates the first information and the second information, a CM input / output unit 64 is provided. Provided.

頻度算出部65は、CM入出力部64が読み出した情報に基づいて、各DMに対するアクセス頻度を算出する。本実施の形態では、各データのアクセス頻度を把握する把握部の一例として、頻度算出部65を設けている。
移行制御部66は、頻度算出部65が算出したアクセス頻度に基づいて、データの移行を制御する。即ち、アクセス頻度が高いdm-idの順に、移行元のテープ23からデータ及びメタデータを読み出して移行先のテープ23に書き込むよう、バッファ管理部62に指示する。このように、アクセス頻度が高いdm-idに対応するデータ及びメタデータから順次移行先のテープ23に書き込むので、移行制御部66は、移行先のテープ23上のデータ及びメタデータの位置を決定していると言うことができる。つまり、本実施の形態では、第2の記録媒体における各データの記録位置を決定する決定部の一例として、移行制御部66を設けている。
The frequency calculation unit 65 calculates the access frequency for each DM based on the information read by the CM input / output unit 64. In the present embodiment, a frequency calculation unit 65 is provided as an example of a grasping unit that grasps the access frequency of each data.
The migration control unit 66 controls data migration based on the access frequency calculated by the frequency calculation unit 65. That is, the buffer management unit 62 is instructed to read data and metadata from the migration source tape 23 and write them to the migration destination tape 23 in order of dm-id having the highest access frequency. In this way, since data and metadata corresponding to dm-id having a high access frequency are sequentially written to the migration destination tape 23, the migration control unit 66 determines the positions of the data and metadata on the migration destination tape 23. I can say that. That is, in the present embodiment, the shift control unit 66 is provided as an example of a determination unit that determines the recording position of each data on the second recording medium.

ヘッド位置管理部67は、テープ23に対する書込みヘッド14a及び読出しヘッド14bの位置をテープ23の幅方向へオフセットさせる信号をヘッド位置制御システム17に出力する。また、書込みヘッド14a及び読出しヘッド14bのテープ23上の幅方向における現在位置に関する情報を取得する。
テープ走行管理部68は、テープ23を順方向に走行させるための信号や、テープ23を逆方向に走行させるための信号をモータドライバ18に出力する。
The head position management unit 67 outputs a signal for offsetting the positions of the write head 14 a and the read head 14 b with respect to the tape 23 in the width direction of the tape 23 to the head position control system 17. Further, information regarding the current position of the write head 14a and the read head 14b in the width direction on the tape 23 is acquired.
The tape running management unit 68 outputs a signal for running the tape 23 in the forward direction and a signal for running the tape 23 in the reverse direction to the motor driver 18.

次に、本実施の形態におけるテープドライブ10の動作について詳細に説明する。
まず、ホスト200からWriteコマンドが送られてきた場合のテープドライブ10の動作について説明する。
ホスト200は、データとメタデータを関連付けるdm-idを伴うWriteコマンドをアーカイブ装置100に送ってくる。すると、アーカイブ装置100では、制御機構30が、このデータを識別するd-idと、このメタデータを識別するm-idとを生成し、dm-idとd-idとm-idとを関連付けてdm-aとして登録する。また、データとメタデータを書き込むカートリッジ20を決定し、d-idとm-idとカートリッジ20とを関連付けてdm-lとして登録し、そのカートリッジ20をテープドライブ10に装填するようアクセッサ40に指示する。そして、制御機構30は、dm-id、d-id、m-id、データ、メタデータを伴うWriteコマンドをテープドライブ10に送る。これにより、テープドライブ10の動作が開始する。
Next, the operation of the tape drive 10 in the present embodiment will be described in detail.
First, the operation of the tape drive 10 when a write command is sent from the host 200 will be described.
The host 200 sends a Write command with a dm-id that associates data and metadata to the archive device 100. Then, in the archive device 100, the control mechanism 30 generates a d-id that identifies this data and an m-id that identifies this metadata, and associates the dm-id, the d-id, and the m-id. And register as dm-a. Further, the cartridge 20 to which data and metadata are written is determined, the d-id, the m-id, and the cartridge 20 are associated and registered as dm-l, and the accessor 40 is instructed to load the cartridge 20 into the tape drive 10. To do. Then, the control mechanism 30 sends a Write command with dm-id, d-id, m-id, data, and metadata to the tape drive 10. Thereby, the operation of the tape drive 10 is started.

図12は、このときのテープドライブ10のコントローラ16の動作例を示したフローチャートである。
コントローラ16では、まず、コマンド処理部61が、ホストI/F11を介してdm-id、d-id、m-id、データ、メタデータを伴うWriteコマンドを受け取る(ステップ601)。このとき、dm-id、d-id、m-id、データ、メタデータは、バッファ管理部62に渡され、バッファ管理部62によってバッファ12に蓄積される。
FIG. 12 is a flowchart showing an operation example of the controller 16 of the tape drive 10 at this time.
In the controller 16, first, the command processing unit 61 receives a Write command accompanied by dm-id, d-id, m-id, data, and metadata via the host I / F 11 (step 601). At this time, dm-id, d-id, m-id, data, and metadata are transferred to the buffer management unit 62 and accumulated in the buffer 12 by the buffer management unit 62.

次に、コントローラ16は、データとメタデータを、テープドライブ10に装填されたカートリッジ20のテープ23に書き込む(ステップ602)。
具体的には、バッファ管理部62から指示を受けたヘッド位置管理部67がヘッド位置制御システム17を制御して書込みヘッド14aのテープ23の幅方向における位置合わせを行うと共に、バッファ管理部62から指示を受けたテープ走行管理部68がモータドライバ18を制御してテープ23を走行させる。一方で、バッファ管理部62がバッファ12からデータ及びメタデータを読み出してチャネル入出力部63に渡し、チャネル入出力部63がチャネル13を介してデータ及びメタデータを書込みヘッド14aに出力する。
尚、このとき、チャネル入出力部63は、テープ23上のデータ及びメタデータの長手方向の記憶位置の情報をサーボヘッドからチャネル13を介して受け取り、ヘッド位置管理部67は、テープ23上のデータ及びメタデータの幅方向の記憶位置の情報をヘッド位置制御システム17から受け取る。そして、これらの記録位置の情報はバッファ管理部62に渡され、バッファ管理部62が、バッファ12から読み出したd-idとm-idとこれらの記録位置の情報をCM入出力部64に出力する。そして、CM入出力部64が、d-idとデータの記録位置との対応情報、及び、m-idとメタデータの記録位置との対応情報をCMI/F19を介してカートリッジメモリ24に書き込む。これにより、d-idをキーとしたデータの読出し、m-idをキーとしたメタデータの読出しが可能となる。
Next, the controller 16 writes the data and metadata to the tape 23 of the cartridge 20 loaded in the tape drive 10 (step 602).
Specifically, the head position management unit 67 that has received an instruction from the buffer management unit 62 controls the head position control system 17 to align the write head 14 a in the width direction of the tape 23 and from the buffer management unit 62. The tape running management unit 68 that has received the instruction controls the motor driver 18 to run the tape 23. On the other hand, the buffer management unit 62 reads the data and metadata from the buffer 12 and passes them to the channel input / output unit 63. The channel input / output unit 63 outputs the data and metadata to the write head 14a via the channel 13.
At this time, the channel input / output unit 63 receives information on the storage position in the longitudinal direction of the data and metadata on the tape 23 from the servo head via the channel 13, and the head position management unit 67 Information on the storage positions of the data and metadata in the width direction is received from the head position control system 17. The information on these recording positions is transferred to the buffer management unit 62, and the buffer management unit 62 outputs the d-id and m-id read from the buffer 12 and the information on these recording positions to the CM input / output unit 64. To do. Then, the CM input / output unit 64 writes the correspondence information between the d-id and the data recording position and the correspondence information between the m-id and the metadata recording position into the cartridge memory 24 via the CMI / F 19. As a result, it is possible to read data using d-id as a key and to read metadata using m-id as a key.

その後、コントローラ16は、カートリッジメモリ24に記憶されたdmアクセスカウンタテーブルにdm-idに対応するエントリを作成する(ステップ603)。
具体的には、バッファ管理部62がバッファ12からdm-idを読み出してCM入出力部64に渡し、CM入出力部64がdm-idを含むレコードをCMI/F19を介してカートリッジメモリ24に書き込む。
Thereafter, the controller 16 creates an entry corresponding to dm-id in the dm access counter table stored in the cartridge memory 24 (step 603).
Specifically, the buffer management unit 62 reads the dm-id from the buffer 12 and passes it to the CM input / output unit 64, and the CM input / output unit 64 sends a record including the dm-id to the cartridge memory 24 via the CMI / F 19. Write.

次いで、ホスト200からReadコマンドが送られてきた場合のテープドライブ10の動作について説明する。尚、ここでは、ホスト200からデータ及びメタデータの読出し要求がある都度、読出し対象のカートリッジ20がテープドライブ10にマウントされるものとする。
ホスト200は、dm-idを伴うReadコマンドをアーカイブ装置100に送ってくる。すると、アーカイブ装置100では、制御機構30が、dm-idに関連付けられたd-idとm-idをdm-aに基づいて特定する。また、d-idとm-idに関連付けられたカートリッジ20をdm-lに基づいて特定し、そのカートリッジ20をテープドライブ10に装填するようアクセッサ40に指示する。そして、制御機構30は、dm-id、d-id、m-idを伴うReadコマンドをテープドライブ10に送る。これにより、テープドライブ10の動作が開始する。
Next, the operation of the tape drive 10 when a Read command is sent from the host 200 will be described. Here, it is assumed that the cartridge 20 to be read is mounted on the tape drive 10 whenever there is a read request for data and metadata from the host 200.
The host 200 sends a Read command with dm-id to the archive device 100. Then, in the archive device 100, the control mechanism 30 specifies d-id and m-id associated with dm-id based on dm-a. Further, the cartridge 20 associated with d-id and m-id is specified based on dm-l, and the accessor 40 is instructed to load the cartridge 20 into the tape drive 10. Then, the control mechanism 30 sends a Read command with dm-id, d-id, and m-id to the tape drive 10. Thereby, the operation of the tape drive 10 is started.

図13は、このときのテープドライブ10のコントローラ16の動作例を示したフローチャートである。
コントローラ16では、まず、コマンド処理部61が、ホストI/F11を介してdm-id、d-id、m-idを伴うReadコマンドを受け取る(ステップ621)。このとき、dm-id、d-id、m-idは、バッファ管理部62に渡される。
FIG. 13 is a flowchart showing an operation example of the controller 16 of the tape drive 10 at this time.
In the controller 16, first, the command processing unit 61 receives a Read command with dm-id, d-id, and m-id via the host I / F 11 (step 621). At this time, dm-id, d-id, and m-id are passed to the buffer management unit 62.

次に、コントローラ16は、d-idに対応するデータと、m-idに対応するメタデータとを、テープドライブ10に装填されたカートリッジ20のテープ23から読み出す(ステップ622)。
具体的には、バッファ管理部62から指示を受けたヘッド位置管理部67がヘッド位置制御システム17を制御して読出しヘッド14bのテープ23の幅方向における位置合わせを行うと共に、バッファ管理部62から指示を受けたテープ走行管理部68がモータドライバ18を制御してテープ23を走行させる。一方で、読出しヘッド14bが読み出したデータ及びメタデータをチャネル入出力部63がチャネル13を介して取得してバッファ管理部62に渡し、バッファ管理部62がデータ及びメタデータをバッファ12に蓄積する。そして、バッファ12に蓄積されたデータ及びメタデータは、ホスト200に送信される。
Next, the controller 16 reads data corresponding to d-id and metadata corresponding to m-id from the tape 23 of the cartridge 20 loaded in the tape drive 10 (step 622).
Specifically, the head position management unit 67 that has received an instruction from the buffer management unit 62 controls the head position control system 17 to align the read head 14 b in the width direction of the tape 23 and from the buffer management unit 62. The tape running management unit 68 that has received the instruction controls the motor driver 18 to run the tape 23. On the other hand, the data and metadata read by the read head 14 b are acquired by the channel input / output unit 63 via the channel 13 and passed to the buffer management unit 62, and the buffer management unit 62 accumulates the data and metadata in the buffer 12. . The data and metadata stored in the buffer 12 are transmitted to the host 200.

その後、コントローラ16は、カートリッジメモリ24に記憶されたdmアクセスカウンタテーブルの更新処理を行う。この更新処理は、CM入出力部64がカートリッジメモリ24からCMI/F19を介して自身のメモリ領域にdmアクセスカウンタテーブルを読み込むことにより開始する。
更新処理において、まず、CM入出力部64は、dmアクセスカウンタテーブルから1レコードを読み込む(ステップ623)。そして、読み込んだレコードに含まれるRam-countが8の倍数であるかどうかを判定する(ステップ624)。その結果、Ram-countが8の倍数であれば、今回の読出しマウントから8回を一単位とした新たな読出しマウントの単位が始まる。そこで、Dm-countに0を代入することによって初期化し、Dm-readfreqに右端に“00”を付加する(ステップ625)。一方、Ram-countが8の倍数でなければ、そのまま次の処理へ進む。
Thereafter, the controller 16 updates the dm access counter table stored in the cartridge memory 24. This update process starts when the CM input / output unit 64 reads the dm access counter table from the cartridge memory 24 into its own memory area via the CMI / F 19.
In the update process, first, the CM input / output unit 64 reads one record from the dm access counter table (step 623). Then, it is determined whether or not the Ram-count included in the read record is a multiple of 8 (step 624). As a result, if Ram-count is a multiple of 8, a new read mount unit starting from the current read mount with 8 as one unit starts. Therefore, initialization is performed by substituting 0 into Dm-count, and “00” is added to the right end of Dm-readfreq (step 625). On the other hand, if Ram-count is not a multiple of 8, the process proceeds to the next process.

次に、CM入出力部64は、読み込んだレコードに含まれるRam-countに1を加算する(ステップ626)。そして、読み込んだレコードに含まれるdm-idが、Readコマンドで指定されたdm-idと一致するかどうかを判定する(ステップ627)。その結果、dm-idが一致すれば、Dm-countに1を加算し、その結果に応じて、Dm-readfreqの右端の2ビットを更新する(ステップ628)。例えば、Dm-countの値とDm-readfreqの2ビットとの関係が図5に示したようなものであるとする。この場合、1を加算した後のDm-countが0であれば、Dm-readfreqの右端の2ビットが“00”となるように更新し、1を加算した後のDm-countが1又は2であれば、Dm-readfreqの右端の2ビットが“01”となるように更新し、1を加算した後のDm-countが3〜5であれば、Dm-readfreqの右端の2ビットが“10”となるように更新し、1を加算した後のDm-countが6〜8であれば、Dm-readfreqの右端の2ビットが“11”となるように更新する。尚、Dm-countの値に応じたDm-readfreqの更新の規則は、プログラムに直接コーディングしておいてもよいし、プログラム外部のテーブルに定義しておき、プログラムがテーブルを参照することで取得してもよい。   Next, the CM input / output unit 64 adds 1 to the Ram-count included in the read record (step 626). Then, it is determined whether or not the dm-id included in the read record matches the dm-id specified by the Read command (step 627). As a result, if the dm-ids match, 1 is added to Dm-count, and the two rightmost bits of Dm-readfreq are updated according to the result (step 628). For example, it is assumed that the relationship between the value of Dm-count and 2 bits of Dm-readfreq is as shown in FIG. In this case, if Dm-count after adding 1 is 0, the rightmost 2 bits of Dm-readfreq are updated to be “00”, and Dm-count after adding 1 is 1 or 2 Then, the rightmost 2 bits of Dm-readfreq are updated to be “01”, and if the Dm-count after adding 1 is 3 to 5, the rightmost 2 bits of Dm-readfreq is “ If the Dm-count after adding 1 is 6-8, the rightmost 2 bits of Dm-readfreq are updated so as to be “11”. Note that the rules for updating Dm-readfreq according to the value of Dm-count may be coded directly in the program or defined in a table outside the program and acquired by the program referring to the table. May be.

その後、CM入出力部64は、dmアクセスカウンタテーブルから読み込んだレコードが最後のレコードであるかどうかを判定する(ステップ629)。そして、最後のレコードでなければ、次のレコードについて、ステップ623〜628の処理を繰り返す。また、最後のレコードであれば、処理を終了する。   Thereafter, the CM input / output unit 64 determines whether or not the record read from the dm access counter table is the last record (step 629). If it is not the last record, the processing in steps 623 to 628 is repeated for the next record. If it is the last record, the process is terminated.

このようにしてdmアクセスカウンタテーブルが更新された後の任意の時点で、テープドライブ10は、データ移行に関する処理を行う。
図14は、このときのテープドライブ10のコントローラ16の動作例を示したフローチャートである。尚、ここでは、移行先のテープ23において、データ及びメタデータを図10に示したように配置することを前提に説明する。
At any time after the dm access counter table is updated in this manner, the tape drive 10 performs processing related to data migration.
FIG. 14 is a flowchart showing an operation example of the controller 16 of the tape drive 10 at this time. Here, the description will be made on the assumption that the data and metadata are arranged as shown in FIG.

テープドライブ10では、まず、CM入出力部64がカートリッジメモリ24からCMI/F19を介してdmアクセスカウンタテーブルを読み込み、頻度算出部65に受け渡す(ステップ641)。
すると、頻度算出部65は、上述した第1の決定方法又は第2の決定方法を用いてdm-idごとのアクセス頻度を算出し、アクセス頻度が高い順にdmアクセスカウンタテーブルのレコードを並べ替え、並べ替え後のdmアクセスカウンタテーブルを移行制御部66に受け渡す(ステップ642)。
In the tape drive 10, the CM input / output unit 64 first reads the dm access counter table from the cartridge memory 24 via the CMI / F 19 and transfers it to the frequency calculation unit 65 (step 641).
Then, the frequency calculation unit 65 calculates the access frequency for each dm-id using the first determination method or the second determination method described above, rearranges the records in the dm access counter table in descending order of access frequency, The rearranged dm access counter table is transferred to the migration control unit 66 (step 642).

これにより、移行制御部66は、一方のテープ23から他方のテープ23へデータを移行する。
即ち、まず、移行制御部66は、並べ替え後のdmアクセスカウンタテーブルから1レコードを読み込み、バッファ管理部62に伝える(ステップ643)。すると、バッファ管理部62は、読み込んだレコードに含まれるdm-idに対応するデータ及びメタデータを移行元のテープ23から読み出す(ステップ644)。
具体的には、バッファ管理部62から指示を受けたヘッド位置管理部67がヘッド位置制御システム17を制御して読出しヘッド14bのテープ23の幅方向における位置合わせを行うと共に、バッファ管理部62から指示を受けたテープ走行管理部68がモータドライバ18を制御してテープ23を走行させる。一方で、読出しヘッド14bが読み出したデータ及びメタデータをチャネル入出力部63がチャネル13を介して取得してバッファ管理部62に渡し、バッファ管理部62がデータ及びメタデータをバッファ12に蓄積する。尚、dm-idに対応するデータ及びメタデータを読み出す際のキーとなるd-id及びm-idは、例えば、制御機構30に問い合わせることによって特定するとよい。
Thereby, the transfer control unit 66 transfers data from one tape 23 to the other tape 23.
That is, first, the migration control unit 66 reads one record from the rearranged dm access counter table and transmits it to the buffer management unit 62 (step 643). Then, the buffer management unit 62 reads data and metadata corresponding to the dm-id included in the read record from the migration source tape 23 (step 644).
Specifically, the head position management unit 67 that has received an instruction from the buffer management unit 62 controls the head position control system 17 to align the read head 14 b in the width direction of the tape 23 and from the buffer management unit 62. The tape running management unit 68 that has received the instruction controls the motor driver 18 to run the tape 23. On the other hand, the data and metadata read by the read head 14 b are acquired by the channel input / output unit 63 via the channel 13 and passed to the buffer management unit 62, and the buffer management unit 62 accumulates the data and metadata in the buffer 12. . It should be noted that d-id and m-id, which are keys for reading data and metadata corresponding to dm-id, may be specified by inquiring the control mechanism 30, for example.

次に、バッファ管理部62は、データ及びメタデータを移行先のテープ23の現在のラップに書けるかどうか判定する(ステップ645)。具体的には、チャネル入出力部63が、テープ23上のデータ及びメタデータの長手方向の記憶位置の情報をサーボヘッドからチャネル13を介して受け取るので、その情報に基づいて判定する。
その結果、現在のラップに書けると判定すれば、そのままデータ及びメタデータを移行先のテープ23に書き込む(ステップ649)。
具体的には、バッファ管理部62から指示を受けたヘッド位置管理部67がヘッド位置制御システム17を制御して書込みヘッド14aのテープ23の幅方向における位置合わせを行うと共に、バッファ管理部62から指示を受けたテープ走行管理部68がモータドライバ18を制御してテープ23を走行させる。一方で、バッファ管理部62がバッファ12からデータ及びメタデータを読み出してチャネル入出力部63に渡し、チャネル入出力部63がチャネル13を介してデータ及びメタデータを書込みヘッド14aに出力する。
Next, the buffer management unit 62 determines whether data and metadata can be written on the current wrap of the migration destination tape 23 (step 645). Specifically, the channel input / output unit 63 receives information on the storage position in the longitudinal direction of the data and metadata on the tape 23 from the servo head via the channel 13, and thus makes a determination based on the information.
As a result, if it is determined that data can be written on the current wrap, the data and metadata are directly written on the migration destination tape 23 (step 649).
Specifically, the head position management unit 67 that has received an instruction from the buffer management unit 62 controls the head position control system 17 to align the write head 14 a in the width direction of the tape 23 and from the buffer management unit 62. The tape running management unit 68 that has received the instruction controls the motor driver 18 to run the tape 23. On the other hand, the buffer management unit 62 reads the data and metadata from the buffer 12 and passes them to the channel input / output unit 63. The channel input / output unit 63 outputs the data and metadata to the write head 14a via the channel 13.

一方、現在のラップに書けないと判定すれば、現在のラップが最後のラップであるかどうかを判定する(ステップ646)。具体的には、ヘッド位置管理部67が、テープ23上のデータ及びメタデータの幅方向の記憶位置の情報をヘッド位置制御システム17から受け取るので、その情報に基づいて判定する。
そして、現在のラップが最後のラップでなければ、次のラップに切り替えて(ステップ647)、データ及びメタデータを移行先のテープ23に書き込む(ステップ649)。尚、ラップの切り替えは、ヘッド位置管理部67がヘッド位置制御システム17を制御することで行われる。
また、現在のラップが最後のラップであれば、次のセグメントのラップ#1に切り替えて(ステップ648)、データ及びメタデータを移行先のテープ23に書き込む(ステップ649)。尚、セグメントの切り替えは、テープ走行管理部68がモータドライバ18を制御することで行われ、ラップの切り替えは、ヘッド位置管理部67がヘッド位置制御システム17を制御することで行われる。
On the other hand, if it is determined that the current lap cannot be written, it is determined whether the current lap is the last lap (step 646). Specifically, since the head position management unit 67 receives information on the storage position in the width direction of the data and metadata on the tape 23 from the head position control system 17, the determination is made based on the information.
If the current lap is not the last lap, the lap is switched to the next lap (step 647), and the data and metadata are written to the destination tape 23 (step 649). The lap switching is performed by the head position management unit 67 controlling the head position control system 17.
If the current lap is the last lap, the lap # 1 of the next segment is switched (step 648), and the data and metadata are written to the destination tape 23 (step 649). The segment switching is performed by the tape running management unit 68 controlling the motor driver 18, and the lap switching is performed by the head position management unit 67 controlling the head position control system 17.

その後、移行制御部66は、dmアクセスカウンタテーブルから読み込んだレコードが最後のレコードであるかどうかを判定する(ステップ650)。そして、最後のレコードでなければ、次のレコードについて、ステップ643〜649の処理を繰り返す。また、最後のレコードであれば、処理を終了する。   Thereafter, the migration control unit 66 determines whether the record read from the dm access counter table is the last record (step 650). If it is not the last record, the processes in steps 643 to 649 are repeated for the next record. If it is the last record, the process is terminated.

尚、この動作例では、同時に2つのカートリッジ20を装填可能なテープドライブ10にて、2つのカートリッジ20を入れ替えることなくデータの移行を行うようにした。しかしながら、このようなデータの移行の制御は、制御機構30で行ってもよい。その場合、1つのカートリッジ20のみ装填可能な2台のテープドライブ10を制御機構30が制御することで、データの移行を行うようにすればよい。   In this operation example, the data transfer is performed without replacing the two cartridges 20 in the tape drive 10 that can be loaded with two cartridges 20 at the same time. However, such control of data migration may be performed by the control mechanism 30. In this case, the data transfer may be performed by the control mechanism 30 controlling the two tape drives 10 in which only one cartridge 20 can be loaded.

ここで、本発明は、全てハードウェアで実現してもよいし、全てソフトウェアで実現してもよい。また、ハードウェア及びソフトウェアの両方により実現することも可能である。また、本発明は、コンピュータ、データ処理システム、コンピュータプログラムとして実現することができる。このコンピュータプログラムは、コンピュータにより読取り可能な媒体に記憶され、提供され得る。ここで、媒体としては、電子的、磁気的、光学的、電磁的、赤外線又は半導体システム(装置又は機器)、或いは、伝搬媒体が考えられる。また、コンピュータにより読取り可能な媒体としては、半導体、ソリッドステート記憶装置、磁気テープ、取り外し可能なコンピュータディスケット、ランダムアクセスメモリ(RAM)、リードオンリーメモリ(ROM)、リジッド磁気ディスク、及び光ディスクが例示される。現時点における光ディスクの例には、コンパクトディスク−リードオンリーメモリ(CD−ROM)、コンパクトディスク−リード/ライト(CD−R/W)及びDVDが含まれる。   Here, the present invention may be realized entirely by hardware or entirely by software. It can also be realized by both hardware and software. The present invention can be realized as a computer, a data processing system, and a computer program. This computer program may be stored and provided on a computer readable medium. Here, the medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (apparatus or equipment), or a propagation medium. Examples of computer-readable media include semiconductors, solid state storage devices, magnetic tape, removable computer diskettes, random access memory (RAM), read-only memory (ROM), rigid magnetic disks, and optical disks. The Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read / write (CD-R / W) and DVD.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態には限定されない。本発明の精神及び範囲から逸脱することなく様々に変更したり代替態様を採用したりすることが可能なことは、当業者に明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the said embodiment. It will be apparent to those skilled in the art that various modifications and alternative embodiments can be made without departing from the spirit and scope of the invention.

本発明の実施の形態が適用されるアーカイブ装置の構成を示したブロック図である。It is the block diagram which showed the structure of the archive device with which embodiment of this invention is applied. 本発明の実施の形態におけるdm-id、d-id、m-idの関連付けについて説明するための図である。It is a figure for demonstrating the correlation of dm-id, d-id, and m-id in the embodiment of the present invention. 本発明の実施の形態におけるdm-id、d-id、m-idの関連付けの具体例を示した図である。It is the figure which showed the specific example of correlation of dm-id, d-id, and m-id in embodiment of this invention. 本発明の実施の形態でデータを移行する前にデータ及びメタデータがテープ上に分散配置された状態を示した図である。It is the figure which showed the state by which data and metadata were distributed and arranged on the tape before moving data in the embodiment of the present invention. 本発明の実施の形態で用いるカウンタについて具体的に説明するための図である。It is a figure for demonstrating concretely about the counter used by embodiment of this invention. 本発明の実施の形態で用いるdmアクセスカウンタテーブルの一例を示した図である。It is the figure which showed an example of the dm access counter table used in embodiment of this invention. 本発明の実施の形態におけるカウンタの更新について具体的に説明するための図である。It is a figure for demonstrating concretely about the update of the counter in embodiment of this invention. 本発明の実施の形態でデータを移行した後にデータ及びメタデータがテープ上にアクセス頻度順に配置された状態を示した図である。It is the figure which showed the state by which data and metadata were arrange | positioned on the tape in order of access frequency after migrating data by embodiment of this invention. テープにおけるアクセス頻度の速い部分と遅い部分について説明するための図である。It is a figure for demonstrating the part with a quick access frequency in a tape, and a slow part. 本発明の実施の形態でデータを移行した後にデータ及びメタデータがテープ上にアクセス頻度順に配置された状態の変形例を示した図である。It is the figure which showed the modification of the state in which data and metadata were arrange | positioned in order of access frequency on the tape after data transfer in embodiment of this invention. 本発明の実施の形態におけるコントローラの機能構成例を示したブロック図である。It is the block diagram which showed the function structural example of the controller in embodiment of this invention. 本発明の実施の形態におけるWriteコマンド受信時のコントローラの動作例を示したフローチャートである。It is the flowchart which showed the operation example of the controller at the time of Write command reception in embodiment of this invention. 本発明の実施の形態におけるReadコマンド受信時のコントローラの動作例を示したフローチャートである。It is the flowchart which showed the operation example of the controller at the time of Read command reception in embodiment of this invention. 本発明の実施の形態におけるデータ移行時のコントローラの動作例を示したフローチャートである。It is the flowchart which showed the operation example of the controller at the time of the data transfer in embodiment of this invention.

符号の説明Explanation of symbols

10…テープドライブ、11…ホストI/F、12…バッファ、13…チャネル、14a…書込みヘッド、14b…読出しヘッド、15…モータ、16…コントローラ、17…ヘッド位置制御システム、18…モータドライバ、19…CMI/F、20…カートリッジ、30…制御機構、40…アクセッサ、50…カートリッジスロット、100…アーカイブ装置、200…ホスト DESCRIPTION OF SYMBOLS 10 ... Tape drive, 11 ... Host I / F, 12 ... Buffer, 13 ... Channel, 14a ... Write head, 14b ... Read head, 15 ... Motor, 16 ... Controller, 17 ... Head position control system, 18 ... Motor driver, 19 ... CMI / F, 20 ... cartridge, 30 ... control mechanism, 40 ... accessor, 50 ... cartridge slot, 100 ... archive device, 200 ... host

Claims (14)

第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する装置であって、
前記第1の記録媒体に記録された各データについて、当該第1の記録媒体に当該各データが書き込まれた後に当該第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、当該第1の記録媒体から当該各データが読み出された回数を示す第2の情報とを取得する取得部と、
前記取得部により取得された前記第1の情報と前記第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、
前記把握部により把握された前記アクセス頻度に基づいて、前記第2の記録媒体における各データの記録位置を決定する決定部と
を含む、装置。
An apparatus for supporting the transfer of data recorded on a first recording medium to a second recording medium,
For each data recorded on the first recording medium, a first indicating the number of times any data is read from the first recording medium after the data is written to the first recording medium. And an acquisition unit for acquiring the second information indicating the number of times each piece of data has been read from the first recording medium;
A grasping unit for grasping an access frequency of each data using the first information and the second information obtained by the obtaining unit;
A determination unit configured to determine a recording position of each data on the second recording medium based on the access frequency grasped by the grasping unit.
前記第1の記録媒体から特定のデータが読み出された場合に、各データについて、前記第1の情報を更新し、当該特定のデータについて、前記第2の情報を更新する更新部を更に含む、請求項1の装置。   When specific data is read from the first recording medium, an update unit is further included that updates the first information for each data and updates the second information for the specific data. The apparatus of claim 1. 前記特定のデータは、主データと、当該主データの付加情報であるメタデータとを含み、
前記更新部は、前記第1の記録媒体から前記主データ及び前記メタデータの少なくとも何れか一方が読み出された場合に、前記特定のデータが読み出されたと判定する、請求項2の装置。
The specific data includes main data and metadata that is additional information of the main data,
The apparatus according to claim 2, wherein the update unit determines that the specific data has been read when at least one of the main data and the metadata is read from the first recording medium.
前記第1の情報は、前記第1の記録媒体に各データが書き込まれた後に当該第1の記録媒体が記憶装置にマウントされた回数によって、当該第1の記録媒体に各データが書き込まれた後に当該第1の記録媒体から何れかのデータが読み出された回数を示す、請求項1の装置。   According to the first information, each data is written on the first recording medium according to the number of times the first recording medium is mounted on the storage device after each data is written on the first recording medium. The apparatus of claim 1, wherein the apparatus indicates the number of times any data has been read from the first recording medium. 前記把握部は、前記第1の情報が示す回数に対する前記第2の情報が示す回数の比率を、前記アクセス頻度として把握する、請求項1の装置。   The apparatus according to claim 1, wherein the grasping unit grasps, as the access frequency, a ratio of the number of times indicated by the second information to the number of times indicated by the first information. 前記把握部は、前記第1の情報が示す回数が所定の範囲にあるデータについて、前記第2の情報を用いて、前記アクセス頻度を把握する、請求項1の装置。   The apparatus according to claim 1, wherein the grasping unit grasps the access frequency using the second information for data in which the number of times indicated by the first information is within a predetermined range. 前記第2の情報は、各データの読出しの履歴を複数のビット値で表す情報であって、前記第1の記録媒体からのM回のデータの読出しのうち当該各データが読み出された回数を、当該複数のビット値のうちN(N<M)個のビット値で表す、請求項1の装置。   The second information is information representing a history of reading each data with a plurality of bit values, and the number of times each data is read out of M times of reading data from the first recording medium. 2. The apparatus of claim 1, wherein is represented by N (N <M) bit values of the plurality of bit values. 前記決定部は、前記アクセス頻度が高いデータが前記第2の記録媒体における第1の記録位置に記録され、かつ、前記アクセス頻度が低いデータが当該第2の記録媒体における当該第1の記録位置よりもデータの読出しに時間がかかる第2の記録位置に記録されるように、当該第2の記録媒体における各データの記録位置を決定する、請求項1の装置。   The determination unit records the data with high access frequency at a first recording position on the second recording medium, and the data with low access frequency on the first recording position on the second recording medium. The apparatus according to claim 1, wherein the recording position of each data on the second recording medium is determined so that the data is recorded at the second recording position that takes longer to read data than the data. 前記第2の記録媒体は、第1の端部から第2の端部へ向けてデータの読出しが開始されるテープ媒体であり、
前記第2の記録位置は、前記第1の記録位置よりも前記第2の端部に近い位置である、請求項8の装置。
The second recording medium is a tape medium from which data reading is started from the first end toward the second end,
9. The apparatus of claim 8, wherein the second recording position is closer to the second end than the first recording position.
前記第2の記録媒体は、第1の端部から第2の端部へ向けてデータの読出しが開始され、かつ、長手方向の少なくとも1つの位置で分割することで形成された複数の領域を有するテープ媒体であり、
前記第1の記録位置は、前記複数の領域のうちの第1の領域内の位置であり、
前記第2の記録位置は、前記複数の領域のうち、前記第1の領域よりも前記第2の端部に近い第2の領域内の位置である、請求項8の装置。
The second recording medium starts reading data from the first end toward the second end, and divides a plurality of regions formed by dividing at least one position in the longitudinal direction. A tape medium having
The first recording position is a position in a first area of the plurality of areas,
9. The apparatus according to claim 8, wherein the second recording position is a position in a second area of the plurality of areas that is closer to the second end than the first area.
記録媒体におけるデータの再配置を支援する装置であって、
前記記録媒体に記録された各データについて、当該記録媒体に当該各データが書き込まれた後に当該記録媒体から何れかのデータが読み出された回数を示す第1の情報と、当該記録媒体から当該各データが読み出された回数を示す第2の情報とを取得する取得部と、
前記取得部により取得された前記第1の情報と前記第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、
前記把握部により把握された前記アクセス頻度に基づいて、前記記録媒体における各データの記録位置を決定する決定部と
を含む、装置。
An apparatus for supporting data rearrangement on a recording medium,
For each data recorded on the recording medium, first information indicating the number of times any data is read from the recording medium after each data is written to the recording medium; An acquisition unit for acquiring second information indicating the number of times each data is read;
A grasping unit for grasping an access frequency of each data using the first information and the second information obtained by the obtaining unit;
A determination unit configured to determine a recording position of each data on the recording medium based on the access frequency grasped by the grasping unit.
第1のテープ媒体に記録されたデータを第2のテープ媒体に移行する装置であって、
前記第1のテープ媒体に記録され、主データと、当該主データの付随情報を示すメタデータとを含む各データについて、当該第1のテープ媒体に当該各データが書き込まれた後に当該第1のテープ媒体が何れかのデータの読出しのためにテープドライブにマウントされた回数を示す第1の情報と、当該第1のテープ媒体から当該各データが読み出された回数を示す第2の情報とを取得する取得部と、
前記取得部により取得された前記第1の情報が示す回数に対する前記第2の情報が示す回数の比率を、各データのアクセス頻度として把握する把握部と、
前記把握部により把握された前記アクセス頻度が高いデータから順に前記第2のテープ媒体に書き込む書込み部と
を含む、装置。
An apparatus for transferring data recorded on a first tape medium to a second tape medium,
For each data recorded on the first tape medium and including main data and metadata indicating accompanying information of the main data, the first data after the data is written on the first tape medium. First information indicating the number of times the tape medium is mounted on the tape drive for reading any data, and second information indicating the number of times each piece of data is read from the first tape medium; An acquisition unit for acquiring
A grasping unit for grasping, as an access frequency of each data, a ratio of the number of times indicated by the second information to the number of times indicated by the first information acquired by the acquiring unit;
And a writing unit that writes data to the second tape medium in order from the data with the highest access frequency grasped by the grasping unit.
第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する方法であって、
前記第1の記録媒体に記録された各データについて、当該第1の記録媒体に当該各データが書き込まれた後に当該第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、当該第1の記録媒体から当該各データが読み出された回数を示す第2の情報とを取得するステップと、
取得された前記第1の情報と前記第2の情報とを用いて、各データのアクセス頻度を把握するステップと、
把握された前記アクセス頻度に基づいて、前記第2の記録媒体における各データの記録位置を決定するステップと
を含む、方法。
A method for supporting the transfer of data recorded on a first recording medium to a second recording medium,
For each data recorded on the first recording medium, a first indicating the number of times any data is read from the first recording medium after the data is written to the first recording medium. Obtaining the second information indicating the number of times each piece of data has been read from the first recording medium;
Using the acquired first information and the second information to grasp the access frequency of each data;
Determining a recording position of each data in the second recording medium based on the grasped access frequency.
第1の記録媒体に記録されたデータの第2の記録媒体への移行を支援する装置としてコンピュータを機能させるプログラムであって、
前記コンピュータを、
前記第1の記録媒体に記録された各データについて、当該第1の記録媒体に当該各データが書き込まれた後に当該第1の記録媒体から何れかのデータが読み出された回数を示す第1の情報と、当該第1の記録媒体から当該各データが読み出された回数を示す第2の情報とを取得する取得部と、
前記取得部により取得された前記第1の情報と前記第2の情報とを用いて、各データのアクセス頻度を把握する把握部と、
前記把握部により把握された前記アクセス頻度に基づいて、前記第2の記録媒体における各データの記録位置を決定する決定部と
して機能させる、プログラム。
A program that causes a computer to function as a device that supports the transfer of data recorded on a first recording medium to a second recording medium,
The computer,
For each data recorded on the first recording medium, a first indicating the number of times any data is read from the first recording medium after the data is written to the first recording medium. And an acquisition unit for acquiring the second information indicating the number of times each piece of data has been read from the first recording medium;
A grasping unit for grasping an access frequency of each data using the first information and the second information obtained by the obtaining unit;
A program that functions as a determination unit that determines a recording position of each data in the second recording medium based on the access frequency grasped by the grasping unit.
JP2008329430A 2008-12-25 2008-12-25 Apparatus and method for migrating data recorded on a recording medium Expired - Fee Related JP5106377B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2008329430A JP5106377B2 (en) 2008-12-25 2008-12-25 Apparatus and method for migrating data recorded on a recording medium
KR1020090115072A KR101171439B1 (en) 2008-12-25 2009-11-26 Device and method for migration of data recorded in recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008329430A JP5106377B2 (en) 2008-12-25 2008-12-25 Apparatus and method for migrating data recorded on a recording medium

Publications (2)

Publication Number Publication Date
JP2010152603A true JP2010152603A (en) 2010-07-08
JP5106377B2 JP5106377B2 (en) 2012-12-26

Family

ID=42571630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008329430A Expired - Fee Related JP5106377B2 (en) 2008-12-25 2008-12-25 Apparatus and method for migrating data recorded on a recording medium

Country Status (2)

Country Link
JP (1) JP5106377B2 (en)
KR (1) KR101171439B1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012138135A (en) * 2010-12-24 2012-07-19 Internatl Business Mach Corp <Ibm> Storage device, recording medium and method for long storage of data
JP2014199596A (en) * 2013-03-29 2014-10-23 富士通株式会社 Data arrangement program, data arrangement method, and information processor
JP2015204125A (en) * 2014-04-15 2015-11-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Reducing necessary time for writing file to tape medium
JP2015533010A (en) * 2012-10-31 2015-11-16 オラクル・インターナショナル・コーポレイション Variable data transfer rate optical tape drive system and method
JP2016091245A (en) * 2014-10-31 2016-05-23 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation File migration method in hierarchical storage system
US9632949B2 (en) 2014-10-28 2017-04-25 International Business Machines Corporation Storage management method, storage management system, computer system, and program
US9858010B2 (en) 2014-12-02 2018-01-02 International Business Machines Corporation Writing files to a storage medium
WO2021054243A1 (en) 2019-09-17 2021-03-25 富士フイルム株式会社 Recording device, recording method, recording program, and magnetic tape
WO2022195985A1 (en) * 2021-03-18 2022-09-22 富士フイルム株式会社 Information processing device, information processing method, and information processing program
WO2022195984A1 (en) * 2021-03-18 2022-09-22 富士フイルム株式会社 Information processing device, information processing method, and information processing program
US11687268B2 (en) 2020-03-13 2023-06-27 Fujitsu Limited Object migration system using tape medium, object migration source storage device, and object migration destination storage device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0969028A (en) * 1995-08-31 1997-03-11 Hitachi Ltd Magnetic tape cartridge control system
JPH1131376A (en) * 1997-07-09 1999-02-02 Sony Corp Information recording and reproducing device and its method
JPH11306690A (en) * 1998-04-20 1999-11-05 Aiwa Co Ltd Signal recording method, tape recording medium processing device, and tape recording medium
JP2006293981A (en) * 2005-03-18 2006-10-26 Hitachi Ltd Database storing method, and database storing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0969028A (en) * 1995-08-31 1997-03-11 Hitachi Ltd Magnetic tape cartridge control system
JPH1131376A (en) * 1997-07-09 1999-02-02 Sony Corp Information recording and reproducing device and its method
JPH11306690A (en) * 1998-04-20 1999-11-05 Aiwa Co Ltd Signal recording method, tape recording medium processing device, and tape recording medium
JP2006293981A (en) * 2005-03-18 2006-10-26 Hitachi Ltd Database storing method, and database storing system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012138135A (en) * 2010-12-24 2012-07-19 Internatl Business Mach Corp <Ibm> Storage device, recording medium and method for long storage of data
JP2015533010A (en) * 2012-10-31 2015-11-16 オラクル・インターナショナル・コーポレイション Variable data transfer rate optical tape drive system and method
JP2014199596A (en) * 2013-03-29 2014-10-23 富士通株式会社 Data arrangement program, data arrangement method, and information processor
US10331628B2 (en) 2014-04-15 2019-06-25 International Business Machines Corporation Reduction in time required to write file to tape
JP2015204125A (en) * 2014-04-15 2015-11-16 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Reducing necessary time for writing file to tape medium
US9690486B2 (en) 2014-04-15 2017-06-27 International Business Machines Corporation Reduction in time required to write file to tape
US11061869B2 (en) 2014-04-15 2021-07-13 International Business Machines Corporation Reduction in time required to write file to tape
US9632949B2 (en) 2014-10-28 2017-04-25 International Business Machines Corporation Storage management method, storage management system, computer system, and program
JP2016091245A (en) * 2014-10-31 2016-05-23 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation File migration method in hierarchical storage system
US9940061B2 (en) 2014-10-31 2018-04-10 International Business Machines Corporation Method of moving files in hierarchical storage system
US9946487B2 (en) 2014-10-31 2018-04-17 International Business Machines Corporation Method of moving files in hierarchical storage system
US10078466B2 (en) 2014-12-02 2018-09-18 International Business Machines Corporation Writing files to a storage medium
US9858010B2 (en) 2014-12-02 2018-01-02 International Business Machines Corporation Writing files to a storage medium
WO2021054243A1 (en) 2019-09-17 2021-03-25 富士フイルム株式会社 Recording device, recording method, recording program, and magnetic tape
JPWO2021054243A1 (en) * 2019-09-17 2021-03-25
CN114402283A (en) * 2019-09-17 2022-04-26 富士胶片株式会社 Recording device, recording method, recording program, and magnetic tape
EP4033488A4 (en) * 2019-09-17 2022-11-16 FUJIFILM Corporation Recording device, recording method, recording program, and magnetic tape
US11687268B2 (en) 2020-03-13 2023-06-27 Fujitsu Limited Object migration system using tape medium, object migration source storage device, and object migration destination storage device
WO2022195985A1 (en) * 2021-03-18 2022-09-22 富士フイルム株式会社 Information processing device, information processing method, and information processing program
WO2022195984A1 (en) * 2021-03-18 2022-09-22 富士フイルム株式会社 Information processing device, information processing method, and information processing program

Also Published As

Publication number Publication date
KR101171439B1 (en) 2012-08-09
JP5106377B2 (en) 2012-12-26
KR20100075727A (en) 2010-07-05

Similar Documents

Publication Publication Date Title
JP5106377B2 (en) Apparatus and method for migrating data recorded on a recording medium
EP1805589B1 (en) Tape emulating disk based storage and method with automatically resized emulated tape capacity
US6173359B1 (en) Storage and access to scratch mounts in VTS system
JP5480163B2 (en) Apparatus and method for reading data recorded on recording medium
JP3175371B2 (en) Data storage format conversion method, conversion method thereof, access control device, and data access method
US9280556B2 (en) Generating enumerated information in which a plurality of files are enumerated in a sequential medium
JP5999650B2 (en) Method and program for retrieving the reading order of a plurality of record groups on a tape
US8009541B2 (en) Device, method, and computer program product for data migration
US8041921B2 (en) Apparatus, system, and method for utilizing tape media segmentation
US9448744B2 (en) Mapping locations of logical volume records on a physical stacked volume
EP2317428B1 (en) Automatically linking partitions on a tape media device
JP6391061B2 (en) How to write a file on tape
US20030026021A1 (en) Method, system, program, and storage cartridge for storing data in a storage medium
US9685179B2 (en) Tape device and controller thereof
US7143232B2 (en) Method, system, and program for maintaining a directory for data written to a storage medium
GB2536385A (en) Method for backing up data on tape
US20070236817A1 (en) Magnetic-tape recording method, magnetic-tape recording apparatus, and computer system
JP7252448B2 (en) Tape unit, controller and read control program
JP4269915B2 (en) Recording / reproducing apparatus and method, and recording / reproducing system
JP2001283563A (en) Recording and reproducing device
JP2001283575A (en) Recording and reproducing device
JP2001283574A (en) Recording and reproducing device
JP2001283573A (en) Recording device and recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110112

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110322

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110720

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20110728

A912 Re-examination (zenchi) completed and case transferred to appeal board

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20110819

RD14 Notification of resignation of power of sub attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7434

Effective date: 20120911

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121002

R150 Certificate of patent or registration of utility model

Ref document number: 5106377

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151012

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees