CN102684917B - A kind of data back up method, Apparatus and system - Google Patents

A kind of data back up method, Apparatus and system Download PDF

Info

Publication number
CN102684917B
CN102684917B CN201210126764.6A CN201210126764A CN102684917B CN 102684917 B CN102684917 B CN 102684917B CN 201210126764 A CN201210126764 A CN 201210126764A CN 102684917 B CN102684917 B CN 102684917B
Authority
CN
China
Prior art keywords
running status
node
secondary node
synchrodata
primary 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.)
Active
Application number
CN201210126764.6A
Other languages
Chinese (zh)
Other versions
CN102684917A (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.)
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 CN201210126764.6A priority Critical patent/CN102684917B/en
Publication of CN102684917A publication Critical patent/CN102684917A/en
Application granted granted Critical
Publication of CN102684917B publication Critical patent/CN102684917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment provides a kind of data back up method, Apparatus and system, relate to the communications field, system capacity can be saved, improve systematic function.Described method includes: primary node is arranged at the first running status, secondary node is arranged at the second running status, and periodically described secondary node is arranged at the 3rd running status, so that the synchrodata of primary node is backed up under described 3rd running status by described secondary node;Wherein the degree of power conservation of the second running status is more than the degree of power conservation of described first running status, and the degree of power conservation of described 3rd running status is less than or equal to the degree of power conservation of described second running status.Embodiments of the invention are applied to the data backup in communication system.

Description

A kind of data back up method, Apparatus and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of data back up method, Apparatus and system.
Background technology
In a general communications system, in order to ensure reliability and the system of data when the system failure Uninterrupted operation, it will usually use redundancy technique system core node is backed up.Existing Redundancy technique in our normally used backup method backup node run with primary node Configuring identical, backup node periodically or is triggered by event and backs up described synchrodata.At primary joint Point is when breaking down, and the synchrodata that the application of described secondary node has been backed up takes over primary node The system that continues as provides service.
But, prior art uses identical operation configuration to make active and standby joint due to main-standby nodes Point is in identical power consumption state, and the secondary node being generally in idle condition does not do any industry Business, is but constantly in described identical power consumption state, has so resulted in the waste of system capacity.
Summary of the invention
Embodiments of the invention provide a kind of data back up method, Apparatus and system, can save System capacity, improves systematic function.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
On the one hand, the embodiment of the present invention provides a kind of data back up method, and the method includes:
Primary node is arranged at the first running status, and secondary node is arranged at the second operation shape State, the degree of power conservation of described second running status is more than the energy-conservation journey of described first running status Degree;
After described secondary node being arranged at the 3rd running status with preset time period for the cycle, to Described primary node sends instruction, indicates described primary node that described synchrodata is sent to institute State secondary node, so that described secondary node receives described under described 3rd running status Synchrodata also carries out storage backup to described synchrodata;Described 3rd running status energy-conservation Degree is less than or equal to the degree of power conservation of described second running status.
On the other hand, the embodiment of the present invention provides a kind of data backup device, and this device includes:
Initial setting up unit, for being arranged at the first running status, secondary node by primary node Being arranged at the second running status, the degree of power conservation of described second running status is more than described first fortune The degree of power conservation of row state;
Backup setting unit, for being arranged at described secondary node with preset time period for the cycle After 3rd running status, send indicator to described primary node, indicate described primary node Described synchrodata is sent to described secondary node, so that described secondary node is described Receive described synchrodata under 3rd running status and described synchrodata is carried out storage backup; The degree of power conservation of described 3rd running status is less than or equal to the energy-conservation journey of described second running status Degree.
Another further aspect, the embodiment of the present invention provides a kind of data backup system, and this system includes main With node, secondary node and data backup device,
Described data backup device, for primary node is arranged at the first running status, standby Node is arranged at the second running status;Described secondary node is arranged with preset time period for the cycle After the 3rd running status, send instruction to described primary node, indicate described primary node to incite somebody to action Described synchrodata is sent to described secondary node, so that described secondary node is the described 3rd Receive described synchrodata under running status and described synchrodata is carried out storage backup;Described The degree of power conservation of the second running status is more than the degree of power conservation of described first running status;Described The degree of power conservation of three running statuses is less than or equal to the degree of power conservation of described second running status;
Described primary node, being used for after the described instruction receiving described data backup device will Described synchrodata is sent to described secondary node;
Described secondary node, sends out for receiving described primary node under described 3rd running status The described synchrodata sent, and described synchrodata is carried out storage backup.
Visible, a kind of data back up method of embodiment of the present invention offer, Apparatus and system are logical Cross and primary node is arranged at the first running status, secondary node is arranged at the second operation shape State, and periodically described secondary node is arranged at the 3rd running status, so that described standby The synchrodata of primary node is backed up under described 3rd running status with node;Wherein The degree of power conservation of the second running status, more than the degree of power conservation of described first running status, so makes The secondary node of idle condition is at the running status that energy consumption is relatively low, thus reaches to save system System energy, improves the effect of systematic function.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by right In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, Accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art From the point of view of, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
A kind of data back up method schematic flow sheet that Fig. 1 provides for the embodiment of the present invention;
The another kind of data back up method schematic flow sheet that Fig. 2 provides for the embodiment of the present invention;
The logical construction signal of a kind of data backup device that Fig. 3 provides for the embodiment of the present invention Figure;
Fig. 4 shows for the logical construction of the another kind of data backup device that the embodiment of the present invention provides It is intended to;
The schematic diagram of a kind of data backup system that Fig. 5 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is entered Row clearly and completely describes, it is clear that described embodiment is only a part of embodiment of the present invention, Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not having Have and make the every other embodiment obtained under creative work premise, broadly fall into present invention protection Scope.
Embodiments providing a kind of data back up method, the method can apply to one Data backup device, this device both can be arranged in primary node and/or secondary node, also The self-contained unit of primary node and secondary node can be independently of.
Embodiment 1: as it is shown in figure 1, said method comprising the steps of:
101, primary node being arranged at the first running status, secondary node is arranged at the second fortune Row state.
In order to ensure reliability and the uninterrupted operation of system of data when the system failure, generally Key node in system is provided with a primary node and a secondary node.Wherein, standby Node is for backing up the synchrodata of primary node, thus takes over primary when system malfunctions Node safeguards system properly functioning.
In the embodiment of the present invention, when system initial launch, the data backup device in system will Primary node is arranged at the first running status, and safeguards system can be properly functioning;By secondary node Being arranged at the second running status, the degree of power conservation of described second running status is more than described first fortune The degree of power conservation of row state.Specifically can be by by the processor of secondary node, internal memory, disk (array) and Ethernet, PCIE (Peripheral Component Interconnect Express, peripheral component interconnection) etc. port or equipment be set to dormancy or shutoff, from And realize being arranged at secondary node low energy consumption running status.
In the present embodiment, we can assume that at primary node and secondary node is energy-conservation State has four ranks: one-level power save mode, two grades of power save modes, three grades of power save modes and four Level power save mode.The degree of power conservation of described four power save modes strengthens successively, i.e. the energy-conservation shape of one-level State degree of power conservation is minimum, and level Four power save mode degree of power conservation is the highest.When system is properly functioning, The first running status that described primary node is arranged at can be one-level power save mode, it is ensured that System can be properly functioning;The second running status that described secondary node is arranged at, described Two running statuses are any level power save mode higher than described one-level power save mode degree of power conservation, as Can be two grades of power save modes, three grades of power save modes or level Four power save mode.So with existing skill The identical energy comparing the system of having saved of power save mode of the standby usage node of art, improves system Performance.
102, for the cycle, described secondary node is arranged at the 3rd running status with preset time period After, send instruction to described primary node, indicate described primary node described synchrodata to be sent out Give described secondary node, so that described secondary node connects under described 3rd running status Receive described synchrodata and described synchrodata is carried out storage backup.
In embodiments of the present invention, data backup device can be with described preset time period as week Phase, timing wake-up backup node, runs the running status of described secondary node from described second State is set to the 3rd running status, due to the secondary node the to be ensured same step number to primary node According to backing up, thus the port in described secondary node, described synchrodata backed up and Equipment needs to be in running status, therefore the degree of power conservation of described 3rd running status typically will not be big Degree of power conservation in described second running status.Described secondary node is being set by data backup device After being placed in the 3rd running status, can send instruction to described primary node, described instruction will instruction Described synchrodata is sent to described secondary node by described primary node, and described secondary node will Under described 3rd running status, receive described synchrodata and described synchrodata is deposited Deposit part.
In the present embodiment, if described two grades of power save modes can ensure that secondary node can be right The synchrodata of primary node backs up, then, when periodically backing up data, be System wakes up the 3rd running status of secondary node entrance up and is two grades of power save modes.If secondary node The second running status being in is two grades of power save modes, then the second running status and described 3rd fortune Row state is identical running status;If the second running status that secondary node is in is three grades of joints Can state or level Four power save mode, then carry out standby waking up secondary node incision the 3rd running status up Need during part three grades of power save modes or level Four power save mode switch to two grades of power save modes ensure Accurately synchrodata is backed up.
In sum, a kind of data back up method is embodiments provided, by by primary Node is arranged at the first running status, and secondary node is arranged at the second running status, and cycle Property described secondary node is arranged at the 3rd running status, so that described secondary node is in institute State under the 3rd running status the synchrodata to primary node to back up;Wherein second run shape The degree of power conservation of state, more than the degree of power conservation of described first running status, so makes idle condition Secondary node is in the running status that energy consumption is relatively low, thus reaches to save system capacity, improves system The effect of system performance, meanwhile, described secondary node is in the 3rd operation when carrying out data backup State, enables data backup to normally complete, it is ensured that the reliability of Backup Data.
Embodiment 2: as in figure 2 it is shown, said method comprising the steps of:
201, primary node being arranged at the first running status, secondary node is arranged at the second fortune Row state.
In order to ensure reliability and the uninterrupted operation of system of data when the system failure, generally Key node in system is provided with a primary node and a secondary node.Wherein, standby Node is for backing up the synchrodata of primary node, thus takes over primary when system malfunctions Node safeguards system properly functioning.
In the embodiment of the present invention, when system initial launch, the data backup device in system will Primary node is arranged at the first running status, and safeguards system can be properly functioning;By secondary node Being arranged at the second running status, the degree of power conservation of described second running status is more than described first fortune The degree of power conservation of row state.Specifically can be by by the processor of secondary node, internal memory, disk (array) and Ethernet, PCIE (Peripheral Component Interconnect Express, peripheral component interconnection) etc. port or equipment be set to dormancy or shutoff, from And realize being arranged at secondary node low energy consumption running status.
In the present embodiment, we can assume that at primary node and secondary node is energy-conservation State has four ranks: one-level power save mode, two grades of power save modes, three grades of power save modes and four Level power save mode.The degree of power conservation of described four power save modes strengthens successively, i.e. the energy-conservation shape of one-level State degree of power conservation is minimum, and level Four power save mode degree of power conservation is the highest.When system is properly functioning, The first running status that described primary node is arranged at can be one-level power save mode, it is ensured that System can be properly functioning;The second running status that described secondary node is arranged at, described Two running statuses are any level power save mode higher than described one-level power save mode degree of power conservation, as Can be two grades of power save modes, three grades of power save modes or level Four power save mode.So with existing skill The identical energy comparing the system of having saved of power save mode of the standby usage node of art, improves system Performance.
202, for the cycle, described secondary node is arranged at the 3rd running status with preset time period After, send instruction to described primary node, indicate described primary node described synchrodata to be sent out Give described secondary node, so that described secondary node connects under described 3rd running status Receive described synchrodata and described synchrodata is carried out storage backup.
In embodiments of the present invention, data backup device can be with described preset time period as week Phase, timing wake-up backup node, runs the running status of described secondary node from described second State is set to the 3rd running status, due to the secondary node the to be ensured same step number to primary node According to backing up, thus the port in described secondary node, described synchrodata backed up and Equipment needs to be in running status, therefore the degree of power conservation of described 3rd running status typically will not be big Degree of power conservation in described second running status.Described secondary node is being set by data backup device After being placed in the 3rd running status, can send instruction to described primary node, described instruction will instruction Described synchrodata is sent to described secondary node by described primary node, and described secondary node will Under described 3rd running status, receive described synchrodata and described synchrodata is deposited Deposit part.
In the present embodiment, if described two grades of power save modes can ensure that secondary node can be right The synchrodata of primary node backs up, then, when periodically backing up data, be System wakes up the 3rd running status of secondary node entrance up and is two grades of power save modes.If secondary node The second running status being in is two grades of power save modes, then the second running status and described 3rd fortune Row state is identical running status;If the second running status that secondary node is in is three grades of joints Can state or level Four power save mode, then carry out standby waking up secondary node incision the 3rd running status up Need during part three grades of power save modes or level Four power save mode switch to two grades of power save modes ensure Accurately synchrodata is backed up.
Step 202 is periodically being carried out in embodiments of the present invention, optionally, incites somebody to action described Primary node is arranged at the first running status, after secondary node is arranged at the second running status, Described method also includes:
203, when detecting that the business datum that described primary node receives exceedes predetermined threshold value, inspection When measuring described primary node abnormal conditions or receive backed up in synchronization instruction, indicate described primary joint Described synchrodata is stored in buffer unit by point.
When the situations such as paroxysmal abnormality occurs in primary node, such as when described primary node being detected The business datum received exceedes predetermined threshold value or described primary node abnormal conditions detected, Or when receiving backed up in synchronization instruction, owing to situation occurs that secondary node is the most suddenly Having and be waken up preparatively, therefore first data backup device can indicate described primary node by described Synchrodata is stored in buffer unit.Described buffer unit can be the storage of primary intra-node Unit, it is also possible to hang over the external memory unit on primary node outside being, it is also possible to be a tool Having the independent third party device of storage capacity, this is not limited by the embodiment of the present invention.
204, described secondary node is arranged at the 3rd running status, and indicates described caching single Unit sends described synchrodata to described secondary node, so that described secondary node is described the Receive and store the described synchrodata of backup under three running statuses.
Described synchrodata is stored in caching at the described primary node of instruction by data backup device After unit, or indicating described primary node that described synchrodata is stored in buffer unit Meanwhile, can trigger and wake up backup node up, by the running status of described secondary node from described second Running status is set to the 3rd running status, owing to secondary node to be ensured can be to primary node Synchrodata back up, described synchrodata is backed up by the most described secondary node Port and equipment need to be in running status, therefore the energy that described 3rd running status consumes should be big In the energy consumed equal to described second running status, the energy-conservation journey of the most described 3rd running status Degree is less than or equal to the degree of power conservation of described second running status.
It should be noted that step 202 and step 203 in embodiment 2,204 be different bars The two kinds of processing modes triggered under part: step 202 is in order to ensure the data consistent of main-standby nodes Property, periodically the data of primary node are carried out standby in the case of primary node is properly functioning Part;And step 203,204 be the processing mode that paroxysmal abnormality occurs for primary node. The two can implement simultaneously in embodiments of the present invention, it is also possible to individually implements, above-described embodiment It is preferred embodiment, and the meaning of indefinite.
Further, the data back up method that the embodiment of the present invention 1 or embodiment 2 provide also may be used To include:
After receiving the instruction of standby usage node switches, described secondary node is arranged at the first fortune Row state, so that described primary node completes to switch with described secondary node;
Specifically, detecting that the situations such as abnormal occurs in primary node, or system is assigning standby usage During node switches instruction, described data backup device can allow standby usage node switch.Institute State data backup device receive standby usage node switches instruction after, described secondary node is set It is placed in the first running status;The running status phase of the most described primary node and described secondary node With, it is all the first running status, it is ensured that described primary node is the completeest with described secondary node One-tenth is switched.
After described primary node and described secondary node complete to switch, the standby joint after switching Point is arranged at described second running status, and the primary node after switching is arranged at described first and runs State.
Specifically, after described primary node and described secondary node complete to switch, described data Secondary node after switching can be arranged at described second running status, after switching by back-up device Primary node is arranged at described first running status.Described second running status is more primary joint than now The degree of power conservation of the first running status of point is high, thus has reached to save the purpose of system capacity.
In sum, a kind of data back up method is embodiments provided, by by primary Node is arranged at the first running status, and secondary node is arranged at the second running status, and cycle Property described secondary node is arranged at the 3rd running status, so that described secondary node is in institute State under the 3rd running status the synchrodata to primary node to back up;Wherein second run shape The degree of power conservation of state, more than the degree of power conservation of described first running status, so makes idle condition Secondary node is in the running status that energy consumption is relatively low, thus reaches to save system capacity, improves system The effect of system performance, meanwhile, described secondary node is in the 3rd operation when carrying out data backup State, enables data backup to normally complete, it is ensured that the reliability of Backup Data;Further , it is contemplated that described secondary node, except periodically triggering, also can be triggered backup by event described same Step data, can be the most standby by the data that need to synchronize under receiving the situation that primary node is abnormal Part, to buffer unit, then transmits synchronization data to the secondary node waken up up by buffer unit, Save avoid to a certain extent on the premise of energy consumption data in emergency situations under loss;Enter One step, by arranging the energy-conservation of the secondary node after switching after completing the switching of main-standby nodes State achieves the energy-saving effect of system and maintains.
As it is shown on figure 3, the embodiment of the present invention additionally provides a kind of data backup device 300.Number Above-mentioned data back up method, described data backup device have been used for it according to back-up device 300 300 may include that initial setting up unit 301, backup setting unit 302.
Initial setting up unit 301, is arranged at the first running status, secondary node by primary node It is arranged at the second running status.
In order to ensure reliability and the uninterrupted operation of system of data when the system failure, generally Key node in system is provided with a primary node and a secondary node.Wherein, standby Node is for backing up the synchrodata of primary node, thus takes over primary when system malfunctions Node safeguards system properly functioning.
In the embodiment of the present invention, when system initial launch, the data backup device in system will Primary node is arranged at the first running status, and safeguards system can be properly functioning;By secondary node Being arranged at the second running status, the degree of power conservation of described second running status is more than described first fortune The degree of power conservation of row state.Specifically can be by by the processor of secondary node, internal memory, disk (array) and Ethernet, PCIE (Peripheral Component Interconnect Express, peripheral component interconnection) etc. port or equipment be set to dormancy or shutoff, from And realize being arranged at secondary node low energy consumption running status.
In the present embodiment, we can assume that at primary node and secondary node is energy-conservation State has four ranks: one-level power save mode, two grades of power save modes, three grades of power save modes and four Level power save mode.The degree of power conservation of described four power save modes strengthens successively, i.e. the energy-conservation shape of one-level State degree of power conservation is minimum, and level Four power save mode degree of power conservation is the highest.When system is properly functioning, The first running status that described primary node is arranged at can be one-level power save mode, it is ensured that System can be properly functioning;The second running status that described secondary node is arranged at, described Two running statuses are any level power save mode higher than described one-level power save mode degree of power conservation, as Can be two grades of power save modes, three grades of power save modes or level Four power save mode.So with existing skill The identical energy comparing the system of having saved of power save mode of the standby usage node of art, improves system Performance.
Backup setting unit 302, for setting described secondary node with preset time period for the cycle After being placed in the 3rd running status, send instruction to described primary node, indicate described primary node Described synchrodata is sent to described secondary node, so that described secondary node is described Receive described synchrodata under 3rd running status and described synchrodata is carried out storage backup.
In embodiments of the present invention, the backup setting unit 302 of data backup device can be with described Preset time period is the cycle, timing wake-up backup node, by the running status of described secondary node It is set to the 3rd running status, owing to secondary node to be ensured is to master from described second running status Back up by the synchrodata of node, so described synchrodata is entered by described secondary node Port and the equipment of row backup need to be in running status, therefore described 3rd running status is energy-conservation Degree is less than the degree of power conservation equal to described second running status.Described backup setting unit 302 after being arranged at the 3rd running status by described secondary node, can send out to described primary node Sending instruction, described synchrodata is sent to described standby by described instruction by described for instruction primary node With node, described secondary node will receive described synchrodata also under described 3rd running status Described synchrodata is carried out storage backup.
In the present embodiment, if described two grades of power save modes can ensure that secondary node can be right The synchrodata of primary node backs up, then, when periodically backing up data, be System wakes up the 3rd running status of secondary node entrance up and is two grades of power save modes.If secondary node The second running status being in is two grades of power save modes, then the second running status and described 3rd fortune Row state is identical running status;If the second running status that secondary node is in is three grades of joints Can state or level Four power save mode, then carry out standby waking up secondary node incision the 3rd running status up Need during part three grades of power save modes or level Four power save mode switch to two grades of power save modes ensure Accurately synchrodata is backed up.
Further, described backup setting unit 302 is additionally operable to when described primary node being detected The business datum received exceedes predetermined threshold value, described primary node abnormal conditions detected or receive During backed up in synchronization instruction, the synchrodata of described primary node is stored in buffer unit;By institute State secondary node and be arranged at the 3rd running status, and indicate described buffer unit to described standby joint Point sends described synchrodata, so that described secondary node connects under described 3rd running status Receive and store the described synchrodata of backup.
When the situations such as paroxysmal abnormality occurs in primary node, such as when described primary node being detected The business datum received exceedes predetermined threshold value or described primary node abnormal conditions detected, Or when receiving backed up in synchronization instruction, owing to situation occurs that secondary node is the most suddenly Having and be waken up preparatively, therefore first data backup device can indicate described primary node by described Synchrodata is stored in buffer unit.Described buffer unit can be the storage of primary intra-node Unit, it is also possible to hang over the external memory unit on primary node outside being, it is also possible to be a tool Having the independent third party device of storage capacity, this is not limited by the embodiment of the present invention.
Described synchrodata is stored in by backup setting unit 302 at the described primary node of instruction After buffer unit or single indicating described primary node that described synchrodata is stored in caching While unit, can trigger and wake up backup node up, by the running status of described secondary node from described Second running status is set to the 3rd running status, owing to secondary node to be ensured can be to primary The synchrodata of node backs up, and carries out standby to described synchrodata in the most described secondary node Part port and equipment need to be in running status, therefore the energy that described 3rd running status consumes Should be greater than the energy consumed equal to described second running status, the joint of the most described 3rd running status Energy degree is less than or equal to the degree of power conservation of described second running status.
As shown in Figure 4, further, data backup device 300 arranges list before also including switching Unit 303, arranges unit 304 after switching.
Unit 303 is set before switching, is used for after receiving the instruction of standby usage node switches, will Described secondary node is arranged at the first running status;So that described primary node is standby with described Node completes to switch.
Specifically, detecting that the situations such as abnormal occurs in primary node, or system is assigning standby usage During node switches instruction, described data backup device can allow standby usage node switch.Institute State data backup device receive standby usage node switches instruction after, described secondary node is set It is placed in the first running status;The running status phase of the most described primary node and described secondary node With, it is all the first running status, it is ensured that described primary node is the completeest with described secondary node One-tenth is switched.
Unit 304 is set after switching, for completing with described secondary node at described primary node After switching, the secondary node after switching is arranged at described second running status, after switching Primary node is arranged at described first running status.
Specifically, after described primary node and described secondary node complete to switch, described data Secondary node after switching can be arranged at described second running status, after switching by back-up device Primary node is arranged at described first running status.Described second running status is more primary joint than now The degree of power conservation of the first running status of point is high, thus has reached to save the purpose of system capacity.
It should be noted that the data backup device that the embodiment of the present invention provides can be used to realize The data back up method that the embodiment of the present invention provides, the Module Division of this data backup device is simply For example, those of ordinary skill in the art can be standby according to the data of embodiment of the present invention offer Part method modified module dividing mode, and then the method realizing the present invention, this retouching or improvement All should be within protection scope of the present invention.
As it is shown in figure 5, the embodiment of the present invention additionally provides a kind of data backup system, described system System includes: primary node 51, secondary node 52 and data backup device 53.Data backup fills Put 53 can be any embodiment of the present invention provide data backup device or its etc. homotype Enclose interior deformation device.
Data backup device 53, for primary node 51 is arranged at the first running status, standby It is arranged at the second running status with node 52;With preset time period for the cycle by described standby joint After point 52 is arranged at the 3rd running status, sends instruction to primary node 51, indicate primary joint Described synchrodata is sent to secondary node 52, so that secondary node 52 is in institute by point 51 State and receive described synchrodata under the 3rd running status and described synchrodata is stored standby Part;Wherein, the degree of power conservation of described second running status is more than the joint of described first running status Can degree;The degree of power conservation of described 3rd running status is less than or equal to described second running status Degree of power conservation.
Primary node 51, is used for institute after the described instruction receiving data backup device 53 State synchrodata and be sent to secondary node 52.
Secondary node 52, sends for receiving primary node 51 under described 3rd running status Described synchrodata, and described synchrodata is carried out storage backup.
Further, data backup device 53, it is additionally operable to when detecting that primary node 51 receives Business datum exceed predetermined threshold value, described primary node abnormal conditions detected or receive synchronization During backup instruction, the synchrodata of described primary node is stored in buffer unit (the most in the drawings Illustrate);Secondary node 52 is arranged at the 3rd running status, and indicates described buffer unit Described synchrodata is sent, so that secondary node 52 is transported the described 3rd to secondary node 52 Receive and store the described synchrodata of backup under row state.
It should be noted that described buffer unit can be the memory cell of primary intra-node, Can also be, with primary node, there is the external memory unit of communication connection, it is also possible to be a tool Having the independent third party device of storage capacity, this is not limited by the embodiment of the present invention.
Further, data backup device 53, it is additionally operable to receiving standby usage node switches After instruction, described secondary node 52 is arranged at the first running status, so that described primary Node 51 completes to switch with described secondary node 52;Standby with described at described primary node 51 After completing to switch with node 52, the secondary node after switching is arranged at described second and runs shape State, the primary node after switching is arranged at described first running status.
It should be noted that be only a kind of data backup that the embodiment of the present invention provides shown in Fig. 5 The structured flowchart example of system, in figure, data backup device 53 is independent of primary node 51 and standby With node 52, it should be understood by one skilled in the art that data backup in practical implementations Device 53 can also be integrated in described primary node 51 and/or the inside of secondary node 52.Separately Outward, for clarity, Fig. 5 merely illustrates a primary node and a secondary node, It will be appreciated by those skilled in the art that primary node and secondary node can be in actual deployment One to one, one-to-many or many-to-one relation, come according to the concrete condition such as performance of main-standby nodes Both dispose can, this is not limited by the embodiment of the present invention.
In sum, embodiments provide a kind of data back up method, Apparatus and system, By primary node is arranged at the first running status, secondary node is arranged at the second operation shape State, and periodically described secondary node is arranged at the 3rd running status, so that described standby The synchrodata of primary node is backed up under described 3rd running status with node;Wherein The degree of power conservation of the second running status, more than the degree of power conservation of described first running status, so makes The secondary node of idle condition is in the running status that energy consumption is relatively low, thus reaches saving system energy Amount, improve systematic function effect, meanwhile, described secondary node when carrying out data backup at In the 3rd running status, data backup is enable to normally complete, it is ensured that Backup Data reliable Property;Further, the data that can will need to synchronize under receiving the situation that primary node is abnormal Backup to buffer unit in time, then by buffer unit transmit synchronization data to wake up up standby Node, save avoid to a certain extent on the premise of energy consumption data in emergency situations under lose Lose;Further, by arranging the secondary node after switching after completing the switching of main-standby nodes Power save mode achieve system energy-saving effect maintain.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment Suddenly can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer In read/write memory medium, this program upon execution, performs to include the step of said method embodiment; And aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is also Being not limited to this, any those familiar with the art is at the technology model that the invention discloses In enclosing, the change that can readily occur in or replacement, all should contain within protection scope of the present invention. Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.

