A remote volume replication transmission method, system, device and storage medium

By creating consistency groups in the primary cluster and establishing remote replication relationships, the problem of time-consuming and inefficient creation of slave volumes in the primary cluster is solved, and the simultaneous creation and data synchronization of multiple remote replication relationships is achieved.

CN114996053BActive Publication Date: 2025-06-27JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210609513.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-06-27
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

When there are particularly many master volumes in the primary cluster, creating slave volumes with the same number and capacity can take a lot of time and be error-prone, and the existing technology can only create one remote replication relationship at a time, resulting in a greatly reduced work efficiency.

Method used

By creating consistency groups in the primary cluster, a remote replication relationship between the primary volume and the slave volume is established, and a slave volume is created in the slave cluster based on the remote replication relationship and the metadata information of the primary volume, multiple remote replication relationships are created simultaneously.

Benefits of technology

This method does not require prior creation of slave volumes consistent with the number and capacity of primary volumes, and can create multiple remote replication relationships simultaneously, improves productivity and ensures data synchronization between primary volumes and slave volumes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114996053B_ABST
    Figure CN114996053B_ABST
Patent Text Reader

Abstract

The present application discloses a remote volume replication transmission method, system, device and storage medium, which relates to the field of information technology. The remote volume replication transmission method provided by the present application adopts the method of using a consistency group to establish communication between the master cluster and the slave cluster, so that the communication between the master volume and the slave volume can be directly established by using the consistency group. The slave volume is created in the slave cluster according to the remote replication relationship and the metadata information of the master volume, and the master volume and the slave volume are established with a remote replication relationship and a full volume is executed. Therefore, compared with the previous remote volume replication method, when the data of the master volume is replicated to the slave volume in the present application, during the execution of the master volume and the slave volume, the remote replication relationship between the master volume and the slave volume can be directly used for data transmission, so as to synchronize the data of the master volume and the slave volume. There is no need to establish slave volumes that are consistent with the number and capacity of the master volume in advance, and multiple remote replication services can be carried out simultaneously, thereby improving the service efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and particularly to a remote volume replication and transmission method, system, device, and storage medium. Background Art

[0002] In recent years, with the development of information technology, the importance of related technologies for data security and availability has become increasingly prominent. And data backup has always been considered an effective means to improve data security. Currently, data backup methods are mainly divided into two types: file-level backup and block-level backup. In the block-level backup hierarchy, the remote volume mirror replication method is a good backup method for production data.

[0003] In the existing remote volume replication methods, the primary cluster can only create a remote replication system relationship for one volume at a time, and the secondary volume must be created in advance to ensure the same capacity as the primary volume. However, when there are a large number of primary volumes in the primary cluster, not only does it take a lot of time to create secondary volumes with the same quantity and capacity and it is very easy to make mistakes, but also creating only one remote replication relationship at a time will greatly reduce work efficiency.

[0004] In view of the above technologies, finding a remote volume replication and transmission method that can create multiple remote replication relationships simultaneously is an urgent problem for those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a remote volume replication and transmission method, system, device, and storage medium, so as to solve the problem that when there are a large number of primary volumes in the primary cluster, not only does it take a lot of time to create secondary volumes with the same quantity and capacity and it is very easy to make mistakes, but also creating only one remote replication relationship at a time will greatly reduce work efficiency.

[0006] To solve the above technical problems, this application provides a remote volume replication and transmission method, including:

[0007] Create a consistency group in the primary cluster, where the primary cluster is a cluster established in a local computer using local storage nodes;

[0008] Create a primary volume in the primary cluster, and establish a remote replication relationship for the one-time group. The remote replication relationship is communication information between the secondary cluster and the primary cluster, and the secondary cluster is a cluster established using remote storage nodes;

[0009] Create a secondary volume in the secondary cluster according to the remote replication relationship and the metadata information of the primary volume;

[0010] Establish a remote replication relationship between the primary volume and the secondary volume and perform a full volume, and copy the data of the primary volume to the secondary volume.

[0011] Preferably, after creating the consistency group in the master cluster, the method further includes:

[0012] Copying the key of the slave cluster to the directory of the master cluster configuration file, so as to ensure that the master cluster can access and operate the slave cluster;

[0013] The creating a slave volume in the slave cluster according to the remote replication relationship and the metadata information of the master volume includes:

[0014] Connecting to the slave cluster by using the key, and creating the slave volume in the slave cluster while keeping the metadata information of the slave volume consistent with the master metadata information.

[0015] Preferably, after establishing a remote replication relationship between the master volume and the slave volume and performing a full volume copy, and copying the data of the master volume to the slave volume, the method further includes:

[0016] Writing data to the master volume;

[0017] Opening the slave volume by using the master volume and writing the data to the slave volume.

[0018] Preferably, the establishing a remote replication relationship for the one-time group includes:

[0019] Copying the configuration file of the slave cluster and the key file of the slave cluster to the master cluster, and copying the configuration file of the master cluster and the key file of the master cluster to the slave cluster.

[0020] Preferably, both the writing and copying of data are performed in the manner of snapshot copy.

[0021] Preferably, after copying the configuration file of the slave cluster and the key file of the slave cluster to the master cluster, the method further includes:

[0022] Modifying the name and management IP of the configuration file of the slave cluster and the key file of the slave cluster according to the name and management IP of the master cluster.

[0023] Preferably, in the further including:

[0024] Receiving an instruction from a sender to obtain data of the master volume;

[0025] Judging whether the master cluster fails;

[0026] If so, retrieving data of the slave volume in the slave cluster and feeding it back to the sender.

[0027] To solve the above problems, the present application further provides a remote volume replication and transmission system, including:

[0028] A creation module, used to create a consistency group in the main cluster, where the main cluster is a cluster established in a local computer using local storage nodes;

[0029] A main volume module, used to create a main volume in the main cluster and establish a remote replication relationship for the one-time group, where the remote replication relationship is communication information between the slave cluster and the main cluster, and the slave cluster is a cluster established using remote storage nodes;

[0030] A slave volume module, used to create a slave volume in the slave cluster according to the remote replication relationship and the metadata information of the main volume;

[0031] An execution module, used to establish a remote replication relationship between the main volume and the slave volume and perform a full volume, and copy the data of the main volume to the slave volume.

[0032] Preferably, the device further includes:

[0033] A key module, used to copy the key of the slave cluster to the main cluster configuration file directory, so as to ensure that the main cluster can access and operate the slave cluster.

[0034] Preferably, the device further includes:

[0035] A main writing module, used to write data to the main volume;

[0036] A slave writing module, used to open the slave volume using the main volume and write the data to the slave volume.

[0037] Preferably, the device further includes:

[0038] A modification module, used to modify the configuration file of the slave cluster and the name and management IP of the key file of the slave cluster according to the name and management IP of the main cluster.

[0039] Preferably, after establishing a remote replication relationship between the main volume and the slave volume and performing a full volume, and copying the data of the main volume to the slave volume, the device further includes:

[0040] A receiving module, used to receive an instruction from a sender to obtain the data of the main volume;

[0041] A judgment module, used to judge whether the main cluster fails, and if so, activate a feedback module;

[0042] A feedback module, used to retrieve the data of the slave volume in the slave cluster and feedback it to the sender.

[0043] To solve the above problems, the present application also provides a remote volume replication transmission device, including a memory for storing computer programs;

[0044] a processor for implementing the steps of the remote volume replication transmission method as described above when executing the computer program.

[0045] To solve the above problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the remote volume replication transmission method as described above are implemented.

[0046] The remote volume replication transmission method provided by the present application adopts the method of using a consistency group to establish communication between the master cluster and the slave cluster, so that communication between the master volume and the slave volume can be directly established using the consistency group. According to the remote replication relationship and the metadata information of the master volume, a slave volume is created in the slave cluster, and a remote replication relationship is established between the master volume and the slave volume and a full volume is executed. Therefore, compared with the previous remote volume replication method, when the data of the master volume is replicated to the slave volume in the present application, during the execution of the master volume and the slave volume, the remote replication relationship between the master volume and the slave volume can be directly used for data transmission, so as to synchronize the data of the master volume and the slave volume. It is not necessary to establish slave volumes that are consistent with the number and capacity of the master volume in advance, and multiple remote replication services can be carried out simultaneously, thereby improving the service efficiency.

[0047] The remote volume replication transmission system provided by the present application corresponds to the above-mentioned remote volume replication transmission device, so the beneficial effects are the same as above and will not be repeated here.

[0048] The remote volume replication transmission device and the computer-readable storage medium provided by the present application correspond to the above-mentioned remote volume replication method, so the beneficial effects are the same as above and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0050] Figure 1 It is a flowchart of a remote volume replication transmission method provided by an embodiment of the present application;

[0051] Figure 2 It is a schematic diagram of a remote volume replication transmission system provided by an embodiment of the present application;

[0052] Figure 3 It is a structural diagram of a remote volume replication transmission device provided by another embodiment of the present application. Detailed implementation manners

[0053] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0054] The core of the present application is to provide a remote volume replication and transmission method, system, device and storage medium, so as to solve the problem that when there are a large number of master volumes in the master cluster, not only does it take a lot of time to create slave volumes with the same quantity and capacity and it is very easy to make mistakes, but also creating only one remote replication relationship at a time will greatly reduce the work efficiency.

[0055] In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below with reference to the drawings and specific implementation manners.

[0056] Figure 1 The following is a flowchart of a remote volume replication and transmission method provided by an embodiment of the present application, including:

[0057] S10: Create a consistency group in the master cluster, where the master cluster is a cluster established by using local storage nodes in a local computer;

[0058] Cluster technology is a relatively new technology. Through cluster technology, relatively high benefits in terms of performance, reliability, and flexibility can be obtained at a relatively low cost, and its task scheduling is the core technology in the cluster system. A cluster is a group of independent computers interconnected by a high-speed network. They form a group and are managed in the mode of a single system. When a client interacts with the cluster, the cluster acts like an independent server. The cluster configuration is used to improve availability and scalability.

[0059] A consistency group refers to a collection of remotely replicated data with business associations. All remote replications in the consistency group can perform operations such as split, synchronization, and master-slave switchover simultaneously. In medium and large-scale database applications, data, logs, modification information, etc. are stored in different logical unit numbers of the storage system. Missing the data of one of the logical unit numbers will cause the data in other logical unit numbers to become invalid and unable to be used continuously.

[0060] In the application of remote replication, in addition to synchronizing, splitting, and performing master-slave switching operations on individual remote replications, multiple remote replications can also be uniformly managed through a consistency group. The application description of the remote replication consistency group is as follows: Only the master-side storage system can add the remote replications on this system to the consistency group, and the slave logical unit numbers of all remote replications must be located on the same remote storage system. The logical unit numbers of different remote replications in the consistency group can be located on different working controllers. The remote replications in the consistency group must be of the same replication mode. Create a master volume in the master cluster and establish a remote replication relationship for the one-time group. The remote replication relationship is the communication information between the slave cluster and the master cluster, and the slave cluster is a cluster established using remote storage nodes.

[0061] In a telecommunications network, a node is a connection point, representing a redistribution point or a communication endpoint (some terminal devices). The definition of a node depends on the network and protocol layer mentioned. A physical network node is an active electronic device connected to the network, capable of sending, receiving, or forwarding information through a communication channel. Therefore, passive distribution points (such as patch panels or plug boards) are not nodes. Any storage unit in this embodiment is a storage node. For example, any storage disk or hard drive of a local computer can be a storage node. In this embodiment, the specific storage method is not limited. It can adopt a caching method to cache the information that needs to be transmitted and modified in a timely manner, or adopt a long-term storage method to write some infrequently used system data to disk for persistent storage.

[0062] In this embodiment, the relevant elements of the above-mentioned cluster, namely the number and related types of storage nodes, are not limited, and the specific creation process of the consistency group is not limited either. It can be understood that for a cluster, retrieving all the storage nodes of a local computer is beneficial to expanding the storage scope, but it will correspondingly increase the management difficulty. Therefore, it can be modified according to the specific situation.

[0063] S11: Create a master volume in the master cluster and establish a remote replication relationship for the one-time group. The remote replication relationship is the communication information between the slave cluster and the master cluster, and the slave cluster is a cluster established using remote storage nodes.

[0064] It should be noted that in this embodiment, the specific storage form of the remote storage node is not limited. It can be understood that the cloud computing method can be adopted as the storage method of the remote storage node.

[0065] For individual users, a lot of mobile phone information and network information can be stored in the cloud data center of the Internet. For industrial users and enterprise users, it means that there is no need to purchase servers anymore, but they can directly purchase computing and storage services from the cloud data center. Even large industries and enterprises can build their own private clouds. In terms of construction mode, it is no longer the chimney-style way where multiple systems are isolated from each other, but through virtualization technology, the servers and storage are pooled, and multiple systems share computing resources. Thus, by taking advantage of cloud computing, the transmission of stored data can be made more convenient.

[0066] It should be noted that the main volume and the secondary volume in this embodiment refer to storage volumes, which are storage areas on the hard disk. The drive formats the volume using a file system and assigns it a drive letter. According to functions, it can be divided into the following types of volumes.

[0067] The striped volume is similar to the spanned volume. It consists of two or more hard disks, but the empty space contributed by each hard disk must be the same. When a file is stored in the striped volume, the system will disperse the data and store it in the spaces on each hard disk in the advanced disk. If professional hardware devices and disks (such as, array cards, SCSI hard disks) are used, the access efficiency of the file can be improved, and the CPU load can be reduced.

[0068] The spanned volume can be composed of storage spaces on two or more hard disks. The hard disk space provided by each hard disk does not have to be the same. For example, the first hard disk provides 30MB of space, and the second hard disk provides 70MB of space. The combined spanned volume will have 100MB of space.

[0069] The basic volume refers to the volume on the basic disk. The basic volume includes the primary partition and the logical drive in the extended partition. A basic disk cannot be created on a dynamic disk. Before creating these volumes, the disk must be upgraded to a dynamic disk.

[0070] The mirrored volume is a dynamic volume with fault tolerance. It provides data redundancy by using two copies or mirrors of the volume to copy the data stored on the volume. All data written to the mirrored volume is written to two mirrors located on independent physical disks.

[0071] If a physical disk fails, the data on that failed disk will be unavailable, but the system can continue to operate using the unaffected disks. When one of the mirrors in the mirrored volume fails, the mirrored volume must be broken, so that the other mirror becomes a volume with an independent drive letter. Then a new mirrored volume can be created on other disks, and the available space of this volume should be the same or larger.

[0072] Remote replication refers to using the underlying data replication technology of storage to copy the data in the primary device to the secondary. Since the underlying storage data is used, the data in the storage system can be directly used at the secondary site without operations such as redoing the file system. In this embodiment, the specific creation process of the primary volume and the specific content of the corresponding remote replication relationship are not specifically limited and can be modified according to specific circumstances.

[0073] S12: Create a secondary volume in the secondary cluster according to the remote replication relationship and the metadata information of the primary volume;

[0074] It should be noted that metadata, also known as intermediate data or relay data, is data that describes data. It is mainly information that describes the attributes of data and is used to support functions such as indicating storage locations, historical data, resource searches, and file records. Metadata is a kind of electronic catalog. In order to achieve the purpose of compiling the catalog, it is necessary to describe and collect the content or characteristics of the data, and then achieve the purpose of assisting data retrieval.

[0075] Metadata is data that describes other data, or it is structured data that provides information about a certain resource. Metadata is data that describes objects such as information resources or data, and its purpose of use is to: identify resources; evaluate resources; track changes in resources during use; achieve simple and efficient management of a large amount of networked data; achieve effective discovery, search, integrated organization of information resources, and effective management of the used resources.

