JPH0744426A - File system file management method - Google Patents

File system file management method

Info

Publication number
JPH0744426A
JPH0744426A JP5190362A JP19036293A JPH0744426A JP H0744426 A JPH0744426 A JP H0744426A JP 5190362 A JP5190362 A JP 5190362A JP 19036293 A JP19036293 A JP 19036293A JP H0744426 A JPH0744426 A JP H0744426A
Authority
JP
Japan
Prior art keywords
file
storage device
computer
disk storage
file management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5190362A
Other languages
Japanese (ja)
Inventor
Akira Ito
昭 伊東
Isao Yoshizawa
功 吉澤
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.)
JFE Steel Corp
Original Assignee
Kawasaki Steel 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 Kawasaki Steel Corp filed Critical Kawasaki Steel Corp
Priority to JP5190362A priority Critical patent/JPH0744426A/en
Publication of JPH0744426A publication Critical patent/JPH0744426A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】 (修正有) 【目的】 磁気ディスク記憶装置および光ディスク記憶
装置の有効利用を図る。 【構成】 コンピュータ20は新規ファイルを光ディス
ク記憶装置23に登録する。コンピュータ20は光ディ
スク記憶装置23のファイルアクセス状況を監視し、使
用頻度の高いファイルを第2磁気ディスク記憶装置22
に転送し、以後アクセスを第2磁気ディスク記憶装置2
2に対して行う。また、ファイル登録時にファイル関連
情報がデータベースの形態で第1磁気ディスク記憶装置
21に格納され、ファイルアクセスのために用いられ
る。
(57) [Summary] (Modified) [Purpose] To effectively utilize magnetic disk storage devices and optical disk storage devices. Configuration: The computer 20 registers a new file in the optical disc storage device 23. The computer 20 monitors the file access status of the optical disk storage device 23, and searches the second magnetic disk storage device 22 for files that are frequently used.
To the second magnetic disk storage device 2
Do for 2. Further, at the time of file registration, the file related information is stored in the first magnetic disk storage device 21 in the form of a database and used for file access.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数のファイルを互い
に関連付けて記憶し、アクセスすることの可能なファイ
ルシステムに好適なファイル管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management method suitable for a file system capable of storing and accessing a plurality of files in association with each other.

【0002】[0002]

【従来の技術】従来、多数のファイルを記憶し、ユーザ
ーがそのファイルにアクセスすることの可能なファイル
システムではファイルの記憶用に光ディスク記憶装置を
用いている。光ディスク記憶装置は記憶容量が大きいと
いう利点がある反面、アクセス(読み/書き)の速度が
遅いという欠点がある。そこで、従来では、ユーザーが
ファイルを頻繁に用いる期間はアクセス速度の早い磁気
ディスク記憶装置にファイルを記憶しておき、頻繁に用
いることがなくなった時点で光ディスク記憶装置にファ
イルをユーザの指示で移し変えるというファイル管理方
法が用いられている。このような処理を自動的に行う例
としては、ファイルのアクセス日時をシステム内に記憶
しておき、一定の日数以上経過してもアクセスされない
古いファイルを自動的に磁気ディスク記憶装置から光デ
ィスク記憶装置に転送するようにしたファイルシステム
(特開平1−270123号)が提案されている。
2. Description of the Related Art Conventionally, an optical disk storage device is used for storing files in a file system that stores a large number of files and a user can access the files. The optical disk storage device has the advantage that it has a large storage capacity, but has the drawback that the access (read / write) speed is slow. Therefore, conventionally, a file is stored in a magnetic disk storage device having a high access speed during a period in which the user frequently uses the file, and the file is moved to the optical disc storage device at the time of the user's instruction when the file is no longer used frequently. The file management method of changing is used. As an example of automatically performing such a process, the access date and time of a file is stored in the system, and old files that are not accessed even after a certain number of days have passed are automatically transferred from the magnetic disk storage device to the optical disk storage device. There is proposed a file system (Japanese Patent Laid-Open No. 1-270123) for transferring data to the Internet.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記提
案では、一旦、光ディスク記憶装置側にファイルが転送
されてしまうと、以後、ユーザーがファイルを頻繁に使
用する事態が生じた時に光ディスク装置のアクセス速度
の遅さに悩まされることになる。また、仮に、ユーザの
指示で光ディスク装置から磁気ディスク装置にファイル
を転送しても、上述の自動転送機能が働いて、光ディス
ク装置にファイルが転送され、光ディスク記憶装置に重
複的にファイルが記憶される恐れすらある。
However, in the above-mentioned proposal, once the file is transferred to the optical disk storage device side, the access speed of the optical disk device will be increased when the user frequently uses the file thereafter. Will be bothered by the slowness of. Even if a file is transferred from the optical disk device to the magnetic disk device according to a user's instruction, the above-mentioned automatic transfer function operates, the file is transferred to the optical disk device, and the file is redundantly stored in the optical disk storage device. There is even a fear of

【0004】そこで、本発明の目的は、上述の点に鑑み
て、時間的に影響を受けず、頻繁に使用するファイルの
みをアクセス速度の早い磁気ディスク記憶装置側に自動
保存することの可能なファイルシステムのファイル管理
方法を提供することにある。
Therefore, in view of the above points, the object of the present invention is not affected by time, and it is possible to automatically save only the frequently used files in the magnetic disk storage device side having a high access speed. It is to provide a file management method of a file system.

【0005】また、本発明の他の目的は、上記目的を達
成するほか、新規機能を提供することの可能なファイル
システムのファイル管理方法を提供することにある。
Another object of the present invention is to provide a file management method for a file system which can achieve the above objects and can provide new functions.

【0006】[0006]

【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、使用頻度の高いファイル
をアクセス速度の高い第1記憶装置に記憶し、使用頻度
の低いファイルをアクセス速度の低い第2記憶装置に記
憶し、コンピュータにより前記第1記憶装置および前記
第2記憶装置からファイルを読み出すファイルシステム
のファイル管理方法において、新規ファイルを前記コン
ピュータにより前記第2記憶装置に登録し、前記第2記
憶装置のファイルの使用頻度を前記コンピュータにより
監視し、該使用頻度が一定値以上となった前記第2記憶
装置のファイルを、前記コンピュータにより前記第1記
憶装置にコピーし、当該コピーされたファイルの以後の
前記コンピュータのアクセス先を前記第1記憶装置に設
定することを特徴とする。
In order to achieve such an object, the invention of claim 1 stores a frequently used file in a first storage device having a high access speed, and stores a less frequently used file. In a file management method of a file system for storing a file in a second storage device having a low access speed and reading a file from the first storage device and the second storage device by a computer, a new file is registered in the second storage device by the computer. Then, the frequency of use of the file of the second storage device is monitored by the computer, and the file of the second storage device whose use frequency becomes a certain value or more is copied to the first storage device by the computer, The access destination of the computer after the copied file is set in the first storage device. To.

【0007】請求項2の発明は、前記コンピュータは前
記第1記憶装置のファイルの使用頻度を監視し、該使用
頻度が特定値未満となったファイルを前記第1記憶装置
から消去し、該ファイルの前記コンピュータのアクセス
先を前記第2記憶装置に設定することを特徴とする。
According to a second aspect of the present invention, the computer monitors the frequency of use of the file in the first storage device, deletes the file whose use frequency is less than a specified value from the first storage device, and deletes the file. The access destination of the computer is set to the second storage device.

【0008】請求項3の発明は、前記新規ファイルを前
記コンピュータにより前記第2記憶装置に登録した時
に、該コンピュータは当該ファイルと共に登録されるフ
ァイル管理情報をデータベースの形態で第3の記憶装置
に登録することを特徴とする。
According to a third aspect of the invention, when the new file is registered in the second storage device by the computer, the computer stores the file management information registered together with the file in the third storage device in the form of a database. It is characterized by registering.

【0009】請求項4の発明は、前記データベースのフ
ァイル管理情報の中には、ファイルの保存先およびその
中の格納アドレスを示す情報を含み、前記コンピュータ
は該情報を参照することによりファイルのアクセス先を
設定することを特徴とする。
According to a fourth aspect of the present invention, the file management information of the database includes information indicating a storage destination of the file and a storage address therein, and the computer accesses the file by referring to the information. It is characterized by setting the destination.

【0010】請求項5の発明は、前記コンピュータは特
定ファイルのファイル管理情報の修復命令を受けた時
に、前記データベースを検索し、該特定ファイルに対応
するファイル管理情報を抽出することを特徴とする。
According to a fifth aspect of the present invention, when the computer receives an instruction to restore the file management information of a specific file, the computer searches the database and extracts the file management information corresponding to the specific file. .

【0011】[0011]

【作用】請求項1の発明は、アクセス速度の低い第2記
憶装置のファイルの使用状況をコンピュータが監視し
て、使用頻度の高いファイルをアクセス速度の早い第1
記憶装置に移す。
According to a first aspect of the present invention, the computer monitors the usage status of the files in the second storage device having a low access speed, and the files having a high access frequency are transferred to the first access file having a high access speed.
Move to storage.

【0012】請求項2の発明では、使用頻度が低くなっ
た第1記憶装置のファイルを自動消去し、ファイルのア
クセス先を第2記憶装置に戻す。
According to the second aspect of the present invention, the file in the first storage device which has become less frequently used is automatically erased, and the access destination of the file is returned to the second storage device.

【0013】請求項3の発明は、ファイル管理情報をデ
ータベース形態で保管することによりファイル管理情報
の検索を容易にする。
According to the third aspect of the present invention, the file management information is stored in the form of a database to facilitate the search of the file management information.

【0014】請求項4の発明では、ファイルのアクセス
に際し、コンピュータは記憶装置からファイル格納先の
アドレス関連情報を取得せず、データベースから取得す
る。請求項5の発明では、データベースにバックアップ
的に記憶されているファイル管理情報を用いて、ファイ
ル管理情報を復元する。
According to the fourth aspect of the invention, when the file is accessed, the computer does not acquire the address related information of the file storage destination from the storage device, but acquires it from the database. In the invention of claim 5, the file management information is restored using the file management information stored in the database as a backup.

【0015】[0015]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0016】図1は本発明を適用したファイルシステム
のシステム構成を示す。図1において、コンピュータ2
0には第1磁気ディスク記憶装置21、第2磁気ディス
ク記憶装置22、光ディスク記憶装置23および複数の
端末10が接続されている。端末10はコンピュータ2
0との間で通信を行う本体11、コンピュータ20に対
して送信する指示情報および各種データを入力するキー
ボード12、コンピュータ20からの出力情報を表示す
る表示装置13から構成されている。
FIG. 1 shows the system configuration of a file system to which the present invention is applied. In FIG. 1, the computer 2
A first magnetic disk storage device 21, a second magnetic disk storage device 22, an optical disk storage device 23, and a plurality of terminals 10 are connected to 0. The terminal 10 is a computer 2
It is composed of a main body 11 for communicating with 0, a keyboard 12 for inputting instruction information and various data to be transmitted to the computer 20, and a display device 13 for displaying output information from the computer 20.

