JP2011134075A - Control device, data migration system, data migration method and program - Google Patents

Control device, data migration system, data migration method and program Download PDF

Info

Publication number
JP2011134075A
JP2011134075A JP2009292515A JP2009292515A JP2011134075A JP 2011134075 A JP2011134075 A JP 2011134075A JP 2009292515 A JP2009292515 A JP 2009292515A JP 2009292515 A JP2009292515 A JP 2009292515A JP 2011134075 A JP2011134075 A JP 2011134075A
Authority
JP
Japan
Prior art keywords
storage device
data
migration
information
processing
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
JP2009292515A
Other languages
Japanese (ja)
Other versions
JP5240861B2 (en
Inventor
Wakashi Sano
若紫 佐野
Ryuichi Ishioroshi
隆一 石下
Jun Ohata
純 大畑
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.)
Biglobe Inc
Original Assignee
NEC Biglobe 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 NEC Biglobe Ltd filed Critical NEC Biglobe Ltd
Priority to JP2009292515A priority Critical patent/JP5240861B2/en
Publication of JP2011134075A publication Critical patent/JP2011134075A/en
Application granted granted Critical
Publication of JP5240861B2 publication Critical patent/JP5240861B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a control device and a data migration system, enabling data processing using a storage device to be continued in the state where the storage device is exchanged without a data mismatching. <P>SOLUTION: The control device includes: a copying means for starting copying processing to copy information in a first storage device to a second storage device, when receiving a switchover instruction of the storage device, and after the completion of the copying processing, determining whether the information stored in the second storage device becomes identical to the information stored in the first storage device; and a migration management means for allowing a plurality of processing devices to store information to be stored into the first storage device also into the second storage device, when receiving the switchover instruction, and when the decision result of the copying means indicates to be identical, suspending the use of the first and second storage devices by specified processing devices other than one of the plurality of processing devices, switching the one processing device into a switchover state in which the second storage device is used without using the first storage device, and thereafter, shifting the specified processing devices into switchover states one by one. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、制御装置、データ移行システム、データ移行方法およびプログラムに関する。   The present invention relates to a control device, a data migration system, a data migration method, and a program.

特許文献1には、1台のサーバにてアクセスされる記憶装置内のデータを他の記憶装置にコピーするシステムが記載されている。   Patent Document 1 describes a system that copies data in a storage device accessed by one server to another storage device.

また、複数のサーバが1台の記憶装置を共用するシステム、例えば、ある処理を分散して行う複数のサーバが1台の記憶装置を共用するシステム(以下「共用システム」と称する)も知られている。   In addition, a system in which a plurality of servers share one storage device, for example, a system in which a plurality of servers that perform certain processing in a distributed manner share one storage device (hereinafter referred to as a “shared system”) is also known. ing.

共有システムでは、使用中の記憶装置(以下「旧記憶装置」と称する)が新たな記憶装置(以下「新記憶装置」)に交換される場合、特許文献1に記載されたシステムと同様に、旧記憶装置内のデータが、新記憶装置内にコピーされる。   In the shared system, when a storage device in use (hereinafter referred to as “old storage device”) is replaced with a new storage device (hereinafter referred to as “new storage device”), as in the system described in Patent Document 1, Data in the old storage device is copied into the new storage device.

なお、共有システムでは、旧記憶装置内のデータと新記憶装置内のデータとの不整合が許容されない状況下で旧記憶装置が新記憶装置に交換される場合、以下の手順が実行される。   In the shared system, the following procedure is executed when the old storage device is replaced with the new storage device in a situation where inconsistency between the data in the old storage device and the data in the new storage device is not allowed.

まず、各サーバによる旧記憶装置の使用することが禁止される。その後、旧記憶装置内のデータが新記憶装置内にコピーされる。その後、各サーバに対して、新記憶装置を使用するための設定が行われる。   First, the use of the old storage device by each server is prohibited. Thereafter, the data in the old storage device is copied into the new storage device. Thereafter, settings for using the new storage device are performed for each server.

特開平5−134814号公報Japanese Patent Laid-Open No. 5-134814

複数のサーバが1台の記憶装置を共用するシステムでは、旧記憶装置内のデータと新記憶装置内のデータとの不整合が許容されない状況下で旧記憶装置が新記憶装置に交換される場合、各サーバによる旧記憶装置の使用、つまり、各サーバによる記憶装置の使用が禁止される。   In a system in which a plurality of servers share one storage device, when the old storage device is replaced with the new storage device in a situation where inconsistency between the data in the old storage device and the data in the new storage device is not allowed The use of the old storage device by each server, that is, the use of the storage device by each server is prohibited.

このため、旧記憶装置が新記憶装置に交換される状況下では、いずれのサーバも記憶装置を使用できない期間が発生する。   For this reason, under the situation where the old storage device is replaced with the new storage device, a period during which any server cannot use the storage device occurs.

よって、いずれのサーバも記憶装置を使用できない期間では、記憶装置を利用したデータ処理を行えないという課題があった。例えば、複数のサーバが、所定のサービスを提供するためのデータ処理を分散して行う場合、旧記憶装置が新記憶装置に交換される状況下において、所定のサービスの提供が中断してしまう。   Therefore, there is a problem that data processing using the storage device cannot be performed in a period in which none of the servers can use the storage device. For example, when a plurality of servers perform data processing for providing a predetermined service in a distributed manner, the provision of the predetermined service is interrupted in a situation where the old storage device is replaced with a new storage device.

本発明の目的は、上記課題を解決可能な制御装置、データ移行システム、データ移行方法およびプログラムを提供することにある。   The objective of this invention is providing the control apparatus, data migration system, data migration method, and program which can solve the said subject.

本発明の制御装置は、記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換える制御装置であって、前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかを判断するコピー手段と、前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませ、前記コピー手段の判断結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理手段と、を含む。   The control device of the present invention is a control device that switches a first storage device shared by a plurality of processing devices to a second storage device when a storage device switching instruction is received, and when the switching instruction is received, A copy process for copying the information in the first storage device into the second storage device, and after the copy process is completed, the information in the first storage device and the information in the second storage device; A copy unit that determines whether or not the two are identical, and when the switching instruction is received, the plurality of processing devices also write information to be written to the first storage device to the second storage device, When the determination results indicate the same, the specific processing device other than the one processing device among the plurality of processing devices is stopped from using the first and second storage devices, and the one processing device is referred to as the first processing device. 1 storage device The switching state of using the secondary storage system without, then including, a migration management unit for the specific processor in the switching state one by one.

本発明のデータ移行システムは、第1記憶装置と、第2記憶装置と、前記第1記憶装置または前記第2記憶装置を共用する複数の処理装置と、上記制御装置と、を含む。   The data migration system of the present invention includes a first storage device, a second storage device, a plurality of processing devices sharing the first storage device or the second storage device, and the control device.

本発明のデータ移行方法は、記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換える制御装置でのデータ移行方法であって、前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかを判断するコピーステップと、前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませる書込み制御ステップと、前記判断の結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理ステップと、を含む。   The data migration method of the present invention is a data migration method in a control device that switches a first storage device shared by a plurality of processing devices to a second storage device when a storage device switching instruction is received, When the instruction is accepted, a copy process for copying the information in the first storage device to the second storage device is started, and after the copy process is completed, the information in the first storage device and the second A copy step for determining whether the information in the storage device is the same, and when the switching instruction is received, information to be written in the first storage device is written in the second storage device in the plurality of processing devices. If the result of the determination is the same as the write control step, the specific processing device other than one of the plurality of processing devices is made to stop using the first and second storage devices. A transition management step of switching the one processing device to the switching state in which the second storage device is used without using the first storage device, and thereafter setting the specific processing devices one by one in the switching state; including.

本発明のプログラムは、記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換えるコンピュータに、前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかを判断するコピー手順と、前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませる書込み制御手順と、前記判断の結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理手順と、を実行させる。   When the storage device switching instruction is received, the program of the present invention receives the switching instruction when the computer that switches the first storage device shared by the plurality of processing devices to the second storage device receives the switching instruction. After the copy process for copying the information in the device to the second storage device is started and the copy process is completed, the information in the first storage device and the information in the second storage device become the same. A copy procedure for determining whether the switching instruction is accepted, a write control procedure for causing the plurality of processing devices to write information to be written to the first storage device to the second storage device, and a result of the determination Indicate the same, the specific processing device other than the one processing device among the plurality of processing devices is stopped from using the first and second storage devices, and the one processing device is referred to as the first processing device. The switching state of using the second storage device without using a 憶 device, then the migration management procedure for the specific processor in the switching state one by one, to the execution.

本発明によれば、データの不整合が生じることなく記憶装置が交換される状況でも、記憶装置を利用したデータ処理を継続して行うことが可能になる。   According to the present invention, data processing using a storage device can be continuously performed even in a situation in which the storage device is replaced without causing data inconsistency.

本発明の一実施形態のデータ移行システムを示したブロック図である。It is the block diagram which showed the data migration system of one Embodiment of this invention. 制御装置5でのstarting処理とrunning処理とを説明するためのフローチャートである。4 is a flowchart for explaining a starting process and a running process in the control device 5; syncモードでのデータ移行ファイルシステム2bの動作を説明するためのフローチャートである。It is a flowchart for demonstrating operation | movement of the data migration file system 2b in sync mode. running処理時のデータ転送システムの状況を説明するためのブロック図である。It is a block diagram for demonstrating the condition of the data transfer system at the time of a running process. syncモードの処理装置とpostsyncモードの処理装置が混在したときに生じる問題を説明するための図である。It is a figure for demonstrating the problem which arises when the processing apparatus of a sync mode and the processing apparatus of a postsync mode are mixed. postsyncモードへの遷移を説明するための図である。なお、図6では、4台の処理装置21〜24が示されている。It is a figure for demonstrating the transition to postsync mode. In FIG. 6, four processing devices 21 to 24 are shown. 図1に示したデータ転送システム1においてfinalizing処理が終了したときの状態を示した図である。It is the figure which showed the state when the finalizing process was complete | finished in the data transfer system 1 shown in FIG.

以下、本発明の実施形態について図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の一実施形態のデータ移行システムを示したブロック図である。   FIG. 1 is a block diagram showing a data migration system according to an embodiment of the present invention.

図1において、データ移行システム1は、複数の処理装置21〜2n(nは2以上の整数)と、移行元NAS(Network Attached Storage)3と、移行先NAS4と、制御装置5と、を含む。本実施形態では、n=2とする。なお、nは2に限るものではない。   1, the data migration system 1 includes a plurality of processing devices 21 to 2n (n is an integer of 2 or more), a migration source NAS (Network Attached Storage) 3, a migration destination NAS 4, and a control device 5. . In this embodiment, n = 2. Note that n is not limited to 2.

本実施形態では、制御装置5と処理装置21〜22との関係は、制御装置5がサーバとなり、処理装置21〜22がクライアントとなる関係である。また、制御装置5は、処理装置21〜22が移行元NAS3を共用している状況で、記憶装置の切換指示を受け付けた場合、処理装置21〜22が共用する移行元NAS3を移行先NAS4に切り換える。   In the present embodiment, the relationship between the control device 5 and the processing devices 21 to 22 is a relationship in which the control device 5 serves as a server and the processing devices 21 to 22 serve as clients. When the control device 5 receives a storage device switching instruction in a situation where the processing devices 21 to 22 share the migration source NAS 3, the control device 5 changes the migration source NAS 3 shared by the processing devices 21 to 22 to the migration destination NAS 4. Switch.

処理装置21〜22は、例えば、ホームページサービス、アプリケーションサービスなどのサービス(以下「所定サービス」と称する)を提供するために必要となる処理を分散して行う。処理装置21〜22の処理負荷は、例えば、ロードバランサ(不図示)によって制御される。   For example, the processing devices 21 to 22 perform processing necessary for providing services (hereinafter referred to as “predetermined services”) such as homepage services and application services in a distributed manner. The processing load of the processing devices 21 to 22 is controlled by, for example, a load balancer (not shown).

処理装置21〜22のそれぞれは、AP(アプリケーション実行部)2aと、データ移行ファイルシステム2bと、エージェント2cと、を含む。AP2aと、データ移行ファイルシステム2bと、エージェント2cとは、各処理装置21〜22内で同様な動作を行う。このため、以下では、処理装置21内の、AP2a、データ移行ファイルシステム2bおよびエージェント2cについて説明する。   Each of the processing devices 21 to 22 includes an AP (application execution unit) 2a, a data migration file system 2b, and an agent 2c. The AP 2a, the data migration file system 2b, and the agent 2c perform similar operations in the processing devices 21-22. Therefore, hereinafter, the AP 2a, the data migration file system 2b, and the agent 2c in the processing device 21 will be described.

AP2aは、所定サービスを提供するための処理を実行する。AP2aは、データ移行ファイルシステム2bを介して、移行元NAS3、または、移行先NAS4、または、移行元NAS3と移行先NAS4の両方にアクセスする。   The AP 2a executes processing for providing a predetermined service. The AP 2a accesses the migration source NAS 3 or the migration destination NAS 4 or both the migration source NAS 3 and the migration destination NAS 4 via the data migration file system 2b.

データ移行ファイルシステム2bは、データ(情報)を格納する物理デバイスとしてNASを使用するファイルシステムである。データ移行ファイルシステム2bは、AP2aにて使用されるNASを切り換える。   The data migration file system 2b is a file system that uses NAS as a physical device for storing data (information). The data migration file system 2b switches the NAS used in the AP 2a.

本実施形態では、データ移行ファイルシステム2bは、AP2aが使用するNAS(移行元NAS3と移行先NAS4のいずれか、または、その両方)を、エージェント2cからの指示に基づいて決定する。   In this embodiment, the data migration file system 2b determines the NAS (either the migration source NAS 3 or the migration destination NAS 4 or both) used by the AP 2a based on an instruction from the agent 2c.

本実施形態では、データ移行ファイルシステム2bは、presync(プリシンク)モードと、sync(シンク)モードと、postsync(ポストシンク)モードと、hold(ホールド)モードと、を有する。   In the present embodiment, the data migration file system 2b has a presync mode, a sync mode, a postsync mode, and a hold mode.

データ移行ファイルシステム2bは、presyncモードでは、AP2aから読込み指示を受け付けた場合、移行元NAS3から、読込み指示に応じたデータを読み込み、AP2aから書込み用のデータを受け付けた場合、移行元NAS3に、書込み用のデータを書き込む。   In the presync mode, the data migration file system 2b reads data corresponding to the read instruction from the migration source NAS 3 when receiving a read instruction from the AP 2a, and receives data for writing from the AP 2a when the read instruction is received from the AP 2a. Write data for writing.

データ移行ファイルシステム2bは、syncモードでは、AP2aから読込み指示を受け付けた場合、移行元NAS3から、読込み指示に応じたデータを読み込み、AP2aから書込み用のデータを受け付けた場合、移行元NAS3と移行先NAS4の両方に、書込み用のデータを書き込む。   In the sync mode, when the data migration file system 2b receives a read instruction from the AP 2a, the data migration file system 2b reads data corresponding to the read instruction from the migration source NAS 3, and when data for writing is received from the AP 2a, it migrates to the migration source NAS 3. Write data for writing to both the destination NAS 4.

また、データ移行ファイルシステム2bは、syncモード下でAP2aから書込み用のデータを受け付けた際に移行先NAS4に書込み用のデータを書き込めなかった場合、未同期フラグを立てる。なお、未同期フラグは、一般的に未同期情報と呼ぶことができる。   Further, the data migration file system 2b sets an unsynchronized flag when data for writing cannot be written to the migration destination NAS 4 when data for writing is received from the AP 2a under the sync mode. The unsynchronized flag can be generally called unsynchronized information.

データ移行ファイルシステム2bは、postsyncモードでは、AP2aから読込み指示を受け付けた場合、移行先NAS4から、読込み指示に応じたデータを読み込み、AP2aから書込み用のデータを受け付けた場合、移行先NAS4に、書込み用のデータを書き込む。   In the postsync mode, the data migration file system 2b reads data corresponding to the read instruction from the migration destination NAS 4 when receiving a read instruction from the AP 2a, and receives data for writing from the AP 2a when the read instruction is accepted from the migration destination NAS 4. Write data for writing.

データ移行ファイルシステム2bは、holdモードでは、AP2aから読込み指示を受け付けても、AP2aから書込み用のデータを受け付けても、移行元NAS3と移行先NAS4のいずれにもアクセスしない。   In the hold mode, the data migration file system 2b does not access either the migration source NAS 3 or the migration destination NAS 4 even if it accepts a read instruction from the AP 2a or accepts write data from the AP 2a.

なお、移行元NAS3が移行先NAS4に切り換えられる前では、データ移行ファイルシステム2bは、presyncモードに設定されている。   Before the migration source NAS 3 is switched to the migration destination NAS 4, the data migration file system 2b is set to the presync mode.

エージェント2cは、制御装置5からの指示に応じて、データ移行ファイルシステム2bを制御する。エージェント2cは、例えば、制御装置5からの指示に応じて、データ移行ファイルシステム2bのモードを設定する。   The agent 2c controls the data migration file system 2b in response to an instruction from the control device 5. For example, the agent 2c sets the mode of the data migration file system 2b in response to an instruction from the control device 5.

移行元NAS3は、一般的に第1記憶装置と呼ぶことができる。移行先NAS4は、一般的に第2記憶装置と呼ぶことができる。   The migration source NAS 3 can generally be referred to as a first storage device. The migration destination NAS 4 can generally be referred to as a second storage device.

制御装置5は、記憶部5aと、制御部5bと、を含む。   The control device 5 includes a storage unit 5a and a control unit 5b.

記憶部5aは、コンピュータが読み取り可能な記録媒体である。記憶部5aには、制御装置5の動作を規定するプログラムが記録される。   The storage unit 5a is a computer-readable recording medium. A program that defines the operation of the control device 5 is recorded in the storage unit 5a.

制御部5bは、CPU等のコンピュータであり、記憶部5aに記録されたプログラムを読み取り実行することによって、データコピー部5b1および移行管理部5b2として機能する。   The control unit 5b is a computer such as a CPU, and functions as the data copy unit 5b1 and the migration management unit 5b2 by reading and executing a program recorded in the storage unit 5a.

データコピー部5b1は、一般的にコピー手段と呼ぶことができる。   Data copy unit 5b1 can be generally referred to as copy means.

データコピー部5b1は、切換指示が制御装置5にて受け付けられると、移行元NAS3内のデータ(情報)を移行先NAS4内へコピーするコピー処理を開始する。   When the control device 5 accepts the switching instruction, the data copy unit 5b1 starts a copy process for copying the data (information) in the migration source NAS 3 into the migration destination NAS 4.

データコピー部5b1は、コピー処理が終了した後、移行元NAS3内の情報と移行先NAS4内の情報とが同一になったかの判断を行う。本実施形態では、データコピー部5b1は、コピー処理が終了した後、移行管理部5b2からの指示に応じて、移行元NAS3内の情報と移行先NAS4内の情報とが同一になったかを判断する。   After the copy process is completed, the data copy unit 5b1 determines whether the information in the migration source NAS 3 and the information in the migration destination NAS 4 are the same. In this embodiment, the data copy unit 5b1 determines whether the information in the migration source NAS 3 and the information in the migration destination NAS 4 are the same in accordance with an instruction from the migration management unit 5b2 after the copy process is completed. To do.

移行管理部5b2は、一般的に移行管理手段と呼ぶことができる。   Migration management unit 5b2 can generally be referred to as migration management means.

移行管理部5b2は、切換指示が制御装置5にて受け付けられると、以下の処理を実行する。   When the switching instruction is received by the control device 5, the transition management unit 5b2 executes the following processing.

まず、移行管理部5b2は、切換指示が受け付けられると、処理装置21〜22に、移行元NAS3に書き込むための書込み用データを移行先NAS4にも書き込む処理を実行させる。   First, when the switching instruction is received, the migration management unit 5b2 causes the processing devices 21 to 22 to execute a process of writing data for writing to the migration source NAS 3 to the migration destination NAS 4.

その後、データコピー部5b1の判断結果が同一を示す場合、つまり、移行元NAS3内のデータと移行先NAS4内のデータとが同一になった場合、移行管理部5b2は、処理装置21〜22のうち一の処理装置(例えば、処理装置21とする)以外の特定処理装置(この場合、処理装置22)に、移行元NAS3と移行元NAS4の使用を停止させる。   Thereafter, when the determination result of the data copy unit 5b1 indicates the same, that is, when the data in the migration source NAS 3 and the data in the migration destination NAS 4 become the same, the migration management unit 5b2 A specific processing device (in this case, the processing device 22) other than one processing device (for example, the processing device 21) stops the use of the migration source NAS 3 and the migration source NAS 4.

その後、移行管理部5b2は、一の処理装置(この場合、処理装置21)を、移行元NAS3を使用せずに移行元NAS4を使用する切換状態にする。   Thereafter, the migration management unit 5b2 switches one processing device (in this case, the processing device 21) to a switching state in which the migration source NAS 4 is used without using the migration source NAS 3.

その後、移行管理部5b2は、特定処理装置(この場合、処理装置22)を1台ずつ切換状態にする。   Thereafter, the migration management unit 5b2 switches the specific processing devices (in this case, the processing device 22) one by one.

移行管理部5b2は、データ移行ユーティリティ5b21と、データ移行マネージャ5b22と、を含む。   The migration management unit 5b2 includes a data migration utility 5b21 and a data migration manager 5b22.

データ移行ユーティリティ5b21には、データ移行ジョブが登録される。データ移行ジョブは、データ移行に関する情報をまとめたものであり、例えば、移行対象のNASのマウントポイントと、処理装置21および22の情報と、を含む。   A data migration job is registered in the data migration utility 5b21. The data migration job is a collection of information related to data migration, and includes, for example, the mount point of the NAS to be migrated and information on the processing devices 21 and 22.

データ移行マネージャ5b22は、移行元NAS3内のデータと移行先NAS4内のデータとを一致させて移行元NAS3を移行先NAS4に切り換える動作(以下、単に「切換動作」と称する)を、全体的に制御する。   The data migration manager 5b22 generally performs an operation of switching the migration source NAS 3 to the migration destination NAS 4 by matching the data in the migration source NAS 3 and the data in the migration destination NAS 4 (hereinafter simply referred to as “switching operation”). Control.

データ移行マネージャ5b22は、切換指示を受け付けると、データ移行ユーティリティ5b21内のデータ移行ジョブを開始して、切換動作を実行する。   When receiving the switching instruction, the data migration manager 5b22 starts a data migration job in the data migration utility 5b21 and executes the switching operation.

例えば、データ移行マネージャ5b22は、切換指示を受け付けると、以下の動作を実行する。   For example, when receiving the switching instruction, the data migration manager 5b22 performs the following operation.

まず、データ移行マネージャ5b22は、切換指示が受け付けられると、データコピー部5b1にコピー処理を開始させ、かつ、各エージェント2cに、データ移行ファイルシステム2bのモードをpresyncモードからsyncモードに切り換える旨の指示を提供する。   First, when the data migration manager 5b22 receives the switching instruction, the data migration manager 5b22 causes the data copy unit 5b1 to start the copying process, and causes each agent 2c to switch the mode of the data migration file system 2b from the presync mode to the sync mode. Provide instructions.

その後、コピー処理が終了すると、データ移行マネージャ5b22は、データコピー部5b1に、移行元NAS3内のデータと移行先NAS4内のデータとが同一になったかを判断させる。   Thereafter, when the copy process is completed, the data migration manager 5b22 causes the data copy unit 5b1 to determine whether the data in the migration source NAS 3 and the data in the migration destination NAS 4 are the same.

データコピー部5b1の判断結果が同一を示す場合、データ移行マネージャ5b22は、処理装置21〜22のうち一の処理装置以外の特定処理装置内のエージェント2cに、特定処理装置内のデータ移行ファイルシステム2bが1つずつ順番にsyncモードからholdモードに切り換わるように、個別に、データ移行ファイルシステム2bのモードをsyncモードからholdモードに切り換える旨の指示を順番に提供する。   When the determination results of the data copy unit 5b1 indicate the same, the data migration manager 5b22 sends the data migration file system in the specific processing device to the agent 2c in the specific processing device other than one of the processing devices 21 to 22. Individual instructions are provided in order to switch the mode of the data migration file system 2b from the sync mode to the hold mode so that the 2b switches from the sync mode to the hold mode one by one.

なお、データ移行マネージャ5b22は、モード切り換えの指示を提供した後、特定処理装置内のエージェント2cに、特定処理装置内のデータ移行ファイルシステム2bのモードが切り換わったかを確認させる。エージェント2cの確認の結果、モードが切り換わらないデータ移行ファイルシステム2bがあった場合には、データ移行マネージャ5b22は、既にモードが切り換わったデータ移行ファイルシステム2bを有する特定処理装置内のエージェント2cに、既にモードが切り換わったデータ移行ファイルシステム2bのモードを切り換え前のモードに戻す旨の指示を提供して処理を終了する。   After providing the mode switching instruction, the data migration manager 5b22 causes the agent 2c in the specific processing device to check whether the mode of the data migration file system 2b in the specific processing device has been switched. As a result of the confirmation of the agent 2c, if there is a data migration file system 2b whose mode is not switched, the data migration manager 5b22 includes the agent 2c in the specific processing apparatus having the data migration file system 2b whose mode has already been switched. In addition, an instruction to return the mode of the data migration file system 2b whose mode has already been switched to the mode before switching is provided, and the process is terminated.

その後、データ移行マネージャ5b22は、一の処理装置内のエージェント2cに、データ移行ファイルシステム2bのモードをsyncモードからpostsyncモードに切り換える旨の指示を提供する。   Thereafter, the data migration manager 5b22 provides an instruction to the agent 2c in one processing apparatus to switch the mode of the data migration file system 2b from the sync mode to the postsync mode.

その後、データ移行マネージャ5b22は、特定処理装置内のデータ移行ファイルシステム2bが1つずつ順番にholdモードからpostsyncモードに切り換わるように、特定処理装置内のエージェント2cに、個別に、データ移行ファイルシステム2bのモードをholdモードからpostsyncモードに切り換える旨の指示を順番に提供する。   Thereafter, the data migration manager 5b22 individually sends the data migration file to the agent 2c in the specific processing device so that the data migration file system 2b in the specific processing device switches from the hold mode to the postsync mode one by one. An instruction for switching the mode of the system 2b from the hold mode to the postsync mode is provided in order.

次に、動作を説明する。   Next, the operation will be described.

移行元NAS3を移行元NAS4に切り換える動作では、まず、事前準備が行われ、その後、データ移行が行われ、その後、後処理が行われる。   In the operation of switching the migration source NAS 3 to the migration source NAS 4, first preparation is performed first, data is then migrated, and then post-processing is performed.

事前準備では、移行元NAS4が用意され、制御装置5にデータコピー部5b1および移行管理部5b2が設けられ、処理装置21および22にデータ移行ファイルシステム2bおよびエージェント2cが設けられる。この状況では、データ移行ファイルシステム2bは、presyncモードで動作する。   In advance preparation, the migration source NAS 4 is prepared, the control device 5 is provided with the data copy unit 5b1 and the migration management unit 5b2, and the processing devices 21 and 22 are provided with the data migration file system 2b and the agent 2c. In this situation, the data migration file system 2b operates in the presync mode.

データ移行は、データ移行ユーティリティ5b21内のデータ移行ジョブの開始に伴って実行される。データ移行では、まず、starting(スターティング)処理が行われ、その後、running(ランニング)処理が行われ、その後、finalizing(ファイナライジング)処理が行われる。   Data migration is executed with the start of the data migration job in the data migration utility 5b21. In data migration, first, a starting process is performed, then a running process is performed, and then a finalizing process is performed.

図2は、制御装置5でのstarting処理とrunning処理とを説明するためのフローチャートである。   FIG. 2 is a flowchart for explaining the starting process and the running process in the control device 5.

以下、図2を参照してstarting処理とrunning処理とを説明する。   Hereinafter, the starting process and the running process will be described with reference to FIG.

データ移行マネージャ5b22は、切換指示を受け付けると、データ移行ユーティリティ5b21内のデータ移行ジョブを開始する。これにより、starting処理が開始される。   When receiving the switching instruction, the data migration manager 5b22 starts a data migration job in the data migration utility 5b21. Thereby, the starting process is started.

データ移行ジョブが開始されると、データ移行マネージャ5b22は、各処理装置(図1の例では、処理装置21および22)内の未同期フラグをクリアする旨の指示を、各エージェント2cに提供する。各エージェント2cは、この指示を受け付けると、データ移行ファイルシステム2b内の未同期フラグをクリアする(ステップS201)。   When the data migration job is started, the data migration manager 5b22 provides each agent 2c with an instruction to clear the unsynchronized flag in each processing device (the processing devices 21 and 22 in the example of FIG. 1). . Upon receiving this instruction, each agent 2c clears the unsynchronized flag in the data migration file system 2b (step S201).

その後、データ移行マネージャ5b22は、データコピー部5b1にコピー処理を開始させる(ステップS202)。   Thereafter, the data migration manager 5b22 causes the data copy unit 5b1 to start copy processing (step S202).

その後、データ移行マネージャ5b22は、各エージェント2cに、データ移行ファイルシステム2bのモードをpresyncモードからsyncモードに切り換える旨の指示を提供する。各エージェント2cは、この指示を受け付けると、データ移行ファイルシステム2bのモードをsyncモードに切り換える(ステップS203)。starting処理では、ステップS201からステップS203までの動作が実行される。   Thereafter, the data migration manager 5b22 provides each agent 2c with an instruction to switch the mode of the data migration file system 2b from the presync mode to the sync mode. Upon receiving this instruction, each agent 2c switches the mode of the data migration file system 2b to the sync mode (step S203). In the starting process, the operations from step S201 to step S203 are executed.

以降、running処理が開始される。   Thereafter, the running process is started.

図3は、syncモードでのデータ移行ファイルシステム2bの動作を説明するためのフローチャートである。   FIG. 3 is a flowchart for explaining the operation of the data migration file system 2b in the sync mode.

データ移行ファイルシステム2bは、syncモードになってI/O処理を開始すると、AP2aから読込み指示を受け付けた場合(参照の場合)、移行元NAS3からデータを読み込み、また、AP2aから書込み用のデータを受け付けた場合(更新の場合)、移行元NAS3と移行先NAS4の両方に、書込み用のデータを書き込む(ステップS301)。   When the data migration file system 2b enters the sync mode and starts the I / O processing, when it receives a read instruction from the AP 2a (in the case of reference), it reads the data from the migration source NAS 3 and writes data from the AP 2a. Is received (in the case of update), write data is written to both the migration source NAS 3 and the migration destination NAS 4 (step S301).

続いて、データ移行ファイルシステム2bは、I/O処理時に移行元NAS3に対するアクセスでエラーが発生したかを判断する(ステップS302)。   Subsequently, the data migration file system 2b determines whether an error has occurred in accessing the migration source NAS 3 during the I / O processing (step S302).

データ移行ファイルシステム2bは、ステップS302で、移行元NAS3に対するアクセスでエラーが発生したと判断した場合、I/O処理を完了する。この際、データ移行ファイルシステム2bは、AP2aに、戻り値として「エラー」を出力する(ステップS303)。   If the data migration file system 2b determines in step S302 that an error has occurred in access to the migration source NAS 3, the data migration file system 2b completes the I / O processing. At this time, the data migration file system 2b outputs “error” as a return value to the AP 2a (step S303).

一方、データ移行ファイルシステム2bは、ステップS302で、移行元NAS3に対するアクセスでエラーが発生していないと判断した場合、I/O処理時に移行先NAS4に対するアクセスでエラーが発生したかを判断する(ステップS304)。   On the other hand, if the data migration file system 2b determines in step S302 that no error has occurred in access to the migration source NAS 3, it determines whether an error has occurred in access to the migration destination NAS 4 during I / O processing ( Step S304).

データ移行ファイルシステム2bは、ステップS304で、移行先NAS4に対するアクセスでエラーが発生していないと判断した場合、I/O処理を完了する。この際、データ移行ファイルシステム2bは、AP2aに、戻り値として「正常」を出力する(ステップS305)。   If the data migration file system 2b determines in step S304 that no error has occurred in accessing the migration destination NAS 4, the I / O processing is completed. At this time, the data migration file system 2b outputs “normal” as a return value to the AP 2a (step S305).

一方、データ移行ファイルシステム2bは、ステップS304で、移行先NAS4に対するアクセスでエラーが発生したと判断した場合、そのエラーが、データの未同期に起因するエラーか、つまり、移行元NAS3に書き込めたデータが移行先NAS4に書き込めなかったことによるエラーかを判断する(ステップS306)。   On the other hand, if the data migration file system 2b determines in step S304 that an error has occurred in access to the migration destination NAS 4, the error is caused by data unsynchronization, that is, the data can be written to the migration source NAS 3. It is determined whether or not the data is an error due to failure to write to the migration destination NAS 4 (step S306).

なお、移行元NAS3に書き込めたデータが移行先NAS4に書き込めなかった理由としては、例えば、データコピー部5b1が、移行元NAS3内のディレクトリを移行先NAS4にコピーする前に、そのディレクトリにて特定される格納領域に書き込むべきデータが、書込み用のデータとして用いられたことが挙げられる。   The reason why the data written to the migration source NAS 3 could not be written to the migration destination NAS 4 is, for example, that the data copy unit 5b1 specifies the directory in the migration source NAS 3 before copying it to the migration destination NAS 4. The data to be written in the storage area is used as the data for writing.

データ移行ファイルシステム2bは、ステップS306で、移行先NAS4に対するアクセスでのエラーが、データの未同期によるエラーであると判断した場合、未同期フラグを設定して(ステップ307)、その後、ステップS305を実行する。   If the data migration file system 2b determines in step S306 that the error in accessing the migration destination NAS 4 is an error due to data unsynchronization, the data migration file system 2b sets an unsynchronization flag (step 307), and then step S305. Execute.

一方、データ移行ファイルシステム2bは、ステップS306で、移行先NAS4に対するアクセスでのエラーが、データの未同期に起因するエラーでないと判断した場合、内部エラー情報を設定し(ステップS308)、その後、ステップS307を実行する。   On the other hand, if the data migration file system 2b determines in step S306 that the error in accessing the migration destination NAS 4 is not an error due to data unsynchronization, it sets internal error information (step S308), and then Step S307 is executed.

なお、移行先NAS4に対するアクセスでのエラーが、データの未同期によるエラーでない場合としては、例えば、データ移行ファイルシステム2bが、移行先NAS4を認識することができない場合がある。   In addition, as a case where the error in accessing the migration destination NAS 4 is not an error due to data unsynchronization, for example, the data migration file system 2b may not be able to recognize the migration destination NAS 4.

図2に戻って、その後、データコピー部5b1は、コピー処理が終了すると、コピー処理が終了した旨の通知を、データ移行マネージャ5b22に提供する。   Returning to FIG. 2, after that, when the copy process is completed, the data copy unit 5b1 provides the data migration manager 5b22 with a notification that the copy process has been completed.

データ移行マネージャ5b22は、その通知を受け付けると、各エージェント2cに、未同期フラグと内部エラー情報を処理装置から取得する旨の指示を提供する。各エージェント2cは、この指示を受け付けると、データ移行ファイルシステム2b内に設定されている未同期フラグおよび内部エラー情報を回収し、その回収された未同期フラグおよび内部エラー情報を、データ移行マネージャ5b22に提供する(ステップS204)。   When the data migration manager 5b22 receives the notification, the data migration manager 5b22 provides each agent 2c with an instruction to acquire the unsynchronized flag and the internal error information from the processing device. Upon receipt of this instruction, each agent 2c collects the unsynchronized flag and internal error information set in the data migration file system 2b, and uses the collected unsynchronized flag and internal error information as the data migration manager 5b22. (Step S204).

続いて、データ移行マネージャ5b22は、内部エラー情報が提供されたかを判断する(ステップS205)。   Subsequently, the data migration manager 5b22 determines whether internal error information is provided (step S205).

データ移行マネージャ5b22は、内部エラー情報が提供された場合、データ同期に異常があったと判断して動作を終了する(ステップS206)。   When the internal error information is provided, the data migration manager 5b22 determines that there is an abnormality in data synchronization and ends the operation (step S206).

一方、データ移行マネージャ5b22は、内部エラー情報が提供されなかった場合、未同期フラグが提供されたかを判断する(ステップS207)。   On the other hand, if the internal error information is not provided, the data migration manager 5b22 determines whether an unsynchronized flag is provided (step S207).

データ移行マネージャ5b22は、未同期情報が提供された場合、処理をステップS201に戻す。   The data migration manager 5b22 returns the process to step S201 when the unsynchronized information is provided.

一方、データ移行マネージャ5b22は、未同期情報が提供されなかった場合、データコピー部5b1に、移行元NAS3内のデータと移行先NAS4内のデータとが同一になったかを判断させる(ステップS208)。   On the other hand, if the unsynchronized information is not provided, the data migration manager 5b22 causes the data copy unit 5b1 to determine whether the data in the migration source NAS3 and the data in the migration destination NAS4 are the same (step S208). .

続いて、データ移行マネージャ5b22は、データコピー部5b1の判断結果が、移行元NAS3内のデータと移行先NAS4内のデータとが同一であることを示しているかを判断する(ステップS209)。   Subsequently, the data migration manager 5b22 determines whether the determination result of the data copy unit 5b1 indicates that the data in the migration source NAS 3 and the data in the migration destination NAS 4 are the same (step S209).

データ移行マネージャ5b22は、データコピー部5b1の判断結果が同一を示さない場合、処理をステップS201に戻す。   If the judgment result of the data copy unit 5b1 does not indicate the same, the data migration manager 5b22 returns the process to step S201.

一方、データ移行マネージャ5b22は、データコピー部5b1の判断結果が同一を示す場合、ステップS210〜S212を実行する、なお、ステップS210〜S212は、ステップS204〜S207と基本的に同じである。   On the other hand, the data migration manager 5b22 executes steps S210 to S212 when the determination results of the data copy unit 5b1 are the same. Steps S210 to S212 are basically the same as steps S204 to S207.

ここで、ステップS210〜S212の意義について説明する。   Here, the significance of steps S210 to S212 will be described.

ステップS208では、データの最終更新時刻がステップS208を開始した時刻よりも後のデータ(ファイル等)は、チェックされていない。このため、ステップS210〜S212で、データ移行マネージャ5b22は、ステップS208以降にデータ移行ファイルシステム2bによってデータの未同期が検出されていないかを念のため確認する。   In step S208, data (such as a file) after the last update time of the data after the time when step S208 was started is not checked. Therefore, in steps S210 to S212, the data migration manager 5b22 confirms whether data unsynchronization is detected by the data migration file system 2b after step S208.

