JPH0318216B2 - - Google Patents

Info

Publication number
JPH0318216B2
JPH0318216B2 JP56201076A JP20107681A JPH0318216B2 JP H0318216 B2 JPH0318216 B2 JP H0318216B2 JP 56201076 A JP56201076 A JP 56201076A JP 20107681 A JP20107681 A JP 20107681A JP H0318216 B2 JPH0318216 B2 JP H0318216B2
Authority
JP
Japan
Prior art keywords
file
data
journal
control device
general
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 - Lifetime
Application number
JP56201076A
Other languages
Japanese (ja)
Other versions
JPS58101356A (en
Inventor
Yutaka Hyoshi
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 JP56201076A priority Critical patent/JPS58101356A/en
Publication of JPS58101356A publication Critical patent/JPS58101356A/en
Publication of JPH0318216B2 publication Critical patent/JPH0318216B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 (1) 発明の技術分野 本発明は、データ処理システムにおけるジヤー
ナル作成、管理方式に関する。
Detailed Description of the Invention (1) Technical Field of the Invention The present invention relates to a journal creation and management method in a data processing system.

(2) 技術の背景 磁気デイスク装置は迅速な書込み読取り可能、
不揮発性、記憶容量大などの特徴を有するのでフ
アイルとして用いられることが多いが、記憶内容
にエラーが生じた場合の対策として一般フアイル
の他にジヤーナルフアイルを用意して、一般フア
イルへ書込んだデータはジヤーナルフアイルへも
書込んでおくようにしている。第1図はこの種の
フアイルシステムの概要を示し、1はホスト
CPU(中央処理装置)、2はフアイル装置5に対
する制御装置、6は一般フアイル、7はジヤーナ
ルフアイル、5A,5Bはフアイルこゝでは磁気
デイスク装置に対する駆動部である。ジヤーナル
フアイル7へは一般フアイルの更新データを書込
んでおき、一般フアイルから読出した更新データ
に誤りがあればジヤーナルフアイル格納の更新デ
ータを読出して該一般フアイルを再更新し、正し
いデータが得られるようにする。ジヤーナルフア
イルの容量には限りがあるので一般フアイルの全
データをジヤーナルフアイルにコピーしておくこ
とはできないが、最近の更新データは全てジヤー
ナルフアイルにあり該最近更新データについては
一般フアイルの修復可能とする。
(2) Technical background Magnetic disk drives are capable of rapid writing and reading;
It is often used as a file because it has characteristics such as non-volatility and large storage capacity, but as a countermeasure in case an error occurs in the stored contents, a journal file is prepared in addition to the general file and written to the general file. The data is also written to the journal file. Figure 1 shows an overview of this type of file system, where 1 is the host
A CPU (central processing unit), 2 is a control device for the file device 5, 6 is a general file, 7 is a journal file, and 5A and 5B are drive units for the magnetic disk device. Update data of the general file is written to the journal file 7, and if there is an error in the update data read from the general file, the update data stored in the journal file is read and the general file is updated again to obtain correct data. do it like this. Since the capacity of the journal file is limited, it is not possible to copy all the data in the general file to the journal file, but all recently updated data is in the journal file, and it is possible to restore the general file for the recently updated data. do.

(3) 従来技術と問題点 複数個あるフアイル6の任意のものに対してホ
ストCPU1が書込み指示を与え、フアイル更新
を行なつた場合、ジヤーナルをとるためには
CPU1は同じデータをジヤーナルフアイル7の
適当なトラツクに対して書込むよう指示しなけれ
ばならない。このためにはジヤーナルフアイルに
対するコマンドを再構成しなければならず、また
ジヤーナルフアイルの管理も行なわなければなら
ないので制御装置2へのアクセスが増加し、ホス
トCPUの負荷が増加してシステムの効率が悪く
なる。
(3) Prior art and problems When the host CPU 1 issues a write instruction to any one of multiple files 6 and updates the file, in order to take the journal,
CPU 1 must instruct the appropriate track of journal file 7 to write the same data. To do this, commands for the journal file must be reconfigured and the journal file must also be managed, which increases access to the control unit 2, increases the load on the host CPU, and reduces system efficiency. Deteriorate.

ところで最近は制御装置内部に最新データを蓄
えられるようにした制御装置が出廻つており、磁
気デイスクの場合これはデイスクキヤシユ制御装
置と呼ばれる。このデータ蓄積機能を利用すれ
ば、ホストCPUの負担を増加させずにジヤーナ
ルを取ることができる。
Nowadays, control devices that are capable of storing the latest data inside the control device have become available, and in the case of magnetic disks, this is called a disk cache control device. By using this data storage function, you can collect data without increasing the load on the host CPU.

(4) 発明の目的 本発明はかゝる点に着目するものであつて、制
御装置にジヤーナル作成および管理機能を与え、
ホストの負担を軽減しようとするものである。
(4) Purpose of the Invention The present invention focuses on such points, and provides a control device with journal creation and management functions,
This is an attempt to reduce the burden on hosts.

(5) 発明の構成 本発明は一般フアイルおよび一般フアイルへの
更新データを記録するジヤーナルフアイルを有す
るフアイル装置、該フアイル装置に対する制御装
置およびホストCPUを備えるデータ処理システ
ムにおけるジヤーナル作成管理方式において、前
記制御装置に、一般フアイルへの更新データが格
納されるデータバツフアおよびデータバツフアと
ジヤーナルフアイルの管理情報を格納する制御テ
ーブルを設け、一般フアイルの更新の際に、ホス
トCPUは更新データを制御装置へ送つて一般フ
アイルの更新を指示し、制御装置は当該一般フア
イルの更新を行ないまた同時に自己のデータバツ
フアへも該更新データを書込みかつ制御テーブル
へフラグを含む制御データを書込み、この一般フ
アイルへの一連の書込み動作の終了後に制御装置
は、制御テーブルにセツトされているフラグを参
照して、ジヤーナル未処理を示すフラグがあれ
ば、該フラグが所属する制御データに従つてジヤ
ーナルフアイルの該当トラツクに、データバツフ
ア内の前記更新データを書込むことを特徴とする
ものであるが、次に実施例を参照しながらこれを
詳細に説明する。
(5) Structure of the Invention The present invention provides a journal creation management method in a data processing system comprising a general file and a journal file for recording update data to the general file, a control device for the file device, and a host CPU. The control device is provided with a data buffer in which updated data for general files is stored and a control table that stores management information for the data buffer and journal file, and when updating the general file, the host CPU sends the updated data to the control device. Instructing to update a general file, the control device updates the general file, simultaneously writes the updated data to its own data buffer, writes control data including a flag to the control table, and performs a series of writes to this general file. After the operation is completed, the control device refers to the flags set in the control table, and if there is a flag indicating unprocessed journal, the data buffer is added to the corresponding track of the journal file according to the control data to which the flag belongs. This is characterized in that the update data of 1 is written.Next, this will be explained in detail with reference to embodiments.

(6) 発明の実施例 第2図は本発明の実施例を示す。第1図とほゞ
同様であるが、制御装置にはデイスクキヤシユ制
御装置を用い、従つて大容量のデータバツフア4
がある。3は制御テーブルで、データバツフア4
およびジヤーナルフアイル7を管理する各種情報
を格納する。データバツフア4は一般フアイル6
に対して読取り/書込みが行なわれたとき該フア
イルのトラツク上のデータを格納する。一般フア
イル6はシステムで読取り/書込みが可能なフア
イル、ジヤーナルフアイル7は前述のように一般
フアイルへの書込みが行なわれたときその書込み
データを貯えるフアイルである。
(6) Embodiment of the invention FIG. 2 shows an embodiment of the invention. Although it is almost the same as Fig. 1, a disk cache control device is used as the control device, and therefore a large-capacity data buffer 4 is used.
There is. 3 is a control table, and data buffer 4
and various information for managing the journal file 7. Data buffer 4 is general file 6
The data on the track of the file is stored when the file is read/written. The general file 6 is a file that can be read/written by the system, and the journal file 7 is a file that stores written data when writing to the general file is performed as described above.

ホストCPU1より制御装置2へフアイル6の
1つ(6aとする)への書込み指示が与えられる
と、制御装置2はホストCPU1より送られてき
たデータをフアイル6aの該当トラツクへ書込
む。と同時にデータをバツフア4に格納する。こ
のバツフア4へのデータ格納の際制御テーブル3
を参照し、ジヤーナルフアイル7の空きトラツク
アドレスを求めまたフアイル6aの装置アドレ
ス、書込み先の物理トラツクを求め、データバツ
フア4内のポインタおよびフラグの設定をし、こ
れらの諸データを制御テーブル3にセツトする。
第3図は制御テーブル(CT)3およびデータバ
ツフア(DB)4の内容の一部を略示するもの
で、FAD〜FCDはフアイル6(本例では3個あ
るので各々をA,B,Cで区別する)のデータ、
FAI〜FCIはフアイルA,B,Cの情報例えばフ
アイルA,B,Cがデータバツフアのどこに(デ
ータバツフアDBがデイスクならどのトラツク
に)格納されているかを示すポインタである。こ
れらの一連の動作を行なつて、一般フアイル6へ
の書込み動作を終了する。その後制御装置2は制
御テーブル3にセツトされているフラグを参照し
てジヤーナル未処理を示すフラグを捜し、該フラ
グが見つかれば該フラグが所属する制御データに
従つてジヤーナルフアイル7の該当トラツクにデ
ータバツフア4内のフアイル6aに書込んだ前記
データを書込む。こうして本発明方式によればホ
ストに負荷を掛けずに制御装置のみでジヤーナル
フアイルを作成でき、ホストのオーバーヘツドを
軽減させることができる。
When the host CPU 1 gives an instruction to write to one of the files 6 (6a) to the control device 2, the control device 2 writes the data sent from the host CPU 1 to the corresponding track of the file 6a. At the same time, data is stored in buffer 4. Control table 3 when storing data in buffer 4
With reference to do.
Figure 3 schematically shows part of the contents of the control table (CT) 3 and data buffer (DB) 4. data),
FAI to FCI are pointers indicating where in the data buffer (in which track if the data buffer DB is a disk) information about files A, B, and C, for example, files A, B, and C are stored. After performing these series of operations, the write operation to the general file 6 is completed. After that, the control device 2 refers to the flags set in the control table 3 to search for a flag indicating that the journal has not been processed, and if the flag is found, data buffer is created in the corresponding track of the journal file 7 according to the control data to which the flag belongs. The data written in the file 6a in 4 is written. In this way, according to the method of the present invention, a journal file can be created using only the control device without imposing any load on the host, and the overhead of the host can be reduced.

