A data replication method, apparatus and storage medium

By asynchronously replicating cloud disk data across different regions, the problem of insufficient disaster recovery and backup functions of existing cloud platforms is solved, enabling cross-regional data backup and business migration, and enhancing the data reliability and availability of the cloud platform.

CN115268783BActive Publication Date: 2026-07-14CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TELECOM CLOUD TECH CO LTD
Filing Date
2022-07-26
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

The existing cloud platform's disaster recovery and backup functions are mainly within the current resource pool region, and cannot effectively prevent data loss caused by large-scale failures such as earthquakes and circuits.

Method used

By asynchronously replicating cloud disk data between cloud platforms in different regions, cross-regional backups are created, enabling data synchronization and asynchronous replication between the primary and secondary disks, thus ensuring the reliability and availability of data across different regions.

Benefits of technology

It enables cross-regional data backup and business migration, enhances the reliability and availability of cloud platform data, reduces user operations, and improves data replication efficiency and business recovery speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115268783B_ABST
    Figure CN115268783B_ABST
Patent Text Reader

Abstract

The application provides a data replication method and device and a storage medium, relates to the technical field of cloud computing, and is used for enhancing the reliability of cloud platform data. In the method, a trigger instruction can be received, the trigger instruction containing a main disk identifier and a start time. According to configuration information of the main disk, a slave disk is created in a first cloud disk pool of a first cluster. The configuration information contains an identifier of the first cluster and an identifier of the first cloud disk pool. The main disk is located in a second cluster, and the first cluster is different from the second cluster. Data in the main disk is replicated into the slave disk at the start time. In this way, cross-regional backup of cloud disk data can be realized, the reliability of cloud platform data is enhanced, and when a resource pool failure at a regional level occurs, the switching of user services can be realized, and user services can be quickly recovered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a data replication method, apparatus and storage medium. Background Technology

[0002] Current cloud platforms offer features such as cloud server snapshots, cloud disk snapshots, and cloud disk backups for users' cloud servers and cloud disks to prevent data loss. These are generally disaster recovery backups within the current resource pool's geographical area. If the current resource pool experiences a failure, such as an earthquake or electrical circuit failure, it will still affect the user's data. Summary of the Invention

[0003] This application provides a data replication method, apparatus, and storage medium to enhance the reliability of cloud platform data.

[0004] In a first aspect, this application provides a data copying method, the method comprising:

[0005] Receive a trigger command, which includes a master disk identifier and a start time; create a slave disk in the first cloud disk pool of the first cluster according to the configuration information of the master disk; the configuration information includes the identifier of the first cluster and the identifier of the first cloud disk pool; the master disk is located in the second cluster, and the first cluster is different from the second cluster;

[0006] At the start time, the data in the master disk is copied to the slave disk.

[0007] Based on the above method, cloud management devices can asynchronously copy data from the master disk to the slave disk. The master disk and the slave disk can be located in two different regions. By adopting the above method, data migration across regional resource pools can be realized, cross-regional backup of cloud disk data can be achieved, and the reliability of cloud platform data can be enhanced.

[0008] In one possible implementation, the triggering instruction further includes periodic information, and further includes: copying data from the master disk to the slave disk every time the period indicated by the periodic information is reached.

[0009] Based on the above method, the master disk data is automatically copied to the slave disk at each cycle, reducing user operations and providing convenience for users.

[0010] In one possible implementation, the slave disk has read-only permissions.

[0011] Based on the above method, the slave disk only has read permissions and no write permissions, which avoids the cloud disk data from being damaged and enhances the reliability of the cloud disk data.

[0012] In one possible implementation, a switching instruction is received, and services are provided to the user through the cloud host where the slave disk is located;

[0013] The slave disk is mounted on the cloud host where the slave disk is located; the slave disk has read and write permissions.

[0014] Based on the above method, cross-regional business migration can be achieved. When the resource pool in region A fails, services can be provided to users through the cloud host in region B.

[0015] In one possible implementation, the triggering instruction further includes the identifier of the second cluster and the identifier of the second cloud disk pool, wherein the master disk is a cloud disk in the second cloud disk pool within the second cluster.

[0016] In one possible implementation, copying data from the master disk to the slave disk at the start time, according to the trigger instruction, includes:

[0017] Based on the trigger command, a mirror image of the data in the master disk is generated;

[0018] The image is sent to the slave disk at the start time.

[0019] Based on the above method, when users need to migrate and distribute data to another cloud platform, they do not need to copy images or backups across regions, which can improve the efficiency of copying cloud disk data.

[0020] Secondly, this application provides a data copying apparatus, comprising:

[0021] The transceiver unit is used to receive trigger commands, which include the master disk identifier and the start time;

[0022] The processing unit is configured to create a slave disk in the first cloud disk pool of the first cluster according to the configuration information of the master disk; the configuration information includes the identifier of the first cluster and the identifier of the first cloud disk pool; the master disk is located in the second cluster, and the first cluster is different from the second cluster;

[0023] At the start time, the data in the master disk is copied to the slave disk.

[0024] In one possible implementation, the triggering instruction further includes periodic information, and the processing unit is further configured to: copy data from the master disk to the slave disk every time the period indicated by the periodic information is reached.

[0025] In one possible implementation, the slave disk has read-only permissions.

[0026] In one possible implementation, the processing unit is further configured to: receive a switching instruction and provide services to the user through the cloud host where the slave disk is located;

[0027] The slave disk is mounted on the cloud host where the slave disk is located; the slave disk has read and write permissions.

[0028] In one possible implementation, the triggering instruction further includes an identifier for the second cluster and an identifier for the second cloud disk pool, wherein the master disk is a hard drive in the second cloud disk pool within the second cluster. In another possible implementation, the processing unit is specifically configured to generate a mirror image of the data in the master disk based on the triggering instruction.

[0029] The image is sent to the slave disk at the start time.

[0030] Thirdly, this application provides a data copying apparatus, comprising:

[0031] Memory is used to store computer programs or instructions;

[0032] A processor for executing computer programs or instructions in memory, wherein, when executing the program, the processor is capable of implementing the method as described in any of the first aspects.

[0033] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions that, when invoked by an electronic device, cause any of the methods executed in the first aspect to be implemented.

[0034] For the technical effects that may be achieved in each of the second to fourth aspects mentioned above, please refer to the description of the technical effects that may be achieved by the various possible solutions in the first aspect mentioned above, which will not be repeated here. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 A schematic diagram of a cloud platform system provided in an embodiment of this application;

[0037] Figure 2 A schematic diagram illustrating the implementation flow of the data copying method provided in this application embodiment;

[0038] Figure 3 This is one of the scenario illustrations provided in the embodiments of this application;

[0039] Figure 4 This is one of the scenario illustrations provided in the embodiments of this application;

[0040] Figure 5 This is one of the scenario illustrations provided in the embodiments of this application;

[0041] Figure 6 This is one of the scenario illustrations provided in the embodiments of this application;

[0042] Figure 7 This is one of the structural schematic diagrams of a data copying device provided in an embodiment of this application;

[0043] Figure 8 This is one of the structural schematic diagrams of a data copying device provided in an embodiment of this application. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operational methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that the terms "first," "second," etc., used in the description of this application are only used for distinguishing purposes and should not be construed as indicating or implying relative importance, nor as indicating or implying order.

[0045] The technical solutions provided in the embodiments of this application are described below with reference to the accompanying drawings.

[0046] See Figure 1 This application provides a cloud platform system 100. The system may include a cloud management device 101, a cloud host 102, and a cloud host 103. The cloud host 102 and cloud host 103 may be geographically separated; for example, cloud host 102 may be located in province A, and cloud host 103 may be located in province B. Cloud disks may be deployed on both cloud host 102 and cloud host 103. The cloud disks may store data related to the services executed by the cloud hosts.

[0047] Currently, cloud platforms offer features such as cloud server snapshots, cloud disk snapshots, and cloud disk backups for cloud servers and cloud disks to prevent user data loss. These are generally disaster recovery backups within the geographical area of ​​the resource pool where the cloud server resides. However, if the resource pool experiences a failure, such as an earthquake or electrical fault, user data will still be affected.

[0048] In view of this, embodiments of this application provide a data replication method. This method enables cross-regional replication of data from a cloud disk to cloud disks in other resource pools, achieving cross-regional backup of cloud disk data and enhancing the reliability of cloud disk data.

[0049] See Figure 2 The following is an exemplary flowchart of a data copying method provided in an embodiment of this application, which may include the following operations. This method may be performed by, for example... Figure 1 The cloud management device shown is executing.

[0050] S201: Receive trigger command.

