CN102708150A - Method, device and system for asynchronously copying data - Google Patents

Method, device and system for asynchronously copying data Download PDF

Info

Publication number
CN102708150A
CN102708150A CN2012101061944A CN201210106194A CN102708150A CN 102708150 A CN102708150 A CN 102708150A CN 2012101061944 A CN2012101061944 A CN 2012101061944A CN 201210106194 A CN201210106194 A CN 201210106194A CN 102708150 A CN102708150 A CN 102708150A
Authority
CN
China
Prior art keywords
data
main frame
standby host
treating
copy 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.)
Pending
Application number
CN2012101061944A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2012101061944A priority Critical patent/CN102708150A/en
Publication of CN102708150A publication Critical patent/CN102708150A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention provides a method, a device and a system for asynchronously copying data. The method is applied to the system for asynchronously copying data, the system comprises a host computer, a standby computer and a third-party device, and the method is applied to the third-party device, wherein the method comprises the following steps: obtaining the data to be copied from the host computer when the host computer is abnormal in operation, wherein the data to be copied is the data stored in the host computer to be asynchronously copied to the standby computer; and sending the data to be copied to the standby computer. According to the method, the device and the system for asynchronously copying data in the embodiment of the invention, the third-party device is additionally arranged, the standby computer can still obtain the incremental data of the host computer when the host computer is in an abnormal condition so as to ensure the consistency between the data of the standby computer and the data of the host computer, so that the problem of the data loss caused by the abnormal condition of the host computer for the asynchronous data copy between the host computer and the standby computer can be solved.

Description

The methods, devices and systems of asynchronous replication of data
Technical field
The embodiment of the invention relates to database field, and more specifically, relates to a kind of methods, devices and systems of database asynchronous replication of data.
Background technology
In the system that needs high availability (HA, High Availability) of industries such as bank, telecommunications, can use the database two-shipper usually.In the database two-shipper, externally provide the node of service to be referred to as main frame, and the another one node is referred to as standby host.Generally speaking, when main frame broke down, system can switch to standby host and continue to provide service by standby host.Under the situation of database two-node cluster hot backup, all in operation, main frame need copy data to standby host for main frame and standby host.
The mode that data are duplicated between the active and standby machine of database comprises synchronization replication, half synchronization replication or asynchronous replication.
Under the mode of synchronization replication, main frame can wait for that standby host accomplishes same operation, and this mode can guarantee that data are not lost but system performance but receives very big influence.
In the process of asynchronous replication, main frame can be monitored the connection request of standby host at certain port.In case receive the connection request of standby host; Will start a thread that sends Redo (reforming) daily record; This thread goes at set intervals to check whether main frame writes new Redo daily record, if find that the Redo daily record that newly writes is arranged, sends to standby host to the Redo daily record that this part newly writes so.Incremental replication is exactly that Redo daily record newly-increased after duplicating last time is sent to standby host.Carry out newly-increased Redo daily record in that standby host is local after the Redo daily record that standby host obtains increasing newly, thus guaranteed and main frame between the consistance of data.That is to say that under the mode of asynchronous replication, main frame is done incremental replication with standby host at set intervals, thereby guarantee the consistance of data between the active and standby machine.The advantage of asynchronous replication mode is that main frame need not to wait for standby host, so performance can be higher than synchronous reproduction mode.
But; Under the mode of asynchronous replication; If take place that main frame cuts out unusually, system's power down, main frame process exception or active and standby machine switch main frame abnormal occurrencies such as unusual; System will be directly switch to standby host, possibly cause part Redo daily record not copy to the situation of standby host like this, and inconsistent situation will appear in the data between the at this moment active and standby machine.Therefore, after the unusual main frame of appearance restarts, because part Redo daily record does not copy to standby host, will have to carry out full dose between the active and standby machine and duplicate, the whole Redo daily records that are about on the main frame copy to standby host again.
This shows that the shortcoming of asynchronous replication mode is that when main frame was unusual, part Redo daily record possibly can't copy to standby host, thereby causes loss of data.In addition, the mode of half synchronization replication is a synchronous reproduction mode and the combining of asynchronous replication mode, and therefore has the situation of above-mentioned loss of data equally.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems that solve loss of data in the database asynchronous replication, be intended to solve between active and standby machine, carry out data when duplicating because the problem of the loss of data that main frame causes unusually.
On the one hand, a kind of system of asynchronous replication of data is provided, this system comprises: main frame, standby host and third party's device, and said main frame is used for: copy data is treated in storage, and the said copy data of treating is the data that said main frame need be replicated asynchronously to said standby host; Move the connection request of just often monitoring said standby host at itself, when receiving the connection request of said standby host, send the said copy data of treating to said standby host according to said connection request; Check the said incremental condition of treating copy data at set intervals; And incremental data sent to said standby host; To be implemented in asynchronous replication of data between said main frame and the said standby host, said incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to said standby host on the said main frame; Said third party's device is used for: when the main frame operation exception, obtain from said main frame and treat copy data, the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host; The said copy data of treating is sent to said standby host; Said standby host is used for: receive the data that said main frame sends; Perhaps, receive the data that said third party's device sends.
On the other hand; A kind of method of asynchronous replication of data is provided; This method is applied to the system of asynchronous replication of data, and said system comprises main frame, standby host and third party's device, and said method is applied to said third party's device; Said method comprises: when the main frame operation exception, obtain from said main frame and treat copy data, the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host; The said copy data of treating is sent to said standby host.
On the other hand; A kind of device of asynchronous replication of data is provided; This device and main frame and standby host are configured for the system of asynchronous replication of data; Said device comprises: acquiring unit, and be used for when the main frame operation exception obtaining and treat copy data from said main frame, the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host; Transmitting element is used for the said copy data of treating is sent to said standby host.
On the other hand, a kind of system of asynchronous replication of data is provided, this system comprises: main frame, standby host and shared disk, and said shared disk is used for: copy data is treated in storage, and the said copy data of treating is the data that said main frame need be replicated asynchronously to said standby host; Said main frame is used for: move the connection request of just often monitoring said standby host at itself; When receiving the connection request of said standby host, read the said copy data of treating, and send the said copy data of treating to said standby host according to said connection request from said shared disk; Said standby host is used for: receive the said copy data of treating that said main frame sends; Perhaps, obtain the said copy data of treating from said shared disk.
On the other hand; A kind of method of asynchronous replication of data is provided; This method is applied to the system of asynchronous replication of data, and said system comprises main frame, standby host and shared disk, and said method is applied to said standby host; Said method comprises: just often receive the copy data of treating that said main frame sends in main frame operation, the said copy data of treating is the data that the said main frame of needs stored on the said shared disk is replicated asynchronously to said standby host; When the main frame operation exception, obtain the said copy data of treating from said shared disk.
The methods, devices and systems of the asynchronous replication of data of the embodiment of the invention are through introducing third party's device; So that take place when unusual at main frame; Standby host still can obtain the incremental data on the main frame; And guarantee the data of standby host and the data consistent of main frame, promptly solve when between active and standby machine, carrying out the data asynchronous replication because the problem of the loss of data that main frame causes unusually.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram according to the method for the asynchronous replication of data of the embodiment of the invention.
Fig. 2 shows an embodiment according to the method for the asynchronous replication of data of the embodiment of the invention.
Fig. 3 is the structural representation according to the device of the asynchronous replication of data of the embodiment of the invention.
Fig. 4 is the process flow diagram according to the method for the asynchronous replication of data of the embodiment of the invention.
Fig. 5 shows an embodiment according to the method for the asynchronous replication of data of the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
For solve between active and standby machine, carry out data when duplicating because main frame causes the problem of loss of data unusually, the present invention considers through other means the data that main frame does not send as yet to be sent to standby host.For example, can receive or preserve the data that main frame does not send as yet by third party's device, the data that will do not sent as yet by this third party's device more afterwards send to standby host, perhaps obtain the data of not sending as yet from third party's device by standby host.That is, standby host obtains the data that main frame does not send as yet through third party's device.
The system of such asynchronous replication of data generally includes main frame, standby host and third party's device.Should be understood that third party's device and nonessential be the third party's entity apparatus that is independent of main frame and standby host, and can be arranged on the integrating device on main frame or the standby host.
Generally speaking, main frame is used for storage and treats copy data.Like this, treat that copy data is the data that main frame need be replicated asynchronously to standby host.Move just often at himself, main frame is monitored the connection request of standby host, when receiving the connection request of standby host, treats copy data according to connection request to the standby host transmission.At set intervals, the incremental condition of copy data is treated in the main frame inspection, and incremental data is sent to standby host, to be implemented in asynchronous replication of data between main frame and the standby host.Here, incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to standby host on the main frame.Third party's device is used for when the main frame operation exception obtaining from main frame treats copy data, and this treats that copy data is the data that the needs stored on the main frame are replicated asynchronously to standby host, will treat that then copy data sends to standby host.Standby host is used to receive the data that main frame sends, and perhaps receives the data that third party's device sends.
To combine Fig. 1 to describe the method according to the asynchronous replication of data of the embodiment of the invention below, this method is applied to third party's device.
11, when the main frame operation exception, third party's device obtains from main frame and treats copy data, and this treats that copy data is the data that the needs stored on the main frame are replicated asynchronously to standby host.
Usually, after the main frame operation exception and from main frame obtain treat copy data before, third party's device need be monitored the connection request that standby host sends to main frame, the connection request that the said standby host of said monitoring sends to said main frame.For example, third party's device obtains IP (Internet Protocol, procotol) address and the port numbers that is used to monitor the standby host connection request on the main frame, and monitors the connection request of standby host at the pairing port of this IP address and this port numbers.Then, third party's device when listening to the connection request of standby host and standby host connect.
Then, third party's device obtains from main frame and treats copy data.Particularly, third party's device obtains the configuration parameter of main frame, and this configuration parameter comprises the store path of treating copy data; Then, third party's device reads from main frame according to this configuration parameter and treats copy data.
12, third party's device will treat that copy data sends to standby host.
The third party offers standby host with the data that needs duplicate, so that the data of the data of standby host and main frame are consistent.
Particularly; Data on third party's device comparison main frame and the data on the standby host; To confirm to treat the incremental data of copy data, this incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to standby host on the main frame; Then, third party's device will treat that the incremental data of copy data sends to standby host.
Alternatively, main frame and standby host all have the authority of visit third party device, and third party's device obtains the total data of main frame.When main frame takes place when unusual, third party's device and standby host are set up and are got in touch, thus the relatively total data (being the total data of main frame) of third party's device and the total data of standby host, thus confirm the data that standby host lacks than third party's device, i.e. incremental data.The data that third party's device duplicates needs (for example, incremental data) offer standby host, so that the data of the data of standby host and main frame are consistent.
By on can know; The method of the asynchronous replication of data of the embodiment of the invention is through introducing third party's device; Take place when unusual at main frame; Guarantee that standby host still can obtain the incremental data on the main frame, promptly solve between active and standby machine, carry out data when duplicating because the problem of the loss of data that main frame causes unusually.
The embodiment of the invention proposes to receive or preserve the Redo daily record that main frame does not send as yet by third party's device; The Redo daily record that to do not sent as yet by this third party's device more afterwards sends to standby host, perhaps obtains the Redo daily record of not sending as yet from third party's device by standby host.That is, standby host obtains the Redo daily record that main frame does not send as yet through third party's device.
For example, a solution is to transmit the Redo daily record through network, and promptly third party's device serves as the Redo daily record that main frame sends increment.Optional, a solution is that standby host is through visiting the Redo daily record of third party's device acquisition increments such as shared disk in addition.Consistent when the Redo daily record of the Redo of main frame daily record and standby host, just can guarantee the data of main frame and the data consistent of standby host.Because standby host just can obtain the data consistent with main frame as long as carry out the Redo daily record.
To combine Fig. 2 to describe one embodiment of the present of invention below, specify how standby host obtains the Redo daily record that main frame do not send as yet through third party's device Hatool (High Availability Tool, high availability instrument) embodiment.Generally speaking, third party's device Hatool is configured on the main frame.Because when main frame is unusual, standby host will switch to main frame, therefore can on all nodes, all dispose Hatool.
Particularly, when main frame was unusual, third party's device Hatool can serve as main frame and standby host carries out alternately, to send the Redo daily record to standby host.
Generally speaking, under normal circumstances, main frame can be monitored the connection request of standby host at certain port, in case receive the connection request of standby host, main frame just starts a thread that sends the Redo daily record.This thread goes to check the Redo daily record of increment and send to standby host at set intervals.
When main frame takes place when unusual, third party's device Hatool serves as main frame, and the same port that communicates at main frame and standby host is monitored the connection request of standby host, in case listen to the connection request of standby host, sends all increment Redo daily records.All increment Redo daily records are meant that all need send to the Redo daily record of standby host, and usually, a database statement (for example SQL statement) can produce several Redo daily records.Increment Redo daily record be on the main frame the Redo daily record with respect to the Redo daily record on the standby host have more that part of.Because third party's device Hatool has sent all increment Redo daily records, after the unusual main frame of generation was restarted, main frame need not to carry out full dose Redo daily record and duplicates, and promptly need not Redo whole on the main frame is copied on the standby host again like this.
As shown in Figure 2, the workflow after third party's device Hatool starts details as follows:
The first step, third party's device Hatool obtains the configuration parameter of main frame, for example store path of Redo daily record etc.
In second step,, create the lock file, to guarantee that main frame can't start when third party's device Hatool moves for fear of conflicting mutually with the service processes of main frame.
In the 3rd step, third party's device Hatool reads the IP address that stores main frame and standby host on the main frame and the persistence file of port numbers, obtains the IP address and the port numbers of the connection request of monitoring standby host on the main frame.
The 4th step, the connection request of the pairing port of the IP address that third party's device Hatool monitors on main frame and port numbers monitoring standby host, and when listening to the connection request of standby host and standby host establish a communications link.
After establishing a communications link with standby host, obtain the information of the database version of standby host, and compare with the information of the database version of main frame, if the database version of main frame and standby host is incompatible, third party's device Hatool then withdraws from.Otherwise third party's device Hatool normally moves.
The 5th step; Read the database control documents on the main frame; From this database control documents, obtain the fileinfo of Redo daily record; And obtain the fileinfo of Redo daily record from standby host, the fileinfo of two Redo daily records is compared, thereby increment Redo daily records all on the main frame is sent to standby host.Can guarantee that thus all increment Redo daily records all can be sent to standby host, and not have the situation of omission.
In the 6th step, after completion is sent in all increment Redo daily records, withdraw from automatically, and delete the lock file that generates when starting.
More than be exactly when main frame is unusual, third party's device Hatool is connected with standby host and accomplishes the overall process of evening up the Redo daily record.
In practical application, can use the two-node cluster script to control the startup of third party's device Hatool.For example, when two-shipper between main frame and the standby host taking place switch, standby host uses the two-node cluster script to detect the state of main frame, if find that main frame is unusual, then standby host uses script startup third party device Hatool.After third party's device Hatool withdraws from, standby host is upgraded to main frame.
Below will combine Fig. 3 to describe third party's device of above-mentioned asynchronous replication of data.This third party's device and main frame and standby host are configured for the system of asynchronous replication of data, and this third party's device can be arranged on main frame or the standby host.
As shown in Figure 3, third party's device 30 comprises acquiring unit 31 and transmitting element 32.Wherein, acquiring unit 31 is used for when the main frame operation exception obtaining from main frame treats copy data, and this treats that copy data is the data that the needs stored on the main frame are replicated asynchronously to standby host.Transmitting element 32 is used for this is treated that copy data sends to standby host.
Further, acquiring unit 31 can comprise parameter acquisition module 311 and data read module 312.Wherein, parameter acquisition module 311 is used to obtain the configuration parameter of main frame, and this configuration parameter comprises the store path of treating copy data; Data read module 312 is used for reading this according to this configuration parameter from main frame and treats copy data.
Further, transmitting element 32 can comprise increment determination module 321 and data transmission blocks 322.Wherein, Increment determination module 321 is used for data and the data on the standby host on the comparison main frame; Treat the incremental data of copy data to confirm this, this incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to standby host on the main frame; Data transmission blocks 322 is used for the incremental data of treating copy data is sent to standby host.
Alternatively, third party's device 30 can also comprise monitoring unit 33 and linkage unit 34.Wherein, monitoring unit 33 be used for after the main frame operation exception and from main frame obtain treat copy data before, monitor the connection request that standby host sends to main frame.Linkage unit 34 is used for when listening to said connection request and standby host connects.
Further, monitoring unit 33 can comprise acquisition module 331 and monitor module 332.Acquisition module 331 is used to obtain the IP address and the port numbers that are used to monitor the standby host connection request of main frame; Monitor module 332 and be used for connection request at above-mentioned IP address and the pairing port monitoring of port numbers standby host.
By on can know that third party's device of the embodiment of the invention takes place to guarantee that standby host still can obtain the incremental data on the main frame when unusual at main frame, promptly solve between active and standby machine, carry out data when duplicating because the problem of the loss of data that main frame causes unusually.
Another embodiment of the present invention has also been described the system of asynchronous replication of data.This system comprises main frame, standby host and shared disk.Particularly, shared disk is used for storage and treats copy data, and this treats that copy data is the data that main frame need be replicated asynchronously to standby host; Main frame is used for just often monitoring the connection request of standby host in itself operation, when receiving the connection request of standby host, reads from shared disk and treats copy data, and send this according to said connection request to standby host and treat copy data; Standby host is used to receive the copy data of treating of main frame transmission, perhaps obtains from shared disk and treats copy data.
To combine Fig. 4 to describe the method for the asynchronous replication of data of the system that is applied to above-mentioned asynchronous replication of data below.This method may further comprise the steps.
41, in the main frame operation just often, standby host receives the copy data of treating of main frame transmission, and this treats that copy data is that the main frame of storing on the shared disk that needs is replicated asynchronously to the data of standby host.
42, when the main frame operation exception, standby host obtains this from shared disk and treats copy data.
For example, when the main frame operation exception, standby host obtains the incremental data of treating copy data from shared disk, and this incremental data is the data of treating the copy data increase that copy data receives than standby host from main frame of treating of storing on the shared disk.
Particularly, main frame and standby host all have the authority of visit shared disk.Under normal circumstances, the Redo daily record of host access shared disk.That is to say that main frame is consistent with the Redo daily record of shared disk.When main frame was unusual, shared disk was suspended on the standby host, and standby host obtains not synchronous Redo daily record from shared disk, so also can reach the problem that solves the standby host loss of data.
Referring to Fig. 5, after main frame was unusual, shared disk was suspended on the standby host.The sharing position that the normally active and standby machine in the position of shared disk can both be visited is such as shared magnetic battle array.The Redo daily record of the database contrast of standby host self and the Redo daily record on the shared disk just can be found the Redo daily record that standby host lacks than shared disk through comparison, and this part data is exactly the incremental data that need duplicate.Then, standby host reads above-mentioned increment Redo daily record.
By on can know; The method of the asynchronous replication of data of the embodiment of the invention is owing to introduce third party's device; Take place when unusual at main frame; Guarantee that standby host still can obtain the incremental data on the main frame, promptly solve between active and standby machine, carry out data when duplicating because the problem of the loss of data that main frame causes unusually.
Those of ordinary skills can recognize, the unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The those skilled in the art can be well understood to, for the convenience described with succinct, the concrete course of work of the system of foregoing description, device and unit can repeat no more at this with reference to the corresponding process among the preceding method embodiment.
In several embodiment that the application provided, should be understood that the system that is disclosed, apparatus and method can realize through other mode.For example, device embodiment described above only is schematically, for example; The division of said unit; Only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or assembly can combine or can be integrated into another system; Or some characteristics can ignore, or do not carry out.Another point, the coupling each other that shows or discuss or directly coupling or communication to connect can be through some interfaces, the indirect coupling of device or unit or communication connect, and can be electrically, machinery or other form.
Said unit as separating component explanation can or can not be physically to separate also, and the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of unit wherein of reality.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing unit, also can be that the independent physics in each unit exists, and also can be integrated in the unit two or more unit.
If said function realizes with the form of SFU software functional unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words or the part of this technical scheme can be come out with the embodied of software product; This computer software product is stored in the storage medium; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of the said method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), RAS (RAM, Random Access Memory), magnetic disc or CD.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; Can expect easily changing or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.

Claims (14)

1. the system of an asynchronous replication of data is characterized in that, said system comprises: main frame, standby host and third party's device, wherein:
Said main frame is used for: copy data is treated in storage, and the said copy data of treating is the data that said main frame need be replicated asynchronously to said standby host; Move the connection request of just often monitoring said standby host at itself, when receiving the connection request of said standby host, send the said copy data of treating to said standby host according to said connection request; Check the said incremental condition of treating copy data at set intervals; And incremental data sent to said standby host; To be implemented in asynchronous replication of data between said main frame and the said standby host, said incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to said standby host on the said main frame;
Said third party's device is used for: when the main frame operation exception, obtain from said main frame and treat copy data, the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host; The said copy data of treating is sent to said standby host;
Said standby host is used for: receive the data that said main frame sends; Perhaps, receive the data that said third party's device sends.
2. the method for an asynchronous replication of data is characterized in that, said method is applied to the system of asynchronous replication of data, and said system comprises main frame, standby host and third party's device, and said method is applied to said third party's device, and said method comprises:
When the main frame operation exception, obtain from said main frame and treat copy data, the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host;
The said copy data of treating is sent to said standby host.
3. method according to claim 2 is characterized in that, said obtaining from said main frame treats specifically to comprise copy data:
Obtain the configuration parameter of said main frame, said configuration parameter comprises the said store path of treating copy data;
Read the said copy data of treating according to said configuration parameter from said main frame.
4. according to claim 2 or 3 described methods, it is characterized in that, said the said copy data of treating sent to said standby host, specifically comprise:
Data on data on the more said main frame and the said standby host; To confirm the said incremental data of treating copy data, said incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to said standby host on the said main frame;
The said incremental data of copy data of treating is sent to said standby host.
5. according to each described method in the claim 2 to 4, it is characterized in that after said main frame operation exception, said obtaining from said main frame treats that before the copy data, said method also comprises:
Monitor the connection request that said standby host sends to said main frame;
When listening to said connection request and said standby host connect.
6. method according to claim 5 is characterized in that, the said standby host of said monitoring specifically comprises to the connection request that said main frame sends:
Obtain the IP address and the port numbers that are used to monitor said standby host connection request of said main frame;
Monitor the connection request of said standby host at said IP address and the pairing port of said port numbers.
7. the device of an asynchronous replication of data is characterized in that, said device and main frame and standby host are configured for the system of asynchronous replication of data, and said device comprises:
Acquiring unit is used for when the main frame operation exception obtaining from said main frame and treats copy data, and the said copy data of treating is the data that the needs stored on the said main frame are replicated asynchronously to said standby host;
Transmitting element is used for the said copy data of treating is sent to said standby host.
8. device according to claim 7 is characterized in that, said acquiring unit comprises:
Parameter acquisition module is used to obtain the configuration parameter of said main frame, and said configuration parameter comprises the said store path of treating copy data;
Data read module is used for reading the said copy data of treating according to said configuration parameter from said main frame.
9. according to claim 7 or 8 described devices, it is characterized in that said transmitting element comprises:
The increment determination module; Be used for data and the data on the said standby host on the more said main frame; To confirm the said incremental data of treating copy data, said incremental data is that the copy data of treating of current storage is compared the data of increase with the copy data of treating that sends to said standby host on the said main frame;
Data transmission blocks is used for the said incremental data of copy data of treating is sent to said standby host.
10. according to each described device in the claim 7 to 9, it is characterized in that, also comprise:
Monitoring unit is used for after said main frame operation exception, and said obtaining from said main frame treats to monitor the connection request that said standby host sends to said main frame before the copy data;
Linkage unit is used for when listening to said connection request and said standby host connects.
11. device according to claim 10 is characterized in that, said monitoring unit comprises:
Acquisition module is used to obtain the IP address and the port numbers that are used to monitor said standby host connection request of said main frame;
Monitor module, be used for monitoring the connection request of said standby host at said IP address and the pairing port of said port numbers.
12. the system of an asynchronous replication of data is characterized in that, said system comprises: main frame, standby host and shared disk, wherein:
Said shared disk is used for: copy data is treated in storage, and the said copy data of treating is the data that said main frame need be replicated asynchronously to said standby host;
Said main frame is used for: move the connection request of just often monitoring said standby host at itself; When receiving the connection request of said standby host, read the said copy data of treating, and send the said copy data of treating to said standby host according to said connection request from said shared disk;
Said standby host is used for: receive the said copy data of treating that said main frame sends; Perhaps, obtain the said copy data of treating from said shared disk.
13. the method for an asynchronous replication of data is characterized in that, said method is applied to the system of asynchronous replication of data, and said system comprises main frame, standby host and shared disk, and said method is applied to said standby host, and said method comprises:
Just often receive the copy data of treating that said main frame sends in main frame operation, the said copy data of treating is the data that the said main frame of needs stored on the said shared disk is replicated asynchronously to said standby host;
When the main frame operation exception, obtain the said copy data of treating from said shared disk.
14. method according to claim 13 is characterized in that, saidly when the main frame operation exception, obtains the said copy data of treating from said shared disk, specifically comprises:
When said main frame operation exception, obtain the said incremental data of treating copy data from said shared disk, said incremental data is that copy data is than the data that copy data increases of treating that receive from said main frame for treating of storing on the said shared disk.
CN2012101061944A 2012-04-12 2012-04-12 Method, device and system for asynchronously copying data Pending CN102708150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101061944A CN102708150A (en) 2012-04-12 2012-04-12 Method, device and system for asynchronously copying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101061944A CN102708150A (en) 2012-04-12 2012-04-12 Method, device and system for asynchronously copying data

Publications (1)

Publication Number Publication Date
CN102708150A true CN102708150A (en) 2012-10-03

Family

ID=46900917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101061944A Pending CN102708150A (en) 2012-04-12 2012-04-12 Method, device and system for asynchronously copying data

Country Status (1)

Country Link
CN (1) CN102708150A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139308A (en) * 2013-02-27 2013-06-05 华为技术有限公司 Database system and data synchronization method thereof
CN104536846A (en) * 2014-12-17 2015-04-22 杭州华为数字技术有限公司 Data backing up method and device
CN104750755A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Method and system for recovering data after switching between main database and standby database
CN105827435A (en) * 2016-03-09 2016-08-03 中国工商银行股份有限公司 System for maintaining continuous business operation based on double center systems and method thereof
CN105933379A (en) * 2016-04-01 2016-09-07 浪潮电子信息产业股份有限公司 Business processing method, device and system
CN105975579A (en) * 2016-05-05 2016-09-28 北京思特奇信息技术股份有限公司 Primary and backup copying method of memory database and memory database system
WO2018137327A1 (en) * 2017-01-26 2018-08-02 华为技术有限公司 Data transmission method for host and standby devices, control node, and database system
CN109542631A (en) * 2018-11-22 2019-03-29 上海达梦数据库有限公司 A kind of recurrence method, apparatus, server and the storage medium of standby host
CN109871369A (en) * 2018-12-24 2019-06-11 天翼电子商务有限公司 Database switching method, system, medium and device
CN110188142A (en) * 2019-06-04 2019-08-30 成都鼎桥通信技术有限公司 Long-distance disaster method of data synchronization, device, server and storage medium
CN111125040A (en) * 2018-10-31 2020-05-08 华为技术有限公司 Method, apparatus and storage medium for managing redo log
CN112286732A (en) * 2020-12-02 2021-01-29 上海英方软件股份有限公司 Method and system for recovering unsynchronized data to standby machine when database synchronization is abnormal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690974A (en) * 2004-04-28 2005-11-02 国际商业机器公司 System and method for resynchronization of time after minimized backup of system and system failure
CN101118509A (en) * 2007-09-12 2008-02-06 华为技术有限公司 Process, device and system for EMS memory data-base remote disaster tolerance
CN101557320A (en) * 2009-05-25 2009-10-14 杭州华三通信技术有限公司 Disaster tolerance realizing method and communication equipment thereof
CN101714169A (en) * 2009-12-01 2010-05-26 广州从兴电子开发有限公司 Method and system for transmitting data on multiple nodes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690974A (en) * 2004-04-28 2005-11-02 国际商业机器公司 System and method for resynchronization of time after minimized backup of system and system failure
CN101118509A (en) * 2007-09-12 2008-02-06 华为技术有限公司 Process, device and system for EMS memory data-base remote disaster tolerance
CN101557320A (en) * 2009-05-25 2009-10-14 杭州华三通信技术有限公司 Disaster tolerance realizing method and communication equipment thereof
CN101714169A (en) * 2009-12-01 2010-05-26 广州从兴电子开发有限公司 Method and system for transmitting data on multiple nodes

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139308A (en) * 2013-02-27 2013-06-05 华为技术有限公司 Database system and data synchronization method thereof
CN104750755B (en) * 2013-12-31 2018-06-15 阿里巴巴集团控股有限公司 A kind of data covering method and system after database active-standby switch
CN104750755A (en) * 2013-12-31 2015-07-01 阿里巴巴集团控股有限公司 Method and system for recovering data after switching between main database and standby database
CN104536846A (en) * 2014-12-17 2015-04-22 杭州华为数字技术有限公司 Data backing up method and device
CN105827435A (en) * 2016-03-09 2016-08-03 中国工商银行股份有限公司 System for maintaining continuous business operation based on double center systems and method thereof
CN105933379B (en) * 2016-04-01 2018-10-09 浪潮电子信息产业股份有限公司 A kind of method for processing business, equipment and system
CN105933379A (en) * 2016-04-01 2016-09-07 浪潮电子信息产业股份有限公司 Business processing method, device and system
CN105975579A (en) * 2016-05-05 2016-09-28 北京思特奇信息技术股份有限公司 Primary and backup copying method of memory database and memory database system
CN105975579B (en) * 2016-05-05 2019-09-17 北京思特奇信息技术股份有限公司 A kind of active and standby clone method and memory database system of memory database
WO2018137327A1 (en) * 2017-01-26 2018-08-02 华为技术有限公司 Data transmission method for host and standby devices, control node, and database system
US10831612B2 (en) 2017-01-26 2020-11-10 Huawei Technologies Co., Ltd. Primary node-standby node data transmission method, control node, and database system
CN111125040A (en) * 2018-10-31 2020-05-08 华为技术有限公司 Method, apparatus and storage medium for managing redo log
CN111125040B (en) * 2018-10-31 2023-09-08 华为技术有限公司 Method, device and storage medium for managing redo log
CN109542631A (en) * 2018-11-22 2019-03-29 上海达梦数据库有限公司 A kind of recurrence method, apparatus, server and the storage medium of standby host
CN109871369B (en) * 2018-12-24 2021-03-23 天翼电子商务有限公司 Database switching method, system, medium and device
CN109871369A (en) * 2018-12-24 2019-06-11 天翼电子商务有限公司 Database switching method, system, medium and device
CN110188142A (en) * 2019-06-04 2019-08-30 成都鼎桥通信技术有限公司 Long-distance disaster method of data synchronization, device, server and storage medium
CN112286732A (en) * 2020-12-02 2021-01-29 上海英方软件股份有限公司 Method and system for recovering unsynchronized data to standby machine when database synchronization is abnormal
CN112286732B (en) * 2020-12-02 2022-04-19 上海英方软件股份有限公司 Method and system for recovering unsynchronized data to standby machine when database synchronization is abnormal

Similar Documents

Publication Publication Date Title
CN102708150A (en) Method, device and system for asynchronously copying data
US11163653B2 (en) Storage cluster failure detection
CN106331098B (en) Server cluster system
EP3617886B1 (en) Hot backup system, hot backup method, and computer device
CN102346779B (en) Distributed file system and master control node backup method
CN104679604A (en) Method and device for switching between master node and standby node
KR20110044858A (en) Maintain data indetermination in data servers across data centers
US20120233496A1 (en) Fault tolerance in a parallel database system
CN102394914A (en) Cluster brain-split processing method and device
WO2016183967A1 (en) Failure alarm method and apparatus for key component, and big data management system
CN101808127A (en) Data backup method, system and server
EP3167597A1 (en) Network addressable storage controller with storage drive profile comparison
CN104486438A (en) Disaster-tolerant method and disaster-tolerant device of distributed storage system
CN115658390A (en) Container disaster tolerance method, system, device, equipment and computer readable storage medium
CN116302352A (en) Cluster disaster recovery processing method and device, electronic equipment and storage medium
CN103324554A (en) Standby system device, a control method, and a program thereof
CN111045602A (en) Cluster system control method and cluster system
CN105550230A (en) Method and device for detecting failure of node of distributed storage system
CN116389233B (en) Container cloud management platform active-standby switching system, method and device and computer equipment
CN107528703B (en) Method and equipment for managing node equipment in distributed system
CN110879760B (en) Unified storage system and method and electronic equipment
CN116302716A (en) Cluster deployment method and device, electronic equipment and computer readable medium
CN111309515A (en) Disaster recovery control method, device and system
CN114880717A (en) Data archiving method and device
CN112732495A (en) Information interaction method and device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20121003

RJ01 Rejection of invention patent application after publication