ステップS212で、未同期フラグが提供されていなければ、データ同期が完了する。以上でrunning処理が完了する。   If the unsynchronized flag is not provided in step S212, data synchronization is completed. This completes the running process.

図4は、running処理時のデータ移行システム1の状況を説明するためのブロック図である。図4において、図1に示したものと同一構成のものには同一符号を付してある。   FIG. 4 is a block diagram for explaining the state of the data migration system 1 during the running process. In FIG. 4, the same components as those shown in FIG.

running処理が完了すると、finalizing処理が開始される。   When the running process is completed, the finalizing process is started.

finalizing処理では、全ての処理装置(処理装置21および22)内のデータ移行ファイルシステム2bがpostsyncモードに遷移される。以下では、syncモードのデータ移行ファイルシステム2bを有する処理装置を「syncモードの処理装置」と称し、postsyncモードのデータ移行ファイルシステム2bを有する処理装置を「postsyncモードの処理装置」と称する。   In the finalizing process, the data migration file system 2b in all the processing devices (processing devices 21 and 22) is shifted to the postsync mode. Hereinafter, the processing device having the sync mode data migration file system 2b is referred to as a “sync mode processing device”, and the processing device having the postsync mode data migration file system 2b is referred to as a “postsync mode processing device”.

finalizing処理では、syncモードの処理装置とpostsyncモードの処理装置が混在しないように、処理装置のモードの切り換えが行われる。   In the finalizing process, the mode of the processing apparatus is switched so that the processing apparatus in the sync mode and the processing apparatus in the postsync mode are not mixed.

ここで、syncモードの処理装置とpostsyncモードの処理装置が混在したときに生じる問題を説明する。図5は、syncモードの処理装置とpostsyncモードの処理装置が混在したときに生じる問題を説明するための図である。   Here, a problem that occurs when a processing device in the sync mode and a processing device in the postsync mode are mixed will be described. FIG. 5 is a diagram for explaining a problem that occurs when a processing device in the sync mode and a processing device in the postsync mode are mixed.

例えば、全ての処理装置がsyncモードで動作している状況で、処理装置が1台ずつpostsyncモードに切り換えられていく場合、一時的に、syncモードの処理装置とpostsyncモードの処理装置が混在する。   For example, when all the processing devices are operating in the sync mode and the processing devices are switched to the postsync mode one by one, the processing devices in the sync mode and the processing devices in the postsync mode are temporarily mixed. .

postsyncモードの処理装置は、移行元NAS3と移行先NAS4のうち、移行先NAS4に、書込み用のデータを書き込む。一方、syncモードの処理装置は、移行元NAS3と移行先NAS4のうち、移行元NAS3から、データを読み込む。   The processing device in the postsync mode writes write data to the migration destination NAS 4 out of the migration source NAS 3 and the migration destination NAS 4. On the other hand, the processing device in the sync mode reads data from the migration source NAS 3 out of the migration source NAS 3 and the migration destination NAS 4.

このため、syncモードの処理装置とpostsyncモードの処理装置が混在すると、postsyncモードの処理装置が移行先NAS4内のファイルAを更新した後に、syncモードの処理装置がファイルAを読み込もうとした場合、syncモードの処理装置は、更新されたファイルAを格納している移行先NAS4からではなく、更新前のファイルAを格納している移行元NAS3から更新前のファイルAを読み込んでしまう。よって、ファイルAに関して、データの不一致が生じてしまう。   For this reason, when the processing device in the sync mode and the processing device in the postsync mode are mixed, after the processing device in the postsync mode updates the file A in the migration destination NAS 4, the processing device in the sync mode tries to read the file A. The processing device in the sync mode reads the file A before update from the migration source NAS 3 storing the file A before update, not from the migration destination NAS 4 storing the updated file A. Therefore, data mismatch occurs with respect to the file A.

したがって、データ移行マネージャ5b22は、syncモードの処理装置とpostsyncモードの処理装置が混在しないように、以下のようにして、各処理装置のモードをpostsyncモードに変更していく。   Therefore, the data migration manager 5b22 changes the mode of each processing device to the postsync mode as follows so that the processing device in the sync mode and the processing device in the postsync mode are not mixed.

図6は、postsyncモードへの遷移を説明するための図である。なお、図6では、4台の処理装置21〜24が示されている。   FIG. 6 is a diagram for explaining the transition to the postsync mode. In FIG. 6, four processing devices 21 to 24 are shown.

図6(a)は、running処理が終了したときの処理装置21〜24のモードを示した図である。running処理が終了したとき、処理装置21〜24のそれぞれは、syncモードになっている。   FIG. 6A is a diagram illustrating modes of the processing devices 21 to 24 when the running process is completed. When the running process ends, each of the processing devices 21 to 24 is in the sync mode.

finalizing処理では、データ移行マネージャ5b22は、まず、1台の処理装置を残して、残りの処理装置を順次holdモードに変更する。   In the finalizing process, the data migration manager 5b22 first changes the remaining processing devices to the hold mode in order, leaving one processing device.

図6に示した例では、データ移行マネージャ5b22は、処理装置21〜24のうち、処理装置24以外の処理装置(特定処理装置)内のエージェント2c、具体的には、処理装置21〜23内の各エージェント2cに、処理装置21〜23内のデータ移行ファイルシステム2bが1つずつ順番にsyncモードからholdモードに切り換わるように、個別に、データ移行ファイルシステム2bのモードをsyncモードからholdモードに切り換える旨の指示を順番に提供する。各エージェント2cは、この指示を受け付けると、データ移行ファイルシステム2bのモードをholdモードに切り換える。   In the example illustrated in FIG. 6, the data migration manager 5 b 22 includes the agent 2 c in the processing device (specific processing device) other than the processing device 24 among the processing devices 21 to 24, specifically, in the processing devices 21 to 23. In each agent 2c, the mode of the data migration file system 2b is individually held from the sync mode so that the data migration file system 2b in the processing devices 21 to 23 sequentially switches from the sync mode to the hold mode one by one. Provide instructions in order to switch to the mode. Upon receiving this instruction, each agent 2c switches the mode of the data migration file system 2b to the hold mode.

このため、処理装置21〜24のうち、処理装置24のみがsyncモードで動作し、処理装置21〜23がholdモードで動作する。   For this reason, among the processing devices 21 to 24, only the processing device 24 operates in the sync mode, and the processing devices 21 to 23 operate in the hold mode.

図6(b)は、処理装置21〜23がholdモードになり、処理装置24がsyncモードである状況を示した図である。   FIG. 6B is a diagram illustrating a situation in which the processing devices 21 to 23 are in the hold mode and the processing device 24 is in the sync mode.

続いて、データ移行マネージャ5b22は、処理装置24内のエージェント2cに、データ移行ファイルシステム2bのモードをsyncモードからpostsyncモードに切り換える旨の指示を提供する。処理装置24内のエージェント2cは、この指示を受け付けると、処理装置24内のデータ移行ファイルシステム2bのモードをpostsyncモードに切り換える。   Subsequently, the data migration manager 5b22 provides an instruction to the agent 2c in the processing device 24 to switch the mode of the data migration file system 2b from the sync mode to the postsync mode. Upon receiving this instruction, the agent 2c in the processing device 24 switches the mode of the data migration file system 2b in the processing device 24 to the postsync mode.

図6(c)は、処理装置21〜23がholdモードであり、処理装置24がpostsyncモードになった状況を示した図である。   FIG. 6C is a diagram illustrating a situation in which the processing devices 21 to 23 are in the hold mode and the processing device 24 is in the postsync mode.

続いて、データ移行マネージャ5b22は、処理装置21〜23内のデータ移行ファイルシステム2bが1つずつ順番にholdモードからpostsyncモードに切り換わるように、処理装置21〜23内のエージェント2cに、個別に、データ移行ファイルシステム2bのモードをholdモードからpostsyncモードに切り換える旨の指示を順番に提供する。   Subsequently, the data migration manager 5b22 individually transfers the data migration file system 2b in the processing devices 21 to 23 to the agent 2c in the processing devices 21 to 23 so that the hold mode is switched to the postsync mode one by one. In addition, an instruction for switching the mode of the data migration file system 2b from the hold mode to the postsync mode is provided in order.

処理装置21〜23内のエージェント2cは、この指示を受け付けると、自己と同じ処理装置内のデータ移行ファイルシステム2bのモードをholdモードからpostsyncモードに切り換える。   Upon receiving this instruction, the agent 2c in the processing devices 21 to 23 switches the mode of the data migration file system 2b in the same processing device as itself from the hold mode to the postsync mode.

すべての処理装置のモードがpostsyncモードになると、finalizing処理は終了する。finalizing処理の終了に伴い、データ移行が終了する。   When the mode of all the processing devices becomes the postsync mode, the finalizing process ends. As the finalizing process ends, data migration ends.

図7は、図1に示したデータ転送システム1においてfinalizing処理が終了したときの状態を示した図である。   FIG. 7 is a diagram showing a state when the finalizing process is completed in the data transfer system 1 shown in FIG.

データ移行が終了すると、後処理が行われる。   When data migration is complete, post-processing is performed.

後処理では、データ移行ユーティリティ5b21内のデータ移行ジョブが削除され、移行元NAS3がアンマウント可能な状態となる。   In post-processing, the data migration job in the data migration utility 5b21 is deleted, and the migration source NAS 3 is ready to be unmounted.

本実施形態では、データコピー部5b1は、切換指示が受け付けられると、移行元NAS3内のデータを移行先NAS4内へコピーするコピー処理を開始する。データコピー部5b1は、コピー処理が終了した後、移行元NAS3内のデータと移行先NAS4内のデータとが同一になったかを判断する。   In the present embodiment, when the data copy unit 5b1 receives a switching instruction, the data copy unit 5b1 starts a copy process for copying data in the migration source NAS 3 into the migration destination NAS 4. The data copy unit 5b1 determines whether the data in the migration source NAS 3 and the data in the migration destination NAS 4 are the same after the copy process is completed.

移行管理部5b2は、切換指示が受け付けられると、複数の処理装置に、移行元NAS3に書き込むデータを移行先NAS4にも書き込ませる。移行管理部5b2は、その後、データコピー部5b1の判断結果が同一を示す場合、複数の処理装置のうち一の処理装置以外の特定処理装置に、移行元NAS3および移行先NAS4の使用を停止させて、一の処理装置を、移行元NAS3を使用せずに移行先NAS4を使用する切換状態にし、その後、特定処理装置を1台ずつ切換状態にする。   When the switching instruction is accepted, the migration management unit 5b2 causes a plurality of processing devices to write data to be written to the migration source NAS3 to the migration destination NAS4. Thereafter, when the determination result of the data copy unit 5b1 indicates the same, the migration management unit 5b2 causes the specific processing device other than one processing device among the plurality of processing devices to stop using the migration source NAS3 and the migration destination NAS4. Thus, the one processing device is switched to use the migration destination NAS 4 without using the migration source NAS 3, and then the specific processing devices are switched to one by one.

このため、複数の処理装置が共有する移行元NAS3が移行先NAS4に切り換えられる際に、移行元NAS3内のデータと移行先NAS4内のデータとの整合性を図りつつ、少なくとも複数の処理装置のうちのいずれか1つが、移行元NAS3または移行先NAS4とアクセス可能になる。   For this reason, when the migration source NAS 3 shared by a plurality of processing devices is switched to the migration destination NAS 4, the consistency between the data in the migration source NAS 3 and the data in the migration destination NAS 4 is achieved, and at least the plurality of processing devices. Any one of them can access the migration source NAS 3 or the migration destination NAS 4.

よって、複数の処理装置が共有する移行元NAS3が移行先NAS4に切り換えられる際に、NAS間のデータの不整合を防止しつつ、移行元NAS3または移行先NAS4を用いたデータ処理を継続することが可能になる。   Therefore, when the migration source NAS 3 shared by a plurality of processing devices is switched to the migration destination NAS 4, data processing using the migration source NAS 3 or the migration destination NAS 4 is continued while preventing data inconsistency between the NASs. Is possible.

また、本実施形態では、処理装置のそれぞれは、移行元NAS3に書き込む情報を、移行元NAS4に書き込めなかった場合に、未同期フラグ(未同期情報)を設定する。   In this embodiment, each of the processing devices sets an unsynchronized flag (unsynchronized information) when information to be written to the migration source NAS 3 cannot be written to the migration source NAS 4.

移行管理部5b2は、コピー処理が終了した時点で、未同期フラグが設定されている場合、データコピー部5b1に、移行元NAS3内のデータと移行先NAS4内のデータとが同一になったかの判断を行わせずにコピー処理を再度実行させる。また、移行管理部5b2は、コピー処理が終了した時点で、未同期フラグが設定されていない場合、データコピー部5b1に、移行元NAS3内のデータと移行先NAS4内のデータとが同一になったかの判断を行わせる。   When the non-synchronization flag is set when the copy process is completed, the migration management unit 5b2 determines whether the data in the migration source NAS 3 and the data in the migration destination NAS 4 are the same in the data copy unit 5b1. The copy process is executed again without performing the process. Further, when the unsynchronized flag is not set when the copy process is completed, the migration management unit 5b2 makes the data in the migration source NAS3 and the data in the migration destination NAS4 the same in the data copy unit 5b1. Make a decision.

この場合、例えば、コピー処理中に移行元NAS4に書き込むことができなかったデータがあった場合には、再度、コピー処理が実行されるため、移行元NAS3内のデータと移行先NAS4内のデータとの整合性を取ることが可能になる。   In this case, for example, if there is data that could not be written to the migration source NAS 4 during the copy process, the copy process is executed again, so the data in the migration source NAS 3 and the data in the migration destination NAS 4 It becomes possible to take consistency with.

また、本実施形態では、複数の処理装置は、所定の処理を分散して行う。この場合、例えば、所定の処理が所定のサービスを提供するための処理であると、所定のサービスを停止することなく、NASの切り換え(データ移行)を行うことが可能になる。   In the present embodiment, the plurality of processing devices perform predetermined processing in a distributed manner. In this case, for example, if the predetermined process is a process for providing a predetermined service, NAS switching (data migration) can be performed without stopping the predetermined service.

以上説明した実施形態において、図示した構成は単なる一例であって、本発明はその構成に限定されるものではない。   In the embodiment described above, the illustrated configuration is merely an example, and the present invention is not limited to the configuration.

1 データ転送システム
21〜24 処理装置
2a AP
2b データ移行ファイルシステム
2c エージェント
3 移行元NAS
4 移行先NAS
5 制御装置
5a 記憶部
5b 制御部
5b1 データコピー部
5b2 移行管理部
5b21 データ移行ユーティリティ
5b22 データ移行マネージャ
1 Data Transfer System 21-24 Processing Device 2a AP
2b Data migration file system 2c Agent 3 Source NAS
4 Migration destination NAS
5 Control Device 5a Storage Unit 5b Control Unit 5b1 Data Copy Unit 5b2 Migration Management Unit 5b21 Data Migration Utility 5b22 Data Migration Manager

Claims (6)

記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換える制御装置であって、
前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかの判断を行うコピー手段と、
前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませ、前記コピー手段の判断結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理手段と、を含む制御装置。
A control device that switches a first storage device shared by a plurality of processing devices to a second storage device when a storage device switching instruction is received;
When the switching instruction is received, a copy process for copying the information in the first storage device to the second storage device is started, and after the copy process is completed, the information in the first storage device and the information Copy means for determining whether the information in the second storage device is the same;
When the switching instruction is accepted, the plurality of processing devices are caused to write information to be written to the first storage device to the second storage device, and the plurality of processing is performed when the determination result of the copy means indicates the same. A specific processing device other than one processing device of the devices is stopped using the first and second storage devices, and the one processing device is stored in the second storage without using the first storage device. And a transition management unit that switches the device to a switching state, and then switches the specific processing devices one by one to the switching state.
請求項1に記載の制御装置において、
前記処理装置のそれぞれは、前記第1記憶装置に書き込む情報を、前記第2記憶装置に書き込めなかった場合に、未同期情報を設定するものであり、
前記移行管理手段は、前記コピー処理が終了した時点で、前記未同期情報が設定されている場合、前記コピー手段に、前記判断を行わせずに前記コピー処理を再度実行させ、前記コピー処理が終了した時点で、前記未同期情報が設定されていない場合、前記コピー手段に前記判断を行わせる、制御装置。
The control device according to claim 1,
Each of the processing devices sets unsynchronized information when information to be written to the first storage device cannot be written to the second storage device,
If the unsynchronized information is set at the time when the copy process is completed, the migration management unit causes the copy unit to execute the copy process again without performing the determination, and the copy process is performed. A control device that causes the copy means to make the determination when the unsynchronized information is not set at the time of completion.
請求項1または2に記載の制御装置において、
前記複数の処理装置は、所定の処理を分散して行うものである、制御装置。
The control device according to claim 1 or 2,
The plurality of processing devices are control devices that perform predetermined processing in a distributed manner.
第1記憶装置と、
第2記憶装置と、
前記第1記憶装置または前記第2記憶装置を共用する複数の処理装置と、
請求項1から3のいずれか1項に記載の制御装置と、を含むデータ移行システム。
A first storage device;
A second storage device;
A plurality of processing devices sharing the first storage device or the second storage device;
A data migration system including the control device according to any one of claims 1 to 3.
記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換える制御装置でのデータ移行方法であって、
前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかを判断するコピーステップと、
前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませる書込み制御ステップと、
前記判断の結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理ステップと、を含むデータ移行方法。
A data transfer method in a control device that switches a first storage device shared by a plurality of processing devices to a second storage device when a storage device switching instruction is received,
When the switching instruction is received, a copy process for copying the information in the first storage device to the second storage device is started, and after the copy process is completed, the information in the first storage device and the information A copy step for determining whether the information in the second storage device is the same;
When the switching instruction is accepted, a write control step for causing the plurality of processing devices to write information to be written to the first storage device to the second storage device;
When the determination results indicate the same, the specific processing device other than the one processing device among the plurality of processing devices is stopped using the first and second storage devices, and the one processing device is A data migration method comprising: a transition management step of switching to a switching state in which the second storage device is used without using the first storage device, and thereafter bringing the specific processing device into the switching state one by one.
記憶装置の切換指示を受け付けた場合に、複数の処理装置が共用する第1記憶装置を第2記憶装置に切り換えるコンピュータに、
前記切換指示が受け付けられると、前記第1記憶装置内の情報を前記第2記憶装置内へコピーするコピー処理を開始し、当該コピー処理が終了した後、前記第1記憶装置内の情報と前記第2記憶装置内の情報とが同一になったかを判断するコピー手順と、
前記切換指示が受け付けられると、前記複数の処理装置に、前記第1記憶装置に書き込む情報を前記第2記憶装置にも書き込ませる書込み制御手順と、
前記判断の結果が同一を示す場合、前記複数の処理装置のうち一の処理装置以外の特定処理装置に、前記第1および第2記憶装置の使用を停止させて、当該一の処理装置を、前記第1記憶装置を使用せずに前記第2記憶装置を使用する切換状態にし、その後、前記特定処理装置を1台ずつ前記切換状態にする移行管理手順と、を実行させるためのプログラム。
A computer that switches a first storage device shared by a plurality of processing devices to a second storage device when a storage device switching instruction is received;
When the switching instruction is received, a copy process for copying the information in the first storage device to the second storage device is started, and after the copy process is completed, the information in the first storage device and the information A copy procedure for determining whether the information in the second storage device is the same;
When the switching instruction is accepted, a writing control procedure for causing the plurality of processing devices to write information to be written to the first storage device to the second storage device;
When the determination results indicate the same, the specific processing device other than the one processing device among the plurality of processing devices is stopped using the first and second storage devices, and the one processing device is A program for executing a transition management procedure for switching to a switching state in which the second storage device is used without using the first storage device, and thereafter setting the specific processing devices one by one in the switching state.
JP2009292515A 2009-12-24 2009-12-24 Control device, data migration system, data migration method and program Active JP5240861B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009292515A JP5240861B2 (en) 2009-12-24 2009-12-24 Control device, data migration system, data migration method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009292515A JP5240861B2 (en) 2009-12-24 2009-12-24 Control device, data migration system, data migration method and program

Publications (2)

Publication Number Publication Date
JP2011134075A true JP2011134075A (en) 2011-07-07
JP5240861B2 JP5240861B2 (en) 2013-07-17

Family

ID=44346744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009292515A Active JP5240861B2 (en) 2009-12-24 2009-12-24 Control device, data migration system, data migration method and program

Country Status (1)

Country Link
JP (1) JP5240861B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015068208A1 (en) * 2013-11-05 2015-05-14 株式会社日立製作所 System and method for controlling same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6175464A (en) * 1984-09-21 1986-04-17 Toshiba Corp Copying control system of dual shared memory
JPH05134814A (en) * 1991-11-08 1993-06-01 Nec Corp Duplex external storage device
JP2003296035A (en) * 2002-04-08 2003-10-17 Hitachi Ltd Storage device and storage method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6175464A (en) * 1984-09-21 1986-04-17 Toshiba Corp Copying control system of dual shared memory
JPH05134814A (en) * 1991-11-08 1993-06-01 Nec Corp Duplex external storage device
JP2003296035A (en) * 2002-04-08 2003-10-17 Hitachi Ltd Storage device and storage method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015068208A1 (en) * 2013-11-05 2015-05-14 株式会社日立製作所 System and method for controlling same

Also Published As

Publication number Publication date
JP5240861B2 (en) 2013-07-17

Similar Documents

Publication Publication Date Title
JP5191062B2 (en) Storage control system, operation method related to storage control system, data carrier, and computer program
JP2007286860A (en) Data transfer method and information processor
JP4741304B2 (en) Data migration method or data migration system
JP2006004147A (en) Disaster recovery system, program and method for recovering database
WO2012160533A1 (en) Transparent file system migration to a new physical location
JP2005242403A (en) Computer system
JP6123626B2 (en) Process resumption method, process resumption program, and information processing system
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
JP2008165431A (en) Mirroring program, mirroring method and information storage device
JP2006350824A (en) Administrative computer for managing license of program to be installed in storage system, computer system and control method
CN113010496B (en) Data migration method, device, equipment and storage medium
JP2006185413A (en) Autonomous storage device, autonomous storage system, distributed storage system, load distribution program and load distribution method
US20170054803A1 (en) Information processing device, method, and system
JP2007041888A (en) Database restructuring device and database restructuring program
JP5780377B2 (en) Information processing system and application transfer method
JP2007310448A (en) Computer system, management computer, and storage system management method
JP2004302556A (en) Data sharing method between a plurality of computer systems, and disk controller
JP2014010540A (en) Data migration control device, method and system in virtual server environment
JP2010231567A (en) Storage switch and method for changing storage area size
US8621260B1 (en) Site-level sub-cluster dependencies
US11449241B2 (en) Customizable lock management for distributed resources
JP5240861B2 (en) Control device, data migration system, data migration method and program
CN106326030B (en) Method and apparatus for soft handoff in a storage system
JP4874807B2 (en) Server management program, server management method, and server management apparatus
JP2014016953A (en) Unshared type database system, synchronizing device, database server, its synchronizing method, and synchronizing program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121211

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130204

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130305

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130328

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

Free format text: PAYMENT UNTIL: 20160412

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5240861

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250