JP4759609B2 - Tape drive control device and tape drive control method - Google Patents

Tape drive control device and tape drive control method Download PDF

Info

Publication number
JP4759609B2
JP4759609B2 JP2008266701A JP2008266701A JP4759609B2 JP 4759609 B2 JP4759609 B2 JP 4759609B2 JP 2008266701 A JP2008266701 A JP 2008266701A JP 2008266701 A JP2008266701 A JP 2008266701A JP 4759609 B2 JP4759609 B2 JP 4759609B2
Authority
JP
Japan
Prior art keywords
file
seek
tape
files
head
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008266701A
Other languages
Japanese (ja)
Other versions
JP2010097646A (en
Inventor
泰宏 恩田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008266701A priority Critical patent/JP4759609B2/en
Publication of JP2010097646A publication Critical patent/JP2010097646A/en
Application granted granted Critical
Publication of JP4759609B2 publication Critical patent/JP4759609B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、磁気テープ媒体に書き込まれたファイルへのアクセスを制御するテープ駆動制御装置およびテープ駆動制御方法に関する。   The present invention relates to a tape drive control apparatus and a tape drive control method for controlling access to a file written on a magnetic tape medium.

磁気テープ記憶装置では、ファイルを書き込みあるいは読み出すために、テープ媒体を移動させて、テープ上の所望の位置にヘッドを位置づける。ファイルを読み出す場合は、読み出すべきファイルの先頭にテープヘッドを位置づけてから、ファイルを読み出す。ファイルにアクセスするためにファイルの先頭にテープヘッドを位置づけることをシークという。また、シーク動作によりヘッドが移動する距離をシーク距離といい、シーク距離をヘッドが移動するのに要した時間をシーク時間という。ファイルの読み出し性能を高めるためには、シーク時間を短縮することが必要である。   In a magnetic tape storage device, to write or read a file, the tape medium is moved and the head is positioned at a desired position on the tape. When reading a file, the tape head is positioned at the head of the file to be read and then the file is read. Positioning the tape head at the beginning of a file to access the file is called seeking. In addition, the distance that the head moves by the seek operation is called a seek distance, and the time required for the head to move the seek distance is called a seek time. In order to improve the file reading performance, it is necessary to shorten the seek time.

LTO(Linear Tape-Open)規格が提案されるより以前のリニア記録方式では、テープ媒体上のファイルは、テープの物理的な前端(BOT:Beginning Of Tape)から終端(EOT:End Of Tape)まで、ファイル間を示すファイルマークを介して、ファイル番号の昇順に配置されていた。テープ媒体上の大量のファイルに対して、複数のファイルを読み出す要求が起こると、読み出し要求のあった順にファイルを読み出すのではなく、ファイル番号の昇順にファイルを読みだすと早く読むことができた。   In the linear recording method before the LTO (Linear Tape-Open) standard was proposed, the file on the tape medium is from the physical front end (BOT: Beginning Of Tape) to the end (EOT: End Of Tape) of the tape. The files are arranged in the ascending order of the file numbers through the file marks indicating between the files. When a request to read multiple files occurs for a large number of files on a tape medium, instead of reading the files in the order in which they were requested, reading the files in ascending order of the file numbers enabled them to be read quickly. .

しかし、LTO規格に準拠したテープでは、データファイルは、BOTからEOTまで書き込まれると、EOTで折り返してEOTからBOTへ向かって書き込まれる。さらに、ファイルがBOTまで書き込まれると、BOTで折り返してEOTに向かって書き込まれる。テープ上にEOTからBOTへ記録されているファイルが存在すると、単にファイル番号の昇順に読み出すことでは、効率よく読み出すことはできない。   However, in a tape compliant with the LTO standard, when a data file is written from BOT to EOT, the data file is folded back at EOT and written from EOT to BOT. Further, when the file is written up to the BOT, it is folded back at the BOT and written toward the EOT. If there is a file recorded from EOT to BOT on the tape, it cannot be read efficiently by simply reading in ascending order of the file numbers.

なお、テープ媒体に対してランダムなアクセス要求があった場合に、リオーダリング手段により、リードライト処理が終了するたびに、すべてのデータの先頭位置と現在の磁気ヘッドとの位置を比較して、最も距離の短いものを選択することが公知である。また、テープがドライブ装置に装着された際に、磁気テープのデータ記憶領域の中間点に磁気ヘッドが位置するようにして、平均的なデータアクセス時間を短縮することが公知である。(特許文献1、2参照)   When there is a random access request to the tape medium, the reordering unit compares the position of the head position of all data with the current magnetic head every time the read / write process is completed, It is known to select the one with the shortest distance. It is also known to reduce the average data access time by placing the magnetic head at the midpoint of the data storage area of the magnetic tape when the tape is loaded into the drive device. (See Patent Documents 1 and 2)

特開2000−48549号公報JP 2000-48549 A 特開2004−355747号公報JP 2004-355747 A

上記問題に鑑み、本発明は、学習機能によりファイルに対するアクセス効率を向上させることができるテープ駆動制御装置およびテープ駆動制御方法を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a tape drive control device and a tape drive control method capable of improving access efficiency to a file by a learning function.

テープ駆動制御装置は、テープ先頭位置からファイル先頭位置までのシーク時間あるいはシーク距離を含むシーク情報が、書き込まれたファイル順に登録されるシーク管理テーブルであって、前記シーク情報が確定しているシーク情報確定ファイルに対しては該確定シーク情報が登録され、前記シーク情報が確定していないシーク情報未確定ファイルに対しては当該ファイルより先に書き込まれてシーク情報が確定しているファイルのシーク情報が仮に登録され、その後前記シーク情報未確定ファイルのシーク情報が確定すると該確定シーク情報が登録されるシーク管理テーブルと、ヘッドをテープの所望の位置に位置づけ、前記ヘッドによりデータの書き込みあるいは読み出しを実行させるように、テープ走行を制御するテープ走行制御部と、を備え、前記テープ走行制御部は、離散して書き込まれた複数のファイルの読み出し要求に応じて、前記読み出し要求のある複数のファイルのシーク時間あるいはシーク距離を前記シーク管理テーブルから抽出して、前記読み出し要求のある複数のファイルに対して抽出されたシーク時間あるいはシーク距離の昇順にアクセスするようにテープの走行を制御する。   The tape drive control device is a seek management table in which seek information including a seek time or seek distance from a tape head position to a file head position is registered in the order of written files, and the seek information is determined. The confirmed seek information is registered for the information confirmed file, and the seek information for which the seek information is not confirmed for the seek information unconfirmed file is written before the file and the seek of the file for which the seek information is confirmed. When the information is temporarily registered and then seek information of the seek information unconfirmed file is confirmed, the seek management table in which the confirmed seek information is registered, the head is positioned at a desired position on the tape, and data is written or read by the head Tape running control unit that controls the tape running so that The tape running control unit extracts, from the seek management table, seek times or seek distances of the plurality of files having the read request in response to the read requests of the plurality of files written discretely. The tape travel is controlled so as to access the plurality of files requested to be read in ascending order of the extracted seek time or seek distance.

また、テープ駆動制御方法は、前記シーク管理テーブルと前記テープ走行制御部とを備えるテープ駆動制御装置におけるテープ駆動制御方法であって、前記テープ走行制御部は、離散して書き込まれた複数のファイルの読み出し要求に応じて、前記読み出し要求のある複数のファイルのシーク時間あるいはシーク距離を前記シーク管理テーブルから抽出し、該抽出されたシーク時間あるいはシーク距離の昇順に、前記ヘッドが前記読み出し要求のある複数のファイルにアクセスするようにテープの走行を制御する。   The tape drive control method is a tape drive control method in a tape drive control device including the seek management table and the tape travel control unit, wherein the tape travel control unit includes a plurality of files written discretely. In response to the read request, the seek time or seek distance of a plurality of files having the read request is extracted from the seek management table, and the head performs the read request in ascending order of the extracted seek time or seek distance. Controls tape travel to access multiple files.

また、テープ駆動制御装置およびテープ駆動制御方法では、連続して書き込まれた複数のファイルの読み出し要求に応じて、ファイル番号の昇順に読み出すと好適である。   In the tape drive control device and the tape drive control method, it is preferable to read in ascending order of file numbers in response to a read request for a plurality of files written successively.

本テープ駆動制御装置およびテープ駆動制御方法が使用するシーク管理テーブルはファイルへのシーク時間あるいはシーク距離を学習することができるので、効率的なファイルアクセスを達成することができる。   Since the seek management table used by the tape drive control apparatus and the tape drive control method can learn the seek time or seek distance to a file, efficient file access can be achieved.

まず、EOTおよびBOTで折り返して記録されるテープ媒体上のファイルアクセス方法を説明する。なお、テープ記録装置では、テープヘッドは固定位置にあり、テープが移動してテープヘッドに対してテープ上の所望の位置を位置づける。しかし、以下の説明では、説明を簡単にするために、テープに対してテープヘッドが移動するとして説明する場合もある。   First, a file access method on a tape medium which is recorded by being folded back by EOT and BOT will be described. In the tape recording apparatus, the tape head is at a fixed position, and the tape moves to position a desired position on the tape with respect to the tape head. However, in the following description, in order to simplify the description, it may be described that the tape head moves with respect to the tape.

(離散して書き込まれている複数のファイルに対するアクセス)
図1は、読み出し要求のあったファイルがテープ上に散在している場合の読み出し方法を説明する図である。図1は、物理的なテープ先端(BOT)から終端(EOT)までテープ10を展開してファイルのテープ上での位置を示す。さらに、テープヘッド20の動きとしてシーク動作および読み出し動作を示す。
(Access to multiple files written discretely)
FIG. 1 is a diagram for explaining a reading method when files requested to be read are scattered on the tape. FIG. 1 shows the position of a file on the tape by unfolding the tape 10 from the physical tape front end (BOT) to the end end (EOT). Furthermore, a seek operation and a read operation are shown as the movement of the tape head 20.

図1のファイルF♯1〜F#5の上の数字はBOTからファイル先頭までのシーク時間を示す。図1では、ファイルの先頭は、縦の二重線で示されている。各ファイルF♯1〜F♯5のシーク時間は、ファイルF♯1では1秒、ファイルF♯2では180秒、ファイルF♯3では90秒、ファイルF♯4では50秒、ファイルF♯5では110秒である。   The numbers above the files F # 1 to F # 5 in FIG. 1 indicate the seek time from the BOT to the beginning of the file. In FIG. 1, the beginning of the file is indicated by a vertical double line. The seek times of the files F # 1 to F # 5 are 1 second for the file F # 1, 180 seconds for the file F # 2, 90 seconds for the file F # 3, 50 seconds for the file F # 4, and the file F # 5. Then it is 110 seconds.

図1のヘッド動作Aに、ファイル番号の昇順にファイルF♯1〜F#5を読み出す場合のヘッドの動きを示す。図1のヘッド動作Bには、ファイルのシーク時間の昇順にファイルF♯1〜F#5を読み出す場合のヘッドの動きを示す。いずれも、破線の矢印は、シークによるテープヘッドの動き示し、実線の矢印は、読み出しによるヘッドの動きを示す。   The head operation A in FIG. 1 shows the head movement when reading the files F # 1 to F # 5 in ascending order of the file numbers. The head operation B in FIG. 1 shows the head movement when reading the files F # 1 to F # 5 in ascending order of the seek time of the file. In both cases, the broken arrow indicates the movement of the tape head by seeking, and the solid arrow indicates the movement of the head by reading.

図1のヘッド動作Aに示す、ファイル番号の昇順にファイルF♯1〜F#5を読み出す場合、すべてのファイルを読み出すためのシーク時間(秒)は、おおよそ次ぎのとおりである。
1+(180−1)+(180−90)+(90−50)+(110−50)
=370
When the files F # 1 to F # 5 are read in ascending order of the file numbers shown in the head operation A of FIG. 1, the seek time (seconds) for reading all the files is approximately as follows.
1+ (180-1) + (180-90) + (90-50) + (110-50)
= 370

図1のヘッド動作Bに示す、シーク時間の昇順、つまり、F#1→F#4→F#3→F#5→F#2の順に読み出せば、すべてのファイルを読み出すためのシーク時間(秒)は、およそつぎのとおりとなる。
1+(50−1)+(90−50)+(110−90)+(180−110)
=180
Ascending order of seek time shown in head operation B of FIG. 1, that is, seek time for reading all files if reading is performed in the order of F # 1, F # 4, F # 3, F # 5, and F # 2. (Seconds) is approximately as follows.
1+ (50-1) + (90-50) + (110-90) + (180-110)
= 180

図1に示す例では、ファイル番号の昇順にファイルを読み出すと、総シーク時間はほぼ370秒かかり、シーク時間の昇順にファイルを読み出すと、総シーク時間はほぼ総180秒で済む。折り返されたトラックに散在する複数のファイルへのアクセスは、BOTからのシーク時間の昇順に読めば、テープヘッドの移動距離を短くし、総シーク時間を短縮することができる。   In the example shown in FIG. 1, when a file is read in ascending order of file numbers, the total seek time takes approximately 370 seconds, and when a file is read in ascending order of seek time, the total seek time is approximately 180 seconds. If access to a plurality of files scattered on the folded track is read in ascending order of seek time from the BOT, the moving distance of the tape head can be shortened and the total seek time can be shortened.

(連続するファイルに対するアクセス)
図2は、テープ上のバックワードトラックに連続して記録されたファイルに対するアクセス方法を説明する図である。図2も図1と同様に、テープ10はBOTからEOTまで展開して示され、ヘッド20の動きにより、テープとヘッドの相対運動を説明する。
(Access to consecutive files)
FIG. 2 is a diagram for explaining an access method for files continuously recorded on a backward track on a tape. 2 also shows the tape 10 expanded from BOT to EOT as in FIG. 1, and the movement of the head 20 will explain the relative movement of the tape and the head.

図2のようにテープ上のファイルに連続してアクセスする場合でも、図1の場合と同様にシーク時間の昇順に読み出すことが効率的であれば好都合である。しかしながら、図2に示すように、ファイルF♯1〜F#4がバックワードトラック、すなわちBOTからEOTへ向かう方向へ連続的に配置されている場合には、シーク時間の昇順に読むと効率的ではない。   Even when the files on the tape are continuously accessed as shown in FIG. 2, it is advantageous if it is efficient to read in ascending order of seek time as in FIG. However, as shown in FIG. 2, when the files F # 1 to F # 4 are continuously arranged in the backward track, that is, in the direction from BOT to EOT, it is efficient to read in ascending order of seek time. is not.

図2のヘッド動作Aは、シーク時間の昇順に、F#4→F#3→F#2→F#1と読む場合のヘッドの動きを示す。ヘッド動作Aでは、破線で示すヘッドのシーク動作と、実線で示すヘッドの読み出し動作とが一部オーバラップして、ヘッドの動きが効率的ではない。   Head operation A in FIG. 2 shows head movement when reading F # 4 → F # 3 → F # 2 → F # 1 in ascending order of seek time. In the head operation A, the head seek operation indicated by the broken line and the head read operation indicated by the solid line partially overlap, and the head movement is not efficient.

一方、図2のヘッド動作Bは、ファイル番号の昇順に、F#1→F#2→F#3→F#4と読む場合を示す。図2において、ヘッド動作Aとヘッド動作Bとを比較すると、明らかに、ファイル番号の昇順に読み出すヘッド動作Bが、より効率的である。   On the other hand, the head operation B in FIG. 2 shows a case where F # 1 → F # 2 → F # 3 → F # 4 are read in ascending order of file numbers. In FIG. 2, when head operation A and head operation B are compared, it is apparent that head operation B that reads in ascending order of file numbers is more efficient.

また、フォワードトラックの連続したファイルに対しては、ファイル番号の昇順に読み出すのが効率的であることは知られている。さらに、フォワードトラックからバックワードトラック、あるいはバックワードトラックからフォワードトラックへ連続するファイルであっても、ファイル番号の昇順に読むと効率がよい。   In addition, it is known that it is efficient to read out files in a continuous forward track in ascending order of file numbers. Furthermore, it is efficient to read a file that continues from the forward track to the backward track or from the backward track to the forward track in ascending order of the file numbers.

以上の考察から、テープ上に離散している複数のファイルは、シーク時間の昇順に読み出すと効率がよく、テープ上に連続する複数のファイルは、ファイル番号の昇順に読み出すと効率がよいということができる。   From the above considerations, it is efficient to read multiple files that are discrete on the tape in ascending order of seek time, and multiple files that are continuous on the tape are efficient to read in ascending order of file numbers. Can do.

テープ上に散在する複数のファイルをシーク時間の昇順に読み出すために、BOTからファイルの先頭までのシーク時間あるいはシーク距離を予め計算して記憶しておくことが考えられる。例えば、書き込まれるファイルサイズに基づいて、シーク時間あるいはシーク距離を算出して記憶しておけば、複数のファイルをシーク時間の昇順に並べることは容易である。   In order to read a plurality of files scattered on the tape in ascending order of seek time, it is conceivable to calculate and store the seek time or seek distance from the BOT to the beginning of the file in advance. For example, if the seek time or seek distance is calculated and stored based on the file size to be written, it is easy to arrange a plurality of files in ascending order of seek time.

しかしながら、LTO規格では、テープドライブによりデータが圧縮されてテープ媒体上に書き込む処理が行われる。さらにはテープ媒体の磁性体異常の部分にはデータを書き込まないような処理も行われる。したがって、テープ媒体に書き込まれない状態で同じファイルサイズであっても、テープ媒体に書き込まれるとファイルサイズは変化することがある。したがって、一般的にテープ媒体に書き込まれる前のファイルサイズからシーク距離したがってシーク時間を算出することはできない。   However, in the LTO standard, data is compressed by a tape drive and written onto a tape medium. Further, processing is performed so that data is not written in the magnetic material abnormality portion of the tape medium. Therefore, even if the file size is the same without being written to the tape medium, the file size may change when written to the tape medium. Therefore, it is generally impossible to calculate the seek distance and hence the seek time from the file size before being written on the tape medium.

本実施形態では、書き込まれたファイルに対するBOTからファイル先頭までのシーク時間を管理するシーク管理テーブルを備え、ファイルの書き込み時にシーク時間が測定できれば、そのシーク時間を記録する。書き込み時にシーク時間を測定できないファイルに対しては仮のシーク時間を記録しておく。その後、仮のシーク時間を有するファイルへのアクセス動作などによりシーク時間を実測する機会があれば、仮のシーク時間を真のシーク時間に補正する。このようにしてテーブルを完成させながら、最も効率のよいファイルアクセスを達成する。換言すれば、本実施形態では、テープ制御装置自ら学習したシーク時間に基づいて、効率よくファイルアクセスを行う。   In this embodiment, a seek management table for managing the seek time from the BOT to the beginning of the file for the written file is provided, and if the seek time can be measured when writing the file, the seek time is recorded. A temporary seek time is recorded for a file whose seek time cannot be measured at the time of writing. Thereafter, if there is an opportunity to actually measure the seek time by an access operation to a file having a temporary seek time, the temporary seek time is corrected to a true seek time. In this way, the most efficient file access is achieved while completing the table. In other words, in the present embodiment, file access is efficiently performed based on the seek time learned by the tape controller itself.

図3は、テープ上のファイルのBOTからのシーク時間を管理するシーク管理テーブルの一例である。なお、本実施形態ではシーク管理テーブルでシーク時間を管理するが、シーク時間に代えてシーク距離を管理するようにしてもよい。   FIG. 3 is an example of a seek management table for managing the seek time from the BOT of the file on the tape. In this embodiment, the seek time is managed by the seek management table, but the seek distance may be managed instead of the seek time.

シーク管理テーブル30は、ファイル番号欄31と、シーク時間欄33と、記録方向欄35と、フィクス値欄37とを有する。ファイル番号欄31には、テープに書きこまれた順にファイル番号が記録される。シーク時間欄33には、BOTからファイルの先頭位置までヘッドを移動させるのに要するシーク時間が秒を単位として記録される。記録方向欄35には、ファイルの記録方向が記録される。ファイルがテープのBOTからEOTに向かって記録されている場合には、フォワード方向が登録される。ファイルがテープのEOTからBOTに向かって記録されている場合には、バックワード方向が登録される。フィクス値欄37は、シーク時間欄33のシーク時間が確定されたか、まだ確定されていないかを示す値が記録される。シーク時間欄33に記録されたシーク時間が実測されたたものである場合、確定値であることを示すTrueが記録される。シーク時間欄33に記録されたシーク時間が実測されたものでない場合、仮の値であることを示すFalseが記録される。   The seek management table 30 includes a file number column 31, a seek time column 33, a recording direction column 35, and a fix value column 37. In the file number column 31, file numbers are recorded in the order written on the tape. In the seek time column 33, the seek time required to move the head from the BOT to the head position of the file is recorded in seconds. In the recording direction column 35, the recording direction of the file is recorded. When the file is recorded from the BOT to the EOT of the tape, the forward direction is registered. When the file is recorded from EOT to BOT on the tape, the backward direction is registered. In the fix value column 37, a value indicating whether the seek time in the seek time column 33 is determined or not yet determined is recorded. When the seek time recorded in the seek time column 33 is actually measured, True indicating that it is a definite value is recorded. If the seek time recorded in the seek time column 33 is not actually measured, False indicating that it is a temporary value is recorded.

図3のシーク管理テーブル30では、登録されたすべてのファイルのフィクス値がTrueであるので、ファイルのシーク時間が確定していることを示している。例えばファイル番号3のファイルは、シーク時間が100秒で、読み出し方向はフォワード方向である。また、ファイル番号5のファイルは、シーク時間が100秒で、読み出し方向はフォワード方向である。   In the seek management table 30 in FIG. 3, since the fix values of all the registered files are True, it indicates that the seek time of the file is fixed. For example, the file with the file number 3 has a seek time of 100 seconds and the reading direction is the forward direction. The file with the file number 5 has a seek time of 100 seconds and the reading direction is the forward direction.

図3に示すシーク管理テーブル30をテープ駆動制御装置の半導体メモリあるいはハードディスク等の記憶装置に記憶させておくと、上位装置からの複数のファイルの読み出し要求に対応して、当該複数のファイルをシーク時間の昇順に並び替えて読み出すように制御することができる。   When the seek management table 30 shown in FIG. 3 is stored in a storage device such as a semiconductor memory or a hard disk of the tape drive control device, the plurality of files are sought in response to a plurality of file read requests from the host device. Control can be performed so that the data are read out in the ascending order of time.

次に、図4〜図6により、本実施形態のテープ駆動制御装置の一例と、シーク管理テーブルの生成過程の一例を説明する。   Next, an example of the tape drive control device of the present embodiment and an example of a seek management table generation process will be described with reference to FIGS.

図4は、テープの1トラックとテープ駆動制御装置の概要を示す図である。テープ駆動制御装置1は、テープ走行制御部2と、書き込み/読み出し制御部4と、シーク管理テーブル30を有する記憶装置3を備える。テープ走行制御部2は、テープ媒体10の送りや巻き戻しなどの走行制御を実行する。書き込み/読み出し制御部4は、テープ媒体10上へのヘッド20によるデータの書き込み/読み出しを実行する。上位装置40から複数のファイルに対して読み出し要求があると、これに応じてテープ走行制御部2は、記憶部3に格納されているシーク管理テーブルを参照して読み出し要求のあった複数のファイルへのアクセスを制御する。   FIG. 4 is a diagram showing an outline of one track of the tape and the tape drive control device. The tape drive control device 1 includes a tape drive control unit 2, a write / read control unit 4, and a storage device 3 having a seek management table 30. The tape running control unit 2 executes running control such as feeding and rewinding of the tape medium 10. The writing / reading control unit 4 executes data writing / reading on the tape medium 10 by the head 20. When there is a read request for a plurality of files from the host device 40, the tape running control unit 2 refers to the seek management table stored in the storage unit 3 in response to this and the plurality of files for which a read request has been made Control access to.

本実施形態のテープ媒体10では、新たに書き込まれる情報は、すでに書き込まれているファイルの後に、新たなファイルとして追記される。図4では、テープの1トラック上に、ファイルF♯1〜F#3がファイルの終わりを示すファイルマークFMとともに書き込まれ、ファイルF♯4〜F#6はこれから追記される状態にある。   In the tape medium 10 of the present embodiment, information to be newly written is added as a new file after the already written file. In FIG. 4, the files F # 1 to F # 3 are written on one track of the tape together with the file mark FM indicating the end of the file, and the files F # 4 to F # 6 are in a state to be additionally written.

テープ走行制御部2により、テープ媒体がBOTからファイルF♯3の終端を示すファイルマークFMの次の書き込み位置までシークされる。このとき、シーク時間は150秒であることが測定される。ヘッド20は、テープ媒体10に対してシーク位置からファイルF♯4を書き込む。ファイルF♯4への書き込みが終了すると、ファイルマークFMを書き込んだ後、引き続きファイルF♯5を書きこみ、同様にファイルF♯6を書き込む。   The tape running control unit 2 seeks the tape medium from the BOT to the next writing position of the file mark FM indicating the end of the file F # 3. At this time, the seek time is measured to be 150 seconds. The head 20 writes the file F # 4 from the seek position on the tape medium 10. When the writing to the file F # 4 is completed, after writing the file mark FM, the file F # 5 is continuously written, and the file F # 6 is similarly written.

図5は、図4に示すファイルの追記時にシーク管理テーブルに記録されるデータを示す図である。ファイルF♯4の追記以前には、すでにファイル番号30までのデータが格納されている。例えば、ファイルF♯3のシーク時間は100秒、記録方向はフォワード、フィクス値はTrueとして登録されている。   FIG. 5 is a diagram showing data recorded in the seek management table when the file shown in FIG. 4 is added. Prior to the additional writing of file F # 4, data up to file number 30 has already been stored. For example, the seek time of file F # 3 is registered as 100 seconds, the recording direction is forward, and the fix value is True.

ファイルF♯4の追記の結果、ファイル番号4に対応して、シーク時間欄33には、実測されたシーク時間である150秒が記録される。ファイル番号4のシーク時間150秒は、ファイル番号3のシーク時間100よりも長い。したがって、ファイル番号4の記録方向は、ファイル番号3の記録方向と同じ方向であると判断される。記録方向欄35には、ファイル番号3と同じフォワードが記録される。フィクス値欄37には、ファイル番号4のシーク時間150秒は確定であるので、Trueが記録される。   As a result of the additional writing of the file F # 4, 150 seconds, which is an actually measured seek time, is recorded in the seek time column 33 corresponding to the file number 4. The seek time of file number 4 150 seconds is longer than the seek time 100 of file number 3. Therefore, the recording direction of file number 4 is determined to be the same as the recording direction of file number 3. In the recording direction column 35, the same forward as the file number 3 is recorded. In the fix value column 37, True is recorded because the seek time of file number 4 is fixed 150 seconds.

ファイル番号4に引き続き、ファイルF♯5、ファイルF♯6のシークデータがファイル番号5、6に記録される。しかし、ファイルF♯5、ファイルF♯6は、ファイルF♯4に引き続き書き込まれるので、それぞれのシーク時間は不明である。この場合、ファイル番号5、6に対応するシーク時間欄33には、それぞれ仮のシーク時間としてファイル番号4と同じシーク時間150秒が記録される。また、ファイル番号5、6に対応する記録方向欄35にも、仮の方向としてファイル番号4と同じ方向が記録される。そして、フィクス値欄には、ファイル番号5、6について未確定であることを示すFalseが登録されれる。   Following file number 4, seek data of file F # 5 and file F # 6 are recorded in file numbers 5 and 6, respectively. However, since the file F # 5 and the file F # 6 are continuously written to the file F # 4, their seek times are unknown. In this case, the seek time column 33 corresponding to the file numbers 5 and 6 records the same seek time 150 seconds as the file number 4 as a temporary seek time. In the recording direction column 35 corresponding to the file numbers 5 and 6, the same direction as the file number 4 is recorded as a temporary direction. Then, False indicating that the file numbers 5 and 6 are unconfirmed is registered in the fix value column.

図6は、図5のシーク管理テーブルの補正の一例を示す図である。図5のシーク管理テーブル30の生成後、図4のファイルF♯5に対する読み出し要求があったとする。その結果、ヘッド20がBOTからファイルF♯5の先頭にシークされる。シーク時間は実測値で160秒である。   FIG. 6 is a diagram illustrating an example of correction of the seek management table of FIG. Assume that there is a read request for file F # 5 in FIG. 4 after generation of seek management table 30 in FIG. As a result, the head 20 is sought from the BOT to the head of the file F # 5. The seek time is 160 seconds in actual measurement.

図6のシーク管理テーブル30に示すように、ファイル番号5のシーク時間欄37は、150秒から160秒へ変更される。ファイル番号5のシーク時間160秒は、ファイル番号4のシーク時間150秒より長いので、記録方向は、フォワードのままである。ファイル番号5のシーク時間が実測され確定するので、ファイル番号5のフィクス値は、Trueに変化する。   As shown in the seek management table 30 of FIG. 6, the seek time column 37 of the file number 5 is changed from 150 seconds to 160 seconds. Since the seek time of file number 5 is 160 seconds longer than the seek time of file number 4, the recording direction remains forward. Since the seek time of file number 5 is actually measured and fixed, the fix value of file number 5 changes to True.

ファイルF♯6については、シーク時間が確定していないので、フィクス値はFalseのままである。しかしながら、ファイルF♯5のシーク時間が160秒で確定したので、ファイルF♯6のシーク時間も160秒に更新する。なお、方向は以前のままフォワードである。   For the file F # 6, since the seek time is not fixed, the fix value remains False. However, since the seek time of the file F # 5 is fixed at 160 seconds, the seek time of the file F # 6 is also updated to 160 seconds. The direction is forward as before.

図6は、特定のファイルがBOTからシークされて読み出されると。特定のファイルに対するシーク時間が求まり、それによりシーク管理テーブルの仮のデータが補正され、特定のファイルに関するシークデータが確定する状態を示している。同様に、仮のシーク時間をもつファイルが、その先頭位置からBOTまで巻き戻しされた場合でも、シーク時間は決定される。したがって、特定のファイルの先頭位置からBOTまで巻き戻しがあったときも、当該特定ファイルのシーク時間は確定し、その結果記録方向も確定する。これにより、シーク管理テーブルの仮のデータが補正され、当該特定ファイルに対応するフィクス値はTrueに変更される。   FIG. 6 shows that a specific file is sought from the BOT and read. The seek time for a specific file is obtained, and the temporary data in the seek management table is corrected accordingly, and the seek data for the specific file is confirmed. Similarly, the seek time is determined even when a file having a temporary seek time is rewound from its head position to the BOT. Therefore, even when rewinding from the head position of a specific file to the BOT, the seek time of the specific file is determined, and as a result, the recording direction is also determined. As a result, the temporary data in the seek management table is corrected, and the fix value corresponding to the specific file is changed to True.

図7〜図9は、シーク管理テーブルの補正の他の例を説明する図である。図7は、ファイルF♯10からファイルF♯13まで連続して追記された後、ファイルF♯12にアクセスされた状態を示す図である。図8は、ファイルF♯10からファイルF♯13までの追記が終了した時点でのシーク管理テーブル30を示す図である。図9は、ファイルF♯12にアクセスされて補正されたシーク管理テーブルを示す図である。   7 to 9 are diagrams illustrating another example of correction of the seek management table. FIG. 7 is a diagram showing a state in which the file F # 12 is accessed after the file F # 10 to the file F # 13 are continuously added. FIG. 8 is a diagram showing the seek management table 30 at the time when the additional writing from the file F # 10 to the file F # 13 is completed. FIG. 9 is a view showing a seek management table corrected by accessing the file F # 12.

まず、ファイルF♯10からファイルF♯13まで連続して追記される場合、先頭のファイルF♯10については、BOTからファイルF♯10の書き込み位置までシークされる。このとき、ファイルF♯10のシーク時間は実際に測定され、測定結果は170秒であった。したがって、図8のシーク管理テーブル30には、ファイル番号10に対応するシーク時間欄33に170が記録される。記録方向欄35には、ファイルF♯9(図示せず)のシーク時間と比較して長いのでフォワードが記録される。シーク時間は確定しているので、フィクス値欄37には、Trueが記録される。   First, when additional writing is continuously performed from file F # 10 to file F # 13, the first file F # 10 is sought from the BOT to the writing position of file F # 10. At this time, the seek time of the file F # 10 was actually measured, and the measurement result was 170 seconds. Therefore, 170 is recorded in the seek time column 33 corresponding to the file number 10 in the seek management table 30 of FIG. In the recording direction column 35, forward is recorded because it is longer than the seek time of the file F # 9 (not shown). Since the seek time is fixed, True is recorded in the fix value column 37.

しかしながら、ファイルF♯11からファイルF♯13は連続的に追記されているので、シーク時間は確定しない。したがって、ファイルF♯10と同じシーク時間と記録方向をシーク管理テーブル30に仮に記録して、フィクス値欄37は、Falseとしておく。   However, since the files F # 11 to F # 13 are continuously written, the seek time is not fixed. Therefore, the same seek time and recording direction as those of the file F # 10 are temporarily recorded in the seek management table 30, and the fix value column 37 is set to False.

次に、図7に示すように、ファイルF♯12の読み出し要求があり、テープヘッドがBOTからファイルF♯12の先頭までシークされる。このとき、シーク時間は150秒であった。したがって、図8のテーブルのファイル番号12に対応するシーク時間欄には150秒が登録される。また、ファイルF♯12のシーク時間150秒は、ファイルF♯10のシーク時間170秒より短いので、折り返しがあると判断できる。したがって、記録方向欄35にはバックワードと記録される。ファイル番号12のシーク時間が確定したので、フィクス値欄37は、Trueに変化する。補正されたシーク管理テーブル30は、図9に示すとおり、ファイル番号12に対応する行がTrueとなっている。   Next, as shown in FIG. 7, there is a read request for the file F # 12, and the tape head is sought from the BOT to the head of the file F # 12. At this time, the seek time was 150 seconds. Therefore, 150 seconds is registered in the seek time column corresponding to the file number 12 in the table of FIG. Further, since the seek time of file F # 12 is 150 seconds shorter than the seek time of file F # 10 of 170 seconds, it can be determined that there is a return. Therefore, backward is recorded in the recording direction column 35. Since the seek time of the file number 12 is fixed, the fix value column 37 changes to True. In the corrected seek management table 30, the row corresponding to the file number 12 is True as shown in FIG.

ファイルF♯12の後続のファイルF♯13は、ファイルF♯12と同じシーク時間、記録方向に補正する。しかし、ファイルF♯13のシーク時間と方向は確定したものではないので、フィクス値は、Falseのままである。   The file F # 13 subsequent to the file F # 12 is corrected in the same seek time and recording direction as the file F # 12. However, since the seek time and direction of the file F # 13 are not fixed, the fix value remains False.

ファイルF♯11については、図9のファイル番号12のフィクス値がFalseであることから分るように、今回は補正されない。この後ファイルF♯11にアクセスされる場合があると、シーク時間が確定し、補正されることになる。   The file F # 11 is not corrected this time, as can be seen from the fact that the fix value of the file number 12 in FIG. 9 is False. If the file F # 11 is subsequently accessed, the seek time is fixed and corrected.

なお、図7から分るように、ファイルF♯11のシーク時間が求まるとすれば、ファイルF♯10のシーク時間より長くなる可能性がある。したがって、実際にはファイルF♯11はバックワードに書き込まれているにも関わらず、シーク管理テーブル30上では、記録方向はフォワードとして登録されることになる。すなわち、ファイル番号11に対応するフィクス値がTrueとなっても、方向はフォワードのままである。しかしながら、シーク管理テーブル30は、ファイルに対するアクセス効率を上げることが目的である。したがって、シーク管理テーブル30に登録さている記録方向が実際のテープでの方向と異なっていても、アクセス効率があがれば差し支えない。   As can be seen from FIG. 7, if the seek time of the file F # 11 is obtained, it may be longer than the seek time of the file F # 10. Therefore, although the file F # 11 is actually written in the backward direction, the recording direction is registered as forward on the seek management table 30. That is, the direction remains forward even if the fix value corresponding to the file number 11 becomes True. However, the seek management table 30 is intended to increase the access efficiency to the file. Therefore, even if the recording direction registered in the seek management table 30 is different from the actual tape direction, there is no problem as long as the access efficiency is improved.

上述の実施形態では、BOTからシークされる場合について説明した。テープ上の任意のファイルをランダムにアクセスするシステムでは、BOTではない位置からファイルの先頭位置にシークする場合も多い。図10,11を参照して、BOTではない位置からファイルの先頭位置にシークする場合のシーク管理テーブルの補正方法を説明する。   In the above-described embodiment, the case of seeking from the BOT has been described. In a system that randomly accesses an arbitrary file on the tape, the seek is often performed from a position that is not a BOT to the head position of the file. With reference to FIGS. 10 and 11, a description will be given of a method for correcting a seek management table when seeking from a position that is not a BOT to the head position of a file.

図10(a)〜(c)は、フォワードトラックにあるファイルF♯aからファイルF♯bへアクセスする時のシーク管理テーブルの補正の一例を示す図である。   FIGS. 10A to 10C are diagrams showing an example of correction of the seek management table when accessing the file F # b from the file F # a in the forward track.

図10(a)に示すように、テープ10のフォワードトラックには、ファイルF♯aが書き込まれ、その後ファイルF♯bが書き込まれている。また、図10(b)のシーク管理テーブル30から分るように、ファイルF♯aのシーク時間は60秒で確定している。しかし、ファイルF♯bのシーク時間の欄にはファイルF♯aのシーク時間である60秒が仮に格納されており、フィクス値がFalseとなっている。   As shown in FIG. 10A, the file F # a is written on the forward track of the tape 10, and then the file F # b is written. As can be seen from the seek management table 30 in FIG. 10B, the seek time of the file F # a is fixed at 60 seconds. However, the seek time column of the file F # b temporarily stores 60 seconds, which is the seek time of the file F # a, and the fix value is False.

図10(a)に示すように、ヘッド20は、ファイルF♯aの先頭位置にある。次いで、ファイルF♯bの読み出し要求に応じて、ヘッド20はファイルF♯aの先頭位置からファイルF♯bの先頭位置までシークする。このシーク時間が20秒であったとする。ここで、図10(b)のシーク管理テーブル30に格納されている方向情報を参照すると、方向情報の欄35にはファイルF♯aとF♯bはともに方向がフォワードであるとされている。したがって、ファイルF♯bのBOTからのシーク時間は、60秒+20秒の加算により計算され、80秒となる。   As shown in FIG. 10A, the head 20 is at the head position of the file F # a. Next, in response to a read request for the file F # b, the head 20 seeks from the head position of the file F # a to the head position of the file F # b. It is assumed that this seek time is 20 seconds. Here, referring to the direction information stored in the seek management table 30 in FIG. 10B, the direction information column 35 indicates that both the files F # a and F # b are forward. . Therefore, the seek time from the BOT of the file F # b is calculated by adding 60 seconds + 20 seconds and becomes 80 seconds.

この結果、図10(c)に示すように、シーク管理テーブル30のファイル番号bのシーク時間の欄33は、80秒に変更される。しかしながら、この場合のシーク時間80秒は、実測値ではないので、ファイル番号bのフィクス値の欄37はTrueではなく、Falseが維持される。ファイルF♯bBOTからのシーク時間は確定値ではないが、実際の値に近いと考えられる。したがって、ファイルF♯bのBOTからのシーク時間としてこのフィクス値80秒を使用することで、ファイルのアクセスを効率化することができる。なお、ファイルF♯bのBOTからのシーク時間が実測されると、シーク時間管理テーブル30のシーク時間の欄には実測値が格納され、フィクス値はTrueに変更される。   As a result, as shown in FIG. 10C, the seek time column 33 of the file number b in the seek management table 30 is changed to 80 seconds. However, since the seek time of 80 seconds in this case is not an actual measurement value, the fixture value column 37 of the file number b is not True and False is maintained. The seek time from the file F # bBOT is not a definite value, but is considered to be close to the actual value. Therefore, by using this fixed value of 80 seconds as the seek time from BOT of file F # b, file access can be made efficient. When the seek time from the BOT of the file F # b is actually measured, the actually measured value is stored in the seek time column of the seek time management table 30, and the fix value is changed to True.

図11(a)〜(c)は、バックワードトラックにあるファイルF♯cからファイルF♯dへアクセスする時のシーク管理テーブルの補正の一例を示す図である。   FIGS. 11A to 11C are diagrams showing an example of correction of the seek management table when accessing the file F # d from the file F # c in the backward track.

図11(a)に示すように、テープ10のバックワードトラックには、ファイルF♯cが書き込まれ、その後ファイルF♯dが書き込まれている。また、図11(b)のシーク管理テーブル30から分るように、ファイルF♯cのシーク時間は100秒で確定している。しかし、ファイルF♯dのシーク時間の欄にはファイルF♯cのシーク時間である100秒が仮に格納されており、フィクス値がFalseとなっている。   As shown in FIG. 11A, the file F # c is written on the backward track of the tape 10, and then the file F # d is written. As can be seen from the seek management table 30 in FIG. 11B, the seek time of the file F # c is fixed at 100 seconds. However, the seek time column of the file F # d temporarily stores 100 seconds, which is the seek time of the file F # c, and the fix value is False.

図11(a)に示すように、ヘッド20は、ファイルF♯cの先頭位置にある。次いで、ファイルF♯dの読み出し要求に応じて、ヘッド20はファイルF♯cの先頭位置からファイルF♯dの先頭位置までシークする。このシーク時間が70秒であったとする。図11(b)のシーク管理テーブル30の方向欄35を参照すれば、ファイルF♯cとF♯dはともに方向がバックワードであることがわかる。したがって、ファイルF♯dのBOTからのシーク時間は、100秒−70秒と減算により計算され、30秒となる。   As shown in FIG. 11A, the head 20 is at the head position of the file F # c. Next, in response to a read request for the file F # d, the head 20 seeks from the head position of the file F # c to the head position of the file F # d. It is assumed that this seek time is 70 seconds. Referring to the direction column 35 of the seek management table 30 in FIG. 11B, it can be seen that the directions of the files F # c and F # d are backwards. Therefore, the seek time from the BOT of the file F # d is calculated as 100 seconds-70 seconds by subtraction, and becomes 30 seconds.

この結果、図11(c)に示すように、シーク管理テーブル30のファイル番号dのシーク時間の欄33は、30秒に変更される。しかしながら、この場合のシーク時間30秒は、実測値ではないので、ファイル番号aのフィクス値の欄37はTrueではなく、Falseが維持される。ファイルF♯dのBOTからのシーク時間は確定していないが、実際の値に近いと考えられる。したがって、ファイルF♯bおよびファイルF♯dのBOTからのシーク時間としてこのフィクス値30秒を使用することで、ファイルのアクセスを効率化することができる。なお、ファイルF♯dのBOTからのシーク時間が実測されると、シーク時間管理テーブル30のシーク時間の欄には実測値が格納され、フィクス値はTrueに変更される。   As a result, as shown in FIG. 11C, the seek time column 33 of the file number d in the seek management table 30 is changed to 30 seconds. However, since the seek time of 30 seconds in this case is not an actual measurement value, the fixture value column 37 of the file number a is not True and False is maintained. The seek time from the BOT of the file F # d is not fixed, but is considered to be close to the actual value. Therefore, by using the fix value of 30 seconds as the seek time from the BOT of the file F # b and the file F # d, the file access can be made efficient. When the seek time from the BOT of the file F # d is actually measured, the actually measured value is stored in the seek time column of the seek time management table 30, and the fix value is changed to True.

シーク時間管理テーブルを用いるとさらに効率的なファイルの読み出しを行うことができる。例えば、テープ上のバックワードトラックに配置されているファイルを昇順にとびとびに、例えば1つおきに、読むような場合、シーク時間管理テーブルを用いると、どのように読み出すのが効率的かを決定することができる。   By using the seek time management table, it is possible to read out the file more efficiently. For example, when reading files placed on a backward track on a tape in ascending order, for example, every other file, use the seek time management table to determine how to read them efficiently. can do.

図12は、バックワードトラックに連続して配置されたファイルF♯21〜F♯26ファイルのうち、ファイルF#21、F#23、F#25を読み出す場合を説明する図である。なお、図12のFMは、ファイルの終わりを示すファイルマークである。ファイルアクセスプランCは、ファイルのBOTからのシーク時間の昇順に読み出す場合を示し、ファイルアクセスプランDは、ファイル番号の昇順に読み出す場合を示す。   FIG. 12 is a diagram illustrating a case where files F # 21, F # 23, and F # 25 are read out of the files F # 21 to F # 26 continuously arranged in the backward track. Note that FM in FIG. 12 is a file mark indicating the end of the file. The file access plan C indicates a case where the file is read in ascending order of seek time from the BOT, and the file access plan D indicates a case where the file is read in ascending order of the file number.

図12の実線で示すファイルを読む時間は、ともに同一である。したがって、図12の破線で示すシーク時間を比較することにより、アクセスプランC、Dのいずれが効率的な読み出し方法であるかが決定する。   The time for reading the file indicated by the solid line in FIG. 12 is the same. Therefore, by comparing the seek times indicated by the broken lines in FIG. 12, it is determined which of the access plans C and D is an efficient reading method.

図12では、ファイルF♯n(1≦n≦6)のシーク時間をS♯nで示す。シーク時間S♯nは、BOTからファイルF♯nの先頭までのシーク時間である。なおシーク時間に代えてシーク距離を用いてもよい。   In FIG. 12, the seek time of the file F # n (1 ≦ n ≦ 6) is indicated by S # n. The seek time S # n is a seek time from the BOT to the beginning of the file F # n. A seek distance may be used instead of the seek time.

アクセスプランCのシーク時間の合計は、
S♯25+(S♯23−S♯26)+(S♯21−S♯24)
となる。ここで、(S♯23−S♯26)の項は、ヘッド20が、ファイルF♯25、F♯24、F♯23上を移動する時間を表している。(S♯21−S♯24)の項は、ヘッド20が、ファイルF♯23、F♯22、F♯21上を移動する時間を表している。
The total seek time for Access Plan C is
S # 25 + (S # 23-S # 26) + (S # 21-S # 24)
It becomes. Here, the term (S # 23-S # 26) represents the time during which the head 20 moves on the files F # 25, F # 24, F # 23. The term (S # 21-S # 24) represents the time for the head 20 to move on the files F # 23, F # 22, F # 21.

アクセスプランDのシーク時間の合計は、
S♯21+(S♯22−S♯23)+(S♯24−S♯25)
となる。ここで、(S♯22−S♯23)の項は、ヘッド20が、ファイルF♯22上を移動する時間を表している。(S♯21−S♯24)の項は、ヘッド20が、ファイルF♯24上を移動する時間を表している。
The total seek time for access plan D is
S # 21 + (S # 22-S # 23) + (S # 24-S # 25)
It becomes. Here, the term (S # 22-S # 23) represents the time during which the head 20 moves on the file F # 22. The term (S # 21-S # 24) represents the time during which the head 20 moves on the file F # 24.

したがって、読みたいファイルの直後にあるファイルのシーク時間がシーク時間管理テーブルにフィクス値として格納されていれば、ファイルアクセスプランC、Dのシーク時間の合計は求まる。したがって、ファイルアクセスプランC、Dのシーク時間の合計を比較することにより、より効率的な読み出し方法を決定することができる。   Therefore, if the seek time of the file immediately after the file to be read is stored as a fix value in the seek time management table, the total seek time of the file access plans C and D can be obtained. Therefore, a more efficient reading method can be determined by comparing the total seek times of the file access plans C and D.

以上のように、本実施形態では、シーク時間は、ファイルの書き込みあるいは読み出しのためのシーク動作、あるいは巻き戻し動作の結果により学習され、学習の結果シーク管理テーブルは完全なものとなってゆく。したがって、予めシーク時間を算出して完全なシーク管理テーブルをもつ必要はない。   As described above, in the present embodiment, the seek time is learned by the result of the seek operation for writing or reading the file or the rewind operation, and the seek management table becomes complete as a result of the learning. Therefore, it is not necessary to calculate a seek time in advance and have a complete seek management table.

なお、シーク管理テーブルから分るように、確定していないシーク時間であっても仮のシーク時間が記録されている。確定していないファイルをアクセスする場合は、仮のシーク時間を使用することになる。同一のシーク時間をもつ離散した複数のファイルにアクセスする必要がある場合には、記録方向がフォワードであれば、ファイル番号が小さいほうをシーク時間が短いと判断することができる。また、記録方向がバックワードであれば、ファイル番号が大きいほうをシーク時間が短いと判断することができる。   As can be seen from the seek management table, a temporary seek time is recorded even if the seek time is not fixed. When accessing an undefined file, a temporary seek time is used. When it is necessary to access a plurality of discrete files having the same seek time, if the recording direction is forward, it can be determined that the seek time is shorter when the file number is smaller. If the recording direction is backward, it can be determined that the seek time is shorter when the file number is larger.

また、連続して書き込まれているファイルにアクセスする場合は、記録方向に関係なく、ファイル番号の昇順に読めばよい。   In addition, when accessing continuously written files, they may be read in ascending order of file numbers regardless of the recording direction.

したがって、ファイルが離散して配置されている場合は、ファイルのシーク時間の昇順にアクセスし、ファイルが連続して配置されている場合は、ファイルのシーク時間の昇順にアクセスするようにすれば、効率のよいファイルアクセスを達成することができる。さらに、シーク管理テーブルを用いてファイルアクセスプランを評価することができるので、さらに効率のよいファイルアクセスを行うことができる。   Therefore, if the files are arranged in a discrete manner, the file is accessed in the ascending order of the seek time. If the files are arranged continuously, the file is accessed in the ascending order of the seek time. Efficient file access can be achieved. Furthermore, since the file access plan can be evaluated using the seek management table, more efficient file access can be performed.

テープ上に折り返して記録されたファイルの読み出し方法を説明する図である。It is a figure explaining the reading method of the file folded and recorded on the tape. テープ上のバックワード方向に連続して記録されたファイルの読み出し方法を説明する図である。It is a figure explaining the reading method of the file continuously recorded on the backward direction on the tape. 一実施形態のシーク管理テーブルを説明する図である。It is a figure explaining the seek management table of one embodiment. 一実施形態のテープ駆動制御装置を説明する図である。It is a figure explaining the tape drive control apparatus of one Embodiment. ファイルの追記の際にシーク情報が登録されたシーク管理テーブルの一例を示す図である。It is a figure which shows an example of the seek management table in which the seek information was registered when the file was added. 図5のシーク管理テーブルの補正の一例を示す図である。It is a figure which shows an example of correction | amendment of the seek management table of FIG. シーク管理テーブルの補正を引き起こすファイルの読み出しを説明する図である。It is a figure explaining the reading of the file which causes correction | amendment of a seek management table. 図7のファイル読み出し前のシーク管理テーブルの一例を示す図である。It is a figure which shows an example of the seek management table before the file reading of FIG. 図7のファイル読み出し後のシーク管理テーブルの一例を示す図である。It is a figure which shows an example of the seek management table after the file reading of FIG. (a)は、フォワードトラック上で、あるファイルから他のファイルへシークする一例を示す図であり、(b)は、一方のファイルのシーク時間が確定しているときのファイル管理テーブルの一例を示す図であり、(c)は、一方のファイルから他のファイルへシークした後のファイル管理テーブルの一例を示す図である。(A) is a figure which shows an example which seeks from a certain file to another file on a forward track, (b) is an example of the file management table when the seek time of one file is decided (C) is a figure which shows an example of the file management table after seeking from one file to another file. (a)は、バックワードトラック上で、あるファイルから他のファイルへシークする一例を示す図であり、(b)は、一方のファイルのシーク時間が確定しているときのファイル管理テーブルの一例を示す図であり、(c)は、一方のファイルから他のファイルへシークした後のファイル管理テーブルの一例を示す図である。(A) is a figure which shows an example which seeks from a certain file to another file on a backward track, (b) is an example of the file management table when the seek time of one file is decided (C) is a figure which shows an example of the file management table after seeking from one file to another file. バックワードトラックに連続して配置されたファイルのうち、1つおきに配置されたファイルの効率的な読み出し方法の決定を説明する図である。It is a figure explaining determination of the effective reading method of the file arrange | positioned every other file among the files arrange | positioned continuously on a backward track | truck.

符号の説明Explanation of symbols

10 テープ媒体
20 ヘッド
30 シーク管理テーブル
1 テーク駆動制御装置
2 テープ走行制御部
3 記憶部
4 書き込み/読み出し制御部
DESCRIPTION OF SYMBOLS 10 Tape medium 20 Head 30 Seek management table 1 Take drive control apparatus 2 Tape travel control part 3 Memory | storage part 4 Write / read control part

Claims (4)

テープ先頭位置からファイル先頭位置までのシーク時間あるいはシーク距離を含むシーク情報が、書き込まれたファイル毎に登録されるシーク管理テーブルであって、前記シーク情報が確定しているシーク情報確定ファイルに対しては該確定シーク情報が登録され、前記シーク情報が確定していないシーク情報未確定ファイルに対しては当該ファイルより先に書き込まれてシーク情報が確定しているファイルのシーク情報が仮に登録され、その後前記シーク情報未確定ファイルのシーク情報が確定すると該確定シーク情報が登録されるシーク管理テーブルと、
ヘッドをテープの所望の位置に位置づけ、前記ヘッドによりデータの書き込みあるいは読み出しを実行させるように、テープ走行を制御するテープ走行制御部と、を備え、
前記テープ走行制御部は、離散して書き込まれた複数のファイルの読み出し要求に応じて、前記読み出し要求のある複数のファイルのシーク時間あるいはシーク距離を前記シーク管理テーブルから抽出して、前記読み出し要求のある複数のファイルに対して抽出されたシーク時間あるいはシーク距離の昇順にアクセスするようにテープの走行を制御するテープ駆動制御装置。
The seek information including seek time or seek distance from the tape head position to the file head position is a seek management table registered for each written file, and the seek information confirmation file for which the seek information is confirmed The seek information is registered, and for the seek information unconfirmed file for which the seek information is not confirmed, the seek information of the file for which seek information is written before the file is confirmed is temporarily registered. A seek management table in which the seek information is registered when the seek information of the seek information undetermined file is confirmed;
A tape running control unit that controls the tape running so that the head is positioned at a desired position on the tape, and data is written or read by the head; and
In response to a read request for a plurality of files written discretely, the tape running control unit extracts a seek time or a seek distance of the plurality of files having the read request from the seek management table, and reads the read request. A tape drive control device for controlling the running of the tape so as to access a plurality of files having the same seek time or seek distance in ascending order.
前記テープ走行制御部は、連続して書き込まれた複数のファイルの読み出し要求に応じて、ファイル番号の昇順に読み出す請求項1に記載のテープ駆動制御装置。   The tape drive control device according to claim 1, wherein the tape running control unit reads in ascending order of file numbers in response to a read request for a plurality of files written continuously. テープ先頭位置からファイル先頭位置までのシーク時間あるいはシーク距離を含むシーク情報が、書き込まれたファイル順に登録されるシーク管理テーブルであって、前記シーク情報が確定しているシーク情報確定ファイルに対しては該確定シーク情報が登録され、前記シーク情報が確定していないシーク情報未確定ファイルに対しては当該ファイルより先に書き込まれてシーク情報が確定しているファイルのシーク情報が仮に登録され、その後前記シーク情報未確定ファイルのシーク情報が確定すると該確定シーク情報が登録されるシーク管理テーブルと、
ヘッドをテープの所望の位置に位置づけ、前記ヘッドによりデータの書き込みあるいは読み出しを実行させるように、テープ走行を制御するテープ走行制御部と、を備えるテープ駆動制御装置におけるテープ駆動制御方法であって、
前記テープ走行制御部は、
離散して書き込まれた複数のファイルの読み出し要求に応じて、前記読み出し要求のある複数のファイルのシーク時間あるいはシーク距離を前記シーク管理テーブルから抽出し、
該抽出されたシーク時間あるいはシーク距離の昇順に、前記ヘッドが前記読み出し要求のある複数のファイルにアクセスするようにテープの走行を制御する
テープ駆動制御方法。
A seek management table in which seek information including a seek time or seek distance from the tape head position to the file head position is registered in the order of the written file, and the seek information confirmed file for which the seek information is confirmed The fixed seek information is registered, and for the seek information unconfirmed file for which the seek information is not fixed, the seek information of the file that has been written before the file and the seek information is fixed is temporarily registered, A seek management table in which the fixed seek information is registered when the seek information of the seek information unconfirmed file is fixed;
A tape drive control method in a tape drive control device, comprising: a tape travel control unit that controls the tape travel so that the head is positioned at a desired position on the tape and the data is written or read by the head.
The tape running control unit is
In response to a read request of a plurality of files written discretely, a seek time or a seek distance of the plurality of files having the read request is extracted from the seek management table,
A tape drive control method for controlling the tape travel so that the head accesses the plurality of files requested to be read in ascending order of the extracted seek time or seek distance.
前記テープ走行制御部は、連続して書き込まれた複数のファイルの読み出し要求に応じて、ファイル番号の昇順に読み出す請求項3に記載のテープ駆動制御方法。   4. The tape drive control method according to claim 3, wherein the tape running control unit reads in ascending order of file numbers in response to a read request for a plurality of files written continuously. 5.
JP2008266701A 2008-10-15 2008-10-15 Tape drive control device and tape drive control method Expired - Fee Related JP4759609B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008266701A JP4759609B2 (en) 2008-10-15 2008-10-15 Tape drive control device and tape drive control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008266701A JP4759609B2 (en) 2008-10-15 2008-10-15 Tape drive control device and tape drive control method

Publications (2)

Publication Number Publication Date
JP2010097646A JP2010097646A (en) 2010-04-30
JP4759609B2 true JP4759609B2 (en) 2011-08-31

Family

ID=42259212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008266701A Expired - Fee Related JP4759609B2 (en) 2008-10-15 2008-10-15 Tape drive control device and tape drive control method

Country Status (1)

Country Link
JP (1) JP4759609B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5782364B2 (en) 2011-11-08 2015-09-24 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Apparatus and method for generating information listing a plurality of files
JP5999650B2 (en) 2013-03-14 2016-09-28 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Method and program for retrieving the reading order of a plurality of record groups on a tape
JP6075571B2 (en) * 2014-10-31 2017-02-08 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation How to move files in a tiered storage system
WO2020195639A1 (en) 2019-03-27 2020-10-01 富士フイルム株式会社 Deriving device, deriving method, deriving program, and magnetic tape
CN111767169B (en) * 2020-06-28 2024-03-26 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06259930A (en) * 1993-03-04 1994-09-16 Nec Software Kansai Ltd High-speed program searching system for magnetic tape film
JP2001118365A (en) * 1999-10-19 2001-04-27 Nec Corp System and method for managing storage hierarchy and recording medium with storage hierarchical management program recorded thereon

Also Published As

Publication number Publication date
JP2010097646A (en) 2010-04-30

Similar Documents

Publication Publication Date Title
US9607631B2 (en) Enhanced capacity recording
US9262081B2 (en) Method for reading file using plurality of tape media
US10353624B2 (en) Apparatus and method for writing data to recording medium
US7483230B2 (en) Write-current control chip and magnetic disk drive using the same
JP5325128B2 (en) Apparatus and method for controlling data writing
US8675300B2 (en) Device and method of reading and writing data on magnetic recording medium in case of off-track occuring
JP4759609B2 (en) Tape drive control device and tape drive control method
US8139311B2 (en) Apparatus, method and program for controlling writing of data by tape recording apparatus
JP5636115B2 (en) Data alteration detection method and file system for tape drives
EP1396846B1 (en) Method and apparatus for controlling hard disc drive
JP5065203B2 (en) Apparatus and method for converting data format
CN103198840B (en) Band memory storage
JP2016157498A (en) Magnetic disk device and rewrite processing method
US20160322073A1 (en) Tape device and controller thereof
JP3909044B2 (en) Method and apparatus for measuring magnetic recording width of magnetic head
US20150199980A1 (en) Tape apparatus and write processing method
US7143232B2 (en) Method, system, and program for maintaining a directory for data written to a storage medium
CN105304098A (en) Data storage device servoing heads based on virtual servo tracks
US9536558B2 (en) Erasing recorded data by utilizing read head and write head
US20090190251A1 (en) Data recording method
US10025373B2 (en) Reduction of power consumption of a buffer in tape drive
US8027109B1 (en) Reuse of partially expired physical tape volume
JP7252448B2 (en) Tape unit, controller and read control program
JP2014110062A (en) Disk storage unit and servo-control method
JP2011222015A (en) Disk drive and write method of the same

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110216

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110531

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: 20110606

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140610

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees