Cloud hard disk cloning method, system and device, computer equipment and storage medium

By obtaining the parent volume snapshot version number of the parent cloud hard disk and configuring the child cloud hard disk, the problem of read and write pressure and inefficiency in traditional cloud hard disk cloning solutions is solved, and second-level cloning and efficient cloud hard disk cloning are achieved.

CN119536648APending Publication Date: 2025-02-28CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411634636.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Traditional cloud hard disk cloning schemes will put read and write pressure on the source and target side when reading and copying data, resulting in insufficiency in cloning, especially when cloud hard disk specifications are large.

Method used

By obtaining the parent volume snapshot version number of the parent cloud hard disk, creating a child cloud hard disk, and configuring the child cloud hard disk based on the parent volume snapshot version number and the information of the parent cloud hard disk, thereby achieving cloning of data without fully copying the data.

Benefits of technology

The second-level cloning is realized, reducing the read and write pressure on the source and target ends, and improving the cloning efficiency of cloud hard drives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536648A_ABST
    Figure CN119536648A_ABST
Patent Text Reader

Abstract

The invention relates to a cloud hard disk cloning method, system and device, computer equipment and a storage medium. The method comprises the steps of receiving a cloud hard disk cloning request which is sent by a cloud platform and carries a parent cloud hard disk identifier, obtaining a parent volume snapshot version number corresponding to the parent cloud hard disk identifier, creating a child cloud hard disk of the parent cloud hard disk, and configuring the child cloud hard disk according to the parent volume snapshot version number and preset cloud hard disk information of the parent cloud hard disk, and cloning the storage data in the parent cloud hard disk to the child cloud hard disk. By adopting the method, the storage data in the parent cloud hard disk does not need to be totally copied into the child cloud hard disk, so that second-level cloning is realized, and the cloning efficiency of the cloud hard disk is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud storage technology, and in particular to a cloud hard disk cloning method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the rapid development of cloud service technology, cloud computing's distributed computing, virtualization technology, and resource management technology provide a basic framework and resource management support for cloud storage. When processing some important data, it is often necessary to clone and back up the data in the cloud hard disk.

[0003] In traditional cloud hard disk cloning backup solutions, it is usually necessary to first suspend the use of the cloud hard disk parent volume, read and fully copy all the data in the parent volume, and then write the copied data to the child volume to achieve the cloning of the cloud hard disk.

[0004] However, in traditional cloning solutions, the need to read and fully copy the data in the parent volume may cause read pressure on the data source end, and writing the copied data to the child volume will cause write pressure on the target end. If the cloud hard disk specification is relatively large, it will also cause the copying time to be long and the cluster to be under high load for a long time, resulting in low efficiency of cloud hard disk cloning. Summary of the invention

[0005] Based on this, it is necessary to provide a cloud hard disk cloning method, system, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of cloud hard disk cloning in response to the above technical problems.

[0006] In a first aspect, the present application provides a cloud hard disk cloning method, which is applied to a cloud hard disk management platform, and the method includes:

[0007] Receive a cloud disk clone request with a parent cloud disk ID from the cloud platform;

[0008] Obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and create a child cloud hard disk of the parent cloud hard disk;

[0009] The child cloud hard disk is configured according to the parent volume snapshot version number and the preset cloud hard disk information of the parent cloud hard disk, so as to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0010] In a second aspect, the present application also provides a cloud hard disk cloning system, the system comprising a cloud platform and a cloud hard disk management platform connected to each other;

[0011] The cloud platform is used to send a cloud hard disk cloning request carrying a parent cloud hard disk identifier to the cloud hard disk management platform;

[0012] The cloud hard disk management platform is used to receive the cloud hard disk cloning request, obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, create a child cloud hard disk of the parent cloud hard disk, and configure the child cloud hard disk according to the parent volume snapshot version number and preset cloud hard disk information of the parent cloud hard disk to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0013] In a third aspect, the present application also provides a cloud hard disk cloning device, which is applied to a cloud hard disk management platform. The device includes:

[0014] A request receiving module, used to receive a cloud hard disk cloning request carrying a parent cloud hard disk identifier sent by the cloud platform;

[0015] A hard disk creation module, used to obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and create a child cloud hard disk of the parent cloud hard disk;

[0016] The hard disk cloning module is used to configure the child cloud hard disk according to the parent volume snapshot version number and the preset cloud hard disk information of the parent cloud hard disk, so as to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0017] In a fourth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in the above-mentioned cloud hard disk cloning method embodiment are implemented.

[0018] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned cloud hard disk cloning method embodiment are implemented.

[0019] In a sixth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned cloud hard disk cloning method embodiment are implemented.

[0020] In the above-mentioned cloud hard disk cloning method, system, device, computer equipment and storage medium, the cloud hard disk management platform first receives the cloud hard disk cloning request sent by the cloud platform, locates the corresponding parent cloud hard disk through the parent cloud hard disk identifier carried in the request, and obtains the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and creates a child cloud hard disk of the parent cloud hard disk. Different from the traditional solution of directly reading and copying the data in the parent cloud hard disk, this solution obtains the parent volume snapshot version number of the parent cloud hard disk, thereby generating a data copy in the form of a snapshot, and then can configure the child cloud hard disk according to the parent volume snapshot version number and the preset parent cloud hard disk cloud hard disk information, and finally clone the storage data in the parent cloud hard disk to the child cloud hard disk. In this way, the cloud platform can read the storage data in the parent cloud hard disk by version reference, without having to copy the storage data in the parent cloud hard disk to the child cloud hard disk in full, achieving second-level cloning and improving the cloning efficiency of the cloud hard disk. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is an application environment diagram of a cloud hard disk cloning method in an embodiment;

[0022] Figure 2 A schematic diagram of a process of a cloud hard disk cloning method in one embodiment;

[0023] Figure 3 A schematic diagram of a process of a cloud hard disk cloning method in another embodiment;

[0024] Figure 4 A schematic diagram of a process of a cloud hard disk cloning method in a detailed embodiment;

[0025] Figure 5 A structural block diagram of a cloud hard disk cloning system in an embodiment;

[0026] Figure 6 It is a structural block diagram of a cloud hard disk cloning system in another embodiment;

[0027] Figure 7 A structural block diagram of a cloud hard disk cloning system in yet another embodiment;

[0028] Figure 8 A structural block diagram of a cloud hard disk cloning system in a detailed embodiment;

[0029] Fig. 9 It is a structural block diagram of a cloud hard disk cloning device in one embodiment;

[0030] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] The cloud hard disk cloning method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The cloud platform 102 communicates with the cloud hard disk management platform 104 through the network. Specifically, the user may send a cloud hard disk clone request carrying the parent cloud hard disk identifier to the cloud hard disk management platform 104 through the cloud platform 102, and the cloud hard disk management platform 104 receives the cloud hard disk clone request sent by the cloud platform 102, obtains the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, creates a child cloud hard disk of the parent cloud hard disk, and configures the child cloud hard disk according to the parent volume snapshot version number and the preset parent cloud hard disk information to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0033] In one embodiment, Figure 2 As shown, a cloud hard disk cloning method is provided, which is applied to Figure 1 Taking the cloud hard disk management platform 104 in the example as an example, the following steps are included:

[0034] S100, receiving a cloud hard disk cloning request carrying a parent cloud hard disk identifier sent by a cloud platform.

[0035] Among them, a cloud hard disk is a virtualized storage volume. The cloud hard disk management platform is used to manage the life cycle of cloud hard disks and perform operations such as creating, deleting, expanding, and cloning cloud hard disks. Cloud hard disk cloning refers to copying the data and configuration of an existing cloud hard disk (parent cloud hard disk) to a new cloud hard disk (child cloud hard disk). The child cloud hard disk is equivalent to an independent copy that is consistent with the parent cloud hard disk. The parent cloud hard disk identifier is the tag information used to uniquely identify the parent cloud hard disk. Through the parent cloud hard disk identifier, the cloud hard disk management platform can accurately locate a specific parent cloud hard disk.

[0036] Specifically, the user can initiate a cloud hard disk cloning request to the cloud hard disk management platform through the cloud platform. The cloud hard disk management platform receives and parses the cloud hard disk cloning request, and determines the parent cloud hard disk to be cloned through the parent cloud hard disk identifier carried in the request.

[0037] S200, obtaining the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and creating a child cloud hard disk of the parent cloud hard disk.

[0038] A snapshot is a static copy of the storage status of a cloud disk that is completely recorded at a specific moment. The snapshot saves the state of the data at a specific point in time. The parent volume snapshot version number is a specific version identifier used to mark a snapshot version of the parent cloud disk. A unique version number is generated when each snapshot is created.

[0039] After receiving the cloud drive cloning request, the cloud drive management platform queries the snapshot version number corresponding to the parent cloud drive through the parent cloud drive identifier. The snapshot version number is used to identify the storage status of the parent cloud drive at a specific moment. Then the cloud drive management platform will create a new child cloud drive based on the snapshot version to carry the cloned data. For example, assuming that the current snapshot version number of cloud drive A is V1, indicating its latest storage status, the cloud drive management platform reads the snapshot version number V1 and creates a new cloud drive B, setting it as the child cloud drive of A. At this time, cloud drive B is a blank disk, waiting for hard drive cloning.

[0040] S300: According to the parent volume snapshot version number and the preset parent cloud hard disk information, the child cloud hard disk is configured to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0041] Following the above steps, after creating a child cloud hard disk, the cloud hard disk management platform needs to configure the child cloud hard disk according to the parent volume snapshot version number and the cloud hard disk configuration information. In this embodiment, it is not necessary to copy all the data in the parent cloud hard disk to the child cloud hard disk. Instead, the version of the child cloud hard disk is marked as the parent volume snapshot version number, and the cloud hard disk information of the parent cloud hard disk is configured for the child cloud hard disk. The cloud hard disk information refers to some inherent information of the parent cloud hard disk. By configuring the inherent information for the child cloud hard disk and marking it as the parent volume snapshot version number, it is equivalent to marking the child cloud hard disk as the parent volume clone snapshot version, realizing second-level cloning. In the future, the data in the parent cloud hard disk can be found in the child cloud hard disk by version reference, which is equivalent to cloning the storage data in the parent cloud hard disk to the child cloud hard disk.

[0042] In addition, after completing the cloning operation, if data needs to be read from the cloud hard disk, it can be read from the child cloud hard disk first. If the target data to be read cannot be found in the child cloud hard disk, it is read from the parent cloud hard disk. If the data exists in the parent cloud hard disk, the target data is written to the child cloud hard disk through the cloud hard disk management module 520, thereby allocating the copy consumption and saving cloud hard disk space.

[0043] In the above-mentioned cloud hard disk cloning method, the cloud hard disk management platform first receives the cloud hard disk cloning request sent by the cloud platform, locates the corresponding parent cloud hard disk through the parent cloud hard disk identifier carried in the request, obtains the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and creates a child cloud hard disk of the parent cloud hard disk. Different from the traditional solution of directly reading and copying the data in the parent cloud hard disk, this solution obtains the parent volume snapshot version number of the parent cloud hard disk, thereby generating a data copy in the form of a snapshot, and then can configure the child cloud hard disk according to the parent volume snapshot version number and the preset parent cloud hard disk cloud hard disk information, and finally clone the storage data in the parent cloud hard disk to the child cloud hard disk. In this way, the cloud platform can read the storage data in the parent cloud hard disk by version reference, without having to copy the storage data in the parent cloud hard disk to the child cloud hard disk in full, achieving second-level cloning and improving the cloning efficiency of the cloud hard disk.

[0044] In one embodiment, Figure 3 As shown, the method also includes:

[0045] S400, updating the version number of the parent cloud hard disk, and sending the updated version number of the parent cloud hard disk to the connected virtual machine data platform, so that the virtual machine data platform performs read and write operations on the parent cloud hard disk corresponding to the updated version number.

[0046] The parent cloud hard disk refers to the original cloud hard disk as the data source, which stores the storage data that needs to be cloned to the child cloud hard disk. The virtual machine data platform is a data platform responsible for managing the interaction between virtual machines and cloud hard disks. It can process the read and write requests of virtual machines to cloud hard disks, and control the read and write requests of virtual machines to specific cloud hard disks.

[0047] Following the above embodiment, when the parent cloud hard disk generates a new snapshot and the parent volume snapshot version number has been configured in the child cloud hard disk, the version number of the parent cloud hard disk needs to be updated to mark the latest status of the stored data. Furthermore, after updating the version number of the parent cloud hard disk, the cloud hard disk management platform transmits the updated version number to the virtual machine data platform, so that after receiving the updated version number, the virtual machine data platform adjusts the read and write strategy and reads or writes data from the updated version of the parent cloud hard disk.

[0048] For example, assuming that the current version number of parent cloud disk A is V1, when the cloning operation is completed (the parent volume snapshot version number has been configured in the child cloud disk), the cloud disk management platform will update the version number of parent cloud disk A to V2. Then, the cloud disk management platform sends the version number V2 to the virtual machine data platform. When the virtual machine data platform subsequently performs data reading and data writing operations, it should read data from the parent cloud disk with version number V2 and write data to the parent cloud disk with version number V2.

[0049] In this embodiment, by updating the version number of the parent cloud hard disk, the parent cloud hard disk and the child cloud hard disk can be distinguished, thereby achieving accurate data reading and writing. Furthermore, the updated version number is sent to the virtual machine data platform, which can enable the virtual machine data platform to perform read and write operations on the updated parent cloud hard disk, reducing data confusion.

[0050] In one embodiment, S400 includes updating the version number of the parent cloud hard disk in the preset database, and sending a control instruction to the virtual machine data platform, where the control instruction is used to instruct the virtual machine data platform to read the updated version number of the parent cloud hard disk from the preset database.

[0051] Among them, the preset database can be a data storage system set in the cloud hard disk management platform, which is used to store relevant information of the cloud hard disk, such as the cloud hard disk identification, version number, cloud hard disk information, etc.

[0052] Specifically, after the version number of the parent cloud hard disk is updated, the cloud hard disk management platform needs to record the latest version number in the preset database, and then send a control instruction to the virtual machine data platform to instruct it to read the latest version number in the preset database, so that the virtual machine data platform can synchronize the latest data status of the parent cloud hard disk as soon as possible.

[0053] For example, assuming that the version number of parent cloud hard disk A is updated from V1 to V2, the cloud hard disk management platform writes this latest version number into the preset database, and the version information of cloud hard disk A in the preset database is updated to V2. Then the cloud hard disk management platform sends a control instruction to the virtual machine data platform. The content of the control instruction can be "read the latest version number of cloud hard disk A". After receiving the control instruction, the virtual machine data platform will read the version number V2 of cloud hard disk A from the preset database. Next, when the virtual machine data platform performs read and write operations on cloud hard disk A, it will operate based on the status of version number V2.

[0054] In this embodiment, by writing the latest version number of the parent cloud hard disk into the preset database, the virtual machine data platform can obtain the latest version information at any time. The cloud hard disk management platform actively notifies the virtual machine data platform through control instructions, so that the virtual machine data platform performs read and write operations based on the latest version number, thereby reducing data asynchrony.

[0055] In order to provide a more detailed description of the cloud hard disk cloning method provided in this application, Figure 4 and one A detailed embodiment is explained, and the detailed embodiment comprises the following steps:

[0056] S401, receiving a cloud hard disk clone request carrying a parent cloud hard disk identifier sent by a cloud platform.

[0057] S402: Obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and create a child cloud hard disk of the parent cloud hard disk.

[0058] S403: According to the parent volume snapshot version number and the preset parent cloud hard disk information, the child cloud hard disk is configured to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0059] S404: Update the version number of the parent cloud hard disk, and update the version number of the parent cloud hard disk in the preset database.

[0060] S405: Send a control instruction to the virtual machine data platform, where the control instruction is used to instruct the virtual machine data platform to read the updated version number of the parent cloud hard disk from a preset database.

[0061] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0062] In one embodiment, a cloud hard disk cloning system 500 is provided. Figure 5 As shown, the cloud hard disk cloning system 500 includes a cloud platform 510 and a cloud hard disk management platform 520 that are connected to each other.

[0063] The cloud platform 510 is used to send a cloud hard disk cloning request carrying a parent cloud hard disk identifier to the cloud hard disk management platform 520 .

[0064] The cloud hard disk management platform 520 is used to receive a cloud hard disk cloning request, obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, create a child cloud hard disk of the parent cloud hard disk, and configure the child cloud hard disk according to the parent volume snapshot version number and the preset parent cloud hard disk information to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0065] The cloud platform 510 is an infrastructure and software service system that provides computing, storage and network services, supports the operation of applications and provides access interfaces to users. In this embodiment, users can initiate a cloud hard disk cloning request to the cloud hard disk management platform 520 through the cloud platform 510. The cloud hard disk management platform 520 is responsible for processing various management tasks related to cloud hard disks, such as the creation, configuration, cloning, and snapshot management of cloud hard disks. In this embodiment, the cloud hard disk management platform 520 is responsible for receiving and processing the cloning request of the cloud platform and executing the cloud hard disk cloning.

[0066] It should be noted that the implementation solution provided by the system to solve the problem is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in the cloud hard disk cloning system 500 provided in this embodiment can refer to the limitations on the cloud hard disk cloning method above, and will not be repeated here.

[0067] In one embodiment, Figure 6 As shown, the cloud hard disk cloning system 500 also includes a cloud storage platform 530 connected to the cloud platform 510 and the cloud hard disk management platform 520 .

[0068] The cloud platform 510 is used to send a snapshot request carrying a parent cloud hard disk identifier to the cloud storage platform 530 .

[0069] The cloud storage platform 530 is used to receive a snapshot request, create a parent volume snapshot corresponding to the parent cloud hard disk identifier, obtain the version number of the parent cloud hard disk, determine the version number of the parent cloud hard disk as the parent volume snapshot version number of the parent volume snapshot, and send the parent volume snapshot version number to the cloud hard disk management platform 520 and the cloud platform 510.

[0070] Among them, the cloud storage platform 530 is a module responsible for managing and storing cloud hard disk data, and is used to provide data storage functions. In this embodiment, the cloud storage platform 530 is responsible for receiving snapshot requests from the cloud platform 510, creating and saving cloud hard disk snapshots. The snapshot request can be an instruction sent by the user to the cloud storage platform 530 through the cloud platform 510, which is used to notify the cloud storage platform 530 to create a parent volume snapshot of the parent cloud hard disk. The parent volume snapshot is a static data copy created based on the data status of the parent cloud hard disk, which saves the data content of the parent cloud hard disk at a specific point in time. The version number of the parent volume snapshot is the parent volume snapshot version number, which is used to identify the data status corresponding to the parent volume snapshot.

[0071] Exemplarily, the user sends a snapshot request carrying the parent cloud hard disk identifier to the cloud storage platform 530 through the cloud platform 510. The cloud storage platform 530 locates the parent cloud hard disk according to the parent cloud hard disk identifier, and then creates a parent volume snapshot of the cloud hard disk. During the creation process, the cloud storage platform 530 obtains the version number of the current parent cloud hard disk, and determines the version number as the parent volume snapshot version number, so that the parent volume snapshot is consistent with the data state of the parent cloud hard disk when the snapshot is generated. Then, the cloud storage platform 530 synchronously sends the parent volume snapshot version number to the cloud hard disk management platform 520 and the cloud platform 510. After receiving the parent volume snapshot version number, the cloud hard disk management platform 520 can use it for subsequent cloning operations. After receiving the parent volume snapshot version number, the cloud platform 510 can read specific data from the child cloud hard disk cloned by the cloud hard disk management platform 520 based on the parent volume snapshot version number.

[0072] In this embodiment, by generating a parent volume snapshot and setting the parent volume snapshot version number, the parent volume snapshot version number enables the system to clearly distinguish different time points and data states, thereby enabling accurate data backup and data state recording. That is, the recording and transmission of the parent volume snapshot version number provides an accurate reference for the data cloning operation, thereby improving the efficiency and accuracy of the data cloning process.

[0073] In one embodiment, Figure 7 As shown, the cloud hard disk cloning system 500 also includes a read-write module 540 connected to the cloud storage platform 530 .

[0074] The cloud storage platform 530 is also used to update the version number of the parent cloud hard disk and send the updated version number to the read-write module.

[0075] The read-write module 540 is used to perform read-write operations on the parent cloud hard disk corresponding to the updated version number.

[0076] Among them, the read-write module 540 is responsible for performing data read and write operations on the cloud hard disk. When the data status of the parent cloud hard disk changes (for example, a cloning operation is performed), the cloud storage platform 530 can automatically update the version number of the parent cloud hard disk. The update of the version number can accurately record the data status of the parent cloud hard disk at each moment, and reference the latest data version in the subsequent read and write operations of the read-write module 540. Furthermore, the cloud storage platform 530 sends the updated version number to the read-write module 540 so that the read-write module 540 can obtain the latest cloud hard disk status in a timely manner. After receiving the new version number, the read-write module 540 will perform subsequent read and write operations on the version number.

[0077] In this embodiment, the read-write module uses the latest version number to perform data read and write operations, so that data access is based on the latest cloud hard disk status, reducing the situation where system data is out of sync, and improving the reliability of system data read and write operations.

[0078] In one embodiment, Figure 8 As shown, the system 500 also includes a virtual machine data platform 550 connected to the cloud hard disk management platform 520;

[0079] The cloud hard disk management platform 520 is used to update the version number of the parent cloud hard disk in the preset database and send a control instruction to the virtual machine data platform 550;

[0080] The virtual machine data platform 550 is used to read the updated version number of the parent cloud hard disk from the preset database when receiving the control instruction, and perform read and write operations on the parent cloud hard disk corresponding to the updated version number.

[0081] The virtual machine data platform 550 can also be connected to the read-write module 540 to perform read-write operations through the read-write module 540. It should be noted that the implementation solution provided by the system is similar to the implementation solution recorded in the above method, so the specific limitations of the cloud hard disk cloning system 500 provided in this embodiment can refer to the limitations of the cloud hard disk cloning method above, which will not be repeated here.

[0082] Based on the same inventive concept, the embodiment of the present application also provides a cloud hard disk cloning device for implementing the cloud hard disk cloning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more cloud hard disk cloning device embodiments provided below can refer to the limitations of the cloud hard disk cloning method above, and will not be repeated here.

[0083] In one embodiment, Fig. 9 As shown, a cloud hard disk cloning device 900 is provided, including: a request receiving module 910, a hard disk creation module 920 and a hard disk cloning module 930, wherein:

[0084] The request receiving module 910 is used to receive a cloud hard disk cloning request carrying a parent cloud hard disk identifier sent by the cloud platform.

[0085] The hard disk creation module 920 is used to obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier and create a child cloud hard disk of the parent cloud hard disk.

[0086] The hard disk cloning module 930 is used to configure the child cloud hard disk according to the parent volume snapshot version number and the preset cloud hard disk information of the parent cloud hard disk, so as to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

[0087] In one embodiment, the cloud hard disk cloning device 900 is also used to update the version number of the parent cloud hard disk, and send the updated version number of the parent cloud hard disk to the connected virtual machine data platform, so that the virtual machine data platform can perform read and write operations on the parent cloud hard disk corresponding to the updated version number.

[0088] In one embodiment, the cloud hard disk cloning device 900 is also used to update the version number of the parent cloud hard disk in the preset database, and send a control instruction to the virtual machine data platform, the control instruction is used to instruct the virtual machine data platform to read the updated version number of the parent cloud hard disk from the preset database.

[0089] Each module in the above-mentioned cloud hard disk cloning device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0090] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the parent volume snapshot version number. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cloud hard disk cloning method is implemented.

[0091] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0092] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above-mentioned cloud hard disk cloning method embodiment when executing the computer program.

[0093] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned cloud hard disk cloning method embodiment are implemented.

[0094] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned cloud hard disk cloning method embodiment when executed by a processor.

[0095] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0097] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0098] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A cloud hard disk cloning method, characterized in that: Applied to a cloud hard disk management platform, the method includes: Receive a cloud disk clone request with a parent cloud disk ID from the cloud platform; Obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and create a child cloud hard disk of the parent cloud hard disk; The child cloud hard disk is configured according to the parent volume snapshot version number and the preset cloud hard disk information of the parent cloud hard disk, so as to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

2. The method according to claim 1, characterized in that The method further comprises: Update the version number of the parent cloud hard disk; The updated version number of the parent cloud hard disk is sent to the connected virtual machine data platform, so that the virtual machine data platform performs read and write operations on the parent cloud hard disk corresponding to the updated version number.

3. The method according to claim 2, characterized in that The step of sending the updated version number of the parent cloud hard disk to the connected virtual machine data platform includes: Updating the version number of the parent cloud hard disk in the preset database; A control instruction is sent to the virtual machine data platform, where the control instruction is used to instruct the virtual machine data platform to read the updated version number of the parent cloud hard disk from the preset database.

4. A cloud hard disk cloning system, characterized in that: The system includes a cloud platform and a cloud hard disk management platform that are interconnected; The cloud platform is used to send a cloud hard disk cloning request carrying a parent cloud hard disk identifier to the cloud hard disk management platform; The cloud hard disk management platform is used to receive the cloud hard disk cloning request, obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, create a child cloud hard disk of the parent cloud hard disk, and configure the child cloud hard disk according to the parent volume snapshot version number and preset cloud hard disk information of the parent cloud hard disk to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

5. The system according to claim 4, characterized in that The system also includes a cloud storage platform connected to the cloud platform and the cloud hard disk management platform; The cloud platform is used to send a snapshot request carrying a parent cloud hard disk identifier to the cloud storage platform; The cloud storage platform is used to receive the snapshot request, create a parent volume snapshot corresponding to the parent cloud hard disk identifier, obtain the version number of the parent cloud hard disk, determine the version number of the parent cloud hard disk as the parent volume snapshot version number of the parent volume snapshot, and send the parent volume snapshot version number to the cloud hard disk management platform and the cloud platform.

6. The system according to claim 5, characterized in that The system also includes a read-write module connected to the cloud storage platform; The cloud storage platform is also used to update the version number of the parent cloud hard disk and send the updated version number to the read-write module; The read-write module is used to perform read-write operations on the parent cloud hard disk corresponding to the updated version number.

7. The system according to claim 4, characterized in that The system also includes a virtual machine data platform connected to the cloud hard disk management platform; The cloud hard disk management platform is used to update the version number of the parent cloud hard disk in the preset database and send a control instruction to the virtual machine data platform; The virtual machine data platform is used to read the updated version number of the parent cloud hard disk from the preset database when receiving the control instruction, and perform read and write operations on the parent cloud hard disk corresponding to the updated version number.

8. A cloud hard disk cloning device, characterized in that: Applied to a cloud hard disk management platform, the device includes: A request receiving module, used to receive a cloud hard disk cloning request carrying a parent cloud hard disk identifier sent by the cloud platform; A hard disk creation module, used to obtain the parent volume snapshot version number corresponding to the parent cloud hard disk identifier, and create a child cloud hard disk of the parent cloud hard disk; The hard disk cloning module is used to configure the child cloud hard disk according to the parent volume snapshot version number and the preset cloud hard disk information of the parent cloud hard disk, so as to clone the storage data in the parent cloud hard disk to the child cloud hard disk.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.