【0017】ファイルの記憶に関連する情報を図2を用
いて説明する。コンピュータ10にはオペレティングシ
ステム(OS)と一般的に呼ばれるプログラム20Aが
格納されており、コンピュータ20はこのプログラムを
実行することにより、ディスク記憶装置21〜23にア
クセスを行う。第1磁気ディスク記憶装置21は第2磁
気ディスク記憶装置22および光ディスク記憶装置23
に格納されているファイル管理情報をデータベースの形
態で記憶する。光ディスク記憶装置23は新規に作成さ
れたファイルおよびそのファイル管理情報を装置内の光
ディスクに記憶する。なお、本実施例ではUNIXと呼
ばれるオペレーティングシステムと同等の機能を有する
オペレーティングシステムを想定しているので、光ディ
スク記憶装置23内の2枚の光ディスク40、50に跨
がって記憶されるファイルおよびファイル管理情報(図
4参照)もある。このようなファイルおよびファイル管
理情報の集合を符号45で示している。第2磁気ディス
ク記憶装置22は光ディスク記憶装置23上のファイル
の中の使用頻度の高いファイルを記憶する。
Information related to the storage of files will be described with reference to FIG. A program 20A generally called an operating system (OS) is stored in the computer 10, and the computer 20 executes the program to access the disk storage devices 21 to 23. The first magnetic disk storage device 21 is a second magnetic disk storage device 22 and an optical disk storage device 23.
The file management information stored in is stored in the form of a database. The optical disk storage device 23 stores a newly created file and its file management information on an optical disk in the device. In this embodiment, since an operating system having the same function as the operating system called UNIX is assumed, files and files stored across the two optical disks 40 and 50 in the optical disk storage device 23 are assumed. There is also management information (see FIG. 4). A set of such files and file management information is indicated by reference numeral 45. The second magnetic disk storage device 22 stores the frequently used files among the files on the optical disk storage device 23.

【0018】第1磁気ディスク記憶装置21のデータベ
ースの構造を図3に示す。本実施例のデータベースは図
3に示すように階層構造を持っている。図中、ファイル
制御関連のデータはファイル名、ディレクトリ、記憶装
置識別子、iノード識別子およびアクセス頻度(回数)
を1組としたデータ群で構成される。ここで、ファイル
名は、ユーザまたはコンピュータ20からファイルに対
して割り当てられた識別名である。ユーザがファイルの
読み出しを要求するときはこのファイル名を用いる。デ
ィレクトリは、たとえば、関連のある複数のファイルを
ツリー上に接続して管理する場合に複数のファイルの集
合に与える識別名を意味する。記憶装置識別子はファイ
ルが格納されている記憶装置を示す識別名である。iノ
ード識別子はファイル内で分割されたデータブロックに
関連するデータ、すなわちiノードに与える識別名であ
る。アクセス頻度はファイル名に対応するファイルがア
クセスされた回数を示す数値である。
The structure of the database of the first magnetic disk storage device 21 is shown in FIG. The database of this embodiment has a hierarchical structure as shown in FIG. In the figure, data related to file control includes file name, directory, storage device identifier, inode identifier, and access frequency (number of times).
It is composed of a data group including one set. Here, the file name is an identification name assigned to the file by the user or the computer 20. This file name is used when the user requests to read the file. The directory means, for example, an identification name given to a set of a plurality of files when a plurality of related files are connected and managed on a tree. The storage device identifier is an identification name indicating the storage device in which the file is stored. The inode identifier is data associated with the data block divided in the file, that is, an identification name given to the inode. The access frequency is a numerical value indicating the number of times the file corresponding to the file name has been accessed.

【0019】データベースを構成するiノード関連のデ
ータは記憶装置識別子、iノード識別子、ファイル名、
最終更新時間、およびディスクアドレス表から構成され
る。上述のデータの他、本発明に関わるデータとしては
ディスクアドレス表がある。ディスクアドレス表は、デ
ータブロックが格納されている記憶装置内の格納アドレ
スを示す。この格納アドレスを読み出し命令と共にコン
ピュータ20が記憶装置に与えることによりその記憶装
置がディスクの指定アドレスからデータブロックを読み
出す。ディスクアドレス表関連データは記憶装置識別
子、データブロックが格納されている先頭アドレス、お
よび以後のデータブロックのアドレス及びiノードが直
接構造か間接構造(図5参照)であるかを示すビット情
報を1組のデータとして構成される。
The data related to the inodes forming the database includes a storage device identifier, an inode identifier, a file name,
It consists of the last update time and the disk address table. In addition to the above-mentioned data, there is a disk address table as data related to the present invention. The disk address table shows storage addresses in the storage device in which data blocks are stored. The storage device reads the data block from the designated address of the disk by giving the storage address to the storage device together with the read command by the computer 20. The disk address table related data includes a storage device identifier, a start address where a data block is stored, an address of a subsequent data block, and 1 bit information indicating whether the inode has a direct structure or an indirect structure (see FIG. 5). It is constructed as a set of data.

【0020】第2磁気ディスク記憶装置22および光デ
ィスク記憶装置23に記憶されるファイルおよびファイ
ル管理情報は従来と同様のフォーマットで記載され、こ
のフォーマットはよく知られているので、詳細な説明を
省略する。
The files and file management information stored in the second magnetic disk storage device 22 and the optical disk storage device 23 are described in the same format as the conventional one, and since this format is well known, detailed description will be omitted. .

【0021】以上述べたシステム構成の下で実行される
ファイルアクセス処理を図7〜図10のフローチャート
を、用いて説明する。これらのフローチャートはコンピ
ュータ20が実行するオペレーティングシステム用のプ
ログラムの部分内容を説明の都合上機能的に表現したも
のである。
A file access process executed under the system configuration described above will be described with reference to the flowcharts of FIGS. These flow charts are functional representations of the partial contents of the operating system program executed by the computer 20, for convenience of explanation.

【0022】端末10から入力された情報を基にコンピ
ュータ20が新規ファイルを作成する。オペレーティン
グシステムが起動され、端末10のキーボード12から
ファイルの登録の指示があると、コンピュータ20は登
録命令を識別し(図7のS10)、従来と同様の処理手
順を用いてファイルの読み出しに用いるファイル管理情
報を作成し、ファイルおよびファイル管理情報を光ディ
スク記憶装置23に登録する(図7のS100)。ま
た、上記ファイル管理情報をデータベース21Aのデー
タ(図3参照)フォーマットに変換して第1ディスク記
憶装置のデータベース21Aに登録する。このときファ
イルの格納先は光ディスク記憶装置23およびアクセス
頻度は数値0にデータベース上で初期設定される(図7
のS110)。
The computer 20 creates a new file based on the information input from the terminal 10. When the operating system is activated and a file registration instruction is issued from the keyboard 12 of the terminal 10, the computer 20 identifies the registration command (S10 in FIG. 7) and uses it for reading the file using the same processing procedure as the conventional one. File management information is created, and the file and the file management information are registered in the optical disk storage device 23 (S100 in FIG. 7). Also, the file management information is converted into a data format of the database 21A (see FIG. 3) and registered in the database 21A of the first disk storage device. At this time, the storage destination of the file is initialized to the optical disk storage device 23 and the access frequency is set to the numerical value 0 on the database (FIG. 7).
S110).

【0023】コンピュータ20は端末10のキーボード
12から例えば、ファイルの読み出し要求(要求の中に
はファイル名が含まれる)を受けると(図7のS2
0)、S200のアクセス処理に移行する。この処理の
詳細手順を図8に示す。すなわち、コンピュータ10は
第1ディスク記憶装置21のデータベースをファイル名
に基づき参照して、読み出しの要求の合ったファイルの
格納先を取得し(図8のS201)、ファイルの格納先
からファイルを読み出し、端末10に送信する(図8の
S202)。このとき、コンピュータ20は第1ディス
ク記憶装置21のデータベース上の、このファイルつい
てのアクセス回数を+1する(図8のS203)。な
お、ファイル登録後の初めての読み出しの場合、初期の
アクセス頻度は数値0となっている。更新後のアクセス
頻度(数値1)が規定値2と比較され、1日のアクセス
回数が2回以上となっていないことがコンピュータ20
において確認されると、実行手順は、S204→205
と進み、その他、データベース関連データが更新される
(図8のS205→リターン)。この間、端末10側で
は送信されたファイルを表示装置13に表示する。以
下、ユーザーからファイルの読み出しの指示があるごと
に上述の手順が繰り返され、、第1ディスク記憶装置2
1のデータベース21A上のアクセス回数がファイル名
毎に更新される。
The computer 20, for example, receives a file read request (the file name is included in the request) from the keyboard 12 of the terminal 10 (S2 in FIG. 7).
0), the process proceeds to the access process of S200. The detailed procedure of this processing is shown in FIG. That is, the computer 10 refers to the database of the first disk storage device 21 based on the file name, obtains the storage destination of the file for which the read request is met (S201 of FIG. 8), and reads the file from the storage destination of the file. , To the terminal 10 (S202 in FIG. 8). At this time, the computer 20 increments the access count for this file by 1 on the database of the first disk storage device 21 (S203 in FIG. 8). In the case of the first read after the file registration, the initial access frequency is 0. The updated access frequency (numerical value 1) is compared with the specified value 2, and the computer 20 finds that the number of times of access per day is not 2 or more.
When it is confirmed in step S205, the execution procedure is S204 → 205.
Then, the other data related to the database is updated (S205 of FIG. 8 → return). During this time, the terminal 10 displays the transmitted file on the display device 13. Hereinafter, the above-described procedure is repeated each time the user gives an instruction to read the file, and the first disk storage device 2
The number of accesses on the database 21A of No. 1 is updated for each file name.

【0024】同一のファイルの1日のアクセス回数が一
定の回数(本例の場合数値2)を越えると(図8のS2
04)、コンピュータ20はアクセスの対象となった、
ファイルを第2磁気ディスク記憶装置22側にも記憶す
る(図8のS205)。また、第1ディスク記憶装置2
1のデータベース21A上の格納先を示す情報を現在の
光ディスク記憶装置23から第2磁気ディスク記憶装置
22に切り替える(図3、図6参照)。
When the number of times of accessing the same file per day exceeds a certain number of times (numerical value 2 in this example) (S2 in FIG. 8)
04), the computer 20 was targeted for access,
The file is also stored on the second magnetic disk storage device 22 side (S205 in FIG. 8). In addition, the first disk storage device 2
The information indicating the storage destination on the database 21A of No. 1 is switched from the current optical disk storage device 23 to the second magnetic disk storage device 22 (see FIGS. 3 and 6).

【0025】したがって、以後ユーザがこのファイルに
対する読み出しをコンピュータ20に要求すると、コン
ピュータ20は第1磁気ディスク記憶装置21のデータ
ベースの格納先情報から第2磁気ディスク記憶装置22
側のファイルを読み出し、ユーザ側の端末10に送信す
る。以上のように、ユーザが頻繁にファイルの読み出し
を行うと、ファイルの読み出し先がアクセス速度の早い
磁気ディスク記憶装置に切り替わるので、ユーザは、フ
ァイルを迅速に受け取ることができる。
Therefore, when the user subsequently requests the computer 20 to read this file, the computer 20 uses the storage destination information in the database of the first magnetic disk storage device 21 as the second magnetic disk storage device 22.
The file on the user side is read and transmitted to the terminal 10 on the user side. As described above, when the user frequently reads the file, the read destination of the file is switched to the magnetic disk storage device having a high access speed, so that the user can quickly receive the file.

【0026】また、頻繁にアクセスの行われているファ
イルは磁気ディスク記憶装置(22)および光ディスク
記憶装置(23)の双方に記憶されているので、光ディ
スク記憶装置がバックアップの記憶装置として機能して
いる。したがって磁気ディスク記憶装置側のファイルま
たはファイル管理情報が何らかの原因で、消失、破壊さ
れた場合でも光ディスク記憶装置側のデータを新規に磁
気ディスク側にコピーすることで破壊ファイルを修復す
ることができる。
Since the frequently accessed files are stored in both the magnetic disk storage device (22) and the optical disk storage device (23), the optical disk storage device functions as a backup storage device. There is. Therefore, even if the file or file management information on the magnetic disk storage device side is lost or destroyed for some reason, the destroyed file can be restored by newly copying the data on the optical disk storage device side to the magnetic disk side.

【0027】この場合は、ユーザーは端末装置10から
光ディスク記憶装置名、ファイル名を記載した読み出し
命令をコンピュータ20に送信する。コンピュータ10
では図10の手順に基づきアクセス先を光ディスク記憶
装置23と決定し、光ディスク記憶装置23内のファイ
ル管理情報により、従来と同様にして、指定されたファ
イルを光ディスクから読み出し、コンピュータ10内の
ワークメモリに格納する。その後、ユーザは端末10を
介してユーザが第2磁気ディスク記憶装置22にワーク
メモリのファイルを書き込む命令をコンピュータ10に
与えることで、ファイルのコピーが達成される。
In this case, the user sends from the terminal device 10 to the computer 20 a read command in which the optical disk storage device name and file name are described. Computer 10
Then, the access destination is determined to be the optical disk storage device 23 based on the procedure of FIG. 10, and the specified file is read from the optical disk in the same manner as in the past by the file management information in the optical disk storage device 23, and the work memory in the computer 10 is read. To store. After that, the user gives a command for writing the file in the work memory to the second magnetic disk storage device 22 to the computer 10 via the terminal 10, whereby the file copy is achieved.

【0028】本実施例では、ユーザがファイル名による
アクセスを指示した場合、、コンピュータ20が光ディ
スク記憶装置の使用頻度を監視するためにデータベース
21Aに使用頻度情報を格納している。そこで、この使
用頻度情報を取得する際に、ファイルの格納アドレスを
も取得する。データベース上でのアドレス情報が破壊す
ることも考えられるので、本実施例では従来と同様にデ
ィスク記憶装置側のファイル管理上を用いてファイルを
読み出すことができるように特定のアクセス命令を用意
している。また複数のファイルを読み出す命令等、につ
いては、コンピュータ20に必ず、データベース21A
を参照させるようにしている。このための処理内容を図
10に示す。図10に示す手順は、図8の処理手順に先
立って実行され、コンピュータ10が受けたファイルの
アクセス命令の種類を識別する手順を示す。2つ以上の
ファイルを読み出す特定命令の場合(2つ以上のファイ
ル名が記載されている場合を含む)は、ファイル管理命
令の読み出し先として第1磁気ディスク装置21のデー
タベース21Aが必ず指定され(図10のS510→S
530)、手順が図8の上述のアクセス処理に移行す
る。ディスク装置側に直接、アクセスする特定命令が入
力された場合はファイル管理情報の読み出し先が、特定
命令により指定されたディスク装置に指定され、従来と
同様のファイルの読み出しが行われる(図10のS51
0〜S540)。以上の場合以外は、実行手順が図8に
移行し、ファイル管理命令の読み出し先が第1磁気ディ
スク装置21のデータベース21Aに指定される。
In this embodiment, the computer 20 stores the usage frequency information in the database 21A in order to monitor the usage frequency of the optical disk storage device when the user instructs the access by the file name. Therefore, when acquiring the usage frequency information, the storage address of the file is also acquired. Since the address information on the database may be destroyed, in this embodiment, a specific access command is prepared so that the file can be read using the file management on the disk storage device side as in the conventional case. There is. In addition, regarding a command to read a plurality of files, etc., the computer 20 must be provided with a database 21A.
I am trying to refer to. The processing content for this is shown in FIG. The procedure shown in FIG. 10 is executed prior to the processing procedure of FIG. 8, and shows the procedure of identifying the type of the file access command received by the computer 10. In the case of a specific command to read two or more files (including a case where two or more file names are described), the database 21A of the first magnetic disk device 21 is always designated as the read destination of the file management command ( S510 → S in FIG.
530), the procedure shifts to the above access processing of FIG. When a specific command to access is directly input to the disk device side, the read destination of the file management information is specified to the disk device specified by the specific command, and the file is read as in the conventional case (see FIG. 10). S51
0-S540). In the case other than the above case, the execution procedure shifts to FIG. 8, and the read destination of the file management command is specified in the database 21A of the first magnetic disk device 21.

【0029】データベース21Aからファイル管理情報
を取得することにより次のような利点が得られる。すな
わち図4に示すように2枚の光ディスク40、50に跨
がって同一ファイルについてのファイル管理情報が格納
されている場合、データベース21Aに第2磁気ディス
ク記憶装置22および光ディスク記憶装置23のファイ
ル管理情報を一括して記憶しているので、ただちにファ
イル管理情報を取得することができる。参考までに、従
来では図4のような間接構造のファイル管理情報を読み
出す場合、コンピュータ20は複数回ディスク間で交互
にファイル管理情報を読み出さなければならない。
By obtaining the file management information from the database 21A, the following advantages can be obtained. That is, as shown in FIG. 4, when the file management information about the same file is stored across the two optical disks 40 and 50, the files of the second magnetic disk storage device 22 and the optical disk storage device 23 are stored in the database 21A. Since the management information is collectively stored, the file management information can be immediately acquired. For reference, conventionally, when reading file management information having an indirect structure as shown in FIG. 4, the computer 20 has to read the file management information alternately a plurality of times between disks.

【0030】また、本実施例の利点としてはユーザは端
末10からキーワードをコンピュータ20に与えること
で、キーワードに関連するデータをデータベース21A
からコンピュータ20により取り出すことができる。こ
のため、コンピュータ20は複数の記憶装置22、23
をアクセスしてデータを収集する必要がない。
Further, as an advantage of this embodiment, the user gives the keyword from the terminal 10 to the computer 20, so that the data related to the keyword is stored in the database 21A.
From the computer 20. Therefore, the computer 20 has a plurality of storage devices 22, 23.
No need to access and collect data.

【0031】また、本実施例ではこのデータベース21
Aを用いて、光ディスク記憶装置23の光ディスクの破
壊されたファイル管理情報を復元することができる。こ
のための手順を説明する。
In this embodiment, the database 21
A can be used to restore the destroyed file management information of the optical disc of the optical disc storage device 23. The procedure for this will be described.

【0032】図7において、ユーザは端末10のキーボ
ード12から修復命令および修復対象のファイル名およ
び/またはディスク名を入力する。修復命令の入力をS
30で検知したコンピュータ20は手順をS300へと
進め、ここで、図9の修復処理手順を実行する。コンピ
ュータ20はファイル名またはディスク名の入力キーワ
ードを受付け(図9のS301)、このキーワードを用
いて第1磁気ディスク記憶装置21のデータベース21
Aにアクセスし、キーワードに関連するファイル管理情
報を取得する(図9のS302)。キーワードがファイ
ル名の場合は、このファイル名に対応のファイル管理情
報が得られる。なお、データベース21Aから得られる
ファイル管理情報と、光ディスク上のファイル管理情報
は記憶フォーマットが異なるので、あらかじめ定めたフ
ォーマット間の対応関係に基づきコンピュータ20によ
りフォーマット変換を行ってコンピュータ20内のワー
クメモリに復旧する(図9のS303)。
In FIG. 7, the user inputs a repair command and a file name and / or disk name of a repair target from the keyboard 12 of the terminal 10. Input repair command S
The computer 20 detected in 30 advances the procedure to S300, and executes the restoration processing procedure of FIG. 9 here. The computer 20 receives the input keyword of the file name or the disk name (S301 in FIG. 9), and uses this keyword to make the database 21 of the first magnetic disk storage device 21.
By accessing A, the file management information related to the keyword is acquired (S302 in FIG. 9). When the keyword is a file name, the file management information corresponding to this file name is obtained. Since the file management information obtained from the database 21A and the file management information on the optical disc have different storage formats, the format conversion is performed by the computer 20 based on the predetermined correspondence between the formats, and the work memory in the computer 20 is converted. It is restored (S303 in FIG. 9).

【0033】上記キーワードがディスク名の場合は、デ
ィスク内に含まれるファイルすべてのファイル管理情報
をデータベース21Aから取得する。光ディスク記憶装
置23をキーワードとすると、この記憶装置内のすべて
のファイル管理情報がデータベースの検索対象となるこ
とは言うまでもない。コンピュータ20はワークメモリ
上のファイル管理情報を端末10に、返す。ユーザはこ
のファイル管理情報を表示装置13の表示画面で確認
し、キーボード12から、例えば、読み出しアドレスを
直接的に指示したファイル読み出し命令を入力する。こ
れにより、ファイル管理情報が破壊された光ディスクか
ら所望のファイルをコンピュータ20上へ取り出すこと
ができる。
When the above keyword is the disc name, the file management information of all the files included in the disc is acquired from the database 21A. It goes without saying that if the optical disk storage device 23 is used as a keyword, all file management information in this storage device will be searched for in the database. The computer 20 returns the file management information on the work memory to the terminal 10. The user confirms the file management information on the display screen of the display device 13, and inputs, for example, a file read command directly designating a read address from the keyboard 12. As a result, a desired file can be taken out from the optical disc in which the file management information is destroyed, onto the computer 20.

【0034】本実施例の他に次の例を実施できる。In addition to this embodiment, the following example can be carried out.

【0035】1)本実施例では光ディスクの使用頻度は
1日に2回としているが、例えば、月に5回とすること
もできる。この場合は、データベース21A上の使用頻
度情報を0にコンピュータ20がリセットする周期を1
日から1月に変更する。
1) In this embodiment, the frequency of use of the optical disk is twice a day, but it may be five times a month, for example. In this case, the use frequency information on the database 21A is set to 0, and the cycle in which the computer 20 resets is set to 1
Change from January to January.

【0036】2)第2磁気ディスク記憶装置22に転送
されたファイルを使用頻度に応じて自動消去することも
できる。この場合は、図8のS204の比較判定におい
て1日に1回の使用頻度に満たない場合は、すなわち、
ファイルのデータベース21Aのアクセス先情報が第2
磁気ディスク記憶装置22を示し、かつ、前日の使用頻
度が2未満であることをコンピュータ20が確認したと
きに、コンピュータ20によりそのファイルを消去す
る。コンピュータ20により、また、データベース21
A上のアクセス先情報(以後のアクセス先)を光ディス
ク記憶装置23に変更(設定)する。
2) The file transferred to the second magnetic disk storage device 22 can be automatically erased according to the frequency of use. In this case, if the frequency of use is less than once a day in the comparison determination in S204 of FIG.
Access destination information of file database 21A is second
When the computer 20 shows the magnetic disk storage device 22 and confirms that the frequency of use on the previous day is less than 2, the computer 20 deletes the file. The computer 20 and the database 21
The access destination information on A (the access destination thereafter) is changed (set) to the optical disk storage device 23.

【0037】[0037]

【発明の効果】以上説明したように、請求項1の発明で
は、アクセス速度の高い第1記憶装置にファイルが移さ
れてもアクセス速度の低い第2記憶装置にも同じファイ
ルが残され、このファイルがバックアップの機能を果た
す。
As described above, according to the first aspect of the invention, even if a file is moved to the first storage device having a high access speed, the same file is left in the second storage device having a low access speed. The file acts as a backup.

【0038】請求項2の発明では、アクセス速度の高い
第1記憶装置側でもファイルの使用頻度が低下すると、
ファイルが消去され、第1記憶装置の有効利用が図られ
る。
According to the second aspect of the invention, if the frequency of use of the file decreases even on the side of the first storage device having a high access speed,
The file is erased and the first storage device is effectively used.

【0039】請求項3の発明では、ファイル管理情報を
データべースの形態で別途保管することで、このデータ
ベースのファイル管理情報がバックアップとしての機能
を果たすだけでなく、複数の記憶装置にアクセスするこ
となくデータベースの検索により、必要なファイル管理
情報のみを取り出すことができる。
According to the third aspect of the present invention, the file management information is separately stored in the form of a database so that the file management information of this database not only functions as a backup but also accesses a plurality of storage devices. It is possible to retrieve only the necessary file management information by searching the database without doing the above.

【0040】請求項4の発明では、データベースからフ
ァイルアクセスに必要なアドレス関連情報を取り出すこ
とにより、記憶装置のファイル管理情報に対するコンピ
ュータのアクセスを無くし、記憶装置側のファイル管理
情報の破壊に対する保護を図る。
According to the fourth aspect of the present invention, by extracting the address related information required for file access from the database, it is possible to eliminate the computer access to the file management information of the storage device and to protect the storage device side from the destruction of the file management information. Try.

【0041】請求項5の発明では、記憶装置側のファイ
ル管理情報が破壊された場合でも、自動的に、ファイル
管理情報を再構築することができる。
According to the fifth aspect of the invention, even if the file management information on the storage device side is destroyed, the file management information can be automatically reconstructed.

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

【図1】本発明実施例のシステム構成を示すブロック図
である。
FIG. 1 is a block diagram showing a system configuration of an embodiment of the present invention.

【図2】本発明実施例の記憶情報の内容を示すブロック
図である。
FIG. 2 is a block diagram showing contents of stored information according to the embodiment of the present invention.

【図3】本発明実施例のデータベース21Aの構造を示
す説明図である。
FIG. 3 is an explanatory diagram showing a structure of a database 21A according to the embodiment of this invention.

【図4】ファイル管理情報の光ディスク間の読み取り順
序を示す説明図である。
FIG. 4 is an explanatory diagram showing a reading order of file management information between optical disks.

【図5】ファイル管理情報の構造を示す説明図である。FIG. 5 is an explanatory diagram showing a structure of file management information.

【図6】データベース21Aのデータの変化を示す説明
図である。
FIG. 6 is an explanatory diagram showing changes in data in the database 21A.

【図7】図1のコンピュータ20が実行する制御手順を
示すフローチャートである。
7 is a flowchart showing a control procedure executed by the computer 20 of FIG.

【図8】図1のコンピュータ20が実行する制御手順を
示すフローチャートである。
8 is a flowchart showing a control procedure executed by the computer 20 of FIG.

【図9】図1のコンピュータ20が実行する制御手順を
示すフローチャートである。
9 is a flowchart showing a control procedure executed by the computer 20 of FIG.

【図10】図1のコンピュータ20が実行する制御手順
を示すフローチャートである。
10 is a flowchart showing a control procedure executed by the computer 20 of FIG.

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

10 端末 11 本体 12 キーボード 13 表示装置 20 コンピュータ 21 第1磁気ディスク記憶装置 22 第2磁気ディスク記憶装置 23 光ディスク記憶装置 10 terminal 11 main body 12 keyboard 13 display device 20 computer 21 first magnetic disk storage device 22 second magnetic disk storage device 23 optical disk storage device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 使用頻度の高いファイルをアクセス速度
の高い第1記憶装置に記憶し、使用頻度の低いファイル
をアクセス速度の低い第2記憶装置に記憶し、コンピュ
ータにより前記第1記憶装置および前記第2記憶装置か
らファイルを読み出すファイルシステムのファイル管理
方法において、 新規ファイルを前記コンピュータにより前記第2記憶装
置に登録し、 前記第2記憶装置のファイルの使用頻度を前記コンピュ
ータにより監視し、 該使用頻度が一定値以上となった前記第2記憶装置のフ
ァイルを、前記コンピュータにより前記第1記憶装置に
コピーし、 当該コピーされたファイルの以後の前記コンピュータの
アクセス先を前記第1記憶装置に設定することを特徴と
するファイルシステムのファイル管理方法。
1. A frequently used file is stored in a first storage device having a high access speed, a less frequently used file is stored in a second storage device having a low access speed, and the computer stores the first storage device and the second storage device. In a file management method of a file system for reading a file from a second storage device, a new file is registered in the second storage device by the computer, the frequency of use of the file in the second storage device is monitored by the computer, and A file of the second storage device whose frequency becomes a certain value or more is copied to the first storage device by the computer, and the access destination of the computer after the copied file is set to the first storage device. A file management method for a file system, characterized by:
【請求項2】 前記コンピュータは前記第1記憶装置の
ファイルの使用頻度を監視し、該使用頻度が特定値未満
となったファイルを前記第1記憶装置から消去し、該フ
ァイルの前記コンピュータのアクセス先を前記第2記憶
装置に設定することを特徴とする請求項1に記載のファ
イルシステムのファイル管理方法。
2. The computer monitors the frequency of use of a file in the first storage device, deletes the file whose use frequency is less than a specified value from the first storage device, and accesses the file by the computer. The file management method of the file system according to claim 1, wherein the destination is set to the second storage device.
【請求項3】 前記新規ファイルを前記コンピュータに
より前記第2記憶装置に登録した時に、該コンピュータ
は当該ファイルと共に登録されるファイル管理情報をデ
ータベースの形態で第3の記憶装置に登録することを特
徴とする請求項1に記載のファイルシステムのファイル
管理方法。
3. When the new file is registered in the second storage device by the computer, the computer registers the file management information registered together with the file in the third storage device in the form of a database. The file management method of the file system according to claim 1.
【請求項4】 前記データベースのファイル管理情報の
中には、ファイルの保存先およびその中の格納アドレス
を示す情報を含み、前記コンピュータは該情報を参照す
ることによりファイルのアクセス先を設定することを特
徴とする請求項3に記載のファイルシステムのファイル
管理方法。
4. The file management information of the database includes information indicating a file save destination and a storage address therein, and the computer sets the file access destination by referring to the information. The file management method of the file system according to claim 3, wherein
【請求項5】 前記コンピュータは特定ファイルのファ
イル管理情報の修復命令を受けた時に、前記データベー
スを検索し、該特定ファイルに対応するファイル管理情
報を抽出することを特徴とする請求項3に記載のファイ
ルシステムのファイル管理方法。
5. The computer according to claim 3, wherein the computer searches the database and extracts the file management information corresponding to the specific file when receiving an instruction to restore the file management information of the specific file. File system file management method.
JP5190362A 1993-07-30 1993-07-30 File system file management method Pending JPH0744426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5190362A JPH0744426A (en) 1993-07-30 1993-07-30 File system file management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5190362A JPH0744426A (en) 1993-07-30 1993-07-30 File system file management method

Publications (1)

Publication Number Publication Date
JPH0744426A true JPH0744426A (en) 1995-02-14

Family

ID=16256927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5190362A Pending JPH0744426A (en) 1993-07-30 1993-07-30 File system file management method

Country Status (1)

Country Link
JP (1) JPH0744426A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265423A (en) * 1996-03-28 1997-10-07 Dainippon Screen Mfg Co Ltd Storage system
JPH1011335A (en) * 1996-06-26 1998-01-16 Shikoku Nippon Denki Software Kk Hierachical file system
JP2015500544A (en) * 2011-12-15 2015-01-05 シマンテック コーポレーションSymantec Corporation Dynamic storage tiering in a virtual environment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09265423A (en) * 1996-03-28 1997-10-07 Dainippon Screen Mfg Co Ltd Storage system
JPH1011335A (en) * 1996-06-26 1998-01-16 Shikoku Nippon Denki Software Kk Hierachical file system
JP2015500544A (en) * 2011-12-15 2015-01-05 シマンテック コーポレーションSymantec Corporation Dynamic storage tiering in a virtual environment
JP2018110014A (en) * 2011-12-15 2018-07-12 ベリタス テクノロジーズ エルエルシー Dynamic storage tiering in a virtual environment

Similar Documents

Publication Publication Date Title
US5664177A (en) Data processing system having a data structure with a single, simple primitive
US20080005145A1 (en) Data processing
US8095678B2 (en) Data processing
US20020069280A1 (en) Method and system for scalable, high performance hierarchical storage management
JP2003259268A (en) Moving image management method and apparatus
EP4542409A1 (en) Metadata management method based on file system, and related device thereof
JP2006172067A (en) Database management method, system and program
JPH0317753A (en) File access system
US6625614B1 (en) Implementation for efficient access of extended attribute data
JPH027096B2 (en)
JP2912657B2 (en) File access processor
JP2835364B2 (en) Data processing system
JP3398672B2 (en) Intermediate data storage device
JPS635443A (en) File management device
JP2960270B2 (en) Floppy media information database processing system
JPH01255028A (en) How to access external storage devices
JPH02116936A (en) Reorganizing system
JPH11120056A (en) Saving and restoring project data
JPH02208750A (en) File access system
JPH06259293A (en) Useless document batch deleting device
JPS60203066A (en) File system of picture information
JPH05250243A (en) Data processing system for extended storage device
JPH1196058A (en) T-tree index construction method and apparatus, and storage medium storing T-tree index construction program
JPS6358556A (en) File system
JPH0362240A (en) Picture data file control system