JPH0773078A - File copy shift system - Google Patents

File copy shift system

Info

Publication number
JPH0773078A
JPH0773078A JP5218469A JP21846993A JPH0773078A JP H0773078 A JPH0773078 A JP H0773078A JP 5218469 A JP5218469 A JP 5218469A JP 21846993 A JP21846993 A JP 21846993A JP H0773078 A JPH0773078 A JP H0773078A
Authority
JP
Japan
Prior art keywords
file
copy
transfer
migration
management table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5218469A
Other languages
Japanese (ja)
Other versions
JP3138575B2 (en
Inventor
Yasushi Soejima
靖 副島
Naoko Sato
尚子 佐藤
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.)
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
TOHOKU NIPPON DENKI SOFTWARE KK
NEC Corp
NEC Software Tohoku 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 TOHOKU NIPPON DENKI SOFTWARE KK, NEC Corp, NEC Software Tohoku Ltd filed Critical TOHOKU NIPPON DENKI SOFTWARE KK
Priority to JP05218469A priority Critical patent/JP3138575B2/en
Publication of JPH0773078A publication Critical patent/JPH0773078A/en
Application granted granted Critical
Publication of JP3138575B2 publication Critical patent/JP3138575B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To provide a file copy shift system by which a file is shift-processed without stopping a processing for the file and without changing the execution instruction of the processing to the file, and the processing efficiency of a system can be improved. CONSTITUTION:Copy shift source/shift destination file area management tables 10 and 11 including copy address information showing the addresses of shifting parts are provided. An access control means 3 compares an address which is access-requested with a copy address and decides the file to be accessed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は二次記憶媒体上のフアイ
ルを他の二次記憶媒体へ複写移行するフアイル複写移行
方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file copy transfer system for copying and transferring a file on a secondary storage medium to another secondary storage medium.

【0002】[0002]

【従来の技術】従来のフアイル複写移行方式において
は、一旦、移行対象フアイルへのアクセスを停止した
後、データの複写移行を行なっている。
2. Description of the Related Art In the conventional file copy transfer method, data transfer is performed after the access to the transfer target file is temporarily stopped.

【0003】図2を参照して従来のフアイル複写移行方
式を説明する。
A conventional file copy transfer method will be described with reference to FIG.

【0004】図2において、デイスク装置A上のフアイ
ルAA24はこのフアイルの内容が複写移行される対象
であるフアイルであり、以後このようなフアイルを移行
元フアイルという。また、デイスク装置B上のフアイル
AA25はこのフアイルにフアイルAA24の内容が複
写移行されるフアイルであり、以後このようなフアイル
を移行先のフアイルという。
In FIG. 2, a file AA24 on the disk device A is a file whose contents are copied and transferred, and such a file is hereinafter referred to as a transfer source file. The file AA25 on the disk device B is a file to which the contents of the file AA24 are copied and transferred to this file. Such a file will be referred to as a transfer destination file hereinafter.

【0005】プログラム21はデイスク装置Aからデイ
スク装置Bへフアイルの内容を移行するプログラムであ
り、プログラム26および27はフアイル24を使用し
て業務を遂行する業務プログラムである。
The program 21 is a program for migrating the contents of the file from the disk device A to the disk device B, and the programs 26 and 27 are business programs for carrying out the work by using the file 24.

【0006】フアイル移行手段22はプログラム21に
よりフアイル移行処理を行ない、アクセス制御手段23
はフアイルアクセス要求に応答して指定フアイルへの書
き込み、読み出しを行なう。
The file transfer means 22 performs file transfer processing by the program 21, and the access control means 23.
Responds to the file access request to write to or read from the specified file.

【0007】通常はプログラム26および27は必要に
応じてアクセス制御手段23にフアイルアクセス要求を
出し、アクセス制御手段23はその要求に応答して指定
フアイルへのアクセスを行なう。
Normally, the programs 26 and 27 issue a file access request to the access control means 23 as required, and the access control means 23 accesses the designated file in response to the request.

【0008】しかし、プログラム21により従来の方式
でフアイルの複写移行動作が行なわれている場合には、
プログラム26および27のような複写移行対象である
移行元フアイルであるフアイル24に対してアクセスを
実行するようなプログラムは、一時実行を中止し、複写
移行処理が終了した後に、これらのプログラムの実行を
再開していた。
However, in the case where the program 21 is performing the file copy transfer operation by the conventional method,
Programs, such as the programs 26 and 27, that access the file 24 that is the migration source file that is the copy migration target, suspends the temporary execution, and executes these programs after the copy migration processing ends. Was restarting.

【0009】その理由は、移行先フアイルに複写移行さ
れたデータは最新のものでなければならず、複写移行処
理中に、すでに複写移行されたデータに対して、移行元
フアイルへの書き込み動作が行なわれ更新されても移行
先フアイルの対応するデータが更新されなければ意味が
ないからである。
The reason is that the data copied and migrated to the migration destination file must be the latest, and during the copy migration processing, the write operation to the migration source file can be performed on the data that has already been copied and migrated. This is because even if it is performed and updated, it has no meaning unless the corresponding data in the migration destination file is updated.

【0010】[0010]

【発明が解決しようとする課題】上述した従来のフアイ
ル複写移行方式は、複写移行時にフアイルに対する処理
を一時停止しなければならないうえ、二次媒体の変更に
伴ない、移行されるフアイルをアクセスする全ての処理
の実行指示(ジョブ制御言語等)を変更しなければなら
ないという問題点がある。
In the conventional file copy migration method described above, the processing for the file must be temporarily stopped at the time of copy migration, and the migrated file is accessed as the secondary medium is changed. There is a problem in that execution instructions (job control language, etc.) for all processes must be changed.

【0011】本発明の目的は、フアイルに対する処理を
中止することなく、かつ、このフアイルに対する処理の
実行指示を変更することなくフアイルの移行処理を行な
い、システムの処理効率を向上できるフアイル複写移行
方式を提供することにある。
An object of the present invention is to carry out a file transfer process without stopping the process for the file and without changing the instruction to execute the process for the file, thereby improving the processing efficiency of the system. To provide.

【0012】[0012]

【課題を解決するための手段】第1の発明のフアイル複
写移行方式は、複写移行履歴のあるフアイルのフアイル
名、格納装置識別子、前記格納装置内の格納位置、複写
移行中か否かを示す移行フラグおよび移行済みのデータ
のフアイル内位置を示す複写アドレス等の移行元フアイ
ル領域状況データを記憶する移行元フアイル領域管理テ
ーブルと、移行先フアイルのフアイル名、格納装置識別
子、前記格納装置内の格納位置、複写移行中か否かを示
す移行フラグおよび移行済みのデータのフアイル内位置
を示す複写アドレス等の移行先フアイル領域状況データ
を一時記憶する移行先フアイル領域管理テーブルと、前
記移行元フアイル領域管理テーブルと前記移行先フアイ
ル領域管理テーブルとを作成するフアイル領域管理テー
ブル作成手段と、前記フアイル領域管理テーブル作成手
段を起動しかつ前記移行元フアイル領域管理テーブルと
前記移行先フアイル領域管理テーブルの移行フラグおよ
び複写アドレスとを設定更新する移行準備手段と、前記
移行元フアイル領域管理テーブルの複写移行処理終了フ
アイルの各データを前記移行先フアイル領域管理テーブ
ルの対応するフアイルのデータで書き換えかつその後前
記移行先フアイル領域管理テーブルの対応するフアイル
のデータを削除する移行終了手段と、複写移行中のフア
イルにアクセス要求のあったときに前記複写アドレスを
参照しその要求がまだ複写移行が済んでいない部分への
アクセス要求である第1のアクセス要求の場合には複写
移行元フアイルへのアクセスを行ないその要求が複写移
行中の部分へのアクセス要求である第2のアクセス要求
の場合にはその部分の複写移行後に複写移行先のフアイ
ルへのアクセスを行ないその要求が複写移行済みの部分
へのアクセス要求である第3のアクセス要求の場合には
複写移行先のフアイルへのアクセスを行なうアクセス制
御手段と、前記移行準備手段と前記移行終了手段と前記
アクセス制御手段とを制御しフアイル複写移行を処理す
るフアイル移行手段とを含んで構成されている。
The file copy migration method of the first invention indicates a file name of a file having a copy migration history, a storage device identifier, a storage position in the storage device, and whether or not copy migration is in progress. A transfer source file area management table that stores transfer source file area status data such as a transfer address and a copy address indicating a position in the file of transferred data, a file name of a transfer destination file, a storage device identifier, and a storage device identifier in the storage device. A migration destination file area management table for temporarily storing migration destination file area status data such as a storage position, a migration flag indicating whether or not copying is in progress, and a copy address indicating an in-file position of migrated data, and the migration source file. A file area management table creating means for creating an area management table and the migration destination file area management table; Migration preparation means for activating the file area management table creating means and setting and updating the migration flag and copy address of the migration source file area management table and the migration destination file area management table; and the migration source file area management table. A transfer end unit that rewrites each data of the copy transfer process end file with the corresponding file data of the transfer destination file area management table and then deletes the corresponding file data of the transfer destination file area management table; When there is an access request to the file, the copy address is referred to, and if the request is a first access request that is an access request to a portion for which copy transfer has not been completed yet, access to the copy transfer source file is made. The request is an access request for the part being copied and transferred. In the case of the access request of No. 2, the file of the copy transfer destination is accessed after the copy transfer of the portion, and when the request is the third access request which is the access request to the copy transferred portion, the copy transfer destination. Access control means for accessing the file, the transfer preparation means, the transfer end means, and the access control means, and file transfer means for processing the file copy transfer.

【0013】第2の発明のフアイル複写移行方式は、第
1の発明の方式において、アクセス制御手段は第1のア
クセス要求の場合には複写移行元フアイルへのアクセス
を行ない第2のアクセス要求の場合で読み込みアクセス
要求の場合には複写移行後複写移行元フアイルへのアク
セスを行ない書き込みアクセス要求の場合には複写移行
後複写移行元および複写移行先のフアイルへのアクセス
を行ない第3のアクセス要求の場合で読み込みアクセス
要求の場合には複写移行元フアイルへのアクセスを行な
い書き込みアクセス要求の場合には複写移行元および複
写移行先のフアイルへのアクセスを行なうことを特徴と
している。
In the file copy migration method of the second invention, in the method of the first invention, the access control means performs access to the copy migration source file in the case of the first access request, In the case of a read access request, the copy transfer source file is accessed after the copy transfer, and in the case of a write access request, the copy transfer source file and the copy transfer destination file are accessed after the copy transfer. In the case of (1), a read access request is made to the copy migration source file, and a write access request is made to the copy migration source and copy migration destination files.

【0014】第3の発明のフアイル複写移行方式は、第
1および第2の発明において、複写アドレスとして複写
移行中の部分のアドレス範囲を使用することを特徴とし
ている。
The file copy migration method of the third invention is characterized in that, in the first and second inventions, the address range of the part being copied is used as the copy address.

【0015】[0015]

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

【0016】図1は本発明のフアイル複写移行方式の一
実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a file copy migration system of the present invention.

【0017】本実施例のフアイル複写移行方式は、図1
に示すように、複写移行履歴のあるフアイルの領域状況
データを記憶する移行元フアイル領域管理テーブル10
と、移行先フアイルの領域状況データを一時記憶する移
行先フアイル領域管理テーブル11と、フアイルの複写
移行処理を行なうフアイル移行手段6と、フアイルの複
写移行処理の準備を行なう移行準備手段4と、フアイル
の複写移行処理の終了処理を行なう移行終了手段5と、
移行元や移行先のフアイル領域管理テーブルを作成する
フアイル領域管理テーブル作成手段2と、フアイルへの
アクセス処理を行なうアクセス制御手段3とを含んで構
成されている。
The file copy migration method of this embodiment is shown in FIG.
As shown in FIG. 10, the source file area management table 10 that stores the area status data of the file having the copy migration history is stored.
A destination file area management table 11 for temporarily storing the area status data of the destination file, a file transfer means 6 for performing a file copy transfer processing, and a transfer preparation means 4 for preparing a file copy transfer processing. A transfer end means 5 for performing an end process of a file copy transfer process,
It comprises a file area management table creating means 2 for creating a file area management table of a migration source and a migration destination, and an access control means 3 for performing access processing to the file.

【0018】図1で、プログラム1はデイスク装置A上
のフアイルAA7をデイスク装置B上のフアイルAA8
へフアイル複写移行を実行するプログラムであり、プロ
グラム12はフアイルAAを利用するプログラムであ
る。
In FIG. 1, the program 1 has a file AA7 on the disk device A and a file AA8 on the disk device B.
The program 12 is a program for executing the file copy transfer, and the program 12 is a program for utilizing the file AA.

【0019】移行元フアイル領域管理テーブル10と移
行先フアイル領域管理テーブル11とに格納されている
アイテムは同一であり、その一例が図3に示してある。
これらのテーブルには、移行に関係したフアイル名と、
デイスク装置識別番号(テーブル10では移行元の、テ
ーブル11では移行先のデイスク装置識別番号)と、そ
のデイスク装置内でのフアイルの存在する位置を示すフ
アイル位置(エクステントが複数の場合は複数個格納さ
れる)と、現在そのフアイルが移行中か否かを示す移行
フラグ(移行中の場合にはオン、それ以外の場合はオ
フ)と、移行中の場合現在複写済のデータのフアイル内
の位置を示す複写アドレスとが格納されている。
The items stored in the migration source file area management table 10 and the migration destination file area management table 11 are the same, and an example thereof is shown in FIG.
In these tables, the file names related to the migration and
The disk device identification number (the migration source in Table 10; the migration destination disk device in Table 11) and the file position that indicates the position of the file in that disk device (if there are multiple extents, multiple files are stored. Flag) and a migration flag that indicates whether the file is currently being migrated (ON if migration is in progress, OFF otherwise), and if it is in transition, the position in the file of the currently copied data. Is stored.

【0020】図4はプログラム1のフアイル複写移行処
理の流れ図、図5はフアイル移行手段6の動作を示す流
れ図、図6はアクセス制御手段3の動作を示す流れ図、
図7は移行準備手段4の動作を示す流れ図、図8は移行
終了手段5の動作を示す流れ図である。
FIG. 4 is a flow chart of the file copy transfer processing of the program 1, FIG. 5 is a flow chart showing the operation of the file transfer means 6, and FIG. 6 is a flow chart showing the operation of the access control means 3.
FIG. 7 is a flow chart showing the operation of the shift preparation means 4, and FIG. 8 is a flow chart showing the operation of the shift end means 5.

【0021】図1〜図8を参照して本実施例の動作につ
いて説明する。
The operation of this embodiment will be described with reference to FIGS.

【0022】フアイル複写移行処理は図4に示すよう
に、プログラム1によりデイスク装置AのフアイルAA
7をデイスク装置B上の指定フアイル位置に複写移行さ
せるフアイル移行処理開始要求をフアイル移行手段6に
通知し(ステップ41および42)、フアイル移行手段
6を起動し移行処理を行なわしめて(ステップ43)終
了する。
As shown in FIG. 4, the file copy migration processing is performed by the program 1 by the file AA of the disk device A.
The file transfer means 6 is notified of a file transfer processing start request for copying and transferring 7 to the designated file position on the disk device B (steps 41 and 42), and the file transfer means 6 is activated to execute the transfer processing (step 43). finish.

【0023】フアイル移行処理開始要求(ステップ5
1)を通知されたフアイル移行手段6は図5に示すよう
に、移行準備手段4を起動して(ステップ52)移行準
備を行なわせる(ステップ53)。
File transfer process start request (step 5)
The file transfer means 6 notified of 1) activates the transfer preparation means 4 (step 52) and prepares for transfer (step 53), as shown in FIG.

【0024】移行準備手段4は、図7に示すように、複
写移行中でなければ(ステップ71のNO枝)指定され
たフアイルAA7が以前移行処理の対象になったフアイ
ルか否かを移行元フアイル領域管理テーブル10により
調べるためにその要求をフアイル領域管理テーブル作成
手段2に通知する(ステップ72および73)。
As shown in FIG. 7, the transfer preparation means 4 determines whether or not the designated file AA7 is the file that has been the target of the transfer process before, if the copy transfer is not in progress (NO branch of step 71). The request is notified to the file area management table creating means 2 for checking by the file area management table 10 (steps 72 and 73).

【0025】以前移行処理の対象になったフアイルの場
合には、後述するように、移行元フアイル領域管理テー
ブル10は既に作成されている。
In the case of a file that has been the target of the migration process before, the migration source file area management table 10 has already been created, as will be described later.

【0026】フアイル領域管理テーブル作成手段2は移
行元フアイル領域管理テーブル10のサーチ結果がフア
イルAAが以前移行処理の対象になっていない場合には
(ステップ741のNO枝)このフアイルAAについて
移行元フアイル領域管理テーブル10と移行先フアイル
領域管理テーブル11とを作成し(ステップ742)、
移行元フアイル領域管理テーブル10のサーチ結果がフ
アイルAAが以前移行処理の対象になっている場合には
(ステップ741のYES枝)このフアイルAAについ
て移行先フアイル領域管理テーブル11を作成する(ス
テップ743)。
If the search result of the migration source file area management table 10 indicates that the file AA has not been previously subjected to the migration processing (NO branch of step 741), the file area management table creating means 2 migrates the file AA to the migration source. A file area management table 10 and a migration destination file area management table 11 are created (step 742),
If the search result of the migration source file area management table 10 indicates that the file AA has been previously subjected to the migration processing (YES branch of step 741), the migration destination file area management table 11 is created for this file AA (step 743). ).

【0027】以上のようにして、フアイル領域管理テー
ブル作成手段2の動作が終了すると、移行準備手段4
は、ステップ742の場合には移行元フアイル領域管理
テーブル10に移行元フアイルの領域情報とデイスク装
置Aの識別番号を設定し、さらに、ステップ742、7
43の場合とも移行先フアイル領域管理テーブル11に
移行先フアイルの領域情報とデイスク装置Bの識別番号
とを設定するとともに、各フアイル領域管理テーブルの
移行フラグをオンにし、また、複写アドレスに初期値
(例えば0)をセットし(ステップ75)複写移行準備
を終了する。
When the operation of the file area management table creating means 2 is completed as described above, the migration preparing means 4
In the case of step 742, the area information of the migration source file and the identification number of the disk device A are set in the migration source file area management table 10, and further steps 742, 7
Also in the case of No. 43, the area information of the transfer destination file and the identification number of the disk device B are set in the transfer destination file area management table 11, the transfer flag of each file area management table is turned on, and the initial value is set in the copy address. (For example, 0) is set (step 75), and the copy transition preparation is completed.

【0028】そこで、フアイル移行手段6の図5のステ
ップ54に戻って、複写移行開始のためにアクセス制御
手段3にデイスク装置AのフアイルAA7からデイスク
装置BのフアイルAA8への複写移行処理を行なわせる
(ステップ55)。
Then, returning to step 54 in FIG. 5 of the file transfer means 6, a copy transfer process from the file AA7 of the disk device A to the file AA8 of the disk device B is performed by the access control means 3 to start the copy transfer. (Step 55).

【0029】複写移行はフアイルの先頭から順に、対象
フアイルの全内容が複写移行するまで、定められた適当
な単位量(例えばトラック等)で、繰り返し行なわれる
(ステップ52〜55のループ)。
The copy transfer is repeated from the beginning of the file in a predetermined appropriate unit amount (for example, a track) until the entire content of the target file is copied and transferred (loop of steps 52 to 55).

【0030】この単位量の複写移行が行なわれる度毎
に、フアイル移行手段6は移行準備手段4を起動して
(ステップ52,53)移行元フアイル領域管理テーブ
ル10および移行先フアイル領域管理テーブル11のフ
アイル内データ位置、すなわち複写アドレスに複写移行
された単位量に相当する一定値を加算し更新させ、複写
移行の終了時には移行フラグをオフに更新する(ステッ
ブ71のYES枝,ステップ76)。
Each time a copy transfer of this unit amount is performed, the file transfer means 6 activates the transfer preparation means 4 (steps 52, 53) and the transfer source file area management table 10 and the transfer destination file area management table 11 are transferred. The data position in the file, that is, a constant value corresponding to the unit amount copied and copied to the copy address is added and updated, and the transfer flag is updated to OFF at the end of the copy transfer (YES branch of step 71, step 76).

【0031】このようにして、移行対象フアイルの全デ
ータの移行が終了したら、デイスク装置A上のフアイル
AA7を削除し(ステップ56)、フアイル移行の後処
理要求を移行終了手段5に通知し(ステップ57)、後
処理を行なわしめて(ステップ58)終了する。
In this way, when the transfer of all the data of the transfer target file is completed, the file AA7 on the disk device A is deleted (step 56), and a post-processing request for file transfer is notified to the transfer end means 5 ( In step 57), post-processing is performed (step 58) and the process ends.

【0032】移行終了手段5は、図8に示すように、移
行元フアイル領域管理テーブル10のフアイルAAの各
データを移行先フアイル領域管理テーブル11のフアイ
ルAAの各データで書き換えて(ステップ81)後(こ
のようにすることにより、移行元フアイル領域管理テー
ブル10には、前述のように、複写移行の履歴を有する
フアイルは常に登録されていることになる)、移行先フ
アイル領域管理テーブル11を削除する(ステップ8
2)。
As shown in FIG. 8, the migration end means 5 rewrites each data of the file AA of the migration source file area management table 10 with each data of the file AA of the migration destination file area management table 11 (step 81). After that (by doing so, the file having the history of copy migration is always registered in the migration source file area management table 10), the migration destination file area management table 11 is set. Delete (Step 8)
2).

【0033】このようにして、フアイルの複写移行処理
が行なわれる。
In this way, the copy transfer processing of the file is performed.

【0034】次にフアイルの複写移行処理と、移行対象
フアイルヘのアクセス処理との関係について、上記の例
をもとに、アクセス制御手段3の動作を示す図6の流れ
図を参照して説明する。
Next, the relationship between the copy transfer process of the file and the access process to the transfer target file will be described with reference to the flowchart of FIG. 6 showing the operation of the access control means 3 based on the above example.

【0035】フアイルAAを使用して業務を遂行するプ
ログラム12がフアイルAAにアクセスをすべくアクセ
ス制御手段3にアクセス要求を出した場合を想定する。
It is assumed that the program 12 that executes a job using the file AA issues an access request to the access control means 3 in order to access the file AA.

【0036】アクセス制御手段3は、まず、指定された
フアイルAAが移行元フアイル領域管理テーブル10に
登録さてれいるかどうかを調べる(ステップ61)。登
録されていないとき(ステップ61のNO枝)、すなわ
ち、以前に移行対象フアイルの履歴を有しないフアイル
であるならば、フアイルAAはもともとデイスク装置A
にあるのでそれにアクセスを行ない要求を満たす(ステ
ップ66)。
The access control means 3 first checks whether or not the designated file AA is registered in the migration source file area management table 10 (step 61). If the file is not registered (NO branch of step 61), that is, if the file has no history of the transfer target file, the file AA is originally the disk device A.
, So that it is accessed to satisfy the request (step 66).

【0037】フアイルAAが移行元フアイル領域管理テ
ーブル10に登録されているときには(ステップ61の
YES枝)、フアイル複写移行中であるか否かを移行フ
ラグにより判定し、移行中でないならば(ステップ62
のNO枝)、移行開始前であるか移行開始終了後である
かを移行元フアイル領域管理テーブル10のデイスク装
置識別番号で調べ、その番号の示すデイスク装置にアク
セスし、要求を満たす(ステップ63,64および6
6)。
When the file AA is registered in the transfer source file area management table 10 (YES branch of step 61), it is judged whether or not the file copy is being transferred by the transfer flag. 62
Of the disk device identification number of the migration source file area management table 10 to determine whether it is before the migration start or after the migration start end, and the disk device indicated by the number is accessed to satisfy the request (step 63). , 64 and 6
6).

【0038】ステップ62でフアイル移行中のときには
(ステップ62のYES枝)、次にどこまで複写移行が
進行中であるかをしらべ、まだ複写移行が済んでいない
部分へのアクセス要求である第1の要求の場合である
か、現在複写移行中の部分へのアクセス要求である第2
の要求の場合であるか、または、それ以外、すなわち、
既に複写済みの部分へのアクセス要求である第3の要求
の場合であるかに分けて処理する。
When the file transfer is in progress in step 62 (YES branch of step 62), it is checked how much the copy transfer is in progress next, and the first request is an access request to a portion where the copy transfer has not been completed yet. The second case, which is the case of a request or an access request to a part currently undergoing copy transfer
Or otherwise, ie,
Processing is performed separately for the case of the third request which is an access request for the already copied portion.

【0039】第1の要求の場合、すなわち、アクセスす
るアドレスが(複写済みアドレス+α)(ここでαは一
回の複写移行で処理されるデータ量に対応するアドレス
増加量である)より大である場合には(ステップ65の
YES枝)、デイスク装置Aにアクセスする。
In the case of the first request, that is, when the address to be accessed is larger than (copied address + α) (where α is the address increment corresponding to the amount of data processed in one copy transfer). If there is (YES branch of step 65), the disk device A is accessed.

【0040】第2の要求の場合、すなわち、アクセスす
るアドレスが複写済みアドレス以上でかつ(複写済みア
ドレス+α)以下である場合には(ステップ67のYE
S枝)、先ず、この部分の複写移行を実行させる。
In the case of the second request, that is, when the address to be accessed is greater than or equal to the copied address and less than or equal to (the copied address + α) (YE of step 67).
First, the copy transfer of this portion is executed.

【0041】この状態ではアクセス要求は待ち合わせ中
となり、複写移行後にアドレス比較の再試行が行なわ
れ、その後の動作は、後述の第3の要求の場合と同一に
なる。すなわち、読み込みの場合にはデイスク装置A
へ、書き込みの場合にはデイスク装置AおよびBの両方
へアクセスを行なわしめる(ステップ68)。
In this state, the access request is waiting, the address comparison is retried after the transfer to the copy, and the subsequent operation is the same as that of the third request described later. That is, when reading, the disk device A
In case of writing, access is made to both the disk devices A and B (step 68).

【0042】書き込みの場合に、両方へのアクセスを行
なうのは、移行先のフアイルのデータは常に最新でなけ
ればならないことと、移行元のフアイルも更新してお
き、障害に対応させるためである。
In the case of writing, the reason why both are accessed is that the data of the migration destination file must always be the latest and that the migration source file is also updated to cope with the failure. .

【0043】上記以外の第3の要求の場合、すなわち、
アクセスするアドレスが複写済みアドレスよりも小であ
る場合には、読み込みの場合にはデイスク装置Aへ、書
き込みの場合にはデイスク装置AおよびBの両方へアク
セスを行なわしめる(ステップ69)。
In the case of the third request other than the above, that is,
If the address to be accessed is smaller than the copied address, the disk device A is accessed for reading, and both the disk devices A and B are accessed for writing (step 69).

【0044】以上のように、本実施例では、フアイルの
複写移行時に、その移行進行状況を管理し、業務プログ
ラムのアクセスするフアイルを決定することにより、フ
アイル複写移行時においても業務プログラムの実行がで
き、かつ、移行フアイルに対するすべての処理の実行指
示を変更なくできるので、システムの処理効率を大幅に
向上できる。
As described above, in the present embodiment, when a file copy is transferred, the progress of the transfer is managed and the file to be accessed by the business program is determined, so that the business program can be executed even during the file copy transfer. In addition, since the execution instruction of all the processes to the migration file can be changed without any change, the processing efficiency of the system can be greatly improved.

【0045】本実施例で説明した移行元フアイル領域管
理テーブルは、通常設けられているフアイル管理テーブ
ルに移行フラグと複写移行中のアドレスを示す複写アド
レスのデータを追加して使用できることは自明である。
It is obvious that the migration source file area management table described in this embodiment can be used by adding a migration flag and a copy address data indicating an address during copy migration to the normally provided file management table. .

【0046】また、複写アドレスとして本実施例では、
複写済みのアドレスを用いたが、これを複写中のアドレ
ス範囲を指定しても、アクセスするフアイルを決定する
判定式を変更するだけで使用できることは自明である。
Further, in the present embodiment, as a copy address,
Although the copied address is used, it is obvious that even if the address range being copied is specified, it can be used by changing the judgment formula for determining the file to be accessed.

【0047】さらに、本実施例では、複写移行中のフア
イルへのアクセスについての前述の第2および第3の場
合に、読み込みの場合には移行元へ、書き込みの場合は
移行元および移行先の両方へアクセスすると限定した
が、これは、障害対策を考慮しての限定であり、これに
限るものではない。すなわち、移行先への読み込み、書
き込みとしても使用できることは自明である。
Further, in the present embodiment, in the above-mentioned second and third cases regarding the access to the file during copy transfer, in the case of reading, the transfer source is set to the transfer source, and in the case of writing, the transfer source and the transfer destination are set. Although it is limited to access to both, this is a limitation in consideration of countermeasures against failures and is not limited to this. That is, it is obvious that it can also be used for reading and writing to the migration destination.

【0048】[0048]

【発明の効果】以上説明したように、本発明のフアイル
複写移行方式は、フアイルの複写移行時に、その移行進
行状況を管理し、業務プログラムのアクセスするフアイ
ルを決定することにより、フアイル複写移行時において
も業務プログラムの実行ができ、かつ、移行フアイルに
対するすべての処理の実行指示を変更なくできるので、
システムの処理効率を大幅に向上できるという効果を有
している。
As described above, according to the file copy migration method of the present invention, when a file copy is migrated, the progress of the migration is managed and the file to be accessed by the business program is determined. Since the business program can be executed even in, and the execution instructions of all the processes for the migration file can be changed,
This has the effect of significantly improving the processing efficiency of the system.

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

【図1】本発明のフアイル複写移行方式の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a file copy migration method of the present invention.

【図2】従来のフアイル複写移行方式を示すブロック図
である。
FIG. 2 is a block diagram showing a conventional file copy transfer method.

【図3】移行元フアイル領域管理テーブル10と移行先
フアイル領域管理テーブル11のデータ格納図である。
FIG. 3 is a data storage diagram of a migration source file area management table 10 and a migration destination file area management table 11.

【図4】プログラム1のフアイル複写移行処理の流れ図
である。
FIG. 4 is a flowchart of file copy migration processing of program 1.

【図5】フアイル移行手段6の動作を示す流れ図であ
る。
FIG. 5 is a flowchart showing the operation of the file transfer means 6.

【図6】アクセス制御手段3の動作を示す流れ図であ
る。
FIG. 6 is a flowchart showing the operation of the access control means 3.

【図7】移行準備手段6の動作を示す流れ図である。FIG. 7 is a flow chart showing the operation of the transition preparation means 6.

【図8】移行終了手段5の動作を示す流れ図である。FIG. 8 is a flowchart showing the operation of the transition end means 5.

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

1、12、21、26、27 プログラム 2 フアイル領域管理テーブル作成手段 3、23 アクセス制御手段 4 移行準備手段 5 移行終了手段 6、22 フアイル移行手段 7、24 デイスク装置AのフアイルAA 8、25 デイスク装置BのフアイルAA 10 移行元フアイル領域管理テーブル 11 移行先フアイル領域管理テーブル 1, 12, 21, 26, 27 program 2 file area management table creating means 3, 23 access control means 4 migration preparing means 5 migration ending means 6, 22 file migration means 7, 24 file AA of disk device A 8, 25 disk File B of device B 10 Source file area management table 11 Destination file area management table

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複写移行履歴のあるフアイルのフアイル
名、格納装置識別子、前記格納装置内の格納位置、複写
移行中か否かを示す移行フラグおよび移行済みのデータ
のフアイル内位置を示す複写アドレス等の移行元フアイ
ル領域状況データを記憶する移行元フアイル領域管理テ
ーブルと、移行先フアイルのフアイル名、格納装置識別
子、前記格納装置内の格納位置、複写移行中か否かを示
す移行フラグおよび移行済みのデータのフアイル内位置
を示す複写アドレス等の移行先フアイル領域状況データ
を一時記憶する移行先フアイル領域管理テーブルと、前
記移行元フアイル領域管理テーブルと前記移行先フアイ
ル領域管理テーブルとを作成するフアイル領域管理テー
ブル作成手段と、前記フアイル領域管理テーブル作成手
段を起動しかつ前記移行元フアイル領域管理テーブルと
前記移行先フアイル領域管理テーブルの移行フラグおよ
び複写アドレスとを設定更新する移行準備手段と、前記
移行元フアイル領域管理テーブルの複写移行処理終了フ
アイルの各データを前記移行先フアイル領域管理テーブ
ルの対応するフアイルのデータで書き換えかつその後前
記移行先フアイル領域管理テーブルの対応するフアイル
のデータを削除する移行終了手段と、複写移行中のフア
イルにアクセス要求のあったときに前記複写アドレスを
参照しその要求がまだ複写移行が済んでいない部分への
アクセス要求である第1のアクセス要求の場合には複写
移行元フアイルへのアクセスを行ないその要求が複写移
行中の部分へのアクセス要求である第2のアクセス要求
の場合にはその部分の複写移行後に複写移行先のフアイ
ルへのアクセスを行ないその要求が複写移行済みの部分
へのアクセス要求である第3のアクセス要求の場合には
複写移行先のフアイルへのアクセスを行なうアクセス制
御手段と、前記移行準備手段と前記移行終了手段と前記
アクセス制御手段とを制御しフアイル複写移行を処理す
るフアイル移行手段とを含むことを特徴とするフアイル
複写移行方式。
1. A file name of a file having a copy transfer history, a storage device identifier, a storage position in the storage device, a transfer flag indicating whether or not copy transfer is in progress, and a copy address indicating a position in the file of data that has been transferred. Source file area management table for storing source file area status data, file name of the destination file, storage device identifier, storage position in the storage device, transfer flag indicating whether or not copying is in progress, and transfer Create a migration destination file area management table that temporarily stores migration destination file area status data such as a copy address that indicates the in-file position of completed data, the migration source file area management table, and the migration destination file area management table. File area management table creating means, activating the file area management table creating means, and Migration preparation means for setting and updating the migration flag and copy address of the migration source file area management table and the migration destination file area management table, and each data of the copy migration processing end file of the migration source file area management table Transfer end means for rewriting with the corresponding file data in the file area management table and then deleting the corresponding file data in the transfer destination file area management table, and copying when an access request is made to the file being copied In the case of the first access request that refers to the address and the request is an access request to a part for which the copy transfer has not been completed yet, the copy transfer source file is accessed and the request accesses the part being copy transferred. In the case of the second access request, which is a request, it is duplicated after the copy transfer of that part. Access control means for accessing the copy-destination file and accessing the copy-destination file when the request is a third access request which is an access request for the copy-transferred portion. A file copy transfer method comprising: a means, a transfer end means, and an access control means for controlling the file copy transfer.
【請求項2】 アクセス制御手段は第1のアクセス要求
の場合には複写移行元フアイルへのアクセスを行ない第
2のアクセス要求の場合で読み込みアクセス要求の場合
には複写移行後複写移行元フアイルへのアクセスを行な
い書き込みアクセス要求の場合には複写移行後複写移行
元および複写移行先のフアイルへのアクセスを行ない第
3のアクセス要求の場合で読み込みアクセス要求の場合
には複写移行元フアイルへのアクセスを行ない書き込み
アクセス要求の場合には複写移行元および複写移行先の
フアイルへのアクセスを行なうことを特徴とする請求項
1記載のフアイル複写移行方式。
2. The access control means accesses the copy transfer source file in the case of the first access request and to the copy transfer source file after the copy transfer in the case of the second access request and the read access request. In the case of a write access request, the copy transfer source file and the copy transfer destination file are accessed after the copy transfer, and in the case of the third access request and the read access request, the copy transfer source file is accessed. 2. The file copy migration method according to claim 1, wherein the file of the copy migration source and the copy migration destination are accessed in the case of a write access request.
【請求項3】 複写アドレスとして複写移行中の部分の
アドレス範囲を使用することを特徴とする請求項1また
は2記載のフアイル複写移行方式。
3. The file copy transfer system according to claim 1 or 2, wherein an address range of a part being copy transferred is used as a copy address.
JP05218469A 1993-09-02 1993-09-02 File copy transfer method Expired - Fee Related JP3138575B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05218469A JP3138575B2 (en) 1993-09-02 1993-09-02 File copy transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05218469A JP3138575B2 (en) 1993-09-02 1993-09-02 File copy transfer method

Publications (2)

Publication Number Publication Date
JPH0773078A true JPH0773078A (en) 1995-03-17
JP3138575B2 JP3138575B2 (en) 2001-02-26

Family

ID=16720411

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05218469A Expired - Fee Related JP3138575B2 (en) 1993-09-02 1993-09-02 File copy transfer method

Country Status (1)

Country Link
JP (1) JP3138575B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008502060A (en) * 2004-06-10 2008-01-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system and program for migrating source data to target data
US7725588B2 (en) 2001-11-02 2010-05-25 Nec Corporation Switching method and switch device
US8204854B2 (en) 2009-03-06 2012-06-19 International Business Machines Corporation Dynamically redirecting a target location during a file I/O operation
JP2013045218A (en) * 2011-08-23 2013-03-04 Fujitsu Ltd Data copy processing system, storage device, and data copy processing method
JP2013175117A (en) * 2012-02-27 2013-09-05 Nippon Telegr & Teleph Corp <Ntt> Data migration device and its operating method
JP2020173840A (en) * 2016-03-16 2020-10-22 グーグル エルエルシー Efficient live migration of remotely accessed data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0465733A (en) * 1990-07-05 1992-03-02 Fujitsu Ltd System for forming backup file
JPH0488440A (en) * 1990-07-25 1992-03-23 Nec Corp Data base reorganizing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0465733A (en) * 1990-07-05 1992-03-02 Fujitsu Ltd System for forming backup file
JPH0488440A (en) * 1990-07-25 1992-03-23 Nec Corp Data base reorganizing system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7725588B2 (en) 2001-11-02 2010-05-25 Nec Corporation Switching method and switch device
JP2008502060A (en) * 2004-06-10 2008-01-24 インターナショナル・ビジネス・マシーンズ・コーポレーション Method, system and program for migrating source data to target data
JP4738413B2 (en) * 2004-06-10 2011-08-03 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and system for migrating source data to target data
US8204854B2 (en) 2009-03-06 2012-06-19 International Business Machines Corporation Dynamically redirecting a target location during a file I/O operation
US8655834B2 (en) 2009-03-06 2014-02-18 International Business Machines Corporation Dynamically redirecting a target location during a file I/O operation
JP2013045218A (en) * 2011-08-23 2013-03-04 Fujitsu Ltd Data copy processing system, storage device, and data copy processing method
JP2013175117A (en) * 2012-02-27 2013-09-05 Nippon Telegr & Teleph Corp <Ntt> Data migration device and its operating method
JP2020173840A (en) * 2016-03-16 2020-10-22 グーグル エルエルシー Efficient live migration of remotely accessed data
US11824926B2 (en) 2016-03-16 2023-11-21 Google Llc Efficient live-migration of remotely accessed data

Also Published As

Publication number Publication date
JP3138575B2 (en) 2001-02-26

Similar Documents

Publication Publication Date Title
KR100413915B1 (en) Computer system based on microprocessor, its driving method and backup system therefor
US7801855B2 (en) Method and apparatus for merging log entries in a database management system
JPH0619765A (en) Method and system for file management in computer system
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
JPH07191811A (en) Moving system for magnetic disk device
JPH03160534A (en) Access control system for shared file
JP2009230239A (en) Data migration method for tape device and tape management system
JPH0773078A (en) File copy shift system
JP3315779B2 (en) File transfer device and file transfer method between disk devices
JP2003241981A (en) Method for taking over data between computers
JPS62106553A (en) Data processing system
JP3460265B2 (en) Data transfer method between computers
JP3022011B2 (en) Data backup system
JP3013856B2 (en) File generation automatic selection processor
KR100308251B1 (en) Integrated management method of runtime backup information and its system
JPH09146782A (en) Method for handling occurance of abnormality in inter-job data succession
JPH02110725A (en) System for recovering file on unrewritable medium
JP2641399B2 (en) File management device
JPH10143412A (en) Data base managing system
JP4669027B2 (en) Storage system
JPH04177522A (en) Secondary storage device managing device
JPS62194559A (en) Memory scheduling system of program in virtual storage system
JPH07334313A (en) Copying method for magnetic disk device
JPH05151037A (en) Reorganization processing system for database in business processing
JPH0273436A (en) File control system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001128

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees