CN114443216A - Cloud platform mirror image management method and management system - Google Patents

Cloud platform mirror image management method and management system Download PDF

Info

Publication number
CN114443216A
CN114443216A CN202111602522.5A CN202111602522A CN114443216A CN 114443216 A CN114443216 A CN 114443216A CN 202111602522 A CN202111602522 A CN 202111602522A CN 114443216 A CN114443216 A CN 114443216A
Authority
CN
China
Prior art keywords
storage pool
image
storing
resource pools
mirror
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111602522.5A
Other languages
Chinese (zh)
Inventor
刘苏
汪银
张玉
曹磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202111602522.5A priority Critical patent/CN114443216A/en
Publication of CN114443216A publication Critical patent/CN114443216A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool

Abstract

The application discloses a cloud platform mirror image management method and a management system, wherein the method comprises the following steps: receiving a first request instruction, wherein the first request instruction is used for creating a first mirror image; and according to the first request instruction, copying the first mirrored file from the first storage pool to the second storage pool, creating a mirror entry, and updating the local metadata information. The first storage pool is used for storing a plurality of resource pools of one cluster, and the second storage pool is used for storing the resource pools corresponding to the plurality of clusters; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster. According to the scheme provided by the application, cloud resources among a plurality of resource pools corresponding to any cluster can be shared, so that the use requirements of the terminal on the resources are met as much as possible.

Description

