CN106815091B - Synchronous continuous transmission method, slave end equipment and system - Google Patents

Synchronous continuous transmission method, slave end equipment and system Download PDF

Info

Publication number
CN106815091B
CN106815091B CN201510849526.1A CN201510849526A CN106815091B CN 106815091 B CN106815091 B CN 106815091B CN 201510849526 A CN201510849526 A CN 201510849526A CN 106815091 B CN106815091 B CN 106815091B
Authority
CN
China
Prior art keywords
data
slave
snapshot
end equipment
master
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
CN201510849526.1A
Other languages
Chinese (zh)
Other versions
CN106815091A (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.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Chengdu Huawei Technology 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 Chengdu Huawei Technology Co Ltd filed Critical Chengdu Huawei Technology Co Ltd
Priority to CN201510849526.1A priority Critical patent/CN106815091B/en
Priority to PCT/CN2016/087914 priority patent/WO2017088476A1/en
Publication of CN106815091A publication Critical patent/CN106815091A/en
Application granted granted Critical
Publication of CN106815091B publication Critical patent/CN106815091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The embodiment of the invention provides a synchronous continuous transmission method, slave end equipment and a system, which at least solve the problem that the whole synchronous time is prolonged as the synchronous data of the existing synchronous continuous transmission is covered after the snapshot is rolled back. The method comprises the following steps: the method comprises the steps that the slave-end equipment acquires data of a second snapshot, which is formed after the master-end equipment synchronizes the full amount of data of a first snapshot to the slave-end equipment; when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, the slave end equipment records the split data of the synchronized time point at a preset time point, wherein the split data is the data of the slave end equipment after the slave end equipment makes the data of the current increment synchronization the fourth snapshot; when the slave end equipment sets write protection, the slave end equipment rolls back the data of the second snapshot and the split data; and when the synchronous continuous transmission is carried out again, the slave end equipment acquires the residual data except the data of the current increment synchronization when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment. The invention is suitable for the technical field of storage.

Description

Synchronous continuous transmission method, slave end equipment and system
Technical Field
The invention relates to the technical field of storage, in particular to a synchronous continuous transmission method, slave end equipment and a system.
Background
Fig. 1 is a block diagram of a conventional synchronous resume flow. As shown in fig. 1, Data of the master needs to be backed up to the slave, a remote copy (english: Pair) configuration is created, and when synchronization is started, snapshot (english: Snap)01 is taken at the master, then the full amount of Data corresponding to the snapshot 01 is synchronized to the slave, so as to obtain Data (english: Data)01 ', and then snapshot 01' is taken at the slave.
Pair is configured in the incremental synchronization process, snapshot 02 is taken at the master end, and then data corresponding to the snapshot 02 is incrementally synchronized to the slave end, so that data 02' is obtained. When the service of the master-slave end is hoped to be switched, the Pair configuration is split through a user command, the write protection of the slave end is cancelled, the data 01 'of the slave end which is rolled back to the previous consistency point snapshot is triggered, and under the condition that the master-slave switching is not needed and the synchronization is hoped to continue, the write protection of the slave end is set again, so that the data 01' of the slave end which is rolled back to the previous consistency point snapshot is triggered again. However, after the snapshot is rolled back, data in the process from the beginning of the Pair increment synchronization to the splitting of the Pair configuration is covered by snapshot data, and when the synchronization is started again, the data corresponding to the snapshot 02 needs to be incrementally synchronized from 0 to 100% to the slave end, which results in prolonging the time of the whole synchronization, thereby reducing the efficiency of synchronous continuous transmission.
Disclosure of Invention
The embodiment of the invention provides a synchronous continuous transmission method, slave end equipment and a system, which at least solve the problem that the whole synchronous time is prolonged as the synchronous data of the existing synchronous continuous transmission is covered after the snapshot is rolled back.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
in a first aspect, a synchronous continuous transmission method is provided, and the method includes:
the method comprises the steps that a slave end device acquires data of a second snapshot after a master end device synchronizes the full amount of data of a first snapshot to the slave end device;
when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, the slave end equipment records the split data of the synchronized time point at a preset time point, wherein the split data is the data of the slave end equipment after the slave end equipment makes the data of the current increment synchronization a fourth snapshot;
when the slave end equipment sets write protection, the slave end equipment rolls back the data of the second snapshot and the split data;
and when the synchronous transmission is continued again, the slave end equipment acquires the residual data except the data of the incremental synchronization when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment.
The synchronized data will not be overwritten after the snapshot is rolled back, as in the prior art, resulting in an extended overall synchronization time. By the method, only the part which is not subjected to incremental synchronization can be synchronized according to the data volume of the last incremental synchronization during synchronous continuous transmission, so that the whole synchronization time is reduced, and the synchronous continuous transmission efficiency is improved.
In a second aspect, a slave device is provided, which is characterized by comprising:
the acquisition unit is used for acquiring data of a second snapshot taken by the slave end equipment after the master end equipment synchronizes the full amount of data of the first snapshot taken to the slave end equipment;
the recording unit is used for recording split data of a synchronized time point at a preset time point when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, wherein the split data is the data of the slave end equipment after the slave end equipment makes a fourth snapshot on the data of the current increment synchronization;
a setting unit for setting write protection;
the rollback unit is used for rolling back the data of the second snapshot and the split data when the write protection is set by the setting unit;
and the obtaining unit is further configured to obtain, when the synchronous continuous transmission is performed again, remaining data, except the data of the current incremental synchronization, when the data of the third snapshot is incrementally synchronized to the slave device by the master device.
Since the slave device provided in the embodiment of the present invention may be configured to execute the method of the first aspect, the technical effect obtained by the slave device may refer to the technical effect of the synchronous resume method executed by the slave device in the first aspect, and is not described herein again.
Optionally, in the first aspect or the second aspect, in a possible implementation manner, the preset time point includes a time point corresponding to when the slave device determines to split the remote copy Pair configuration.
Optionally, in the first aspect or the second aspect, in another possible implementation manner, the preset time point includes a time point corresponding to a preset timer when the master-slave link is interrupted.
It should be noted that the foregoing is only an exemplary implementation providing two possible preset time points, and of course, in the embodiment of the present invention, the preset time point may be other preset time points, and the embodiment of the present invention is not limited to this.
In a third aspect, a slave device is provided, the slave device comprising: a processor, a memory, a bus, and a communication interface;
the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the slave device runs, the processor executes the computer-executable instructions stored in the memory, so that the slave device executes the synchronous resume method as described in the first aspect or any one of the alternatives of the first aspect.
Since the slave device provided in the embodiment of the present invention may be configured to execute the synchronous resuming method described in the first aspect or any optional manner of the first aspect, the technical effect obtained by the slave device may refer to the technical effect of the synchronous resuming method described in the first aspect, and details are not described here again.
In a fourth aspect, a readable medium is provided, which includes computer executable instructions, and when the processor of the slave device executes the computer executable instructions, the slave device executes the synchronous resume method as described in the first aspect or any one of the alternatives of the first aspect.
In a fifth aspect, a synchronous resuming system is provided, which includes: a master device and a slave device as described in the second aspect or any one of the alternatives of the second aspect above;
or, the synchronous continuous transmission system comprises: a master device and a slave device as described in the third aspect above.
Since the synchronous resume system provided in the embodiment of the present invention includes the slave device described in the second aspect or any optional manner of the second aspect, and the slave device may be configured to execute the synchronous resume method described in the first aspect or any optional manner of the first aspect, technical effects obtained by the slave device may refer to technical effects of the synchronous resume method described in the first aspect, and are not described herein again.
These and other aspects of the invention will be apparent from, and elucidated with reference to, the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a block diagram of a conventional synchronous retransmission process;
fig. 2 is a first block diagram of a synchronous continuous transmission flow provided by the embodiment of the present invention;
FIG. 3 is a first diagram illustrating a synchronous resume interaction according to an embodiment of the present invention;
fig. 4 is a block diagram of a synchronous continuous transmission flow provided in the embodiment of the present invention;
FIG. 5 is a schematic diagram of a synchronous resume interaction provided by the embodiment of the present invention;
fig. 6 is a schematic flow chart of a synchronous continuous transmission method according to an embodiment of the present invention;
fig. 7 is a first schematic structural diagram of a slave device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a slave device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a synchronous continuous transmission system according to an embodiment of the present invention.
Detailed Description
For clarity and conciseness of the following description of the various embodiments, a brief introduction to the relevant concepts is first given:
and (3) snapshot making: in particular, it refers to quickly backing up a copy of data at a specific time point.
Taking a reference snapshot: in particular, the first snapshot is taken.
Rolling back: specifically, the snapshotted data is backed up again.
Full and incremental synchronization: full-volume synchronization and incremental synchronization are two ways of database synchronization. Full synchronization synchronizes all data at one time; incremental synchronization synchronizes only the difference data of two databases at a time, i.e. only different parts of the two databases.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
As used in this application, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of example, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and/or thread of execution and a component can be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and/or across a network such as the internet with other systems by way of the signal).
This application is intended to present various aspects, embodiments or features around a system that may include a number of devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and/or may not include all of the devices, components, modules etc. discussed in connection with the figures. Furthermore, a combination of these schemes may also be used.
Additionally, in embodiments of the present invention, the term "exemplary" is used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term using examples is intended to present concepts in a concrete fashion.
The scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
Fig. 6 is a schematic flow chart of a synchronous resume method according to an embodiment of the present invention, including steps S601-S604:
s601, the slave end equipment acquires the data of the second snapshot which is formed by the slave end equipment after the master end equipment synchronizes the data of the first snapshot to the slave end equipment.
And S602, when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, the slave end equipment records the split data of the synchronized time point at a preset time point, wherein the split data is the data of the slave end equipment after the slave end equipment takes the fourth snapshot of the data of the current increment synchronization.
And S603, when the slave-end equipment sets write protection, the slave-end equipment rolls back the data of the second snapshot and the split data.
And S604, when the synchronous transmission is continued again, the slave end equipment acquires the residual data except the data of the current increment synchronization when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment.
The synchronized data will not be overwritten after the snapshot is rolled back, as in the prior art, resulting in an extended overall synchronization time. Based on the synchronous continuous transmission method provided by the embodiment of the invention, it can be seen that, in the embodiment of the invention, only the part which is not subjected to incremental synchronization can be synchronized according to the data volume of the last incremental synchronization, so that the whole synchronization time is reduced, and the efficiency of synchronous continuous transmission is improved.
In step S602 in the embodiment of the present invention:
in a possible implementation manner, the preset time point includes a time point corresponding to the determination of the split Pair configuration by the slave device.
In another possible implementation manner, the preset time point includes a time point corresponding to a time when a preset timer is expired after the master-slave link is interrupted.
The synchronous continuous transmission method shown in fig. 6 will be described in detail below with reference to scenarios corresponding to the two possible implementations.
Scene one: fig. 2 is a flowchart of a synchronous resume method according to an embodiment of the present invention. As shown in fig. 2, data of the master needs to be backed up to the slave, a Pair configuration is created, when synchronization is started, a first snapshot is taken at the master (recorded as taking a snapshot 01), then the full amount of data corresponding to the taking a snapshot 01 is synchronized to the slave, so as to obtain data 01 ', and a second snapshot is taken at the slave (recorded as taking a snapshot 01'). Pair is configured in the incremental synchronization process, a third snapshot (recorded as snapshot 02) is taken at the master end, and then the data part corresponding to the snapshot 02 is incrementally synchronized to the slave end to obtain data 02'.
If the business of the master side and the slave side is expected to be switched in the process of incrementally synchronizing the data part corresponding to the snapshot 02, the master side splits the Pair configuration through a user command, the slave side cancels the setting of the write protection of the slave side, and the slave side rolls back the data of the snapshot 01 'to obtain the data 01'. And simultaneously recording split data (English: SplitData) of a synchronized time point (recorded as split data 02 ') at the slave end, wherein the split data 02 ' is data obtained by taking the fourth snapshot of the data 02 ' of the current incremental synchronization at the slave end.
In case it is desired to continue synchronization without a master-slave switch, the slave write protection will be set again, which will trigger the slave to roll back the data of snapshot 01 'and the split data 02', obtaining data 01 'and data 02'. When the synchronous continuous transmission is started again, the slave side acquires the residual data (recorded as: data 03 ') except the data 02 ' when the master side synchronizes the data increment of the snapshot 02 to the slave side, for example, the residual data is synchronized to the slave side on the basis of 50% in fig. 2, and a fifth snapshot is taken (recorded as: snapshot 02 ').
It should be noted that fig. 2 illustrates data of 50% of the first incremental synchronization, and of course, this value is merely an exemplary illustration, and may be data of 0% to 100% such as 20% and 30%, and the embodiment of the present invention is not limited to this specifically.
An interaction schematic diagram of the synchronous resume method provided by the embodiment of the present invention will be given based on the flow diagram of the synchronous resume method shown in fig. 2, and the interaction between the master device and the slave device is taken as an example for explanation, as shown in fig. 3, the method includes steps S301 to S313:
s301, the main-end equipment needs to backup the catalog A and takes a snapshot 01.
S302, the master end device synchronizes the total data of the snapshot 01 to the slave end device.
S303, the slave device obtains the data 01 'and takes a snapshot 01'.
And S304, the main-end equipment synchronously continues to transmit, and takes a snapshot 02.
S305, the primary side equipment synchronizes the data part increment of the snapshot 02 to the secondary side equipment.
S306, the slave end equipment acquires the data 02' of the partial incremental synchronization.
And S307, the main terminal equipment splits the Pair configuration through a user command.
S308, after the slave end equipment determines the split Pair configuration, the split data 02' of the synchronized time point are recorded.
The split data 02 'is data obtained by the slave device printing a fourth snapshot on the data 02' of the current incremental synchronization.
S309, when the write protection is cancelled, the slave end equipment rolls back the data of the snapshot 01 'to obtain the data 01'.
S310, when master-slave switching is not needed, and when the slave end equipment sets the slave end write protection, the data of the snapshot 01 'and the split data 02' are rolled back, and the data 01 'and the data 02' are obtained.
And S311, the main-end equipment synchronously continues to transmit, and takes a snapshot 02.
And S312, the main end equipment synchronizes the rest data except the data 02' in the data of the snapshot 02 to the slave end equipment.
S313, the slave device obtains the data 03 'of the incremental synchronization and takes a snapshot 02'.
And ending the whole synchronous continuous transmission process.
The synchronized data will not be overwritten after the snapshot is rolled back, as in the prior art, resulting in an extended overall synchronization time. Based on the synchronous continuous transmission method provided by the embodiment of the invention, it can be seen that, in the embodiment of the invention, after the master device performs the split Pair configuration through the user command, when the synchronous continuous transmission is performed, only the part which is not subjected to incremental synchronization is synchronized according to the data volume of the last incremental synchronization recorded in the split Pair configuration determined by the slave device, so that the whole synchronization time is reduced, and the efficiency of the synchronous continuous transmission is improved.
Scene two: fig. 4 is a flowchart of another synchronous resume method according to an embodiment of the present invention. As shown in fig. 4, data of the master needs to be backed up to the slave, a Pair configuration is created, when synchronization is started, a first snapshot is taken at the master (recorded as taking a snapshot 01), then the full amount of data corresponding to the taking a snapshot 01 is synchronized to the slave, so as to obtain data 01 ', and a second snapshot is taken at the slave (recorded as taking a snapshot 01'). Pair is configured in the incremental synchronization process, a third snapshot (recorded as snapshot 02) is taken at the master end, and then the data part corresponding to the snapshot 02 is incrementally synchronized to the slave end to obtain data 02'.
If the link of the master end and the slave end is disconnected in the process of performing incremental synchronization on the data part corresponding to the snapshot 02 to the slave end, the slave end cannot sense the situation of the master end at this time, and the slave end can record the split data 02 ' of the synchronized time point after the preset timer expires, wherein the split data 02 ' is data obtained after the slave end performs the fourth snapshot on the data 02 ' of the current incremental synchronization.
When the write protection of the slave end is not set, in order to manage the service to the slave end under the condition that the link of the master end and the slave end is disconnected, the slave end rolls back the data of the snapshot 01 'to obtain the data 01'.
At this time, if the master-slave end link is restored, the master end may need to continue synchronizing the data to the slave end, and at this time, the slave end will set the slave end write protection again, so as to trigger the slave end to roll back the data of the snapshot 01 'and the split data 02' again, and obtain the data 01 'and the data 02'. When the synchronous continuous transmission is started again, the slave side acquires the residual data (recorded as: data 03 ') except the data 02 ' when the master side synchronizes the data increment of the snapshot 02 to the slave side, for example, the residual data is synchronized to the slave side on the basis of 50% in fig. 4, and a fifth snapshot is taken (recorded as: snapshot 02 ').
It should be noted that fig. 4 illustrates data of 50% of the first incremental synchronization, and of course, this value is merely an exemplary illustration, and may be data of 0% to 100% such as 20% and 30%, and the embodiment of the present invention is not limited to this specifically.
An interaction schematic diagram of the synchronous resume method provided by the embodiment of the present invention will be given below based on the flow diagram of the synchronous resume method shown in fig. 4, and the interaction between the master device and the slave device is taken as an example for explanation, as shown in fig. 5, the method includes steps S501 to S514:
s501, the main-end equipment needs to backup the catalog A and takes a snapshot 01.
S502, the master end device synchronizes the total data of the snapshot 01 to the slave end device.
S503, the slave device obtains the data 01 'and takes a snapshot 01'.
And S504, the master end equipment synchronously continues to transmit, and takes a snapshot 02.
And S505, the master end equipment synchronizes the data part increment of the snapshot 02 to the slave end equipment.
S506, the slave end equipment acquires the data 02' of the partial increment synchronization.
And S507, disconnecting the master-slave end link.
And S508, recording the split data 02' of the synchronized time point by the slave end after the preset timer is up.
The split data 02 'is data obtained by the slave device printing a fourth snapshot on the data 02' of the current incremental synchronization.
S509, when the write protection is cancelled, the slave device rolls back the data of the snapshot 01 'to obtain the data 01'.
And S510, recovering the master link and the slave link.
And S511, when the slave end device sets the write protection of the slave end, rolling back the data of the snapshot 01 'and the split data 02' to obtain the data 01 'and the data 02'.
And S512, synchronously transmitting by the main-end equipment, and taking a snapshot 02.
And S513, the master end device synchronizes the rest data except the data 02' in the data of the snapshot 02 to the slave end device in an increment mode.
And S514, the slave end equipment acquires the data 03 'of the incremental synchronization and takes a snapshot 02'.
And ending the whole synchronous continuous transmission process.
The synchronized data will not be overwritten after the snapshot is rolled back, as in the prior art, resulting in an extended overall synchronization time. Based on the synchronous continuous transmission method provided by the embodiment of the invention, it can be seen that, in the embodiment of the invention, after the link at the master end and the slave end is disconnected, when synchronous continuous transmission is carried out, only the part which is not subjected to incremental synchronization can be synchronized according to the data volume of the last incremental synchronization recorded after the expiry of the preset timer, so that the whole synchronization time is reduced, and the efficiency of synchronous continuous transmission is improved.
As shown in fig. 7, the embodiment of the present invention provides a slave device 70, configured to perform the steps performed by the slave device in the synchronous resume method shown in fig. 3, fig. 5, or fig. 6. The slave device 70 may include units corresponding to the respective steps, and for example, may include:
an obtaining unit 701, configured to obtain data obtained by synchronizing the total amount of data used for making the first snapshot with the slave device 70 by the master device and then enabling the slave device 70 to make the second snapshot.
The recording unit 702 is configured to record split data at a synchronized time point at a preset time point when the master device synchronizes the data increment of the third snapshot to the slave device 70, where the split data is data obtained by the slave device 70 after the slave device 70 takes the fourth snapshot of the data of this increment synchronization.
A setting unit 703 for setting write protection.
A rollback unit 704, configured to rollback data of the second snapshot and the split data when the write protection is set by the setting unit 703;
the obtaining unit 701 is further configured to, when the synchronous continuous transmission is performed again, obtain remaining data, except for the data of the current incremental synchronization, when the master device synchronizes the data increment of the third snapshot to the slave device 70.
Optionally, in a possible implementation manner, the preset time point includes a time point corresponding to the determination of the split Pair configuration by the slave device 70.
Optionally, in another possible implementation manner, the preset time point includes a time point corresponding to a preset timer when the master-slave link is interrupted.
It should be noted that the acquiring unit 701, the recording unit 702, the setting unit 703 and the rollback unit 704 in this embodiment may be specifically a processor that is separately installed, or may be implemented by being integrated into any one of the processors of the slave device 70, or may be stored in a memory of the slave device 70 in the form of program codes, and any one of the processors of the slave device 70 calls and executes the functions of the acquiring unit 701, the recording unit 702, the setting unit 703 and the rollback unit 704. The processor may be a Central Processing Unit (CPU), other general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a field-programmable gate array (FPGA), other programmable logic devices, a discrete gate or transistor logic device, a discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor may also be a dedicated processor, which may include at least one of a baseband processing chip, a radio frequency processing chip, and the like. Further, the dedicated processor may also include a chip having other dedicated processing functions of the slave device 70.
It can be understood that the slave device 70 according to the embodiment of the present invention may correspond to the slave device in the synchronous resume method shown in fig. 3, fig. 5, or fig. 6, and the division and/or the function of each unit in the slave device 70 according to the embodiment of the present invention are all for implementing the synchronous resume method flow shown in fig. 3, fig. 5, or fig. 6, and are not described herein again for brevity.
Since the slave device 70 in the embodiment of the present invention may be configured to execute the above method flow, reference may also be made to the above method embodiment for obtaining technical effects, and details of the embodiment of the present invention are not repeated herein.
As shown in fig. 8, an embodiment of the present invention provides a slave device 80, including: a processor 801, a memory 802, a bus 803, and a communication interface 804.
The memory 802 is used for storing computer-executable instructions, the processor 801 is connected to the memory 802 through the bus 803, and when the slave device 80 runs, the processor 801 executes the computer-executable instructions stored in the memory 802, so that the slave device 80 executes the synchronous resume method shown in fig. 3, fig. 5, or fig. 6. For a specific synchronous continuous transmission method, reference may be made to the related description in the embodiments shown in fig. 3, fig. 5, or fig. 6, and details are not repeated here.
The processor 801 in the embodiments of the present invention may be a CPU, or other general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The processor 801 may also be a dedicated processor that may include at least one of a baseband processing chip, a radio frequency processing chip, and the like. Further, the dedicated processor may also include a chip having other dedicated processing functions of the slave device 80.
The memory 802 may include a volatile memory (RAM), such as a random-access memory (random-access memory); the memory 802 may also include a non-volatile memory (english: non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a hard disk (hard disk drive, HDD) or a solid-state drive (SSD); additionally, the memory 802 may also comprise a combination of the above-described types of memory.
The bus 803 may include a data bus, a power bus, a control bus, a signal status bus, and the like. For clarity of illustration in this embodiment, the various buses are illustrated in FIG. 8 as bus 803.
The communication interface 804 may specifically be a transceiver on the slave device 80. The transceiver may be a wireless transceiver. For example, the wireless transceiver may be an antenna of the slave device 80, or the like. The processor 801 transmits and receives data to and from other devices, for example, a master device, via the communication interface 804.
In a specific implementation, each step in the method flow shown in fig. 3, fig. 5, or fig. 6 can be implemented by the processor 801 in a hardware form executing computer execution instructions in a software form stored in the memory 802. To avoid repetition, further description is omitted here.
Since the slave device 80 provided in the embodiment of the present invention can be used to execute the above method process, the technical effect obtained by the slave device can refer to the above method embodiment, and will not be described herein again.
Optionally, an embodiment of the present invention further provides a readable medium, which includes computer-executable instructions, and when a processor of a slave device executes the computer-executable instructions, the slave device may execute the synchronous resume method shown in fig. 3, fig. 5, or fig. 6. For a specific synchronous continuous transmission method, reference may be made to the related description in the embodiments shown in fig. 3, fig. 5, or fig. 6, and details are not repeated here.
An embodiment of the present invention further provides a synchronous continuous transmission system 90, as shown in fig. 9, where the synchronous continuous transmission system 90 includes: a master end device 901 and a slave end device 902 which can communicate with the master end device 901. The master device 901 may be the master device in fig. 3 or fig. 5; the slave device 902 may be the slave device in fig. 3 or fig. 5. For the description of the master device 901, reference may be specifically made to the related description of the master device in the embodiment shown in fig. 3 or fig. 5; for the description of the slave end device 902, reference may be specifically made to the description of the slave end device in the embodiment shown in fig. 3 or fig. 5, and details are not repeated here.
In the synchronous continuous transmission system 90 provided in the embodiment of the present invention, the master device 901 completes the synchronous continuous transmission method according to the embodiment of the present invention by executing corresponding steps in the method flow shown in fig. 3 or fig. 5; accordingly, the slave device 902 completes the synchronous resuming method according to the embodiment of the present invention by performing the corresponding steps in the method flow shown in fig. 3 or fig. 5.
Since the master device 901 and the slave device 902 in the synchronous continuous transmission system 90 provided in the embodiment of the present invention can be used to execute the method flows shown in fig. 3 or fig. 5, reference may be made to the description in the foregoing method embodiments for technical effects that can be obtained, and the embodiment of the present invention is not described herein again.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the above-described apparatus is only illustrated by the division of the above functional modules, and in practical applications, the above-described function distribution may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the above-described functions. For the specific working processes of the system, the apparatus, and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, ROM, RAM), magnetic disk or optical disk, etc.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A method for synchronous retransmission, the method comprising:
after the master end equipment synchronizes the total data for making the first snapshot to the slave end equipment, the slave end equipment acquires the data for making the second snapshot from the slave end equipment, wherein the data for making the second snapshot is the data for synchronizing the total data for making the first snapshot from the master end equipment to the slave end equipment;
when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, the slave end equipment records the split data of the synchronized time point at a preset time point, wherein the split data is the data of the slave end equipment after the slave end equipment makes the data of the current increment synchronization a fourth snapshot;
when the slave end equipment sets write protection, the slave end equipment rolls back the data for making the second snapshot and the split data;
and when the synchronous transmission is continued again, the slave end equipment acquires the residual data except the data of the incremental synchronization when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment.
2. The method of claim 1, wherein the preset time point comprises a corresponding time point when the slave device determines to split a remote copy Pair configuration.
3. The method according to claim 1, wherein the predetermined time point comprises a time point corresponding to a predetermined timer when the master-slave link is interrupted.
4. A slave device, characterized in that the slave device comprises:
the device comprises an acquisition unit, a synchronization unit and a synchronization unit, wherein after a master end device synchronizes the full amount of data for making a first snapshot to a slave end device, the acquisition unit is used for acquiring the data for making a second snapshot by the slave end device, and the data for making the second snapshot is the data for synchronizing the full amount of data for making the first snapshot by the master end device to the slave end device;
the recording unit is used for recording split data of a synchronized time point at a preset time point when the master end equipment synchronizes the data increment of the third snapshot to the slave end equipment, wherein the split data is the data of the slave end equipment after the slave end equipment makes a fourth snapshot on the data of the current increment synchronization;
a setting unit for setting write protection;
a rollback unit, configured to rollback the second snapshot data and the split data when the setting unit sets write protection;
the obtaining unit is further configured to obtain, when the synchronous continuous transmission is performed again, remaining data, except for the data subjected to the incremental synchronization of this time, when the data subjected to the third snapshot is incrementally synchronized to the slave device by the master device.
5. The slave device according to claim 4, wherein the preset time point comprises a corresponding time point when the slave device determines to split a remote copy Pair configuration.
6. The slave device according to claim 4, wherein the preset time point comprises a time point corresponding to a preset timer when the master-slave link is interrupted.
7. A slave device, characterized in that the slave device comprises: a processor, a memory, a bus, and a communication interface;
the memory is used for storing computer execution instructions, the processor is connected with the memory through the bus, and when the slave end device runs, the processor executes the computer execution instructions stored by the memory so as to enable the slave end device to execute the synchronous continuous transmission method according to any one of claims 1-3.
8. A readable medium comprising computer executable instructions which, when executed by a processor of a slave device, cause the slave device to perform the synchronous resume method of any of claims 1-3.
9. A synchronous retransmission system, comprising: a master end device and a slave end device according to any of claims 4-6; alternatively, the first and second electrodes may be,
the synchronous continuous transmission system comprises: a master device and a slave device according to claim 7.
CN201510849526.1A 2015-11-27 2015-11-27 Synchronous continuous transmission method, slave end equipment and system Active CN106815091B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510849526.1A CN106815091B (en) 2015-11-27 2015-11-27 Synchronous continuous transmission method, slave end equipment and system
PCT/CN2016/087914 WO2017088476A1 (en) 2015-11-27 2016-06-30 Method for synchronization and resumed transfer, slave end device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510849526.1A CN106815091B (en) 2015-11-27 2015-11-27 Synchronous continuous transmission method, slave end equipment and system

Publications (2)

Publication Number Publication Date
CN106815091A CN106815091A (en) 2017-06-09
CN106815091B true CN106815091B (en) 2020-02-14

Family

ID=58762960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510849526.1A Active CN106815091B (en) 2015-11-27 2015-11-27 Synchronous continuous transmission method, slave end equipment and system

Country Status (2)

Country Link
CN (1) CN106815091B (en)
WO (1) WO2017088476A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322533B (en) * 2018-01-31 2019-02-19 广州鼎甲计算机科技有限公司 Configuration and synchronization method between distributed type assemblies node based on operation log
CN111209343B (en) * 2020-01-22 2022-02-22 腾讯科技(深圳)有限公司 Node data synchronization method, device, equipment and storage medium
CN112272196A (en) * 2020-03-09 2021-01-26 上海曼恒数字技术股份有限公司 Method and system for removing server by system
CN111625605B (en) * 2020-06-02 2024-05-10 北京金堤科技有限公司 Information synchronization method and device, storage medium and electronic equipment
CN117596256B (en) * 2024-01-19 2024-03-22 济南浪潮数据技术有限公司 Data synchronization method, device, system, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002073410A2 (en) * 2001-03-14 2002-09-19 Storage Technology Corporation System and method for synchronizing a data copy using an accumulation remote copy trio
CN100456255C (en) * 2007-04-29 2009-01-28 华为技术有限公司 Device and method for fetching snapshot data
US7596713B2 (en) * 2002-11-20 2009-09-29 Intranational Business Machines Corporation Fast backup storage and fast recovery of data (FBSRD)
CN102801754A (en) * 2011-05-24 2012-11-28 英业达集团(天津)电子技术有限公司 Method and system for breakpoint transmission
CN102999400A (en) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 Data backup method and device of cloud storage system
CN104484242A (en) * 2014-12-10 2015-04-01 上海爱数软件有限公司 Method for breaking-point transmission in copy-on-write snapshot backup process

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7330997B1 (en) * 2004-06-03 2008-02-12 Gary Odom Selective reciprocal backup
CN101419564B (en) * 2008-12-11 2010-08-25 杭州华三通信技术有限公司 Method and device for recovering data by employing snapshot
CN103645967B (en) * 2013-11-26 2016-06-22 华为技术有限公司 A kind of read-only materialized view rollback method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002073410A2 (en) * 2001-03-14 2002-09-19 Storage Technology Corporation System and method for synchronizing a data copy using an accumulation remote copy trio
US7596713B2 (en) * 2002-11-20 2009-09-29 Intranational Business Machines Corporation Fast backup storage and fast recovery of data (FBSRD)
CN100456255C (en) * 2007-04-29 2009-01-28 华为技术有限公司 Device and method for fetching snapshot data
CN102801754A (en) * 2011-05-24 2012-11-28 英业达集团(天津)电子技术有限公司 Method and system for breakpoint transmission
CN102999400A (en) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 Data backup method and device of cloud storage system
CN104484242A (en) * 2014-12-10 2015-04-01 上海爱数软件有限公司 Method for breaking-point transmission in copy-on-write snapshot backup process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于FTP的文件定时传输软件的设计与实现;戴浩;;《计算机应用与软件》;20130131;第30卷(第1期);332-333 *

Also Published As

Publication number Publication date
WO2017088476A1 (en) 2017-06-01
CN106815091A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN106815091B (en) Synchronous continuous transmission method, slave end equipment and system
US9563655B2 (en) Zero and near-zero data loss database backup and recovery
US20150112941A1 (en) Backup management system and method thereof
CN103019875B (en) The method of the two main transformation of a kind of fulfillment database and device
US10860445B2 (en) Methods and devices for multi-level data protection in a storage system
US20220100609A1 (en) Data Replication Method, Apparatus, and System
CN102521083A (en) Backup method and system of virtual machine in cloud computing system
WO2003065221A3 (en) Method and system for providing image incremental and disaster recovery
WO2017028375A1 (en) Version upgrading method and system
US9104609B2 (en) Information processing apparatus, system time synchronization method and computer readable medium
CN110825562B (en) Data backup method, device, system and storage medium
EP3121721A1 (en) Information processing apparatus, information processing system, control method for the information processing apparatus, and program
CN113051110A (en) Cluster switching method, device and equipment
CN105610566A (en) Real-time data synchronization method and system between main and standby nodes
CN111078463A (en) Data backup method, device and system
CN107391312B (en) Data cloud backup method and system
EP4300314A3 (en) Data backup method, apparatus and system
CN112929438B (en) Business processing method and device of double-site distributed database
CN107621994B (en) Method and device for creating data snapshot
CN108762988B (en) Data processing method and related equipment
CN112751693B (en) Data processing method and device of distributed storage system and electronic equipment
CN106933700B (en) Method and apparatus for restoring data backup between memories
CN112988882B (en) System, method and device for preparing data from different places and computing equipment
CN106648963B (en) Method and system for recovering synchronous backup of data
CN111639139B (en) Data synchronization method, device, computing equipment and medium for data center

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant