A method, system and host for increasing cycle asynchronous remote replication

By modifying metadata and IO mapping, the number of reads and writes of periodic asynchronous remote replication is reduced, which solves the problem of excessive system resource usage caused by multiple reads and writes in the existing technology, and improves the performance and stability of data backup.

CN115098044BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210912409.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-10-22
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In the existing technology, periodic asynchronous remote replication involves multiple read and write operations during the data backup process, resulting in excessive system resource usage and affecting stable operation.

Method used

By modifying the metadata, point the primary volume A to disk two, and change the primary volume to volume C to point to disk one, reducing the number of background copies, remapping IO operations, and reducing the number of reads and writes.

Benefits of technology

The original two-read and three-write operations are reduced to one read and two-write, which significantly improves the performance of periodic asynchronous remote replication, reduces system resource usage, and improves stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098044B_ABST
    Figure CN115098044B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system and host for improving periodic asynchronous remote replication, which relates to the technical field of data protection and disaster recovery, and comprises the following steps: step 1: modifying metadata to point primary volume A to disk 2; step 2: writing host IO to disk 2; step 3: pointing primary volume change volume C to disk 1, and reading data in disk 1; step 4: remotely copying data from primary volume change volume C to auxiliary volume B. The method for improving the performance of periodic asynchronous remote replication by modifying metadata reduces the original two reads and three writes of periodic asynchronous remote replication to one read and two writes by modifying metadata, thereby greatly improving the performance of periodic asynchronous remote replication.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In the data processing process of the server, in order to protect the data and recover from disasters, remote replication is currently used to process the data, that is, to copy the data to other terminal devices. This terminal device can be a remote device corresponding to the local device, or it can be other devices in the network, thus realizing data backup.

[0003] In order to avoid the impact of data backup on the current system operation, data backup is generally performed periodically. For example, periodic asynchronous remote replication is used, which is to perform periodic replication to the remote end. Periodic asynchronous remote replication means that at the beginning of each cycle, the primary end will incrementally copy the data added in the previous cycle to the secondary end. Instead of backing up the current data

[0004] Each cycle is divided into two periods: a cycle copy period and a cycle waiting period. The cycle copy period is to copy the newly added data on the master end of the previous cycle to the slave end. The cycle waiting period is when data is written from the host to the storage master end, and the data is not copied to the slave end.

[0005] In the prior art, such as Figure 1 As shown, there is a change volume on the primary side of periodic asynchronous remote replication, which is used to record the newly added data in the previous cycle. First, the cycle begins to enter the periodic copy stage, and remote replication and change volumes begin to work. Remote replication copies from the primary volume change volume C to the secondary volume B according to the bitmap recorded in the previous cycle. Before the data written by the host is written to A, the original data of A will be copied to the primary volume change volume C. Second, during the periodic copy process, the bitmap of the host data is recorded on the bitmaps of the primary volume A and the primary volume change volume C. When the periodic copy is completed, that is, the incremental data copy of the previous cycle is completed, the host data is recorded on the remote replication bitmap. At the beginning of the next cycle, the change volume bitmap is merged into the remote replication bitmap, and the data corresponding to the bitmap is used as the data to be copied in the next cycle. The above process involves multiple read and write operations, which makes the periodic asynchronous remote replication occupy a large amount of system resources and affects the stable operation of the system. Summary of the invention

[0006] In order to overcome the deficiencies in the above-mentioned prior art, the present invention provides a method for improving periodic asynchronous remote replication, which can reduce the number of reads and writes of periodic asynchronous remote replication, avoid periodic asynchronous remote replication occupying a large amount of system resources and affecting the stable operation of the system.

[0007] The promotion cycle asynchronous remote replication methods include:

[0008] Step 1: Modify the metadata to point primary volume A to disk 2;

[0009] Step 2: Write host IO to disk 2;

[0010] Step 3: Change the master volume to volume C and point it to disk 1, and read the data in disk 1;

[0011] Step 4: Remotely copy data from primary volume C to secondary volume B.

[0012] It should be further explained that, in the method, the data of the previous cycle of the main volume A is redirected to the main volume change volume C.

[0013] It should be further explained that in step one, the metadata corresponding to the IO to be written to the primary volume A is configured, and the LBA of the IO of the primary volume A is mapped to the physical disk two.

[0014] It should be further explained that in step 2, the host IO is written to the LBA address corresponding to the disk 2.

[0015] It should be further explained that step three also includes: modifying metadata corresponding to the master volume change volume C; and mapping the LBA corresponding to the master volume change volume C to the physical disk one.

[0016] It should be further explained that step 4 also includes: recording the newly added data in the previous cycle according to the bitmap corresponding to the remote replication, copying the data in the previous cycle from the primary volume change volume C to the auxiliary volume B, and completing the asynchronous remote replication.

[0017] It should be further explained that, in the method, each cycle of the periodic asynchronous remote replication includes a periodic copy period and a periodic waiting period. The periodic copy period copies the newly added data in the previous cycle from the primary volume A to the secondary volume B.

[0018] The present invention also provides a promotion cycle asynchronous remote replication system, the system comprising: a remote replication processing module, a primary volume A, an auxiliary volume B, a primary volume change volume C, a disk 1 and a disk 2;

[0019] The remote replication processing module is used to modify the metadata to point the primary volume A to the disk 2;

[0020] Write host IO to disk 2;

[0021] Change the primary volume to volume C and point it to disk 1, and read the data in disk 1;

[0022] Remotely copy data from primary volume C to secondary volume B.

[0023] It should be further explained that the remote replication processing module configures LBA mapping to map the LBA of the IO of the primary volume A to the physical disk 2;

[0024] Write the host IO to the LBA address corresponding to disk 2.

[0025] The present invention also provides a host, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the promotion cycle asynchronous remote replication method when executing the program.

[0026] It can be seen from the above technical solutions that the present invention has the following advantages:

[0027] The method for improving periodic asynchronous remote replication of the present invention improves the performance of periodic asynchronous remote replication by modifying metadata. Compared with the method of the prior art, the number of background copies is reduced by modifying metadata. Moreover, by modifying metadata to perform mapping redirection, the original two reads and three writes of periodic asynchronous remote replication are reduced to one read and two writes, which greatly improves the performance of periodic asynchronous remote replication. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0029] Figure 1 It is a schematic diagram of the prior art;

[0030] Figure 2 A flow chart of a method for improving periodic asynchronous remote replication;

[0031] Figure 3 A schematic diagram of an embodiment of the present invention;

[0032] Figure 4 A flow chart of an implementation method for promoting periodic asynchronous remote replication;

[0033] Figure 5 The diagram is a schematic diagram of a periodic asynchronous remote replication system. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] like Figure 2 As shown, the diagrams provided in the promotion cycle asynchronous remote replication method provided by the present invention are only used to illustrate the basic concept of the present invention in a schematic manner. Figure 2The flowchart of the preferred embodiment of the method for asynchronous remote replication with a promotion cycle of the present invention is shown. The method for asynchronous remote replication with a promotion cycle is applied to one or more servers or hosts, and the server or host is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc.

[0036] The network where the server or host is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0037] The remote replication involved in the present invention is a data backup method for copying data to a remote device for data protection and disaster recovery. Periodic asynchronous remote replication is a periodic replication to the remote end. At the beginning of each cycle, the master end incrementally copies the data added in the previous cycle to the slave end. Each cycle is divided into two periods: a periodic copy period and a periodic waiting period. The periodic copy period is to copy the data added by the master end in the previous cycle to the slave end. The periodic waiting period is when data is written from the host to the storage master end, and the data is not copied to the slave end.

[0038] The following will be combined Figure 2 The method for improving periodic asynchronous remote replication of the present invention is described in detail, and the method for improving the performance of periodic asynchronous remote replication by modifying metadata. Compared with the previous method, the number of background copies is reduced by modifying metadata, and its advantages are: by modifying metadata to perform mapping redirection, the original two reads and three writes of periodic asynchronous remote replication are reduced to one read and two writes, which greatly improves the performance of periodic asynchronous remote replication.

[0039] See also Figure 2 The flowchart of the method for promoting periodic asynchronous remote replication in a specific embodiment is shown. It should be understood that the order of the sequence numbers of the steps in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. The method includes:

[0040] S101: modify the metadata to point the primary volume A to disk 2;

[0041] S102: Write host IO to disk 2;

[0042] S103: Change the primary volume to volume C and point it to disk 1, and read the data in disk 1;

[0043] S104: Remotely copy data from the primary volume change volume C to the secondary volume B. In this way, remote copying is completed, and a data backup method of copying data to a remote device is implemented.

[0044] Further speaking, if Figure 3 As shown, the present invention also relates to an implementation method, in which the original data in the host's disk 1 is copied to the disk 2, and then the host data is written to the disk 1. The metadata management is that the main volume A points to the disk 1, and the main volume change volume C points to the disk 2. The remote replication uses the main volume change volume C as the source volume for copying. The remote replication process of this method takes a total of two read operations and three write operations. Specifically, data is read from the main volume A, read from the main volume change volume C, and the write methods are respectively the main volume A, the main volume change volume C and the auxiliary volume B.

[0045] As a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for promoting periodic asynchronous remote replication is provided, such as Figure 4 As shown, the method includes:

[0046] S201: modify the metadata to point the primary volume A to the disk 2;

[0047] Here, the metadata corresponding to the IO to be written to the master volume A is configured, and the LBA of the IO of the master volume A is mapped to the physical disk 2. The data of the last cycle of the master volume A is redirected to the master volume change volume C. In this way, the data is copied to the remote device for data backup.

[0048] S202: Write host IO to disk 2;

[0049] Among them, the host IO is written to the LBA address corresponding to the disk 2.

[0050] S203: Change the primary volume to volume C and point it to disk 1, and read the data in disk 1;

[0051] Specifically, the metadata corresponding to the master volume change volume C is modified; and the LBA corresponding to the master volume change volume C is mapped to the physical disk one.

[0052] S204: Remotely copy data from primary volume C to secondary volume B.

[0053] According to the bitmap corresponding to remote replication, the newly added data in the previous cycle is recorded, and the data in the previous cycle is copied from the primary volume change volume C to the auxiliary volume B, completing the asynchronous remote replication.

[0054] In the method, each cycle of the periodic asynchronous remote replication includes a periodic copy period and a periodic waiting period. The periodic copy period copies the newly added data in the previous cycle from the primary volume A to the secondary volume B.

[0055] Thus, compared with the implementation of the previous embodiment, the metadata management method of the present invention reduces the original two-read and three-write operations to one-read and two-write, that is, reading data from the primary volume change volume C and writing it to the primary volume A and the auxiliary volume B. The performance of periodic asynchronous remote replication is greatly improved. That is, the metadata management in the present invention is that the newly written data of the primary volume A is stored in volume two, and the data of the previous cycle is stored in volume one, and there is no need to copy from disk one to disk two in the middle. The position corresponding to the primary volume change volume C points to disk one, which greatly improves the performance of periodic asynchronous remote replication.

[0056] It can be seen that the latter implementation method reduces the number of background copies by modifying metadata compared to the prior art and the previous implementation method. Its advantage is that by modifying metadata to perform mapping redirection, the original two reads and three writes of periodic asynchronous remote replication are reduced to one read and two writes, and the number of IOs per second is increased from 250,000 to 310,000, which greatly improves the performance of periodic asynchronous remote replication.

[0057] Based on the above-mentioned promotion cycle asynchronous remote replication method, the present invention also provides a promotion cycle asynchronous remote replication system, such as Figure 5 As shown, the system includes: a remote replication processing module, a primary volume A, a secondary volume B, a primary volume change volume C, a disk 1, and a disk 2;

[0058] The remote replication processing module is used to modify the metadata to point the primary volume A to the disk 2;

[0059] Write host IO to disk 2;

[0060] Change the primary volume to volume C and point it to disk 1, and read the data in disk 1;

[0061] Remotely copy data from primary volume C to secondary volume B.

[0062] The remote replication processing module configures LBA mapping, maps the LBA of the IO of the primary volume A to the physical disk 2, and writes the host IO to the LBA address corresponding to the disk 2.

[0063] The improved periodic asynchronous remote replication system provided by the present invention reduces one read operation and one write operation in the entire periodic asynchronous remote replication process by modifying the metadata of the primary volume A and the primary volume change volume C in the periodic asynchronous remote replication relationship.

[0064] The method of modifying metadata of the present invention is to redirect the data of the previous cycle of the main volume A to the main volume change volume C, and there is no need to copy the data of the previous cycle to the main volume change volume C.

[0065] Each cycle of the periodic asynchronous remote replication of the present invention includes a periodic copying period and a periodic waiting period. The periodic copying period copies the newly added data of the previous cycle from the primary end to the secondary end.

[0066] The units and algorithm steps of each example described in the embodiment disclosed in the lifting cycle asynchronous remote replication system provided by the present invention can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0067] The block diagrams shown in the accompanying drawings of the boost cycle asynchronous remote replication system provided by the present invention are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0068] The boost cycle asynchronous remote replication system provided by the present invention is a combination of the units and algorithm steps of each example described in the embodiments disclosed herein, and can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0069] Those skilled in the art will appreciate that various aspects of the method for asynchronous remote replication of a promotion cycle provided by the present invention can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, which can be collectively referred to as a "circuit", "module" or "system" here.

[0070] The boost cycle asynchronous remote replication method provided by the present invention can be written in any combination of one or more programming languages ​​to write program codes for performing the operations disclosed herein, and the programming languages ​​include object-oriented programming languages—such as Java, C++, etc., and also include conventional procedural programming languages—such as "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0071] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for increasing periodic asynchronous remote replication, characterized in that: Methods include: Step 1: Modify the metadata to point primary volume A to disk 2; Configure the metadata corresponding to the IO to be written to the primary volume A, and map the LBA of the IO of the primary volume A to the physical disk 2; Step 2: Write host IO to disk 2; Write the host IO to the LBA address corresponding to disk 2; Step 3: Change the master volume to volume C and point it to disk 1, and read the data in disk 1; Modify the metadata corresponding to the master volume change volume C; map the LBA corresponding to the master volume change volume C to physical disk one; Step 4: Remotely copy data from primary volume C to secondary volume B; According to the bitmap corresponding to remote replication, the newly added data in the previous cycle is recorded, and the data in the previous cycle is copied from the primary volume change volume C to the auxiliary volume B, completing asynchronous remote replication; In the method, each cycle of the periodic asynchronous remote replication includes a periodic copy period and a periodic waiting period. The periodic copy period copies the newly added data in the previous cycle from the primary volume A to the secondary volume B.

2. The method for asynchronous remote replication with a promotion period according to claim 1, characterized in that: In the method, the data of the previous cycle of the main volume A is redirected to the main volume change volume C.

3. A promotion cycle asynchronous remote replication system, characterized in that: The system adopts the promotion period asynchronous remote replication method as described in any one of claims 1 to 2; The system includes: a remote replication processing module, a primary volume A, a secondary volume B, a primary volume change volume C, a disk 1, and a disk 2; The remote replication processing module is used to modify the metadata to point the primary volume A to the disk 2; Configure the metadata corresponding to the IO to be written to the primary volume A, and map the LBA of the IO of the primary volume A to the physical disk 2; Write host IO to disk 2; Write the host IO to the LBA address corresponding to disk 2; Change the primary volume to volume C and point it to disk 1, and read the data in disk 1; Modify the metadata corresponding to the master volume change volume C; map the LBA corresponding to the master volume change volume C to physical disk one; Remotely copy data from primary volume C to secondary volume B; According to the bitmap corresponding to remote replication, the newly added data in the previous cycle is recorded, and the data in the previous cycle is copied from the primary volume change volume C to the auxiliary volume B, completing asynchronous remote replication; In the method, each cycle of the periodic asynchronous remote replication includes a periodic copy period and a periodic waiting period. The periodic copy period copies the newly added data in the previous cycle from the primary volume A to the secondary volume B.

4. The promotion cycle asynchronous remote replication system according to claim 3, characterized in that: The remote replication processing module configures LBA mapping to map the LBA of the IO of the primary volume A to the physical disk 2; Write the host IO to the LBA address corresponding to disk 2.

5. A host comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the promotion cycle asynchronous remote replication method according to any one of claims 1 to 2 are implemented.