[0051] For example, the cloud management device can receive trigger commands from users. These commands may include the primary disk identifier, such as the name or path of the primary disk. Optionally, the trigger command can be used to back up data on the primary disk. For example, it can copy data from the primary disk to another cloud disk.

[0052] In one example, the trigger command may also include the identifier of the second cluster and the identifier of the second cloud disk pool. The primary disk is located in the second cloud disk pool, and the second cloud disk pool is located in the second cluster. In one possible implementation, the trigger command may also include a start time. For example, it may include the start time of an asynchronous replication operation, at which time the cloud management device can replicate data from the primary disk to another cloud disk.

[0053] Optionally, the trigger command can also include periodic information. For example, the trigger command can include an interval time, which can be the interval between each data copy from the primary disk. The cloud management device can copy data from the primary disk to another cloud disk at regular intervals. For example, the trigger command includes a start time of 12:20 and an interval of 30 minutes. The cloud management device can copy data from the primary disk to the secondary disk at 12:20, and then copy data from the primary disk to the secondary disk again at 12:50, 30 minutes later.

[0054] Optionally, the trigger command may also include a first threshold value, which represents the upper limit of data that can be copied from the master disk. In other words, once the number of times the cloud management device copies data from the master disk reaches this first threshold value, the asynchronous copying operation stops, that is, the copying of data from the master disk to the slave disk is stopped.

[0055] S202: Based on the master disk's configuration information, create a slave disk in the first cloud disk pool of the first cluster.

[0056] In this configuration, the first cloud disk pool is located within the first cluster, and the slave disks are also located within the first cloud disk pool. In one possible scenario, the first cluster can be located in the second region, and the second cluster can be located in the first region; the first and second regions can be different. For example, the first region could be province A, and the second region could be province B. In other words, the primary and slave disks can be located in two different regions.

[0057] In one possible implementation, the cloud management device can create an asynchronous replication relationship for the master disk. For example, the cloud management device can create the asynchronous replication relationship for the master disk before S201. When creating the asynchronous replication relationship for the master disk, the cloud management device can create a mirror image of the master disk for subsequent asynchronous replication.

[0058] It should be noted that when the asynchronous replication relationship of the master disk created by the cloud management device in S202 is triggered, the cloud management device can create a slave disk in the first cloud disk pool of the first cluster according to the configuration information. Optionally, when the cloud management device creates a slave disk, the identifier of the slave disk can be the same as the identifier of the master disk. For example, the name of the slave disk can be the same as the name of the master disk.

[0059] S203: At the start time, copy the data from the master disk to the slave disk.

[0060] In S203, after the cloud disk is created, the cloud management device can copy the image of the master disk to the slave disk at the start time specified in the trigger command. Optionally, the slave disk can have read-only permissions and no write permissions. For example, users in the second area can browse the copied data on the slave disk, but cannot perform operations such as adding, deleting, or modifying it, thus ensuring the reliability of the copied data.

[0061] In one possible implementation, the replication operation can be performed using a mirroring replication component on the cloud host where the primary disk resides. For example, the cloud management device can use the mirroring replication component to generate a mirror image of the data in the primary disk, and then copy the mirror image of the data to the secondary disk at the start time.

[0062] In one example, the cloud management device can copy data from the master disk to the slave disk. Optionally, the cloud management device can copy specified data from the master disk to the slave disk. For example, the trigger command can also include an identifier for the specified data, such as the data name. The cloud management device can generate an image of the specified data and copy the image of the specified data to the slave disk. In this way, it is possible to copy specified data from the master disk to the slave disk.

[0063] In another example, the cloud management device can copy data from the second cloud disk pool where the primary disk resides to the secondary disk. That is, in S203, the cloud management device can generate images of each piece of data in the second cloud disk pool where the primary disk resides, and copy these images of each piece of data to the secondary disk at the start time.

[0064] Based on the above solution, cloud management devices can asynchronously replicate data from the primary disk to the secondary disk. This allows services to be provided through the primary cluster where the secondary disk resides in the event of a failure in the secondary cluster, achieving cross-regional backup of cloud disk data and enhancing the reliability of cloud platform data. In the event of a region-level resource pool failure, user services can be switched over and quickly restored. Furthermore, the asynchronous replication function of cloud disks enables data migration across regional resource pools, achieving rapid data distribution.

[0065] The data copying method provided in the embodiments of this application will be described below through different scenarios.

[0066] See Figure 3 This is a schematic diagram illustrating a data copying method provided in an embodiment of this application. Figure 3 In the diagram, cloud host A exists in the resource pool of region A, and cloud disk A exists within cloud host A. The cloud management device can create an asynchronous replication relationship for cloud disk A and activate this relationship in response to a trigger command. The cloud management device can create cloud disk B based on the configuration information of cloud disk A. Cloud disk B is located in the resource pool of region B, which is the first cluster (not shown in the diagram). The cloud management device can copy data from cloud disk A to cloud disk B at the start time specified in the trigger command. Optionally, data from cloud disk A can be periodically replicated asynchronously across regions to cloud disk B. For example, the trigger command can include periodic information, and the cloud management device can asynchronously replicate data from cloud disk A to cloud disk B every time the period indicated by this periodic information is reached.

[0067] See Figure 4 When cloud disk A in region A fails, the asynchronous replication link will be interrupted. Users can use the failover function to switch the service between region A and region B. For example, the cloud management device can receive the switchover command and provide services to users through cloud host B. For instance, read and write services can be provided to users through cloud host B. The cloud management device can mount cloud disk B onto cloud host B, allowing cloud host B to access cloud disk B and thus provide services to users. It is understood that cloud disk B will have read and write permissions at this time.

[0068] Based on the above technical solution, cross-regional replication of cloud disk data can be achieved. When users need to migrate and distribute data from one region to a cloud platform in another region, there is no need to copy images or backups across regions, which can improve the efficiency of replicating cloud disk data. In addition, cross-regional business migration can also be achieved. If the resource pool in region A fails, services can be provided to users through cloud servers in region B.

[0069] See Figure 5 This is a schematic diagram illustrating a data copying method provided in an embodiment of this application. Figure 5 In addition, the cloud management device can also migrate data from the slave disk, i.e., cloud disk B stored in region B, back to region A. For example, after a failure in region A, the cloud management device can respond to a reverse replication command to copy the data from cloud disk B in region B to cloud disk A, so that cloud host A can provide services to users, thus completing the service recovery of region A. It can be understood that during reverse replication, cloud disk B can be considered the master disk and cloud disk A the slave disk; therefore, the cloud management device can... Figure 2 The illustrated method embodiment copies data from cloud disk B to cloud disk A in reverse. For example, the cloud management device can receive a reverse copy instruction and create cloud disk A in region A according to the configuration information of cloud disk B. The cloud management device can generate a mirror image of the data in cloud disk B and copy the mirror image to cloud disk A.

[0070] Optionally, the reverse copy instruction may or may not include a start time. For example, when the reverse copy instruction includes a start time, the cloud management device can copy the data from cloud disk B to cloud disk A at that start time. Conversely, when the reverse copy instruction does not include a start time, the cloud management device can copy the data from cloud disk B to cloud disk A upon receiving the reverse copy instruction.

[0071] Based on the above technical solution, cross-regional replication of cloud disk data can be achieved. When users need to migrate and distribute data from one region to another cloud platform, there is no need to copy images or backups across regions, which can improve the efficiency of replicating cloud disk data. For example, after the resource pool in region A returns to normal, data stored in region B can be copied back to region A, quickly completing the business recovery in region A.

[0072] See Figure 6 This is a schematic diagram illustrating a data copying method provided in an embodiment of this application. Figure 6 This includes cloud management devices, resource pools in region A and region B. Each region's resource pool is a separate cloud platform cluster, including cloud host management components, image management components, block storage management components, and a distributed storage cluster. Within each region's block storage cluster, there are image pools, cloud disk pools, and image replication components.

[0073] The mirror replication component is used to provide asynchronous cross-region replication of cloud disks between two distributed storage clusters. For example, the mirror replication component can generate a mirror of the primary disk data and send the mirror to the secondary disk at the start of the replication operation.

[0074] The image pool and cloud disk pool are respectively connected to the image management component and block storage management component of the cloud host. In other words, the actions of the image pool are controlled by the image management component, and the actions of the cloud disk pool are controlled by the block storage management component.

[0075] The image pool is used to store public and private images. Public images are those provided by the system by default, while private images are those created by the user. The cloud disk pool is used to store cloud disks, including system disks and data disks.

[0076] The cloud server management component is used to perform actions on cloud servers and provide related business services to users.

[0077] In one possible implementation, the cloud management device can be configured to enable image replication. There are two types of image replication: image replication and pool replication.

[0078] In this context, "mirror mode" requires explicitly specifying the enabling setting for mirroring a specific cloud disk image. For example, specifying the enabling setting for mirroring the data of cloud disk A within a cloud disk pool. "Pool mode" enables mirroring for all cloud disk images within that pool. For example, enabling mirroring for the data of all cloud disks in cloud disk pool A in region A.

[0079] The above components will be described below in conjunction with the technical solutions provided in the embodiments of this application.

[0080] In one example, the cloud management device can create an asynchronous replication relationship for the primary disk. For instance, in response to an instruction to create an asynchronous replication relationship, the cloud management device can control the image replication component in the cloud host where the primary disk resides to generate a mirror of the primary disk data in cloud disk pool A in region A.

[0081] In S202, the cloud management device can respond to command triggering instructions and, based on the configuration information of the master disk in cloud disk pool A in region A, control the block storage management component in the cloud host in region B to create a slave disk in cloud disk pool B. It also controls the mirroring replication components in the cloud host where the master disk resides and the cloud host where the slave disk resides to mirror and copy the data from the master disk to the slave disk.

[0082] In another example, when a resource pool in region A fails, the cloud management device can perform a primary / backup switch for services. For instance, in response to a switchover command, the cloud management device can control the block storage management component in the cloud host of region B to enable read / write permissions for the slave disk and mount the slave disk onto the cloud host of region B, thus completing the service switchover between region A and region B.

[0083] In another example, the cloud management device can also reverse copy data from a slave disk to a master disk. For instance, in response to a reverse copy command, the cloud management device can control the mirroring component in the cloud host where the slave disk resides to generate a mirror of the slave disk data in cloud disk pool B in region B, and control the block storage management component in the cloud host in region A to create a new slave disk in cloud disk pool A. It can also control the mirroring components in the cloud host where the slave disk resides and the mirroring components in the cloud host where the new slave disk resides to reverse copy the data from the slave disk in region B to the new slave disk in region A.

[0084] In another example, the cloud management device can also stop asynchronous replication operations. For instance, in response to a command to stop asynchronous replication, the cloud management device can control the block storage management component to stop data replication between the master and slave disks. The data on the master and slave disks will automatically roll back to the data after the most recent asynchronous replication. At this time, the status of the asynchronous replication function in the cloud host will show as stopped.

[0085] It's important to note that cloud disks with asynchronous replication relationships have certain functional limitations. When users no longer need cross-region disaster recovery for the cloud disk, they can delete the asynchronous replication relationship. For example, the cloud management device can respond to the command to delete the asynchronous replication relationship, controlling the block storage management components in regions A and B to delete the asynchronous replication relationship between the master and slave disks. Deleting the asynchronous replication relationship does not modify the data on the master and slave disks. After deletion, the slave disk becomes read-write, and the data on the slave disk is the data from the most recent asynchronous replication.

[0086] Understandably, before deleting the asynchronous replication relationship of the cloud disk, the cloud management device needs to ensure that the asynchronous replication operation has been stopped.

[0087] Based on the above technical solutions, cross-regional disaster recovery can be achieved, supporting various scenarios such as creating asynchronous replication relationships, reverse replication, and disaster recovery, meeting users' disaster recovery needs, and realizing the functional scenarios of rapid off-site data replication and rapid distribution.

[0088] Based on the same inventive concept, this application also provides a data copying apparatus, which implements the function of a data copying method. (Refer to...) Figure 7 The data replication device 700 includes a transceiver unit 701 and a processing unit 702.

[0089] In one possible design, transceiver unit 701 is used to receive trigger commands. These trigger commands include a master disk identifier and a start time. Processing unit 702 is used to create a slave disk in the first cloud disk pool of the first cluster based on the master disk's configuration information. This configuration information includes the identifier of the first cluster and the identifier of the first cloud disk pool. The master disk is located in the second cluster, which is different from the first cluster. Processing unit 702 is also used to generate a mirror image of the data in the master disk based on the trigger commands, and to copy the data mirror image to the slave disk at the start time.

[0090] In one possible design, the trigger instruction also includes periodic information, and the processing unit 702 is further configured to: copy data from the master disk to the slave disk each time the period indicated by the periodic information is reached.

[0091] In one possible design, the slave drive has read-only permissions.

[0092] In one possible design, the processing unit 702 is also used to: receive switching instructions and provide services to users through the cloud host where the slave disk resides; mount the slave disk on the cloud host where the slave disk resides; the slave disk has read and write permissions.