ジヤーナルフアイル7のデータを一般フアイル
6へ書込む場合は、例えばホストCPU1より制
御装置2に対してどの一般フアイル(6xとす
る)のどこからどこまでのデータを書換えるかを
コマンドで指示する。これを受けて制御装置2は
制御テーブル3を参照してジヤーナルフアイル7
の該当部分を読出し、その読出しデータをフアイ
ル6xの該当部分へ書込む。このジヤーナルフア
イルから一般フアイルへのデータ輸送にはホスト
CPUは関与しないから、フアイル修復時にもホ
ストのオーバヘツドが軽減でき、修復時の操作誤
りを防ぐこともできる。
When writing data from the journal file 7 to the general file 6, for example, the host CPU 1 instructs the control device 2 by a command as to which general file (assumed to be 6x) data is to be rewritten. In response to this, the control device 2 refers to the control table 3 and sets the journal file 7.
The corresponding portion of the file 6x is read and the read data is written to the corresponding portion of the file 6x. To transport data from this journal file to the general file, the host
Since the CPU is not involved, host overhead can be reduced when files are repaired, and operational errors can also be prevented when repairing files.

(7) 発明の効果 以上説明したように本発明では制御装置に自動
ジヤーナル機能を持たせたのでホストCPUの負
荷を軽減でき、また大容量バツフア内臓の制御装
置ではジヤーナル機能を持たされても装置を大幅
に改造する必要はなく従つて低コストで本発明を
実施できるなどの利点がある。
(7) Effects of the Invention As explained above, in the present invention, since the control device is equipped with an automatic journal function, the load on the host CPU can be reduced, and in the case of a control device with a built-in large-capacity buffer, even if the control device is equipped with a journal function, the load on the host CPU can be reduced. It is advantageous that the present invention can be carried out at low cost since there is no need to significantly modify the system.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明が適用される情報処理システム
の概要を示すブロツク図、第2図は本発明の実施
例を示すブロツク図、第3図は制御テーブルおよ
びデータバツフアの内容を説明する図である。 図面で6は一般フアイル、7はジヤーナルフア
イル、5はフアイル装置、2は制御装置、1はホ
ストCPU、4はデータバツフア、3は制御テー
ブルである。
FIG. 1 is a block diagram showing an overview of an information processing system to which the present invention is applied, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a diagram explaining the contents of a control table and data buffer. . In the drawing, 6 is a general file, 7 is a journal file, 5 is a file device, 2 is a control device, 1 is a host CPU, 4 is a data buffer, and 3 is a control table.