Cloud platform mirror image management method and management system
Technical Field
The application relates to the technical field of cloud, in particular to a cloud platform mirror image management method and a cloud platform mirror image management system.
Background
With the development of cloud computing and virtualization technologies, as a new mode based on cloud computing and service-oriented services, the cloud can provide various cloud management services which can be acquired at any time, used as required, safe and reliable for the local through a cloud platform, for example, provide cloud resources for the local. The local area may be considered as the area where the terminal is located.
The cloud management platform may provide a plurality of resource pools, wherein one region may correspond to the plurality of resource pools. Currently, cloud resources among multiple resource pools in the same region cannot be shared. For example, a user creates a private image on a first resource pool on a certain territory that is not available on other resource pools on the territory. With the increase of regions, cloud resources are limited, and the resource requirements of a plurality of terminals may not be met.
Disclosure of Invention
The application provides a cloud platform mirror image management method and a cloud platform mirror image management system, which can enable a plurality of resource pools in the same region to be shared, so that resource requirements of a plurality of terminals are met as much as possible.
In a first aspect, a cloud platform image management method is provided, where the method is executable by a cloud management platform, and the method includes: receiving a first request instruction, wherein the first request instruction is used for creating a first mirror image; and according to the type of the first image, copying the file of the first image from the first class storage pool to the second class storage pool, and updating the image entry and the local metadata information. The first storage pool is used for storing a plurality of resource pools of one cluster, and the second storage pool is used for storing the resource pools corresponding to the plurality of clusters; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster. The mirror entry is used for indicating the created mirror, and the local metadata information is used for indicating a resource pool stored in the second type storage pool, wherein the resource pool stored in the second type storage pool can be used by a plurality of clusters. According to the scheme provided by the application, cloud resources among a plurality of resource pools corresponding to any cluster can be shared, so that the use requirements of a terminal on the resources are met as much as possible.
In a possible design, the method further comprises: receiving a second request instruction before receiving the first request instruction; and according to the second request instruction, storing the image file indicated by the second request instruction in an image warehouse of the first class storage pool. It is understood that the created image file may be stored in the corresponding resource pool in advance, so that the image file may be acquired through an interface between the resource pool and the image service.
In a possible design, the first mirror image is a private mirror image, the first class storage pool is used for storing a plurality of resource pools of one cluster, and the second class storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first mirror image is a public mirror image, the first class storage pool is used for storing resource pools corresponding to the plurality of clusters respectively, and the second class storage pool is used for storing the plurality of resource pools of one cluster. In other words, the private image is stored in a resource pool used by one cluster, which may also be considered an object storage pool. The common mirror is stored in a resource pool used by a plurality of clusters, and can also be regarded as a block storage pool.
In a possible design, the first image is a public image, and the file of the first image is stored behind an image repository in the first type storage pool, the method further includes: synchronizing the first mirrored file in the first storage pool to other first storage pools except the first storage pool. I.e. creating a private image from a virtual system disk.
In a possible design, the first mirror is a public mirror, the method further comprising: and selecting a first image from the second type storage pool, creating a snapshot based on the first image, and cloning the virtual system disk according to the snapshot. I.e. create a virtual system disk for the public mirror.
In a possible design, the method further comprises: and receiving a deleting instruction, wherein the deleting instruction is used for deleting the second mirror image, and the second mirror image is deleted after determining that no virtual system disk is created based on the second mirror image.
In a second aspect, an embodiment of the present application provides a cloud platform image management system, where the cloud platform image management system includes a first storage pool and a second storage pool, and a management platform, where the first storage pool stores a file of a first image. The first type of storage pool is used for storing a plurality of resource pools of one cluster, and the second type of storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster.
The management platform is used for receiving a first request instruction, wherein the first request instruction is used for creating a first image, copying a file of the first image from the first class storage pool to the second class storage pool according to the type of the first image, and updating the image entry and the local metadata information. Wherein the mirror entry is to indicate the created mirror. The local metadata information is used to indicate resource pools stored in the second type of storage pool that can be used by the plurality of clusters.
In a possible design, the first mirror image is a private mirror image, the first class storage pool is used for storing a plurality of resource pools of one cluster, and the second class storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first mirror image is a public mirror image, the first class storage pool is used for storing resource pools corresponding to the plurality of clusters respectively, and the second class storage pool is used for storing the plurality of resource pools of one cluster.
In a possible design, the management platform comprises a transceiver module and a processing module. The transceiver module is further configured to receive a second request instruction before receiving the first request instruction. And the processing module is used for storing the image file indicated by the second request instruction in the image warehouse of the first storage pool according to the second request instruction.
In a possible design, the first image is a public image, and after the file of the first image is stored in the image repository of the first type storage pool, the processing module is further configured to synchronize the file of the first image in the first type storage pool to other first type storage pools.
In a possible design, the first image is a public image, and the processing module is further configured to select the first image from the second class storage pool, create a snapshot based on the first image, and clone the virtual system disk according to the snapshot.
In a possible design, the transceiver module is further configured to receive a deletion instruction, where the deletion instruction is used to delete the second image. The management platform further includes a deletion module to delete the second image upon determining that no virtual system disk was created based on the second image.
In a third aspect, an embodiment of the present application provides a cloud platform image management system, where the system includes a first storage pool, a second storage pool, and a management platform, where the first storage pool stores a file of a first image. The first type of storage pool is used for storing a plurality of resource pools of one cluster, and the second type of storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster. The management platform comprises: at least one processor, and a memory coupled to the at least one processor. Wherein the memory stores instructions executable by the at least one processor, and the at least one processor performs the method of the first aspect by executing the instructions stored by the memory.
In a fourth aspect, an embodiment of the present application provides a computer storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the method according to any one of the methods provided in the first aspect.
The embodiment of the application provides a cloud platform mirror image management system, which can enable cloud resources among a plurality of resource pools corresponding to any cluster to be shared, so that the use requirements of a terminal on the resources are met as much as possible.
Drawings
Fig. 1 is an architecture diagram of a cloud platform image management system according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of creating a private image according to an embodiment of the present application;
fig. 3 is another schematic flow chart of creating a private image according to an embodiment of the present application;
FIG. 4 is a flow chart illustrating creation of a public mirror image according to an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of a management platform provided in the embodiment of the present application;
fig. 6 is a schematic structural diagram of another management platform provided in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a cloud platform image management system according to an embodiment of the present disclosure. The system includes a management platform and a first type of storage pool and a second type of storage pool. The first type of storage pool and the second type of storage pool are relative terms. For example, the first type of storage pool is used to store a plurality of resource pools of one cluster, and the second type of storage pool is used to store resource pools corresponding to the plurality of clusters. The first type of storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type of storage pool is used for storing a plurality of resource pools of one cluster. There may be more than one first-type storage pool, for example, fig. 1 is taken as an example including M first-type storage pools. Similarly, there may be more than one second-type storage pool, for example, fig. 1 includes K second-type storage pools as an example. The system shown in fig. 1 further includes N clusters, and as can be seen from fig. 1, 1 cluster corresponds to 1 first-type storage pool, and may correspond to a plurality of second-type storage pools.
It should be noted that a plurality of resource pools for storing a cluster may be considered as a pool for the cluster, which is also referred to as an object storage pool. The multiple resource pools for storing the multiple clusters may also be considered to be for the multiple clusters, i.e. the multiple clusters share the resource pool, also referred to as a block resource pool. The resources stored in the resource pool may be physical resources or virtual resources (or cloud resources). One cluster can correspond to one region, one region can be divided into a plurality of areas, and each area corresponds to one resource pool. Alternatively, one cluster may correspond to a plurality of resource pools.
A management platform may be used to manage the first type of storage pool and the second type of storage pool. In other words, the management platform may be used to schedule resources in the first type of storage pool as well as in the second type of storage pool. Wherein the management platform schedules the resource pool to be cluster-level. For example, taking a first cluster (first region) as an example, the management platform may provide mirror management services for all resource pools under the first cluster. It is to be appreciated that the image management service has access to a first type of storage pool and a second type of storage pool.
The following describes how the management platform provides the mirror management service for the resource pool under a certain cluster by using a specific example. In the following description, the cluster is taken as a first cluster, and the mirror providing the mirror management service is taken as a first mirror.
Example one, a private image is created.
Please refer to fig. 2, which is a flow chart illustrating the creation of the private image according to an embodiment of the present application. The flow shown in fig. 2 takes the example of importing a private image from a page.
S201, the management platform receives a second request instruction, and the second request instruction is used for storing the manufactured mirror image.
The user may import the created image into the object storage pool. For example, the user inputs a second request instruction to the management platform, which may include the first mirrored information and the path of the object storage pool. The management platform receives the second request instruction, and stores the mirror image indicated by the second request instruction in the corresponding object storage pool. The mirror indicated by the second request instruction is the first mirror as an example.
S202, the management platform receives a first request instruction, and the first request instruction is used for creating a first mirror image.
S203, the management platform copies the first mirror image file from the object storage pool to the block storage pool according to the type of the first mirror image.
When the private image needs to be created, the user can input a first request instruction to the management platform to request the management platform to create the first image. And after receiving the first request instruction, the management platform calls a copy interface of the object storage pool to copy the first mirrored file in the object storage pool to the block storage pool. Thereafter, the management platform invokes the mirror service to create (update) the mirror entry and update the local metadata information. As can be appreciated, the local metadata information is used to indicate the resource pool in which the chunk storage pool is stored. Creating a mirrored entry may be considered as adding the entry of the first mirror to the original mirrored entry. The copy interface of the object storage pool in the embodiment of the present application is not limited, and for example, the interface may be an S3 interface or a swift copy interface of the object storage pool.
In this example, the private images are uniformly stored in the object storage pool, and any private image in the object storage pool can be shared, so that the resource requirement can be met as much as possible. In addition, the storage space for storing the private image can be saved.
And S204, the management platform receives a deleting instruction, and the deleting instruction is used for deleting the second mirror image.
S205, the management platform deletes the second mirror image after determining that no virtual system disk is created based on the second mirror image.
It will be appreciated that the created image is not required by the user, for example the second image, which may be transmitted in order to save storage space. Specifically, the user may input a delete command to the management platform, where the delete command may carry information of the second image. And the management platform receives the deletion instruction, firstly judges that all resource pools corresponding to the current cluster have no virtual system disk and is created based on the second mirror image, and then deletes the second mirror image. I.e., the second image is deleted from the object storage pool or the chunk storage pool. On the contrary, if all resource pools corresponding to the current cluster further have a virtual system disk created based on the second image, the management platform may output a prompt message to prompt a reason why the second image cannot be deleted.
Example two, a private image is created. The difference from example one is that example two exemplifies the creation of a private image from a virtual system disk.
Please refer to fig. 3, which is another schematic flow chart illustrating the creation of the private image according to an embodiment of the present application. The flow shown in FIG. 3 exemplifies the creation of a private image from a virtual system disk.
S301, the management platform receives a second request instruction, and the second request instruction is used for storing the manufactured mirror image.
The user may import a manufactured image, such as the first image, into the chunk store pool. For example, the user inputs a second request instruction to the management platform, which may include the first mirrored information and the path of the chunk storage pool. The management platform thus receives the second request instruction to store the first image in the corresponding block storage pool.
S302, the management platform receives a first request instruction, and the first request instruction is used for creating a first mirror image.
S303, the management platform copies the file of the first mirror image from the block storage pool to the system disk according to the type of the first mirror image.
The difference from S202 is that after receiving the first request instruction, the management platform calls an upload system disk interface of the block storage pool to copy the first mirrored file in the block storage pool to the system disk. And copy the data of the system disk to the block storage pool. Thereafter, the management platform invokes the mirror service to create a mirror entry and update the local metadata information. It will be appreciated that the local metadata information is used to indicate the resource pool in which the chunk storage pool is stored. Creating a mirrored entry may be considered as adding the entry of the first mirror to the original mirrored entry.
It should be noted that, in the second example, the flow of the second image may also be deleted by itself, which is specifically referred to the description in the first example and is not described herein again.
Example three, a public mirror is created. The public image refers to a common template that all users can use, including but not limited to images of operating systems such as ubuntu, windows, centros, etc.
Please refer to fig. 4, which is a flowchart illustrating creation of a public mirror image according to an embodiment of the present application.
S401, the management platform receives a second request instruction, and the second request instruction is used for storing the manufactured mirror image.
The user may import the composed first image into the chunk store pool. For example, the user inputs a second request instruction to the management platform, which may include the first mirrored information and the path of the chunk storage pool. The management platform thus receives the second request to store the first image in a corresponding block storage pool, such as the first block storage pool. The first block storage pool may be any one of the block storage pools.
S402, the management platform synchronizes the first mirrored file in the first block storage pool to other block storage pools.
When the management platform stores the first image in the first block storage pool, a synchronization operation may be performed to synchronize the first image to the other block storage pools. Thereby realizing the creation of public mirror images.
In this example, the public mirror image is stored in any storage pool, and the virtual system disk can be cloned more quickly.
Example four, a system disk is created for mirroring. It is understood that there are private images and public images. How to create the system disk is described below for private and public images, respectively.
With respect to public images, it should be understood that public images are stored in each block storage pool. The performance of different fast storage pools may also vary. For example, a block storage pool with faster read and write speeds may be considered a high performance storage pool. In contrast, the block storage pools having slower read and write speeds may be considered normal storage pools and high performance storage pools. When creating a system disk for a public image, a snapshot may be taken from a first block storage pool storing a first image, from which a system disk may be cloned. Alternatively, the first image may be copied from the first block storage pool to the high performance storage pool, a snapshot may be made from the high performance storage pool, and a system disk may be cloned from the snapshot. According to the embodiment of the application, the public mirror image is stored in any storage pool, so that the virtual system disk can be cloned more quickly.
For private mirroring, the management platform may invoke the mirroring service to download the files of the first image from the object storage pool to a local temporary directory of the node where the block storage service is located. Thereafter, the management platform may invoke an import command of the block store to import the first mirrored file into the pool of block storage volumes. It is understood that if the mirror format is not raw, the management platform performs a mirror format conversion operation before importing, e.g. the management platform may perform the mirror format conversion operation through the conversion tool qemu-img. In the embodiment of the application, the private image can be shared in a plurality of storage pools, and a user can create the virtual machine resource in any storage pool by using the private image, namely the virtual machine resource is constructed more quickly.
It should be noted that, the foregoing examples one to four may be combined with each other, and the embodiments of the present application are not limited thereto. As can be seen from the foregoing examples one to four, the cloud platform image management system provided in the embodiment of the present application supports unified management of images of multiple storage pools in the same cluster. For example, the private images are uniformly stored in the object storage pool, and any private image in the object storage pool can be shared, so that the resource requirement can be met as much as possible. In addition, the storage space for storing the private image can be saved. And the private mirror image can be shared in a plurality of storage pools, and a user can use the private mirror image to create the virtual machine resource in any storage pool, namely the virtual machine resource is constructed more quickly. For another example, the public mirror image is stored in an arbitrary block storage pool, and the virtual system disk can be cloned more quickly.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present invention provides a cloud platform image management system, which includes a first storage pool and a second storage pool, and a management platform, where the first storage pool stores a first mirrored file. The first type of storage pool is used for storing a plurality of resource pools of one cluster, and the second type of storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster. The management platform is used for receiving a first request instruction, wherein the first request instruction is used for creating a first image, copying the file of the first image from the first class storage pool to the second class storage pool according to the first request instruction, and updating the image entry and the local metadata information. Wherein the mirror entry is used to indicate the created mirror. The local metadata information is used to indicate resource pools stored in the second type of storage pool that can be used by the plurality of clusters.
In a possible design, the first mirror image is a private mirror image, the first class storage pool is used for storing a plurality of resource pools of one cluster, and the second class storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first mirror image is a public mirror image, the first class storage pool is used for storing resource pools corresponding to the plurality of clusters respectively, and the second class storage pool is used for storing the plurality of resource pools of one cluster.
In a possible design, the management platform comprises a transceiver module 501 and a processing module 502. The transceiver module 501 is further configured to receive a second request instruction before receiving the first request instruction. And the processing module is used for storing the image file indicated by the second request instruction in the image warehouse of the first storage pool according to the second request instruction.
In a possible design, the first image is a public image, and after the file of the first image is stored in the image repository of the first storage pool, the processing module 502 is further configured to synchronize the file of the first image in the first storage pool to other first storage pools.
In a possible design, the first image is a public image, and the processing module 502 is further configured to select the first image from the second class storage pool, create a snapshot based on the first image, and clone the virtual system disk according to the snapshot.
In a possible design, the transceiver module 501 is further configured to receive a deletion instruction, where the deletion instruction is used to delete the second image. The management platform further comprises a deletion module 503 for deleting the second image upon determining that no virtual system disk was created based on the second image.
The cloud platform image management system can be used for executing the methods provided by the embodiments shown in fig. 2-4. Therefore, for functions and the like that can be realized by each functional module of the unmanned aerial vehicle, reference may be made to the description of the embodiments shown in fig. 2 to fig. 4, which is not repeated.
Referring to fig. 6, an embodiment of the present invention further provides a cloud platform image management system, where the cloud platform image management system includes a first storage pool and a second storage pool, and a management platform, where the first storage pool stores a first image file. The first type of storage pool is used for storing a plurality of resource pools of one cluster, and the second type of storage pool is used for storing the resource pools corresponding to the plurality of clusters respectively; or the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster. The management platform comprises at least one processor 601, the processor 601 being configured to implement the steps of the method as shown in fig. 2-4 provided by the embodiments of the present invention when executing the computer program stored in the memory.
Optionally, the processor 601 may be specifically a central processing unit, an Application Specific Integrated Circuit (ASIC), one or more Integrated circuits for controlling program execution, a hardware Circuit developed by using a Field Programmable Gate Array (FPGA), or a baseband processor.
Optionally, the Read-write lock operation device further includes a Memory 602 connected to the at least one processor 601, where the Memory 602 may include a Read Only Memory (ROM), a Random Access Memory (RAM), and a disk Memory. The memory 602 is used for storing data required by the processor 601 in operation. The number of the memories 602 is one or more. The memory 602 is also shown in fig. 6, but it should be understood that the memory 602 is not an optional functional module, and is therefore shown in fig. 6 by a dotted line.
Based on the same inventive concept, embodiments of the present invention provide a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the method shown in fig. 2-4.
In particular implementations, the computer-readable storage medium includes: various storage media capable of storing program codes, such as a Universal Serial Bus flash drive (USB), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or contributing to the prior art, or all or part of the technical solutions may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Universal Serial Bus flash disk (usb flash disk), a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
Various modifications and alterations to this application will become apparent to those skilled in the art without departing from the scope of this application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A cloud platform mirror image management method is characterized by comprising the following steps:
receiving a first request instruction, wherein the first request instruction is used for creating a first mirror image;
copying the first mirrored file from a first storage pool to a second storage pool according to the type of the first mirror, wherein the first storage pool stores the first mirrored file, the first storage pool is used for storing a plurality of resource pools of one cluster, and the second storage pool is used for storing the resource pools corresponding to the plurality of clusters; or, the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster;
updating a mirror entry and local metadata information, wherein the mirror entry is used for indicating the created mirror, and the local metadata information is used for indicating the resource pool stored in the second type storage pool, and the resource pool stored in the second type storage pool can be used by a plurality of clusters.
2. The method of claim 1, wherein the method further comprises:
receiving a second request instruction before receiving the first request instruction;
and according to the second request instruction, storing the image file indicated by the second request instruction in an image warehouse of the first class storage pool.
3. The method according to claim 1 or 2, wherein the first mirror is a private mirror, the first storage pool is used for storing a plurality of resource pools of one cluster, and the second storage pool is used for storing resource pools corresponding to the plurality of clusters; alternatively, the first and second electrodes may be,
the first mirror image is a public mirror image, the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster.
4. The method of claim 2, wherein the first image is a public image, wherein files of the first image are stored behind an image repository of the first class of storage pool, the method further comprising:
synchronizing the first mirrored file in the first storage pool type to a first resource pool type other than the first storage pool type.
5. The method of claim 1, wherein the first image is a public image, the method further comprising:
selecting the first image from the second type storage pool, and creating a snapshot based on the first image;
and cloning the virtual system disk according to the snapshot.
6. The method of claim 1, wherein the method further comprises:
receiving a deleting instruction; the deleting instruction is used for deleting the second mirror image;
determining that no virtual system disk is created based on the second image, deleting the second image.
7. The cloud platform mirror image management system is characterized by comprising a first storage pool, a second storage pool and a management platform, wherein the first storage pool stores a first mirror image file, the first storage pool is used for storing a plurality of resource pools of a cluster, and the second storage pool is used for storing the resource pools corresponding to the clusters respectively; or, the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster;
the management platform is used for receiving a first request instruction, wherein the first request instruction is used for creating the first mirror image, copying the file of the first mirror image from the first class storage pool to the second class storage pool according to the type of the first mirror image, and updating mirror image entries and local metadata information; wherein the mirror entry is used to indicate the created mirror, and the local metadata information is used to indicate the resource pool stored in the second type storage pool, which can be used by multiple clusters.
8. The management system according to claim 7, wherein the first mirror is a private mirror, the first storage pool is used for storing a plurality of resource pools of one cluster, and the second storage pool is used for storing resource pools corresponding to the plurality of clusters; alternatively, the first and second electrodes may be,
the first mirror image is a public mirror image, the first storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second storage pool is used for storing a plurality of resource pools of one cluster.
9. The cloud platform mirror image management system is characterized by comprising a first storage pool, a second storage pool and a management platform, wherein the first storage pool stores files of a first mirror image, the first storage pool is used for storing a plurality of resource pools of a cluster, and the second storage pool is used for storing the resource pools corresponding to the clusters respectively; or, the first type storage pool is used for storing resource pools corresponding to a plurality of clusters respectively, and the second type storage pool is used for storing a plurality of resource pools of one cluster; wherein the management platform comprises:
at least one processor, and a memory coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the at least one processor performing the method of any one of claims 1-6 by executing the instructions stored by the memory.
10. A computer storage medium having computer instructions stored thereon which, when executed on a computer, cause the computer to perform the method of any one of claims 1-6.
CN202111602522.5A 2021-12-24 2021-12-24 Cloud platform mirror image management method and management system Pending CN114443216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111602522.5A CN114443216A (en) 2021-12-24 2021-12-24 Cloud platform mirror image management method and management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111602522.5A CN114443216A (en) 2021-12-24 2021-12-24 Cloud platform mirror image management method and management system

Publications (1)

Publication Number Publication Date
CN114443216A true CN114443216A (en) 2022-05-06

Family

ID=81364119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111602522.5A Pending CN114443216A (en) 2021-12-24 2021-12-24 Cloud platform mirror image management method and management system

Country Status (1)

Country Link
CN (1) CN114443216A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116644050A (en) * 2023-06-19 2023-08-25 深圳市青葡萄科技有限公司 Distributed storage method in file VDI environment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116644050A (en) * 2023-06-19 2023-08-25 深圳市青葡萄科技有限公司 Distributed storage method in file VDI environment

Similar Documents

Publication Publication Date Title
US11379412B2 (en) Enabling data replication processes between heterogeneous storage systems
CN107111533B (en) Virtual machine cluster backup
EP2788876B1 (en) System and method for restoring application data
CN103180842A (en) Cloud computing system and data synchronization method therefor
US8572338B1 (en) Systems and methods for creating space-saving snapshots
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
CN110083399B (en) Applet running method, computer device and storage medium
CN111104069A (en) Multi-region data processing method and device of distributed storage system and electronic equipment
US11132126B1 (en) Backup services for distributed file systems in cloud computing environments
CN111143113B (en) Method, electronic device and computer program product for copying metadata
CN114443216A (en) Cloud platform mirror image management method and management system
CN107526838B (en) Method and device for database cluster capacity expansion
US8281096B1 (en) Systems and methods for creating snapshots
US11501014B2 (en) Secure data replication in distributed data storage environments
US11513906B2 (en) Systems and methods for automatic backup scheduling based on backup history
CN109343928B (en) Virtual memory file redirection method and system for virtual machine in virtualization cluster
US11726885B2 (en) Efficient method and system of intelligent deploying file level restore agent in multicloud
US20150248352A1 (en) Methods and systems for optimization of storage performance across multiple compute devices
CN113761075A (en) Method, device, equipment and computer readable medium for switching databases
CN104461382A (en) Internal writing method for file server operating multiple file systems and server
US9880904B2 (en) Supporting multiple backup applications using a single change tracker
CN116301593B (en) Method and application for cross-cluster and cross-storage copy block data under cloud platform
US11379147B2 (en) Method, device, and computer program product for managing storage system
US20240028335A1 (en) Application state synchronization across computing environments to an alternate application
US11748314B2 (en) Method, device and computer program product for data replication

Legal Events

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