[0093] In one possible design, the triggering command also includes the identifier of the second cluster and the identifier of the second cloud disk pool, where the main disk is the hard drive in the second cloud disk pool within the second cluster.

[0094] In one possible design, processing unit 702 is specifically used to generate a mirror image of the data in the master disk according to a trigger instruction. The mirror image is then sent to the slave disk at the start time.

[0095] Based on the same inventive concept, this application also provides a data copying device, see reference. Figure 8 The data copying device 800 includes:

[0096] Memory 801 is used to store computer programs or instructions;

[0097] The processor 802 is configured to execute a computer program or instructions stored in memory, and when the processor executes the program, it is able to implement the data copying method described above.

[0098] Based on the same inventive concept, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked by an electronic device, cause the electronic device to execute the aforementioned data copying method.

[0099] Based on the same inventive concept, embodiments of this application also provide a data replication system. This system may include a cloud management device and at least two cloud hosts. The cloud management device is used to execute the aforementioned data replication method. Of the at least two cloud hosts, at least two are located in different geographical regions.

[0100] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0101] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0102] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0103] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0104] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A data copying method, characterized in that, This system is applied to cross-regional cloud platform clusters. Each region's cloud platform cluster's block storage cluster is configured with an image pool, a cloud disk pool, and an image replication component. The image pool and the cloud disk pool are respectively connected to the image management component and block storage management component of the corresponding cloud host. The actions of the image pool are controlled by the image management component, and the actions of the cloud disk pool are controlled by the block storage management component. The cross-regional cloud platform cluster includes a first cluster and a second cluster. Image replication is enabled using either an image-based method or a pool-based method, including: Receive a trigger command, the trigger command including the master disk identifier and start time; Based on the image replication component, a slave disk is created in the first cloud disk pool of the first cluster according to the configuration information of the master disk; the configuration information includes the identifier of the first cluster and the identifier of the first cloud disk pool; the master disk is located in the second cluster, and the first cluster is different from the second cluster; Based on the mirroring component, data in the master disk is copied to the slave disk at the start time; The step of copying data from the master disk to the slave disk based on the mirroring component at the start time includes: Based on the trigger command, a mirror image of the data in the master disk is generated; The image is sent to the slave disk at the start time.

2. The method according to claim 1, characterized in that, The trigger command also includes periodic information, and further includes: Each time the cycle indicated by the cycle information is reached, the data in the master disk is copied to the slave disk.

3. The method according to claim 1 or 2, characterized in that, The slave drive has read-only permissions.

4. The method according to claim 1, characterized in that, Also includes: Receive the switching command and provide services to the user through the cloud host where the slave disk is located; The slave disk is mounted on the cloud host where the slave disk is located; The slave disk has read and write permissions.

5. The method according to claim 1, characterized in that, The triggering instruction also includes the identifier of the second cluster and the identifier of the second cloud disk pool, and the main disk is the cloud disk in the second cloud disk pool of the second cluster.

6. A data copying device, characterized in that, This system is applied to cross-regional cloud platform clusters. Each region's cloud platform cluster's block storage cluster is configured with an image pool, a cloud disk pool, and an image replication component. The image pool and the cloud disk pool are respectively connected to the image management component and block storage management component of the corresponding cloud host. The actions of the image pool are controlled by the image management component, and the actions of the cloud disk pool are controlled by the block storage management component. The cross-regional cloud platform cluster includes a first cluster and a second cluster. Image replication is enabled using either an image-based method or a pool-based method, including: The transceiver unit is used to receive trigger commands, which include the master disk identifier and the start time; The processing unit is configured to create a slave disk in the first cloud disk pool of the first cluster based on the mirror replication component and according to the configuration information of the master disk; the configuration information includes the identifier of the first cluster and the identifier of the first cloud disk pool; the master disk is located in the second cluster, and the first cluster is different from the second cluster; The processing unit is further configured to copy data from the master disk to the slave disk based on the mirroring component at the start time; Based on the mirroring component, the data in the master disk is copied to the slave disk at the start time. The processing unit is specifically used for: A mirror image of the data in the master disk is generated according to the trigger command; The image is sent to the slave disk at the start time.

7. A data copying device, characterized in that, include: Memory is used to store computer programs or instructions; A processor for executing computer programs or instructions in memory to cause the apparatus to perform the method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked by an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 5.