Claims (1)

【特許請求の範囲】 1 一般フアイルおよび一般フアイルへの更新デ
ータを記録するジヤーナルフアイルを有するフア
イル装置、該フアイル装置に対する制御装置およ
びホストCPUを備えるデータ処理システムにお
けるジヤーナル作成管理方式において、 前記制御装置に、一般フアイルへの更新データ
が格納されるデータバツフアおよびデータバツフ
アとジヤーナルフアイルの管理情報を格納する制
御テーブルを設け、 一般フアイルの更新の際に、ホストCPUは更
新データを制御装置へ送つて一般フアイルの更新
を指示し、制御装置は当該一般フアイルの更新を
行ないまた同時に自己のデータバツフアへも該更
新データを書込みかつ制御テーブルへフラグを含
む制御データを書込み、 この一般フアイルへの一連の書込み動作の終了
後に制御装置は、制御テーブルにセツトされてい
るフラグを参照して、ジヤーナル未処理を示すフ
ラグがあれば、該フラグが所属する制御データに
従つてジヤーナルフアイルの該当トラツクに、デ
ータバツフア内の前記更新データを書込むことを
特徴とするジヤーナル作成管理方式。
[Scope of Claims] 1. A journal creation management method in a data processing system comprising a file device having a general file and a journal file for recording update data to the general file, a control device for the file device, and a host CPU, comprising: A data buffer in which update data to the general file is stored and a control table to store management information for the data buffer and journal file are provided. When updating the general file, the host CPU sends the updated data to the control device and updates the general file. The control device updates the general file, simultaneously writes the updated data to its own data buffer, writes control data including flags to the control table, and executes a series of write operations to this general file. After completion, the control device refers to the flags set in the control table, and if there is a flag indicating unprocessed journal, the control device transfers the above data in the data buffer to the corresponding track of the journal file according to the control data to which the flag belongs. A journal creation management method characterized by writing updated data.
JP56201076A 1981-12-14 1981-12-14 Journal forming and managing system Granted JPS58101356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56201076A JPS58101356A (en) 1981-12-14 1981-12-14 Journal forming and managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56201076A JPS58101356A (en) 1981-12-14 1981-12-14 Journal forming and managing system

Publications (2)

Publication Number Publication Date
JPS58101356A JPS58101356A (en) 1983-06-16
JPH0318216B2 true JPH0318216B2 (en) 1991-03-12

Family

ID=16434986

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56201076A Granted JPS58101356A (en) 1981-12-14 1981-12-14 Journal forming and managing system

Country Status (1)

Country Link
JP (1) JPS58101356A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3974538B2 (en) 2003-02-20 2007-09-12 株式会社日立製作所 Information processing system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5812055A (en) * 1981-07-13 1983-01-24 Hitachi Ltd File failure recovery system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5812055A (en) * 1981-07-13 1983-01-24 Hitachi Ltd File failure recovery system

Also Published As

Publication number Publication date
JPS58101356A (en) 1983-06-16

Similar Documents

Publication Publication Date Title
EP0462180B1 (en) Method of reading and writing files on nonerasable storage media
JPH0318216B2 (en)
JPS61241850A (en) Memory control system of optical disk
US20070097535A1 (en) Micro-journaling of data on a storage device
US7725666B2 (en) Micro-journaling of data on a storage device
JPH06282380A (en) Disk storage device
JPH0644118A (en) File backup system
JPH03246616A (en) External storage device managed by fat
JP3022011B2 (en) Data backup system
JPH0528651A (en) Information recorder and reproducer
JPS62237538A (en) File management system
JPH01237853A (en) System for processing degeneration of prime page in hash file
JPS6041125A (en) Control device of storage device
JPH07244600A (en) Method and device for controlling backup file
JPH02294982A (en) Managing method for optical disk file
JPH0393059A (en) Magneto-optical disk operating system
JPH04209044A (en) Data base control system
JPH04111030A (en) Information recorder
JPS6374150A (en) Large-capacity file memory
JPH05250105A (en) Information processor
JPS62237518A (en) Data moving system
JPS6352230A (en) Memory device
JPH04257951A (en) Disk cache controller
JPH0235542A (en) Transfer control system for disk cache data
JPH04338815A (en) Semiconductor disk device