Claims (6)

1. a data back up method, it is characterised in that including:
Primary node is arranged at the first running status, and secondary node is arranged at the second operation shape State, the degree of power conservation of described second running status is more than the energy-conservation journey of described first running status Degree;
After described secondary node being arranged at the 3rd running status with preset time period for the cycle, to Described primary node sends instruction, indicates described primary node synchrodata to be sent to described standby With node, so that described secondary node receives described synchronization under described 3rd running status Data also carry out storage backup to described synchrodata;The degree of power conservation of described 3rd running status Degree of power conservation less than or equal to described second running status;
When detecting that the business datum that described primary node receives exceedes predetermined threshold value, institute detected When stating primary node abnormal conditions or receive backed up in synchronization instruction, by the synchronization of described primary node Data are stored in buffer unit;
Described secondary node is arranged at the 3rd running status, and indicates described buffer unit to institute State secondary node and send described synchrodata, so that described secondary node runs the described 3rd Receive and store the described synchrodata of backup under state.
Method the most according to claim 1, it is characterised in that described method also includes:
After receiving the instruction of standby usage node switches, described secondary node is arranged at the first fortune Row state, so that described primary node completes to switch with described secondary node;
After described primary node and described secondary node complete to switch, the standby joint after switching Point is arranged at described second running status, and the primary node after switching is arranged at described first and runs State.
3. a data backup device, it is characterised in that including:
Initial setting up unit, for being arranged at the first running status, secondary node by primary node Being arranged at the second running status, the degree of power conservation of described second running status is more than described first fortune The degree of power conservation of row state;
Backup setting unit, for being arranged at described secondary node with preset time period for the cycle After 3rd running status, send indicator to described primary node, indicate described primary node Synchrodata is sent to described secondary node, so that described secondary node is the described 3rd Receive described synchrodata under running status and described synchrodata is carried out storage backup;Described The degree of power conservation of the 3rd running status is less than or equal to the degree of power conservation of described second running status;
Described backup setting unit is additionally operable to when the business number that described primary node receives being detected According to exceeding predetermined threshold value, described primary node abnormal conditions being detected or receive backed up in synchronization instruction Time, the synchrodata of described primary node is stored in buffer unit;Described secondary node is set It is placed in the 3rd running status, and it is described same to indicate described buffer unit to send to described secondary node Step data, so that described secondary node receives under described 3rd running status and stores backup Described synchrodata.
Data backup device the most according to claim 3, it is characterised in that described number Also include according to back-up device:
Unit is set before switching, for after receiving the instruction of standby usage node switches, by described Secondary node is arranged at the first running status, so that described primary node and described secondary node Complete to switch;
Unit is set after switching, for completing to switch with described secondary node at described primary node After, the secondary node after switching is arranged at described second running status, primary after switching Node is arranged at described first running status.
5. a data backup system, it is characterised in that described system includes: primary node, Secondary node and data backup device,
Described data backup device, for primary node is arranged at the first running status, standby Node is arranged at the second running status;Described secondary node is arranged with preset time period for the cycle After the 3rd running status, send instruction to described primary node, indicate described primary node to incite somebody to action Synchrodata is sent to described secondary node, so that described secondary node runs the described 3rd Receive described synchrodata under state and described synchrodata is carried out storage backup;Described second The degree of power conservation of running status is more than the degree of power conservation of described first running status;Described 3rd fortune The degree of power conservation of row state is less than or equal to the degree of power conservation of described second running status;
Described primary node, being used for after the described instruction receiving described data backup device will Described synchrodata is sent to described secondary node;
Described secondary node, sends out for receiving described primary node under described 3rd running status The described synchrodata sent, and described synchrodata is carried out storage backup;
Described data backup device, is additionally operable to when the business number that described primary node receives being detected According to exceeding predetermined threshold value, described primary node abnormal conditions being detected or receive backed up in synchronization instruction Time, the synchrodata of described primary node is stored in buffer unit;Described secondary node is set It is placed in the 3rd running status, and it is described same to indicate described buffer unit to send to described secondary node Step data, so that described secondary node receives under described 3rd running status and stores backup Described synchrodata.
System the most according to claim 5, it is characterised in that described data backup fills Put, be additionally operable to, after receiving the instruction of standby usage node switches, be arranged at by described secondary node First running status, so that described primary node completes to switch with described secondary node;Institute Stating after primary node and described secondary node complete to switch, the secondary node after switching is arranged at Described second running status, the primary node after switching is arranged at described first running status.
CN201210126764.6A 2012-04-26 2012-04-26 A kind of data back up method, Apparatus and system Active CN102684917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210126764.6A CN102684917B (en) 2012-04-26 2012-04-26 A kind of data back up method, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210126764.6A CN102684917B (en) 2012-04-26 2012-04-26 A kind of data back up method, Apparatus and system