[0076] Since the specific content information of the remote replication relationship and the corresponding primary volume is not limited in the above embodiment, the content of the corresponding secondary volume is not specifically limited in this embodiment either. It should be noted that since the secondary cluster is a remote cluster, the specific creation form of the secondary cluster is not specifically limited either.

[0077] S13: Establish a remote replication relationship between the primary volume and the secondary volume and perform a full volume replication, and copy the data of the primary volume to the secondary volume.

[0078] It should be noted that when a data needs to be stored in multiple copies, a consistency problem will occur, so synchronization is required. Synchronization is divided into two types: incremental and full volume. Simply put, within a certain period, copying all the data in the current system within the cycle time to the target table / system is called full volume synchronization.

[0079] The remote volume replication and transmission method provided in this embodiment adopts the method of using a consistency group to establish communication between the master cluster and the slave cluster, so that communication between the master volume and the slave volume can be directly established using the consistency group. The slave volume is created in the slave cluster according to the remote replication relationship and the metadata information of the master volume. A remote replication relationship is established between the master volume and the slave volume and a full volume replication is executed. Therefore, compared with the previous remote volume replication method, in this application, when replicating the data of the master volume to the slave volume, during the execution of the master volume and the slave volume, the remote replication relationship between the master volume and the slave volume can be directly used for data transmission, so as to synchronize the data of the master volume and the slave volume. It is not necessary to create slave volumes that are consistent with the number and capacity of the master volume in advance, and multiple remote replication services can be carried out simultaneously, thereby improving the service efficiency.

[0080] Considering the mutual communication between the master cluster and the slave cluster, a preferred solution is provided here. After creating a consistency group in the master cluster, it further includes:

[0081] Copy the key of the slave cluster to the directory of the master cluster configuration file to ensure that the master cluster can access and operate the slave cluster;

[0082] Creating a slave volume in the slave cluster according to the remote replication relationship and the metadata information of the master volume includes:

[0083] Connect to the slave cluster using the key, and create a slave volume in the slave cluster while keeping the metadata information of the slave volume consistent with the master metadata information.

[0084] It should be noted that the key mentioned in this embodiment is a parameter, which is the parameter input in the algorithm for converting plaintext to ciphertext or ciphertext to plaintext. Keys are divided into symmetric keys and asymmetric keys. According to whether the encryption key and the decryption key used in the cryptographic algorithm are the same and whether the decryption process can be deduced from the encryption process (or the encryption process can be deduced from the decryption process), the cryptographic system can be divided into a symmetric cryptographic system (also called a single-key cryptographic system, a secret-key cryptographic system, a symmetric-key cryptographic system) and an asymmetric cryptographic system (also called a dual-key cryptographic system, a public-key cryptographic system, an asymmetric-key cryptographic system).

[0085] Symmetric-key encryption, also known as private-key encryption or session-key encryption algorithm, means that the sender and receiver of information use the same key to encrypt and decrypt data. Its greatest advantage is fast encryption / decryption speed, which is suitable for encrypting large amounts of data, but key management is difficult.

[0086] An asymmetric key encryption system, also known as public key encryption. It requires the use of different keys to perform encryption and decryption operations separately. One key is publicly released, i.e., the public key, and the other is secretly kept by the user himself, i.e., the private key. The information sender uses the public key to encrypt, while the information receiver uses the private key to decrypt. The public key mechanism is flexible, but the encryption and decryption speeds are much slower than those of symmetric key encryption.

[0087] In this embodiment, the specific type, form, and related content of the key are not limited. It can be understood that through the drive of the key, the normal communication between the main cluster and the slave cluster is ensured, thereby ensuring the security of data transmission.

[0088] Considering the need to maintain the consistency of the data in the main volume and the slave volume, a preferred solution is provided here. After establishing a remote replication relationship between the main volume and the slave volume and performing a full volume copy, and copying the data of the main volume to the slave volume, it further includes:

[0089] Write data to the main volume;

[0090] Use the main volume to open the slave volume and write the data to the slave volume.

[0091] By writing data to the main volume and then writing the corresponding data to the slave volume to ensure the content consistency of the main volume and the slave volume.

[0092] In the above embodiment, the specific content of the remote replication relationship is not limited. A preferred solution is provided here. Establishing a remote replication relationship for a one-time group includes:

[0093] Copy the configuration file of the slave cluster and the key file of the slave cluster to the main cluster, and copy the configuration file of the main cluster and the key file of the main cluster to the slave cluster.

[0094] In the field of computer science, a configuration file is a computer file that can configure parameters and initial settings for some computer programs.

[0095] It should be noted that in this embodiment, the key file and the configuration file are synchronized between the main cluster and the slave cluster, thereby ensuring the prerequisite for establishing the configuration communication channel between the main cluster and the slave cluster, and thus ensuring subsequent normal communication.

[0096] In the above embodiment, the specific methods of data writing and copying are not limited. A preferred solution is provided here. Both data writing and copying are performed in the form of snapshot copying.

[0097] Preferably, after copying the configuration file of the slave cluster and the key file of the slave cluster to the main cluster, it further includes:

[0098] Modify the configuration file of the slave cluster, the name of the key file of the slave cluster, and the management IP according to the name of the master cluster and the management IP.

[0099] The purpose of designing the Internet Protocol (IP) is to improve the scalability of the network: one is to solve Internet problems and achieve interconnection of large-scale and heterogeneous networks; the other is to separate the coupling relationship between top-level network applications and bottom-level network technologies to facilitate their independent development. According to the end-to-end design principle, IP only provides a connectionless, unreliable, best-effort packet transmission service for hosts.

[0100] In this embodiment, the names and management IPs of the synchronized configuration file and key file are modified to be the same as those related to the master cluster, thus ensuring the normal operation of communication and facilitating relevant data query.

[0101] Considering the specific remote communication function of making good use of the consistency group, a preferred solution is provided here, which further includes:

[0102] Receive an instruction from the sender to obtain data of the master volume;

[0103] Judge whether the master cluster fails;

[0104] If so, retrieve the data of the slave volume in the slave cluster and feedback it to the sender.

[0105] It should be noted that in this embodiment, the specific type of the sender is not limited, it can be a network server or a specific information device, and in this embodiment, the specific method for judging whether the master cluster fails is not limited.

[0106] It should be noted that in this embodiment, by proposing that when the master cluster fails and the master volume becomes unavailable, the data in the slave volume can be retrieved through the consistency group to respond to the request instruction, thus ensuring the normal operation of the service and preventing data redundancy.

[0107] In the above embodiment, the remote volume replication transmission method is described in detail. The present application also provides an embodiment corresponding to the remote volume replication transmission device. It should be noted that the present application describes the embodiment of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.

[0108] Figure 2 The following is a schematic diagram of a remote volume replication transmission system of the present application. The device includes:

[0109] A creation module 10, configured to create a consistency group in the master cluster, where the master cluster is a cluster established by using local storage nodes in a local computer;

[0110] The main volume module 11 is used to create a main volume in the main cluster and establish a remote replication relationship for a one-time group. The remote replication relationship is communication information between the slave cluster and the main cluster, and the slave cluster is a cluster established using remote storage nodes;

[0111] The slave volume module 12 is used to create a slave volume in the slave cluster according to the remote replication relationship and the metadata information of the main volume;

[0112] The execution module 13 is used to establish a remote replication relationship between the main volume and the slave volume and perform a full volume, and copy the data of the main volume to the slave volume.

[0113] Preferably, the device further includes:

[0114] The key module is used to copy the key of the slave cluster to the main cluster configuration file directory to ensure that the main cluster can access and operate the slave cluster.

[0115] Preferably, the device further includes:

[0116] The main writing module is used to write data to the main volume;

[0117] The slave writing module is used to open the slave volume using the main volume and write data to the slave volume.

[0118] Preferably, the device further includes:

[0119] The modification module is used to modify the configuration file of the slave cluster and the name and management IP of the key file of the slave cluster according to the name and management IP of the main cluster.

[0120] Preferably, after establishing a remote replication relationship between the main volume and the slave volume and performing a full volume, and copying the data of the main volume to the slave volume, the device further includes:

[0121] The receiving module is used to receive an instruction from the sender to obtain the data of the main volume;

[0122] The judgment module is used to judge whether the main cluster fails. If so, the feedback module is enabled;

[0123] The feedback module is used to retrieve the data of the slave volume in the slave cluster and feedback it to the sender.

[0124] Since the embodiments of the device part correspond to the embodiments of the method part, for the embodiments of the device part, please refer to the description of the embodiments of the method part, which will not be elaborated here for the time being.

[0125] The remote volume replication and transmission system provided in this embodiment includes a creation module, a primary volume module, a secondary volume module, and an execution module. By adopting the method of consistency group, communication between the primary cluster and the secondary cluster is established, and thus communication between the primary volume and the secondary volume can be directly established using the consistency group. The secondary volume is created in the secondary cluster according to the remote replication relationship and the metadata information of the primary volume. A remote replication relationship is established between the primary volume and the secondary volume and a full volume replication is executed. Therefore, compared with the previous remote volume replication method, when the data of the primary volume is replicated to the secondary volume in this application, during the execution of the primary volume and the secondary volume, the remote replication relationship between the primary volume and the secondary volume can be directly used for data transmission, so as to synchronize the data of the primary volume and the secondary volume. It is not necessary to create secondary volumes that are consistent with the quantity and capacity of the primary volume in advance, and multiple remote replication services can be carried out simultaneously, thus improving the service efficiency.

[0126] Figure 3 The structure diagram of the remote volume replication and transmission device provided in another embodiment of this application is as follows Figure 3 shown. The remote volume replication and transmission device includes: a memory 20 for storing computer programs;

[0127] a processor 21 for implementing the steps of the remote volume replication and transmission method mentioned in the above embodiment when executing the computer program.

[0128] The remote volume replication and transmission device provided in this embodiment may include, but is not limited to, smart phones, tablet computers, laptop computers, desktop computers, etc.

[0129] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0130] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201. After the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the remote volume replication transmission method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the above remote volume replication transmission method.

[0131] In some embodiments, the remote volume replication transmission device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0132] Those skilled in the art can understand that Figure 3 the structure shown in does not constitute a limitation on the remote volume replication transmission device, and may include more or fewer components than shown in the figure.

[0133] The remote volume replication transmission device provided by the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: the remote volume replication transmission method involved in the above embodiment.

[0134] Since the embodiments of the device part correspond to the embodiments of the method part, for the embodiments of the device part, please refer to the description of the embodiments of the method part, which will not be elaborated here for the time being.

[0135] The remote volume replication transmission device provided by this embodiment includes a memory and an executor. When the executor executes the computer program in the memory, it can establish communication between the master cluster and the slave cluster by adopting a consistency group method, so that communication between the master volume and the slave volume can be directly established by using the consistency group. The slave volume is created in the slave cluster according to the remote replication relationship and the metadata information of the master volume. The master volume and the slave volume are established with a remote replication relationship and a full volume is executed. Therefore, compared with the previous remote volume replication method, in this application, when copying the data of the master volume to the slave volume, during the execution of the master volume and the slave volume, the remote replication relationship between the master volume and the slave volume can be directly adopted for data transmission, so as to synchronize the data of the master volume and the slave volume. It is not necessary to establish slave volumes with the same quantity and capacity as the master volume in advance, and multiple remote replication services can be carried out simultaneously, thereby improving the service efficiency.

[0136] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0137] It can be understood that if the method in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0138] Since the embodiments of the readable storage medium correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be elaborated here for the time being.

[0139] The computer-readable storage medium provided in this embodiment, when read, can establish communication between the master cluster and the slave cluster by adopting a consistency group, so that communication between the master volume and the slave volume can be directly established by using the consistency group. A slave volume is created in the slave cluster according to the remote replication relationship and the metadata information of the master volume. A remote replication relationship is established between the master volume and the slave volume and a full volume is executed. Thus, compared with the previous remote volume replication method, when the data of the master volume is copied to the slave volume in the present application, during the execution of the master volume and the slave volume, the remote replication relationship between the master volume and the slave volume can be directly adopted for data transmission, so as to synchronize the data of the master volume and the slave volume. It is not necessary to pre-establish slave volumes that are the same as the number and capacity of the master volume, and multiple remote replication services can be carried out simultaneously, thereby improving the service efficiency.

[0140] The above has introduced in detail a remote volume replication transmission method, system, device, and storage medium provided by this application. The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same and similar parts among the various embodiments, reference can be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section. It should be noted that for those of ordinary skill in the art of this technology, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0141] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element.

Claims

1. A remote volume replication transmission method, characterized in that, Including: Create a consistency group in the primary cluster, where the primary cluster is a cluster established in a local computer using local storage nodes. Here, the consistency group refers to a set of remote replications with business associations; Create a primary volume in the primary cluster, and establish a remote replication relationship for the consistency group. The remote replication relationship is communication information between the secondary cluster and the primary cluster, and the secondary cluster is a cluster established using remote storage nodes; Connect to the secondary cluster using the key of the secondary cluster, and create the secondary volume in the secondary cluster while keeping the metadata information of the secondary volume consistent with the metadata information of the primary volume; Establish the remote replication relationship between the primary volume and the secondary volume and perform a full volume copy, and copy the data of the primary volume to the secondary volume.

2. The remote volume replication transmission method according to claim 1, wherein After creating the consistency group in the primary cluster, it further includes: Copy the key of the secondary cluster to the configuration file directory of the primary cluster to ensure that the primary cluster can access and operate the secondary cluster.

3. The remote volume replication transmission method according to claim 2, wherein After establishing the remote replication relationship between the primary volume and the secondary volume and performing a full volume copy, and copying the data of the primary volume to the secondary volume, it further includes: Write data to the primary volume; Open the secondary volume using the primary volume and write the data to the secondary volume.

4. The remote volume replication transmission method according to claim 2, wherein Establishing the remote replication relationship for the consistency group includes: Copy the configuration file of the secondary cluster and the key file of the secondary cluster to the primary cluster, and copy the configuration file of the primary cluster and the key file of the primary cluster to the secondary cluster.

5. The remote volume replication transmission method according to any one of claims 1 to 4, characterized in that The writing and copying of the data are both performed in the way of snapshot copy.

6. The remote volume replication transmission method according to claim 4, wherein After copying the configuration file of the secondary cluster and the key file of the secondary cluster to the primary cluster, it further includes: Modify the name and management IP of the configuration file of the secondary cluster and the key file of the secondary cluster according to the name and management IP of the primary cluster.

7. The remote volume replication transmission method according to claim 1, wherein After establishing the remote replication relationship between the primary volume and the secondary volume and performing a full volume copy, and copying the data of the primary volume to the secondary volume, it further includes: Receive an instruction from the sender to obtain the data of the primary volume; Judge whether the primary cluster fails; If so, retrieve the data of the secondary volume in the secondary cluster and feedback it to the sender.

8. A remote volume replication transmission system, characterized in that, Including: A creation module for creating a consistency group in the primary cluster, where the primary cluster is a cluster established in a local computer using local storage nodes. Here, the consistency group refers to a set of remote replications with business associations; A primary volume module for creating a primary volume in the primary cluster and establishing a remote replication relationship for the consistency group. The remote replication relationship is communication information between the secondary cluster and the primary cluster, and the secondary cluster is a cluster established using remote storage nodes; A secondary volume module for connecting to the secondary cluster using the key of the secondary cluster and creating the secondary volume in the secondary cluster while keeping the metadata information of the secondary volume consistent with the metadata information of the primary volume; An execution module for establishing a remote replication relationship between the primary volume and the secondary volume and performing a full volume copy, and copying the data of the primary volume to the secondary volume.

9. A remote volume replication transmission device, characterized in that, including a memory for storing a computer program; a processor for implementing the steps of the remote volume replication transmission method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the remote volume replication transmission method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and device for creating consistency group, and computer readable storage medium

    CN113835835A

  • Methods and structure for improved fault tolerance during initialization of a RAID logical unit

    US20040216012A1