JPH09231139A - Data doubling device - Google Patents

Data doubling device

Info

Publication number
JPH09231139A
JPH09231139A JP8039796A JP3979696A JPH09231139A JP H09231139 A JPH09231139 A JP H09231139A JP 8039796 A JP8039796 A JP 8039796A JP 3979696 A JP3979696 A JP 3979696A JP H09231139 A JPH09231139 A JP H09231139A
Authority
JP
Japan
Prior art keywords
file
management table
duplication
data
doubling
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
JP8039796A
Other languages
Japanese (ja)
Inventor
Masayuki Kato
雅之 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP8039796A priority Critical patent/JPH09231139A/en
Publication of JPH09231139A publication Critical patent/JPH09231139A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To reduce the cost for data doubling by making it possible to use a sequential access medium like the tape drive. SOLUTION: When the system is actuated, a file system management part 103-1 generates a file management table 110-1 and a doubling process part 103-2 generates a doubling management table 110-2. When an application program 101 closes a file, the file system management part 103-1 resets the corresponding flag of the file management table 110-1 and when the file is updated, the corresponding flag is set. Further, the flag of the corresponding entry in the doubling management table 110-2 is also set. The doubling process part 103-2 generates a new entry at the tail when the flag of the doubling management table 110-2 is set and transfers the file image corresponding to the corresponding entry from a magnetic disk drive 104 to the magnetic tape drive 112.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディスクに格納さ
れたデータを二重化するデータ二重化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data duplication device for duplicating data stored in a disc.

【0002】[0002]

【従来の技術】従来、ディスクに保存するデータを二重
化する場合は、特開平04−095121に記載されて
いるように、元のディスクと同一容量のディスクを用意
し、ディスクのブロック単位の物理書き込みを行ってい
る。
2. Description of the Related Art Conventionally, when data stored in a disk is duplicated, a disk having the same capacity as the original disk is prepared and physical writing is performed in block units of the disk, as described in JP-A-04-095121. It is carried out.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のデータ
二重化方式では、二重化を実現するために元のディスク
と同一容量のディスクスペースを必要とするため、デー
タ二重化に大きなコストがかかり、また、書き込むデー
タを全て二重化の対象としているため、書き込みに関し
ては、二倍のI/O負荷及びI/Oを起動するためのC
PU負荷が発生するので、スループットの低下を招くと
いう問題点がある。
The above-mentioned conventional data duplication system requires a disk space of the same capacity as the original disk to realize the duplication, so that the data duplication requires a large cost and the writing is performed. Since all data is subject to duplication, for writing, double I / O load and C for starting I / O
Since a PU load is generated, there is a problem that throughput is reduced.

【0004】[0004]

【課題を解決するための手段】本発明のデータ二重化装
置は、アプリケーションプログラムとしてディスクに保
存するデータを、オペレーティングシステムが二重化す
る際、ファイル単位の論理コピー方式を使用することに
より、テープデバイスのよう安価なシーケンシャルアク
セス媒体を二重化用の媒体として使用可能にすることを
特徴とする。
SUMMARY OF THE INVENTION The data duplication apparatus of the present invention uses a logical copy method in units of files when the operating system duplicates the data stored in the disk as an application program so that it can be used as a tape device. A feature is that an inexpensive sequential access medium can be used as a medium for duplication.

【0005】[0005]

【発明の実施の形態】次に、本発明について図面を使用
して詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described in detail with reference to the drawings.

【0006】図1は本発明の構成を示す。FIG. 1 shows the configuration of the present invention.

【0007】図1において、101はファイル入出力を
要求するアプリケーションプログラムであり、システム
コールインタフェース部102,ファイル管理モジュー
ル103,磁気ディスクドライバ104および磁気テー
プドライバ105を有するオペレーティングシステムを
介してハードウェアに処理を実行させる。
In FIG. 1, reference numeral 101 denotes an application program for requesting file input / output, which is implemented by hardware via an operating system having a system call interface section 102, a file management module 103, a magnetic disk driver 104 and a magnetic tape driver 105. Let the process run.

【0008】システムコールインタフェース部102
は、アプリケーションプログラム101からの入出力要
求を下位モジュールに伝達する。ファイル管理モジュー
ル103は、ファイルシステム管理部103−1と二重
化処理部13−2からなる。
System call interface unit 102
Transmits the input / output request from the application program 101 to the lower module. The file management module 103 includes a file system management unit 103-1 and a duplication processing unit 13-2.

【0009】磁気ディスクドライバ104は、磁気ディ
スク装置111との入出力を実行し、磁気テープドライ
バ105は、磁気テープ装置112との入出力を実行す
る。
The magnetic disk driver 104 executes input / output with the magnetic disk device 111, and the magnetic tape driver 105 executes input / output with the magnetic tape device 112.

【0010】一次記憶装置110には、ファイル管理テ
ーブル110−1と二重化管理テーブル110−2を保
持している。ファイル管理テーブル110−1は、ファ
イルシステム管理部103−1によって、一次記憶装置
110上に生成され、二重化管理テーブル110−2
は、二重化処理部103−2によって、一次記憶装置1
10上に生成される。
The primary storage device 110 holds a file management table 110-1 and a duplication management table 110-2. The file management table 110-1 is generated by the file system management unit 103-1 on the primary storage device 110, and the duplication management table 110-2 is created.
By the duplication processing unit 103-2.
Generated on 10.

【0011】磁気ディスク装置111は、磁気ディスク
ドライバ104からの命令を受けデータを格納し、磁気
テープ装置112は、磁気テープドライバ105からの
命令を受けデータを格納する。
The magnetic disk device 111 receives the command from the magnetic disk driver 104 and stores the data, and the magnetic tape device 112 receives the command from the magnetic tape driver 105 and stores the data.

【0012】図2はファイル管理テーブル110−1の
詳細を示し、ファイル対応にディスクファイル番号20
1,参照カウンタ202,更新フラグ203およびブロ
ック番号204を有する。
FIG. 2 shows the details of the file management table 110-1, in which the disk file number 20 corresponds to each file.
1, reference counter 202, update flag 203 and block number 204.

【0013】図3は二重化管理テーブル110−2の詳
細を示し、各エントリ305〜307は、テープ上のフ
ァイル番号であるテープファイル番号301,ディスク
ファイル番号302,フラグ303およびファイル長3
04からなる。
FIG. 3 shows the details of the duplication management table 110-2. Each entry 305 to 307 is a tape file number 301 which is a file number on the tape, a disk file number 302, a flag 303 and a file length 3.
04.

【0014】また、図4はテープ上のファイル構成を示
し、テープに格納されるファイルの一覧や属性情報を保
持するテープファイル管理テーブル401と、テープ上
に存在する個々のファイル402、403、404から
構成される。図5はディスク上のファイル構成を示して
いる。501はディスクファイル管理テーブル、502
は個々のファイルの実体を格納するためのデータブロッ
クである。
FIG. 4 shows a file structure on the tape. A tape file management table 401 holding a list of files stored on the tape and attribute information, and individual files 402, 403, 404 existing on the tape. Composed of. FIG. 5 shows the file structure on the disc. 501 is a disk file management table, 502
Is a data block for storing the entity of each file.

【0015】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0016】システム起動時、ファイルシステム管理部
103−1は、一次記憶装置110上にファイル管理テ
ーブル110−1を作成する。必要な情報は磁気ディス
ク装置111より読み込む。同じくシステム起動時、二
重化処理部103−2は、磁気テープ装置112からテ
ープファイル管理テーブル401を読み込み、先に展開
されたファイル管理テーブル110−1の情報と合わせ
て、二重化管理テーブル110−2を一次記憶装置11
0上に作成する。
At system startup, the file system management unit 103-1 creates a file management table 110-1 on the primary storage device 110. Necessary information is read from the magnetic disk device 111. Similarly, when the system is started up, the duplication processing unit 103-2 reads the tape file management table 401 from the magnetic tape device 112, and combines the information of the file management table 110-1 that was previously expanded with the duplication management table 110-2. Primary storage device 11
Create on 0.

【0017】アプリケーションプログラム101がファ
イルをクローズし、当該ファイルの参照が消滅した時、
ファイルシステム管理部103−1は当該ファイルのク
ローズを認識し、ファイル管理テーブル110−1の参
照フラグ203を落し、ファイルの更新があった場合は
更新フラグ203を立てる。また、対応する二重化管理
テーブル110−2上のエントリのフラグ303を立て
る。
When the application program 101 closes a file and the reference to the file disappears,
The file system management unit 103-1 recognizes the close of the file, clears the reference flag 203 of the file management table 110-1, and sets the update flag 203 when the file is updated. Also, the flag 303 of the corresponding entry in the duplication management table 110-2 is set.

【0018】二重化処理部103−2は、二重化管理テ
ーブル110−2を参照し、フラグ303が立っている
場合(エントリ306)、二重化管理テーブル110−
2の最後尾に、新たにエントリ307を作成する。新し
いエントリ307には、新しいテーブルファイル番号
(xxxx)が割り当てられる。二重化処理部103−
2はエントリ307に対するファイルイメージを、磁気
ディスク装置111から磁気テープ装置112へ転送す
る。磁気テープ上では、図4のエントリ404のように
媒体の最後尾に追加される。
The duplication processing unit 103-2 refers to the duplication management table 110-2, and when the flag 303 is set (entry 306), the duplication management table 110-
An entry 307 is newly created at the end of 2. A new table file number (xxxx) is assigned to the new entry 307. Duplication processing unit 103-
2 transfers the file image for the entry 307 from the magnetic disk device 111 to the magnetic tape device 112. On the magnetic tape, it is added to the end of the medium like the entry 404 in FIG.

【0019】なお、本発明では、ファイルの更新があっ
た場合は、テープ装置の最後尾に更新されたファイルを
追記するので、テープ上に無効領域が発生しやすい。こ
れを回避するために、二重化媒体を図6で示すように、
一対の磁気テープ装置601と磁気テープ装置602を
用意して、定期的にガベージコレクションを行うとよ
い。
In the present invention, when a file is updated, the updated file is added to the end of the tape device, so that an invalid area is likely to occur on the tape. In order to avoid this, as shown in FIG.
It is advisable to prepare a pair of magnetic tape devices 601 and 602 and periodically perform garbage collection.

【0020】[0020]

【発明の効果】本発明の第一の効果は、ファイル単位の
論理コピー方式を採用したため、二重化用にビット単価
の安いテープ装置を使用可能にしたことにある。一般
に、磁気テープは磁気ディスクと比較して、100倍か
ら1000倍ビット単価が安価であり、非常に経済性に
優れている。
The first effect of the present invention is that a tape device with a low bit unit price can be used for duplication because a logical copy system of file units is adopted. Generally, magnetic tapes are 100 to 1000 times cheaper in bit unit price than magnetic disks, and are very economical.

【0021】また、第二の効果は、二重化データの書き
込みが、ファイルクローズ時にのみ行われるため、不必
要なデータの書き込みを抑制でき、I/O負荷を低減で
きることである。
The second effect is that the writing of the duplicated data is performed only when the file is closed, so that the writing of unnecessary data can be suppressed and the I / O load can be reduced.

【0022】さらに、第三の効果は、二重化媒体にデー
タを転送するのに、ディスク装置からテープ装置への直
接転送を使用しているので、CPUが物理ブロック単位
にI/O命令を発行する必要がなくなるため、二重化処
理によるCPU負荷を低減することである。
Further, as a third effect, since the direct transfer from the disk device to the tape device is used to transfer the data to the duplex medium, the CPU issues the I / O command in physical block units. Since it is not necessary, it is to reduce the CPU load due to the duplication processing.

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

【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】本発明におけるファイル管理テーブルの一例を
示す図である。
FIG. 2 is a diagram showing an example of a file management table according to the present invention.

【図3】本発明においてメインメモリ上に展開される二
重化管理テーブルを示す構造図である。
FIG. 3 is a structural diagram showing a duplication management table expanded on a main memory in the present invention.

【図4】本発明において磁気テープ上の記録形態を示す
構成図である。
FIG. 4 is a configuration diagram showing a recording form on a magnetic tape in the present invention.

【図5】本発明におけるディスク上のファイル構成を示
す図である。
FIG. 5 is a diagram showing a file structure on a disc in the present invention.

【図6】本発明においてカベージコレクションを行う場
合の二重化媒体を示す図である。
FIG. 6 is a diagram showing a duplicated medium in the case of performing a garbage collection in the present invention.

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

101 アプリケーションプログラム 102 システムコールインタフェース部 103 ファイル管理モジュール 103−1 ファイルシステム管理部 103−2 二重化処理部 104 磁気ディスクドライバ 105 磁気テープドライバ 110 一次記憶装置 110−1 ファイル管理テーブル 110−2 二重化管理テーブル 111 磁気ディスク装置 112,601,602 磁気テープ装置 101 Application Program 102 System Call Interface Unit 103 File Management Module 103-1 File System Management Unit 103-2 Duplication Processing Unit 104 Magnetic Disk Driver 105 Magnetic Tape Driver 110 Primary Storage Device 110-1 File Management Table 110-2 Duplication Management Table 111 Magnetic disk unit 112, 601, 602 Magnetic tape unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】アプリケーションプログラムがファイルと
してディスクに保存するデータを、オペレーティングシ
ステムが二重化する際、ファイル単位の論理コピー方式
を使用することにより、テープデバイスのよう安価なシ
ーケンシャルアクセス媒体を二重化用の媒体として使用
可能にすることを特徴としたデータ二重化装置。
1. A medium for duplicating an inexpensive sequential access medium such as a tape device by using a logical copy method in units of files when the operating system duplicates data stored in a disk as a file by an application program. Data duplication device characterized by making it possible to use as.
【請求項2】前記二重化する際、ファイルクローズの契
機で、更新ブロックのみを二重化媒体に書き出すことに
より、I/O負荷とCPU負荷を低減し、システムスル
ープットを向上させることを特徴とする請求項1記載の
データ二重化装置。
2. When the duplication is performed, the I / O load and the CPU load are reduced and the system throughput is improved by writing only the updated block to the duplication medium when the file is closed. 1. The data duplication device according to 1.
【請求項3】前記シーケンシャルアクセス媒体について
定期的にカベージコレクションを行うことを特徴とする
請求項1記載のデータ二重化装置。
3. The data duplicating apparatus according to claim 1, wherein the sequential access medium is periodically garbage collected.
JP8039796A 1996-02-27 1996-02-27 Data doubling device Pending JPH09231139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8039796A JPH09231139A (en) 1996-02-27 1996-02-27 Data doubling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8039796A JPH09231139A (en) 1996-02-27 1996-02-27 Data doubling device

Publications (1)

Publication Number Publication Date
JPH09231139A true JPH09231139A (en) 1997-09-05

Family

ID=12562925

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8039796A Pending JPH09231139A (en) 1996-02-27 1996-02-27 Data doubling device

Country Status (1)

Country Link
JP (1) JPH09231139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392451B2 (en) 2001-11-30 2008-06-24 Fujitsu Limited Packet data retransmission control method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7392451B2 (en) 2001-11-30 2008-06-24 Fujitsu Limited Packet data retransmission control method and system

Similar Documents

Publication Publication Date Title
JP2804115B2 (en) Disk file system
JP2000122902A (en) Method for writing data in log structure storage destination, medium and data storage system
JPH09160727A (en) Information storage and library device
JP4225378B2 (en) Replication apparatus, replication method, replication program, block identification information acquisition program, and recording medium
JP2006251990A (en) Database reorganization program and database reorganization method
JP4127461B2 (en) Backup system and method in disk shared file system
JPH09231139A (en) Data doubling device
JPH1153123A (en) Backup system
JPH06110766A (en) Directory constitution method and computer system for sharing stored file system
JP2587417B2 (en) File backup and restoration method
JP2000305719A (en) Method for backing-up data in information processing system
JP2733478B2 (en) Loading media management method for collective equipment
JPH0553732A (en) Dual disk system
JPH0235537A (en) Multiple volume update control system
JP2641399B2 (en) File management device
JPS6368960A (en) Sequential access controller for shared storage medium
US20070260816A1 (en) RAID management apparatus, RAID management method, and computer product
JPH09231012A (en) Volume copy system between direct access type external storage devices
JPH10254740A (en) Data processing system
JP2000330728A (en) Disk array device, high speed communicating method used for the device and recording medium recording its control program
JPH01237820A (en) Computer system
JPS6053326B2 (en) Double data recording method for input/output control equipment
JPH03257521A (en) Medium copy system
JPH01319820A (en) Memory medium control system
JP2002032253A (en) Open system backup system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990209