Publications (2)

Publication Number Publication Date
CN102684917A CN102684917A (en) 2012-09-19
CN102684917B true CN102684917B (en) 2016-09-07

Family

ID=46816312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210126764.6A Active CN102684917B (en) 2012-04-26 2012-04-26 A kind of data back up method, Apparatus and system

Country Status (1)

Country Link
CN (1) CN102684917B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153491B (en) * 2017-12-22 2021-06-25 深圳市瑞驰信息技术有限公司 Storage method and architecture capable of closing part of servers
CN110633176B (en) * 2019-09-26 2023-11-10 成都星时代宇航科技有限公司 Working system switching method, cube star and switching device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201262702Y (en) * 2007-10-31 2009-06-24 西南科技大学 Wireless sensor network node based on Bluetooth
CN102306157A (en) * 2011-07-12 2012-01-04 中国人民解放军国防科学技术大学 Energy-saving-oriented high-reliability data storage method in data center environment
CN102325160A (en) * 2011-07-18 2012-01-18 南京航空航天大学 Universal sensing node of self-organizing network of Internet of things

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158888B (en) * 2011-05-18 2013-12-25 西安电子科技大学 Data forwarding method based on random walk backup and node cooperation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201262702Y (en) * 2007-10-31 2009-06-24 西南科技大学 Wireless sensor network node based on Bluetooth
CN102306157A (en) * 2011-07-12 2012-01-04 中国人民解放军国防科学技术大学 Energy-saving-oriented high-reliability data storage method in data center environment
CN102325160A (en) * 2011-07-18 2012-01-18 南京航空航天大学 Universal sensing node of self-organizing network of Internet of things

Also Published As

Publication number Publication date
CN102684917A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN103443739B (en) For the method for advanced power management of the memory device based on Serial Advanced Technology Attachment (SATA), system and computer-readable medium
US6990603B2 (en) Method and apparatus for securing volatile data in power failure in systems having redundancy
US8325554B2 (en) Battery-less cache memory module with integrated backup
CN102662802A (en) Full-system power failure recovery method and equipment based on nonvolatile memory
JP4401954B2 (en) Power supply control device and power supply control program
CN101470518A (en) Method and device for service independent of os
CN100474271C (en) Multi-level buffering type memory system and method therefor
CN101641745A (en) Progressive power control of a multi-port memory device
CN104700886A (en) Memory circuit with power supply state sensor
CN103544080A (en) Data protecting method, device and system
CN104122508A (en) Online monitoring method for backup power supply system of intelligent power distribution terminal
CN101593082A (en) A kind of device of managing power supply circuit of memory equipment, method and computing machine
CN108958987B (en) Low-orbit small satellite fault-tolerant system and method
US9021275B1 (en) Method and apparatus to exercise and manage a related set of power managed storage devices
TW201617900A (en) Shared backup power self-refresh mode
CN102684917B (en) A kind of data back up method, Apparatus and system
CN101714023A (en) Method, device and system for reducing power consumption of internal memory
CN101788939A (en) Controller status-monitoring device and method
TW201629687A (en) Combined backup power
US20190250688A1 (en) Power Management of Computing and Communications Systems During Power Fluctuation and Sudden Power Failure Events
CN104185826B (en) Control the power management in microserver
CN101930382A (en) Method, circuit and terminal for starting terminal with memory
CN202584103U (en) Full-system outage recovering device on basis of nonvolatile internal memory
CN106407048B (en) Input/output communication interface, the data backup and resume method based on the interface
CN107656830A (en) A kind of complete healthy method for inspecting, system and computer equipment for dodging system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant