CN105278522A - Remote replication method and system - Google Patents
Remote replication method and system Download PDFInfo
- Publication number
- CN105278522A CN105278522A CN201510674437.8A CN201510674437A CN105278522A CN 105278522 A CN105278522 A CN 105278522A CN 201510674437 A CN201510674437 A CN 201510674437A CN 105278522 A CN105278522 A CN 105278522A
- Authority
- CN
- China
- Prior art keywords
- master controller
- controller
- remote copy
- node
- source node
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24175—Redundant communication channel, if one fails use the other
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Selective Calling Equipment (AREA)
Abstract
The invention discloses a remote replication method and system. The method comprises the steps that master and slave controllers of a source node and master and slave controllers of a destination node are provided with remote replication information, wherein the remote replication information comprises information needed by remote replication of the source node and the destination node; when an abnormality in the master controller of the source node or the destination node is detected, deactivation operation is carried out on the master controller, and the master controller is set as a new slave controller, wherein the deactivation operation comprises stopping remote replication of the master controller and an opposite end node and stopping metadata reading and writing; and the slave controllers are set as new master controllers, and activation operation is carried out on new master controllers according to pre-set remote replication information, wherein the activation operation comprises starting remote replication of new master controllers and the opposite end node and metadata reading. According to the method, real-time backup of the data of a user is ensured, and the reliability of user data transmission is improved.
Description
Technical field
The present invention relates to field of computer technology, espespecially a kind of remote copy method and system.
Background technology
Remote copy technology refers to that user data is set up data respectively at source node and destination node to be stored, for realizing the function protecting user data.In remote copy technology, the user data received is real-time transmitted to destination node by source node, only have when destination node receives the user data that source node sends completely, source node just writes successful information to client return data, thus reaches the object that user data backs up in realtime.
Usually, source node and destination node control by two controllers, during to ensure that a controller breaks down wherein, can utilize another controller to realize control.But, the remote copy function of source node and destination node all cannot switch between self two controller, namely when there is the fault such as suspension, power-off in one of them controller of source node or destination node, the remote copy function of source node or destination node does not realize by another controller, backing up in realtime of user data cannot be ensured like this, reduce the reliability of user data transmission.
Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of remote copy method and system, backing up in realtime of user data can be ensured, improve the reliability of user data transmission.
First aspect, the embodiment of the present invention provides a kind of remote copy method, comprise: to the master controller of source node with from controller, and the master controller of destination node and from controller, remote copy information is all set, wherein, remote copy information comprises the information required for remote copy realized between source node and destination node; When detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to described master controller, and described master controller is set to new for controller, wherein, deactivation maneuver comprises master controller and stops the remote copy with peer node, and stops the read-write operation to metadata; To be set to new master controller from controller, and carry out activation manipulation according to the remote copy information pre-set to described new master controller, wherein, activation manipulation comprises new master controller and opens the remote copy with peer node, reads metadata.
Further, at the master controller to source node with from controller, and the master controller of destination node and from controller, after remote copy information is all set, also comprise: the master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
Further, when detecting that the master controller of source node or destination node exists abnormal, after deactivation maneuver is carried out to described master controller, also comprise: the current processing status described master controller being received to data judges; If current processing status is untreated state, then described master controller generates the error code of data, and sends described error code to client; If current processing status is just at treatment state, then described master controller interrupts data processing, generates the error code of data, and sends described error code to client; If current processing status is pending inner callback state, then described master controller performs inner readjustment to data, and generating process result.
Second aspect, the embodiment of the present invention provides a kind of remote copy system, comprise: setting device, inactivation device and active device, wherein: described setting device, for the master controller to source node with from controller, and the master controller of destination node and from controller, remote copy information is all set, wherein, remote copy information, comprises the information required for remote copy realized between source node and destination node; Described inactivation device, for when detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to described master controller, and described master controller is set to new for controller, wherein, deactivation maneuver, comprises master controller and stops the remote copy with peer node, and stop the read-write operation to metadata; Described active device, for new master controller will be set to from controller, and according to the remote copy information that described setting device pre-sets, activation manipulation is carried out to described new master controller, wherein, activation manipulation, comprise new master controller and open the remote copy with peer node, read metadata from controller.
Further, described setting device also for: at the master controller to source node with from controller, and the master controller of destination node and from controller, after remote copy information is all set, the master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
Further, described inactivation device also for: after carrying out deactivation maneuver to described master controller, the current processing status described master controller being received to data judges; If current processing status is untreated state, then described master controller generates the error code of data, and sends described error code to client; If current processing status is just at treatment state, then described master controller interrupts data processing, generates the error code of data, and sends described error code to client; If current processing status is pending inner callback state, then described master controller performs inner readjustment to data, and generating process result.
A kind of remote copy method of thering is provided of the present invention and system, by the master controller to source node with from controller, and the master controller of destination node and remote copy information is all set from controller, wherein, remote copy information, comprises the information required for remote copy realized between source node and destination node; When detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to master controller, and master controller is set to new for controller; New master controller will be set to from controller, and according to the remote copy information pre-set, activation manipulation be carried out to new master controller, and ensure that backing up in realtime of user data, improve the reliability of user data transmission.
Accompanying drawing explanation
Accompanying drawing is used to provide the further understanding to technical solution of the present invention, and forms a part for instructions, is used from and explains technical scheme of the present invention, do not form the restriction to technical solution of the present invention with the embodiment one of the application.
The process flow diagram of a kind of remote copy method that Fig. 1 provides for the embodiment of the present invention;
The process flow diagram of the another kind of remote copy method that Fig. 2 provides for the embodiment of the present invention;
The structural representation of a kind of remote copy system that Fig. 3 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing.Further, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
See Fig. 1, the figure shows a kind of remote copy method that the embodiment of the present invention provides, comprising:
Step 101: to the master controller of source node with from controller, and the master controller of destination node and from controller, remote copy information is all set, wherein, remote copy information, comprises the full detail required for remote copy realized between source node and destination node;
Realizing the information required for the remote copy between source node and destination node, is information usual when this area realizes remote copy, such as, and user data mark, data transmission block size, data check type, message transmission rate, network connection information etc.
Wherein, source node and destination node are undertaken controlling by two controllers.In two controllers, the controller run is master controller, and another is from controller.
Due in prior art when the master controller of source node or destination node occurs abnormal, master controller needs the remote copy information on master controller again arranging from controller to switching from controller, and again arranging remote copy information, to increase master controller consuming time to what switch from controller, client therefore can be caused to lose user data.And in embodiments of the present invention, by arranging remote copy information respectively at master controller with from controller, make remote copy from master controller to the remote copy information only needed when controller switches according to having set from controller, realize automatically switching by follow-up operation, ensure normally carrying out of remote copy, avoided client and lose user data.
Further, to the master controller of source node with from the master controller of controller and destination node with from after controller all arranges remote copy information, also comprise: the master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
After remote copy information is set, need four controllers, the i.e. master controller of source node, source node from controller, the master controller of destination node and all the connecting between any two from controller of destination node, that is, need between a source node and a destination node to set up four remote copy redundant links, after making remote copy be switched to another controller from the controller broken down, remote copy between source node and destination node still can keep connecting, ensure the real-time that the remote copy between source node and destination node connects and validity.
Step 102: when detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to master controller, and master controller is set to new for controller; Wherein, deactivation maneuver, comprises master controller and stops the remote copy with peer node, and stop the read-write operation to metadata.
It should be noted that, if above-mentioned master controller is the master controller of source node, then node for the purpose of peer node; If the master controller of node for the purpose of above-mentioned master controller, then peer node is source node.
Metadata is the data of data of description, mainly data of description attribute information, is used for supporting as functions such as instruction memory location, historical data, resource lookup, file records.
Further, when detecting that the master controller of source node or destination node exists abnormal, after deactivation maneuver is carried out to master controller, also comprise: current processing status master controller being received to data judges; If current processing status is untreated state, then master controller generates the error code of data, and sends error code to client; If current processing status is just at treatment state, then master controller interrupts data processing, generates the error code of data, and sends error code to client; If current processing status is pending inner callback state, then master controller performs inner readjustment to data, and generating process result.
It should be noted that, be in the data of untreated state, for entering master controller but also not carrying out the data of respective handling; Be in just in the data for the treatment of state, remote copy process carried out to data for master controller but also do not generating the data of buffer memory; Be in the data of pending inner callback state, for master controller generate buffer memory and etc. pending inside readjustment data.
Step 103: new master controller will be set to from controller, and according to the remote copy information pre-set, activation manipulation is carried out to new master controller, wherein, activation manipulation, comprises new master controller and opens the remote copy with peer node, read metadata.
You need to add is that, remote copy information includes the information required for remote copy realized between source node and destination node, and new master controller to utilize the information required for remote copy to open with the remote copy of peer node and read metadata be technical process well-known to those skilled in the art, therefore, this process is not being repeated here.
Can find out, by the master controller at source node and the master controller from controller and destination node with all arrange remote copy information from controller, when one of them controller of source node or destination node is broken down, source node or destination node can utilize the remote copy information pre-set to be realized by remote copy function another controller by self, be switched to another controller of self by remote copy function, thus ensure that backing up in realtime of user data.
See Fig. 2, the figure shows the another kind of remote copy method that the embodiment of the present invention provides, when breaking down for the master controller of source node, remote copy is automatically switched to source node from controller, to the embodiment of the present invention propose remote copy method be described in detail, method comprises:
Step 201: to the master controller of source node with from controller, and the master controller of destination node and from controller, arrange remote copy information respectively;
Step 202: when the master controller of source node receives and cancels data processing instructions, data jamming is carried out to the remote copy of source node and destination node;
Wherein, when the master controller of source node receives and cancels data processing instructions, illustrate that the master controller of source node breaks down.Remote copy with peer node is carried out data jamming operation by the master controller of source node, namely no longer receives data processing request, stops the remote copy with peer node.
Step 203: the master controller of source node processes accordingly to the current processing status of the data received according to data;
Step 204: be set to by the master controller of source node new for controller, is set to new master controller by source node from controller;
Step 205: the new master controller of source node opens the remote copy with destination node according to the remote copy information pre-set, and reads metadata.
A kind of remote copy method provided of the present invention, by the master controller to source node with from controller, and the master controller of destination node and remote copy information is all set from controller, wherein, remote copy information, comprises the information required for remote copy realized between source node and destination node; When detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to master controller, and master controller is set to new for controller; New master controller will be set to from controller, and according to the remote copy information pre-set, activation manipulation be carried out to new master controller, and ensure that backing up in realtime of user data, improve the reliability of user data transmission.
See Fig. 3, the figure shows a kind of remote copy system that the embodiment of the present invention provides, this system comprises: setting device 301, inactivation device 302 and active device 303, wherein:
Setting device 301, for the master controller to source node with from controller, and the master controller of destination node and from controller, remote copy information is all set, wherein, remote copy information, comprises the information required for remote copy realized between source node and destination node;
Inactivation device 302, for when detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to master controller, and master controller is set to new for controller, wherein, deactivation maneuver, comprises master controller and stops the remote copy with peer node, and stop the read-write operation to metadata;
Active device 303, for being set to new master controller from controller, and carries out activation manipulation according to the remote copy information that setting device 301 pre-sets to new master controller, wherein, activation manipulation, comprises new master controller and opens the remote copy with peer node, read metadata.
Further, setting device 301 is also at the master controller to source node with from controller, and the master controller of destination node and from controller, after remote copy information is all set, the master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
Further, inactivation device 302 is also for after carrying out deactivation maneuver to master controller, and current processing status master controller being received to data judges; If current processing status is untreated state, then master controller generates the error code of data, and sends error code to client; If current processing status is just at treatment state, then master controller interrupts data processing, generates the error code of data, and sends error code to client; If current processing status is pending inner callback state, then master controller performs inner readjustment to data, and generating process result.
Although the embodiment disclosed by the present invention is as above, the embodiment that described content only adopts for ease of understanding the present invention, and be not used to limit the present invention.Those of skill in the art belonging to any the present invention; under the prerequisite not departing from the spirit and scope disclosed by the present invention; any amendment and change can be carried out in the form implemented and details; but scope of patent protection of the present invention, the scope that still must define with appending claims is as the criterion.
Claims (6)
1. a remote copy method, is characterized in that, comprising:
To the master controller of source node with from controller, and the master controller of destination node and from controller, all arrange remote copy information, wherein, remote copy information comprises the information required for remote copy realized between source node and destination node;
When detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to described master controller, and described master controller is set to new for controller, wherein, deactivation maneuver comprises master controller and stops the remote copy with peer node, and stops the read-write operation to metadata;
To be set to new master controller from controller, and carry out activation manipulation according to the remote copy information pre-set to described new master controller, wherein, activation manipulation comprises new master controller and opens the remote copy with peer node, reads metadata.
2. remote copy method according to claim 1, is characterized in that, at the master controller to source node with from controller, and the master controller of destination node and from controller, after remote copy information is all set, also comprise:
The master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
3. remote copy method according to claim 1, is characterized in that, when detecting that the master controller of source node or destination node exists abnormal, after carrying out deactivation maneuver, also comprises described master controller:
The current processing status described master controller being received to data judges; If current processing status is untreated state, then described master controller generates the error code of data, and sends described error code to client; If current processing status is just at treatment state, then described master controller interrupts data processing, generates the error code of data, and sends described error code to client; If current processing status is pending inner callback state, then described master controller performs inner readjustment to data, and generating process result.
4. a remote copy system, is characterized in that, comprising: setting device, inactivation device and active device, wherein:
Described setting device, for the master controller to source node with from controller, and the master controller of destination node and from controller, remote copy information is all set, wherein, remote copy information, comprises the information required for remote copy realized between source node and destination node;
Described inactivation device, for when detecting that the master controller of source node or destination node exists abnormal, deactivation maneuver is carried out to described master controller, and described master controller is set to new for controller, wherein, deactivation maneuver, comprises master controller and stops the remote copy with peer node, and stop the read-write operation to metadata;
Described active device, for new master controller will be set to from controller, and according to the remote copy information that described setting device pre-sets, activation manipulation is carried out to described new master controller, wherein, activation manipulation, comprise new master controller and open the remote copy with peer node, read metadata from controller.
5. remote copy system according to claim 4, is characterized in that, described setting device also for:
At the master controller to source node with from controller, and the master controller of destination node and from controller, after remote copy information is all set, the master controller of source node, source node from the master controller of controller, destination node and all the connecting between any two from controller of destination node.
6. remote copy system according to claim 4, is characterized in that, described inactivation device also for:
After carrying out deactivation maneuver to described master controller, the current processing status described master controller being received to data judges; If current processing status is untreated state, then described master controller generates the error code of data, and sends described error code to client; If current processing status is just at treatment state, then described master controller interrupts data processing, generates the error code of data, and sends described error code to client; If current processing status is pending inner callback state, then described master controller performs inner readjustment to data, and generating process result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510674437.8A CN105278522B (en) | 2015-10-16 | 2015-10-16 | A kind of remote copy method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510674437.8A CN105278522B (en) | 2015-10-16 | 2015-10-16 | A kind of remote copy method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105278522A true CN105278522A (en) | 2016-01-27 |
CN105278522B CN105278522B (en) | 2018-09-14 |
Family
ID=55147702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510674437.8A Active CN105278522B (en) | 2015-10-16 | 2015-10-16 | A kind of remote copy method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105278522B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6973586B2 (en) * | 2002-04-29 | 2005-12-06 | International Business Machines Corporation | System and method for automatic dynamic address switching |
US7085956B2 (en) * | 2002-04-29 | 2006-08-01 | International Business Machines Corporation | System and method for concurrent logical device swapping |
CN1836217A (en) * | 2003-06-18 | 2006-09-20 | 国际商业机器公司 | Method, system, and program for handling a failover to a remote storage location |
CN101334748A (en) * | 2007-06-27 | 2008-12-31 | 株式会社日立制作所 | Asynchronous remote copy system and control method for the same |
CN101571822A (en) * | 2006-01-13 | 2009-11-04 | 株式会社日立制作所 | Storage controller and data management method |
CN102014152A (en) * | 2010-10-18 | 2011-04-13 | 浪潮(北京)电子信息产业有限公司 | Long-distance duplicating system and method |
CN104580470A (en) * | 2015-01-12 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Synchronous remote copying implementation method |
-
2015
- 2015-10-16 CN CN201510674437.8A patent/CN105278522B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6973586B2 (en) * | 2002-04-29 | 2005-12-06 | International Business Machines Corporation | System and method for automatic dynamic address switching |
US7085956B2 (en) * | 2002-04-29 | 2006-08-01 | International Business Machines Corporation | System and method for concurrent logical device swapping |
CN1836217A (en) * | 2003-06-18 | 2006-09-20 | 国际商业机器公司 | Method, system, and program for handling a failover to a remote storage location |
CN101571822A (en) * | 2006-01-13 | 2009-11-04 | 株式会社日立制作所 | Storage controller and data management method |
CN101334748A (en) * | 2007-06-27 | 2008-12-31 | 株式会社日立制作所 | Asynchronous remote copy system and control method for the same |
CN102014152A (en) * | 2010-10-18 | 2011-04-13 | 浪潮(北京)电子信息产业有限公司 | Long-distance duplicating system and method |
CN104580470A (en) * | 2015-01-12 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Synchronous remote copying implementation method |
Non-Patent Citations (1)
Title |
---|
贠卫国等: "一种DCS主控制器冗余优化设计与实现", 《工业控制计算机》 * |
Also Published As
Publication number | Publication date |
---|---|
CN105278522B (en) | 2018-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220075698A1 (en) | Method and Apparatus for Redundancy in Active-Active Cluster System | |
US8832372B2 (en) | Network storage systems having clustered raids for improved redundancy and load balancing | |
US9604585B2 (en) | Failure management in a vehicle | |
CN106874142B (en) | Real-time data fault-tolerant processing method and system | |
US11340574B2 (en) | Control system, communication control method for control system, and junction device | |
CN104570721A (en) | Master and slave state determining method of redundant controllers | |
CN102752093A (en) | Distributed file system-based data processing method, device and system | |
US20090254722A1 (en) | Data storage apparatus | |
JP2005242404A (en) | Method for switching system of computer system | |
JP2017515418A (en) | A gateway that provides a logical model mapped to an independent underlying network | |
JP2005196490A (en) | System and method for data duplication | |
CN105278522A (en) | Remote replication method and system | |
CN109286583B (en) | Method, device, equipment and storage medium for managing network ports of controller | |
JP2008226111A (en) | Duplication controller system and operation system controller | |
CN104683153B (en) | A kind of active and standby MPU control method of cluster routers and its system | |
JP2007018026A (en) | Controller | |
WO2015146381A1 (en) | Data collection system | |
JP2017010102A (en) | Duplex system | |
JPWO2015132953A1 (en) | Computer apparatus and computer mechanism | |
JP2504836B2 (en) | Information processing system | |
JP5136770B2 (en) | Industrial controller | |
JP4245004B2 (en) | Database management method and system | |
JP2003345407A (en) | Data equivalence method among duplexed plcs | |
JP2013186727A (en) | Computer for multiplex system and multiplex control method | |
JP2012190150A (en) | Fault tolerant system, memory control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |