[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105278522B - A kind of remote copy method and system - Google Patents

A kind of remote copy method and system Download PDF

Info

Publication number
CN105278522B
CN105278522B CN201510674437.8A CN201510674437A CN105278522B CN 105278522 B CN105278522 B CN 105278522B CN 201510674437 A CN201510674437 A CN 201510674437A CN 105278522 B CN105278522 B CN 105278522B
Authority
CN
China
Prior art keywords
master controller
controller
remote copy
node
data
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.)
Active
Application number
CN201510674437.8A
Other languages
Chinese (zh)
Other versions
CN105278522A (en
Inventor
孟宪伟
王倩
张书宁
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510674437.8A priority Critical patent/CN105278522B/en
Publication of CN105278522A publication Critical patent/CN105278522A/en
Application granted granted Critical
Publication of CN105278522B publication Critical patent/CN105278522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric 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/0213Modular 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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24175Redundant 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 kind of remote copy method and system, this method includes:Master controller to source node and the master controller from controller and destination node and it is respectively provided with remote copy information from controller, wherein remote copy information, including realize the required information of remote copy between source node and destination node;It is detecting that the master controller of source node or destination node deposits when abnormal, deactivation maneuver is carried out to master controller, and is set newly from controller master controller to, wherein, deactivation maneuver, including master controller stop the remote copy with peer node, and stop the read-write operation to metadata;It will be set as new master controller from controller, and new master controller will be operated into line activating according to pre-set remote copy information, wherein activation operation, including new master controller open the remote copy with peer node, read metadata.This method ensure that user data is backed up in realtime, the reliability of user data transmission is improved.

Description

A kind of remote copy method and system
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 established data storage respectively in source node and destination node, for realizing Protect the function of user data.In remote copy technology, the user data received is real-time transmitted to destination node by source node, Only when destination node is received entirely the user data of source node transmission, source node is just written to client returned data The information of work(, to achieve the purpose that user data is backed up in realtime.
In general, source node and destination node are controlled by two controllers, to ensure that a controller goes out wherein When existing failure, control can be realized using another controller.However, the remote copy function of source node and destination node is equal It can not switch between two controllers of itself, i.e., one of source node or destination node controller suspension occur, breaks When the failures such as electricity, the remote copy function of source node or destination node cannot be realized by another controller, in this way can not Ensure backing up in realtime for user data, reduces the reliability of user data transmission.
Invention content
In order to solve the above technical problem, the present invention provides a kind of remote copy method and systems, can ensure user Data are backed up in realtime, and the reliability of user data transmission is improved.
In a first aspect, the embodiment of the present invention provides a kind of remote copy method, including:Master controller to source node and from The master controller of controller and destination node and from controller, is respectively provided with remote copy information, wherein remote copy information Including realizing the required information of remote copy between source node and destination node;Detecting source node or destination node Master controller is deposited when abnormal, carries out deactivation maneuver to the master controller, and set newly from control the master controller to Device, wherein deactivation maneuver includes the remote copy of master controller stopping and peer node, and the read-write stopped to metadata is grasped Make;To be set as new master controller from controller, and according to pre-set remote copy information to the new master controller into Line activating operates, wherein activation operation includes the remote copy of new master controller unlatching and peer node, reads metadata.
Further, to the master controller of source node and from controller and destination node master controller and from control Device processed is respectively provided with after remote copy information, further includes:In the master controller of source node, the slave controller of source node, purpose section The master controller of point and establishing between any two for the slave controller of destination node connect.
Further, detecting that the master controller of source node or destination node deposits when abnormal, to the master controller After carrying out deactivation maneuver, further include:The current processing status that data are received to the master controller judges;If current Processing state is untreated state, then the master controller generates the error code of data, and sends the mistake to client Code;If current processing status is the state that handling, the master controller interrupts data processing, generates the wrong generation of data Code, and send the error code to client;If current processing status is pending internal callback state, the main control Device executes internal readjustment to data, and generates handling result.
Second aspect, the embodiment of the present invention provide a kind of remote copy system, including:Device, inactivation device are set and swashed Removable mounting is set, wherein:The setting device is used for the master controller to source node and the master control from controller and destination node Device processed and from controller, is respectively provided with remote copy information, wherein remote copy information, including realize source node and destination node Between the required information of remote copy;The inactivation device, in the main control for detecting source node or destination node Device is deposited when abnormal, carries out deactivation maneuver to the master controller, and set newly from controller the master controller to, In, deactivation maneuver, including master controller stop the remote copy with peer node, and stop the read-write operation to metadata;Institute Activation device is stated, for new master controller will to be set as from controller, and it is pre-set long-range multiple according to the setting device Information processed operates the new master controller into line activating, wherein activation operation, including new master controller is opened and peer node Remote copy, read metadata from controller.
Further, the setting device is additionally operable to:To the master controller of source node and from controller and purpose section The master controller of point and from controller, is respectively provided with after remote copy information, the master controller of source node, source node from control Device, the master controller of destination node and the establishing between any two for slave controller of destination node processed connect.
Further, the inactivation device is additionally operable to:After carrying out deactivation maneuver to the master controller, to the master The current processing status that controller receives data is judged;If current processing status is untreated state, the master control Device processed generates the error code of data, and sends the error code to client;If current processing status is to handle shape State, the then master controller interruption data processing, generates the error code of data, and send the error code to client; If current processing status is pending internal callback state, the master controller executes internal readjustment to data, and at generation Manage result.
A kind of remote copy method and system of the offer of the present invention, by master controller to source node and from control The master controller of device and destination node and it is respectively provided with remote copy information from controller, wherein remote copy information, including Realize the required information of remote copy between source node and destination node;In the master control for detecting source node or destination node Device processed is deposited when abnormal, carries out deactivation maneuver to master controller, and set newly from controller master controller to;It will be from controller It is set as new master controller, and new master controller is operated into line activating according to pre-set remote copy information, ensure that User data is backed up in realtime, and the reliability of user data transmission is improved.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow chart of remote copy method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another remote copy method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of remote copy system provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
Step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be with suitable different from herein Sequence executes shown or described step.
Referring to Fig. 1, the figure shows a kind of remote copy methods provided in an embodiment of the present invention, including:
Step 101:Master controller to source node and the master controller from controller and destination node and from control Device is respectively provided with remote copy information, wherein remote copy information, including realize long-range multiple between source node and destination node Make required all information;
The required information of remote copy between source node and destination node is realized, when realizing remote copy for this field Usual information, for example, user data mark, data transmission block size, data check type, message transmission rate, network connect Connect information etc..
Wherein, source node and destination node are controlled by two controllers.In two controllers, it is currently running Controller is master controller, the other is from controller.
Due in the prior art when source node or the master controller of destination node occur abnormal, master controller is to from control Device switching needs the remote copy information on master controller being once again set up from controller, and is once again set up remote copy letter Breath can increase master controller and be taken to what is switched from controller, therefore client can be caused to lose user data.And in the present invention In embodiment, by remote copy information being respectively set in master controller and from controller so that remote copy is from main control Device passes through subsequent operation to the remote copy information for only needing basis to be set from controller when switching from controller Automatically switch to realize, ensured being normally carried out for remote copy, avoids client and lose user data.
Further, to the master controller of source node and from controller and destination node master controller and from control Device is respectively provided with after remote copy information, further includes:In the master controller, the slave controller of source node, destination node of source node Master controller and destination node slave controller between any two establish connection.
After remote copy information is set, need four controllers, i.e., the master controller of source node, source node from The slave controller of controller, the master controller of destination node and destination node establishes connection between any two, that is to say, that It needs to establish four remote copy redundant links between source node and destination node so that control of the remote copy from failure After device is switched to another controller, the remote copy between source node and destination node can still keep connecting, and ensure source The real-time and validity of remote copy connection between node and destination node.
Step 102:It is detecting that the master controller of source node or destination node deposits when abnormal, master controller is being lost Operation living, and set newly from controller master controller to;Wherein, deactivation maneuver, including master controller stops and peer node Remote copy, and stop to the read-write operation of metadata.
It should be noted that if above-mentioned master controller is the master controller of source node, then peer node is purpose node;If Above-mentioned master controller is the master controller of purpose node, then peer node is source node.
Metadata mainly describes data attribute information to describe the data of data, for supporting instruction such as to store position It sets, the functions such as historical data, resource lookup, file record.
Further, detect the master controller of source node or destination node deposit when abnormal, to master controller carry out After deactivation maneuver, further include:The current processing status that data are received to master controller judges;If current processing status For untreated state, then master controller generates the error code of data, and sends error code to client;If currently processed shape State is to handle state, then master controller interrupts data processing, generates the error code of data, and send mistake to client Code;If current processing status is pending internal callback state, master controller executes internal readjustment to data, and at generation Manage result.
It should be noted that the data in untreated state, to come into master controller but not carrying out corresponding position also The data of reason;Data in the state that handling carry out remote copy processing to data for master controller but do not give birth to also At the data of caching;Data in pending internal callback state, generate for master controller and cache and pending inside is waited to return The data of tune.
Step 103:New master controller will be set as from controller, and according to pre-set remote copy information to newly leading Controller is operated into line activating, wherein activation operation, including new master controller open the remote copy with peer node, read Metadata.
You need to add is that remote copy information includes needed for the remote copy realized between source node and destination node The information wanted, and new master controller opens the remote copy with peer node using the required information of remote copy and reads member Data are technical process well-known to those skilled in the art, therefore, are not repeating the process here.
As can be seen that by the master controller in source node and the master controller from controller and destination node and from control Remote copy information is respectively provided in device so that when one of source node or destination node controller break down, source node Or destination node can utilize another controller that remote copy function is passed through itself by pre-set remote copy information It realizes, i.e., remote copy function switch is ensured that into backing up in realtime for user data to another controller of itself.
Referring to Fig. 2, the figure shows another remote copy methods provided in an embodiment of the present invention, with the master control of source node Device processed automatically switches to remote copy when breaking down for the slave controller of source node, is proposed to the embodiment of the present invention remote Journey clone method is described in detail, and method includes:
Step 201:Master controller to source node and the master controller from controller and destination node and from control Remote copy information is respectively set in device;
Step 202:The master controller of source node receives when cancelling data processing instructions, to source node and destination node Remote copy carries out data jamming;
Wherein, when the master controller of source node receives cancellation data processing instructions, illustrate that the master controller of source node goes out Existing failure.The master controller of source node will carry out data jamming operation with the remote copy of peer node, i.e., no longer receives data Processing request, stops the remote copy with peer node.
Step 203:The master controller of source node carries out the data having been received according to the current processing status of data Corresponding processing;
Step 204:The master controller of source node is set to, newly from controller, the slave controller of source node to be set as new Master controller;
Step 205:The new master controller of source node is opened and destination node according to pre-set remote copy information Metadata is read in remote copy.
A kind of remote copy method of the offer of the present invention, by master controller to source node and from controller, and The master controller of destination node and it is respectively provided with remote copy information from controller, wherein remote copy information, including realize source section The required information of remote copy between point and destination node;Exist in the master controller for detecting source node or destination node When abnormal, deactivation maneuver is carried out to master controller, and master controller is set newly from controller to;It will be set as new from controller Master controller, and new master controller is operated into line activating according to pre-set remote copy information, it ensure that user data Back up in realtime, improve the reliability of user data transmission.
Referring to Fig. 3, the figure shows a kind of remote copy system provided in an embodiment of the present invention, which includes:Setting Device 301, inactivation device 302 and activation device 303, wherein:
Device 301 is set, for the master controller of source node and from controller and the master controller of destination node and From controller, it is respectively provided with remote copy information, wherein remote copy information, including realize between source node and destination node The required information of remote copy;
Device 302 is inactivated, for detecting that the master controller of source node or destination node deposits when abnormal, to main control Device carries out deactivation maneuver, and sets newly from controller master controller to, wherein deactivation maneuver, including master controller stop with The remote copy of peer node, and stop the read-write operation to metadata;
Device 303 is activated, is pre-set for new master controller will to be set as from controller, and according to setting device 301 Remote copy information to new master controller into line activating operate, wherein activation operation, including new master controller open and opposite end Metadata is read in the remote copy of node.
Further, setting device 301 is additionally operable to the master controller of source node and from controller and destination node Master controller and from controller, be respectively provided with after remote copy information, the master controller of source node, source node from control The slave controller of device, the master controller of destination node and destination node establishes connection between any two.
Further, inactivation device 302 is additionally operable to after carrying out deactivation maneuver to master controller, is received to master controller Current processing status to data is judged;If current processing status is untreated state, master controller generates data Error code, and send error code to client;If current processing status is the state that handling, master controller interrupts number According to processing, the error code of data is generated, and error code is sent to client;If current processing status returns for pending inside Tune state, then master controller executes internal readjustment to data, and generates handling result.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not limited to the present invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (4)

1. a kind of remote copy method, which is characterized in that including:
Master controller to source node and the master controller from controller and destination node and from controller, are respectively provided with long-range Copy Info, the master controller of source node, the slave controller of source node, the master controller of destination node and destination node from Controller establishes connection between any two;Wherein, remote copy information includes remote between realization source node and destination node Journey replicates required information;Remote copy information include user data mark, data transmission block size, data check type, Message transmission rate, network connection information;
Detect the master controller of source node or destination node deposit when abnormal, to the master controller carry out deactivation maneuver, And set newly from controller the master controller to, wherein deactivation maneuver includes that master controller stopping is remote with peer node Journey replicates, and stops the read-write operation to metadata;
To be set as new master controller from controller, and according to pre-set remote copy information to the new master controller into Line activating operates, wherein activation operation includes the remote copy of new master controller unlatching and peer node, reads metadata.
2. remote copy method according to claim 1, which is characterized in that in the master for detecting source node or destination node Controller is deposited when abnormal, after carrying out deactivation maneuver to the master controller, further includes:
The current processing status that data are received to the master controller judges;If current processing status is untreated shape State, then the master controller generates the error code of data, and sends the error code to client;If current processing status To handle state, then the master controller interrupts data processing, generates the error code of data, and send institute to client State error code;If current processing status is pending internal callback state, the master controller executes internal return to data It adjusts, and generates handling result.
3. a kind of remote copy system, which is characterized in that including:Device, inactivation device and activation device are set, wherein:
The setting device, for the master controller of source node and from controller and destination node master controller and from Controller is respectively provided with remote copy information, in the master control of the master controller of source node, the slave controller, destination node of source node Device processed and establishing between any two for the slave controller of destination node connect;Wherein, remote copy information, including realize source node The required information of remote copy between destination node;Remote copy information includes user data mark, data transmission block Size, data check type, message transmission rate, network connection information;
The inactivation device, for detecting that the master controller of source node or destination node deposits when abnormal, to the master control Device processed carries out deactivation maneuver, and sets newly from controller the master controller to, wherein deactivation maneuver, including master controller Stop the remote copy with peer node, and stops the read-write operation to metadata;
The activation device, for new master controller will to be set as from controller, and it is pre-set according to the setting device Remote copy information to the new master controller into line activating operate, wherein activation operation, including new master controller open with it is right The remote copy of end node reads metadata from controller.
4. remote copy system according to claim 3, which is characterized in that the inactivation device is additionally operable to:
After carrying out deactivation maneuver to the master controller, to the master controller receive the current processing status of data into Row judges;If current processing status is untreated state, the master controller generates the error code of data, and to client Send the error code;If current processing status is the state that handling, the master controller interrupts data processing, generates The error code of data, and send the error code to client;If current processing status is pending internal callback state, Then the master controller executes internal readjustment to data, and generates handling result.
CN201510674437.8A 2015-10-16 2015-10-16 A kind of remote copy method and system Active CN105278522B (en)

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 CN105278522A (en) 2016-01-27
CN105278522B true 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 (6)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4993913B2 (en) * 2006-01-13 2012-08-08 株式会社日立製作所 Storage control device and data management method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN105278522A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
JP5624655B2 (en) Message to transfer backup manager in distributed server system
US9934111B2 (en) Control and data transmission system, process device, and method for redundant process control with decentralized redundancy
CN106357787A (en) Storage disaster tolerant control system
CN104765661B (en) The multinode hot spare method of Metadata Service node in a kind of cloud storage service
CN104486128B (en) A kind of system and method for realizing redundancy heartbeat between dual controller node
CN108712332A (en) A kind of communication means, system and device
US20130294227A1 (en) Redundant control device and network system
JP2005332354A (en) Remote copying system
JP2004021556A (en) Memory control device and control process thereof
WO2019095124A1 (en) Method and device for switching data transmission state of serial port
CN109104347A (en) Gateway shift process, system and its apparatus based on CANopen agreement transmission data
JP4964666B2 (en) Computer, program and method for switching redundant communication paths
CN110335390A (en) A kind of two-sided jam plate control method, device, two-sided cabinet and storage medium
CN105278522B (en) A kind of remote copy method and system
CN114553900B (en) Distributed block storage management system, method and electronic equipment
US20100259380A1 (en) Event detection control method and system
CN107038094A (en) A kind of data back up method and device
CN110674192A (en) Redis high-availability VIP (very important person) drifting method, terminal and storage medium
JP2010044553A (en) Data processing method, cluster system, and data processing program
CN106250048A (en) The method and device of management storage array
JP5529596B2 (en) Processing method, processing device, communication device, and program
CN104683153B (en) A kind of active and standby MPU control method of cluster routers and its system
JP2004030254A (en) Remote si (storage interface) control system
WO2015146381A1 (en) Data collection system
KR100922725B1 (en) Ethernet Link Duplication Apparatus and Method thereof

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