CN111078368B - Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium - Google Patents

Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium Download PDF

Info

Publication number
CN111078368B
CN111078368B CN201911370305.0A CN201911370305A CN111078368B CN 111078368 B CN111078368 B CN 111078368B CN 201911370305 A CN201911370305 A CN 201911370305A CN 111078368 B CN111078368 B CN 111078368B
Authority
CN
China
Prior art keywords
snapshot
virtual machine
memory
storage system
disk
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.)
Active
Application number
CN201911370305.0A
Other languages
Chinese (zh)
Other versions
CN111078368A (en
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201911370305.0A priority Critical patent/CN111078368B/en
Publication of CN111078368A publication Critical patent/CN111078368A/en
Application granted granted Critical
Publication of CN111078368B publication Critical patent/CN111078368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/45579I/O management, e.g. providing access to device drivers or storage
    • 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/45583Memory management, e.g. access or allocation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a memory snapshot method and device of a cloud computing platform virtual machine based on a storage system and a computer readable storage medium. The method comprises the steps that when a target virtual machine snapshot creating operation instruction sent by a cloud platform is received, storage resources including a disk and a storage volume of the disk on the storage system corresponding to the disk, which are mounted by a target virtual machine, are obtained; sending an instruction for interrupting the read-write request of the storage resource, and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to a disk; based on the corresponding relation between the disk and the storage system, a snapshot interface of the storage system is called to perform snapshot operation on the disk, so that memory snapshot of the virtual machine is efficiently realized on the basis of not occupying IO (input/output) resources of the virtual machine and IO resources of a cloud platform.

Description

Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
Technical Field
The present application relates to the field of storage snapshot technologies, and in particular, to a method and an apparatus for memory snapshot of a cloud computing platform virtual machine based on a storage system, and a computer-readable storage medium.
Background
With the rapid development of cloud computing and big data, distributed cloud computing is widely applied to storage systems. In a distributed cloud computing scenario, backup of snapshot data stored on the basis of an SAN (Storage Area Network) is an inevitable ring, and an object is a computing resource established on the SAN Storage, that is, a virtual machine. The data backup of the virtual machine includes not only the backup of the data of the disk itself, but also the backup of the data in the memory, where the data in the memory refers to the data in the memory, which is not actually written to the disk yet.
In the related technology, when memory snapshot is performed on a virtual machine, data of a disk is subjected to one-time snapshot, and the data in a memory is stored as a file to be stored; and when the snapshot of the disk rolls back, the disk snapshot and the stored memory data are restored to the virtual machine.
However, the time for backing up the data of the memory part in the memory snapshot mode is long, the memory data file is saved while the IO resources of the virtual machine and the IO resources of the cloud platform are occupied, the time for creating the snapshot is also long, and the method cannot be applied to an application scenario with high memory snapshot efficiency.
In view of this, how to efficiently implement memory snapshot of a virtual machine on the basis of not occupying IO resources of the virtual machine and IO resources of a cloud platform is a technical problem that needs to be solved by technical personnel in the field.
Disclosure of Invention
The application provides a memory snapshot method, a memory snapshot device and a computer readable storage medium of a cloud computing platform virtual machine based on a storage system, which can efficiently realize memory snapshot of the virtual machine on the basis of not occupying IO (input/output) resources of the virtual machine and IO resources of the cloud platform.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
the embodiment of the invention provides a memory snapshot method of a cloud computing platform virtual machine based on a storage system, which comprises the steps of constructing a memory synchronization interface matched with each virtual machine operating system in advance, wherein the memory synchronization interface is used for synchronizing memory data at a preset moment to a corresponding disk; the method comprises the following steps:
when a target virtual machine snapshot creating operation instruction issued by a cloud platform is received, acquiring a storage resource mounted by the target virtual machine; the storage resources comprise disks and storage volumes of the disks, which correspond to the storage systems;
sending an instruction for interrupting the reading and writing request of the storage resource, and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to the disk;
and calling a snapshot interface of the storage system to perform snapshot operation on the disk based on the corresponding relation between the disk and the storage system.
Optionally, the virtual machine mounts a plurality of disks, and the storage volumes corresponding to the disks are located in the same consistency group; the step of calling the snapshot interface of the storage system to perform snapshot operation on the disk comprises the following steps:
and calling a consistency snapshot interface of the storage system to carry out consistency snapshot operation on each disk.
Optionally, after the step of calling a snapshot interface of the storage system to perform a snapshot operation on the disk based on the correspondence between the disk and the storage system, the method further includes:
and sending a snapshot data recovery request to the cloud platform so that the cloud platform calls a snapshot rollback interface of the storage system to perform snapshot rollback operation on the corresponding storage volume.
Optionally, after the step of calling a snapshot interface of the storage system to perform a snapshot operation on the disk based on the correspondence between the disk and the storage system, the method further includes:
if the snapshot file is not detected within the preset time period, packing system operation log information from the moment when the cloud platform issues the snapshot creation operation instruction of the target virtual machine to the current moment, and sending the system operation log information to the target path.
Optionally, after the snapshot file is not detected within the preset time period, the method further includes:
and sending feedback information of snapshot failure to the cloud platform so as to enable the cloud platform to resend the snapshot creation request.
In another aspect, an embodiment of the present invention provides a memory snapshot apparatus for a cloud computing platform virtual machine based on a storage system, including:
the interface pre-establishing module is used for pre-establishing a memory synchronization interface matched with each virtual machine operating system, and the memory synchronization interface is used for synchronizing memory data at a preset moment to a corresponding disk;
the storage resource acquisition module is used for acquiring the mounted storage resources of the target virtual machine when receiving a snapshot creation operation instruction of the target virtual machine issued by the cloud platform; the storage resources comprise disks and storage volumes of the disks, which correspond to the storage systems;
the memory synchronization module is used for sending an instruction for interrupting the read-write request of the storage resource and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to the disk;
and the disk snapshot module is used for calling a snapshot interface of the storage system to carry out snapshot operation on the disk based on the corresponding relation between the disk and the storage system.
Optionally, the disk snapshot module is specifically configured to call a consistency snapshot interface of the storage system to perform a consistency snapshot operation on each disk; the storage volumes corresponding to the disks are located in the same consistency group.
Optionally, the storage system further includes a snapshot rollback module, where the snapshot rollback module is configured to send a snapshot data recovery request to the cloud platform, so that the cloud platform calls a snapshot rollback interface of the storage system to perform a snapshot rollback operation on a corresponding storage volume.
The embodiment of the invention also provides a memory snapshot device of the cloud computing platform virtual machine based on the storage system, which comprises a processor, wherein the processor is used for realizing the steps of the memory snapshot method of the cloud computing platform virtual machine based on the storage system when executing the computer program stored in the storage.
The embodiment of the present invention finally provides a computer-readable storage medium, where a memory snapshot program of a cloud computing platform virtual machine based on a storage system is stored in the computer-readable storage medium, and when the memory snapshot program of the cloud computing platform virtual machine based on the storage system is executed by a processor, the step of implementing the memory snapshot method of the cloud computing platform virtual machine based on the storage system as described in any one of the foregoing embodiments is implemented.
The technical scheme provided by the application has the advantages that under a cloud computing architecture, the virtual machine snapshot operation created based on the storage system is downloaded to the storage system to be executed, corresponding memory data synchronization interfaces are provided according to different operating systems to synchronize the memory data to the disks, and IO interruption operation permission needs to be provided, so that when the snapshot is created, the memory data is synchronously downloaded to the corresponding disks, normal operation of memory snapshot characteristics is ensured, the memory snapshot operation can be processed and completed in a short time, because IO interruption time is short, the influence on the virtual machine business can be reduced to the minimum, and the memory data can be rapidly and efficiently transferred and the memory snapshot operation can be realized on the basis of not occupying virtual machine resources and cloud platform IO resources.
In addition, the embodiment of the invention also provides a corresponding implementation device and a computer readable storage medium for the memory snapshot method of the cloud computing platform virtual machine based on the storage system, so that the method has higher practicability, and the device and the computer readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a memory snapshot method of a cloud computing platform virtual machine based on a storage system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system topology according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another memory snapshot method for a cloud computing platform virtual machine based on a storage system according to an embodiment of the present invention;
fig. 4 is a structural diagram of a memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system according to an embodiment of the present invention;
fig. 5 is a structural diagram of another specific embodiment of a memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system according to an embodiment of the present invention;
fig. 6 is a structural diagram of a memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system according to still another specific embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the foregoing drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a memory snapshot method for a cloud computing platform virtual machine based on a storage system according to an embodiment of the present invention, where the cloud computing platform based on the storage system builds a system network topology according to a topology structure shown in fig. 2, and creates corresponding storage resources and virtual machine resources according to a schematic topological relation shown in the figure. In order to implement a subsequent snapshot function, the virtual machine provides a snapshot implementation interface for a storage layer established on the storage disk, such as a system disk, a data disk, and the like of the storage system; on the operating system level of the virtual machine, a memory synchronization interface is provided or written in advance, and memory data at a certain moment can be synchronized into a corresponding storage disk; that is, a plurality of memory synchronization interfaces matched with each virtual machine operating system may be constructed, and memory data at a preset time may be synchronized to a corresponding disk by calling the memory synchronization interfaces. The execution subject of the following embodiments is a storage system, and the embodiments of the present invention may include the following:
s101: and when a target virtual machine snapshot creation operation instruction issued by the cloud platform is received, acquiring the mounted storage resource of the target virtual machine.
In the application, when the snapshot operation is required, the cloud platform layer initiates the snapshot creation operation on a certain virtual machine, issues the instruction to the disk through an interface provided by the virtual machine operating system, and the storage system executes the snapshot operation. Before the snapshot operation needs to be performed, which storage disks are mounted by the virtual machine and the storage volumes of the disks on the storage system, that is, the storage resources in S101, may be collected according to an interface provided or developed by the cloud platform. For convenience of description, in the embodiment of the present invention, the virtual machine is referred to as a target virtual machine.
S102: and sending an instruction for interrupting the read-write request of the storage resource, and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to a disk.
It can be understood that, the memory synchronization interfaces of the operating systems of different virtual machines are different, different memory synchronization interfaces may be developed in advance according to different types of operating systems, then the type of the target virtual machine in the operation instruction is created according to the target virtual machine snapshot of S101 to match the corresponding memory synchronization interface, and then the memory data synchronization computer program executed correspondingly by the memory synchronization interface is flushed to the corresponding disk.
S103: and calling a snapshot interface of the storage system to perform snapshot operation on the disk based on the corresponding relation between the disk and the storage system.
In order to ensure normal operation of the memory snapshot characteristic, an operation authority of IO interruption needs to be provided, after the cloud platform calls an interface provided by the virtual machine operation system to issue a corresponding IO to a disk, an instruction for interrupting a read-write request of a storage resource is sent based on S102 to perform IO (input/output) interruption on all the disks, then a snapshot interface provided by the storage system is immediately called to perform a snapshot operation on a storage system volume, and after a snapshot is successful, a virtual machine data backup including memory data at this time point is completed.
It should be noted that the IO interruption of the disk is automatically recovered after the snapshot is completed, the IO interruption time of the disk may be set according to the actual application scenario, counting is performed by using a counter from the instruction time of sending the read-write request for interrupting the storage resource, and the IO of each disk may be automatically recovered after the IO interruption time is reached.
In the technical scheme provided by the embodiment of the invention, under a cloud computing architecture, virtual machine snapshot operation created based on a storage system is downloaded to the storage system for execution, corresponding memory data synchronization interfaces are provided according to different operating systems to synchronize memory data to a disk, and IO interruption operation authority needs to be provided, so that when the snapshot is created, the memory data is synchronously downloaded to the corresponding disk, normal operation of memory snapshot characteristics is ensured, the memory snapshot operation can be processed and completed in a short time, because IO interruption time is short, the influence on virtual machine service can be reduced to the minimum, and the memory data can be rapidly and efficiently transferred and the memory snapshot operation can be realized on the basis of not occupying IO resources of a virtual machine and IO resources of a cloud platform.
It can be understood that, if there are many blocks in the disk mounted by the virtual machine, the snapshot backup in the related art cannot ensure the consistency of the snapshots of the multiple disks, and cannot be applied to a service scenario with high requirements for data backup accuracy, such as a time point and data. Based on the method, the storage volumes corresponding to the plurality of disks mounted by the virtual machine can be placed in the same consistency group in advance, the virtual machine can provide a consistency snapshot realization interface for a storage layer surface established on the storage disks, and the consistency snapshot interface carries out snapshot creation aiming at one group of disks so as to ensure that the created disk snapshots are data of the same accurate time point. As shown in fig. 3, one embodiment of S103 may include the following steps:
s1031: judging whether the number of the disks mounted by the target virtual machine is a single disk or a plurality of disks, and if the number of the disks is a single disk, executing S1032; if there are multiple disks, S1033 is performed.
S1032: and calling a snapshot interface of the storage system to perform snapshot operation on the disk based on the corresponding relation between the disk and the storage system.
S1033: and calling a consistency snapshot interface of the storage system to perform consistency snapshot operation on each disk based on the corresponding relation between the disk and the storage system.
As can be seen from the above, the virtual machine memory snapshot provided in the embodiment of the present invention supports consistent snapshot management, can ensure that snapshot data of multiple disks are consistent, and is suitable for a core service environment with high requirements on data timeliness, data time point accuracy, and service continuity.
In this application, after completing the virtual machine memory snapshot, when data needs to be restored at a certain time, the storage system provides a snapshot rollback interface, and after S103, the method may further include:
s104: and sending a snapshot data recovery request to the cloud platform so that the cloud platform calls a snapshot rollback interface of the storage system to perform snapshot rollback operation on the corresponding storage volume, and thus, the data can be quickly recovered to the data of the created snapshot time point.
It can be understood that, the snapshot operation in S103 may fail due to network, power failure, and the like, and in order to find out that the snapshot fails in time, so as to take corresponding measures quickly, such as taking the snapshot again, or detecting the cause of the snapshot failure and locating the fault, the present application may further include:
s104: if the snapshot file is not detected within the preset time period, the system running log information from the moment when the cloud platform issues the snapshot creation operation instruction of the target virtual machine to the current moment is received, packaged and sent to the target path.
S105: and sending feedback information of snapshot failure to the cloud platform so as to enable the cloud platform to resend the snapshot creation request.
The target path may be a pre-bound client or a certain file of a certain system, which does not affect the implementation of the present application.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as a logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 and fig. 3 are only schematic manners, and do not represent only such an execution order.
The embodiment of the invention also provides a corresponding device for the memory snapshot method of the cloud computing platform virtual machine based on the storage system, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the memory snapshot apparatus of the cloud computing platform virtual machine based on the storage system according to the embodiment of the present invention is introduced, and the memory snapshot apparatus of the cloud computing platform virtual machine based on the storage system described below and the memory snapshot method of the cloud computing platform virtual machine based on the storage system described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 4, fig. 4 is a structural diagram of a memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system in an embodiment of the present invention in a specific implementation manner, where the apparatus may include an interface pre-creation module, configured to pre-construct a memory synchronization interface matched with each virtual machine operating system, where the memory synchronization interface is configured to synchronize memory data at a preset time to a corresponding disk; the method can also comprise the following steps:
a storage resource obtaining module 401, configured to obtain, when receiving a target virtual machine snapshot creation operation instruction issued by a cloud platform, a storage resource mounted by a target virtual machine; the storage resources include disks and storage volumes of the disks on the storage system.
And a memory synchronization module 402, configured to send an instruction for interrupting the read-write request of the storage resource, and call a memory synchronization interface matched with the target virtual machine to synchronize memory data to a disk.
And a disk snapshot module 403, configured to call a snapshot interface of the storage system to perform snapshot operation on the disk based on a corresponding relationship between the disk and the storage system.
Optionally, in some embodiments of this embodiment, the disk snapshot module 403 may be specifically configured to call a consistent snapshot interface of the storage system to perform a consistent snapshot operation on each disk; the storage volumes corresponding to the disks are located in the same consistency group.
In other embodiments of this embodiment, referring to fig. 5, the apparatus may further include a snapshot rollback module 404, where the snapshot rollback module 404 may be configured to send a snapshot data recovery request to the cloud platform, so that the cloud platform calls a snapshot rollback interface of the storage system to perform a snapshot rollback operation on the corresponding storage volume.
As another optional implementation manner, the apparatus may further include, for example, a fault detection module 405, where the fault detection module 405 is configured to, if the snapshot file is not detected within a preset time period, package system operation log information from a time when the cloud platform issues the snapshot creation operation instruction of the target virtual machine to a current time, and send the system operation log information to the target path.
In addition, in some other implementation manners of the embodiment of the present invention, the apparatus may further include a fault information feedback module 406, where the fault information feedback module 406 may be configured to send feedback information of the snapshot failure to the cloud platform, so that the cloud platform reissues the snapshot creation request.
The functions of each functional module of the memory snapshot device of the cloud computing platform virtual machine based on the storage system according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently realize the memory snapshot of the virtual machine on the basis of not occupying the IO resources of the virtual machine and the IO resources of the cloud platform.
The memory snapshot device of the cloud computing platform virtual machine based on the storage system is described from the perspective of the functional module. Fig. 5 is a structural diagram of another memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus comprises a memory 60 for storing a computer program;
the processor 61 is configured to implement the steps of the memory snapshot method for the cloud computing platform virtual machine based on the storage system according to any one of the above embodiments when executing the computer program.
The processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 61 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array). In some embodiments, the processor 61 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 61 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 60 may include one or more computer-readable storage media, which may be non-transitory. Memory 60 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the storage 60 is at least used for storing a computer program 601, wherein after being loaded and executed by the processor 61, the computer program can implement the relevant steps of the memory snapshot method of the cloud computing platform virtual machine based on the storage system disclosed in any of the foregoing embodiments. In addition, the resources stored by the memory 60 may also include an operating system 602, data 603, and the like, and the storage may be transient storage or permanent storage. Operating system 602 may include Windows, unix, linux, etc., among others. Data 603 may include, but is not limited to, data corresponding to test results, and the like.
In some embodiments, the memory snapshot apparatus of the cloud computing platform virtual machine based on the storage system may further include a display screen 62, an input/output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.
Those skilled in the art will appreciate that the architecture shown in fig. 6 does not constitute a limitation to the memory snapshot of the storage system based cloud computing platform virtual machine, and may include more or fewer components than those shown, such as sensor 67.
The functions of each functional module of the memory snapshot device of the cloud computing platform virtual machine based on the storage system according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently realize the memory snapshot of the virtual machine on the basis of not occupying the IO resources of the virtual machine and the IO resources of the cloud platform.
It is to be understood that, if the memory snapshot method of the cloud computing platform virtual machine based on the storage system in the foregoing embodiments is implemented in the form of a software functional unit and is sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, an embodiment of the present invention further provides a computer-readable storage medium, in which a memory snapshot program of a cloud computing platform virtual machine based on a storage system is stored, and when the memory snapshot program of the cloud computing platform virtual machine based on the storage system is executed by a processor, the steps of the memory snapshot method of the cloud computing platform virtual machine based on the storage system according to any one of the above embodiments are performed.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can efficiently realize the memory snapshot of the virtual machine on the basis of not occupying the IO resources of the virtual machine and the IO resources of the cloud platform.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above detailed description is given of a memory snapshot method, a memory snapshot device, and a computer-readable storage medium of a cloud computing platform virtual machine based on a storage system provided in the present application. The principles and embodiments of the present invention have been described herein using specific examples, which are presented only to assist in understanding the method and its core concepts of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (8)

1. A memory snapshot method of a cloud computing platform virtual machine based on a storage system is characterized in that a memory synchronization interface matched with each virtual machine operating system is constructed in advance, and the memory synchronization interface is used for synchronizing memory data at a preset moment to a corresponding disk; the method comprises the following steps:
when a target virtual machine snapshot creating operation instruction issued by a cloud platform is received, acquiring a storage resource mounted by the target virtual machine; the storage resources comprise disks and storage volumes of the disks, which correspond to the storage systems;
sending an instruction for interrupting the read-write request of the storage resource, and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to the disk;
based on the corresponding relation between the disk and the storage system, calling a snapshot interface of the storage system to perform snapshot operation on the disk;
the virtual machine mounts a plurality of disks, and storage volumes corresponding to the disks are located in the same consistency group; the step of calling the snapshot interface of the storage system to perform snapshot operation on the disk comprises the following steps:
and calling a consistency snapshot interface of the storage system to carry out consistency snapshot operation on each disk.
2. The memory snapshot method of the cloud computing platform virtual machine based on the storage system according to claim 1, wherein after the snapshot operation is performed on the disk by calling a snapshot interface of the storage system based on the correspondence between the disk and the storage system, the method further comprises:
and sending a snapshot data recovery request to the cloud platform so that the cloud platform calls a snapshot rollback interface of the storage system to perform snapshot rollback operation on the corresponding storage volume.
3. The memory snapshot method of the cloud computing platform virtual machine based on the storage system according to claim 1 or 2, wherein after the snapshot operation is performed on the disk by calling a snapshot interface of the storage system based on the correspondence between the disk and the storage system, the method further includes:
if the snapshot file is not detected within the preset time period, the system operation log information from the moment when the snapshot creation operation instruction of the target virtual machine is issued by the cloud platform to the current moment is packaged and sent to the target path.
4. The memory snapshot method of the cloud computing platform virtual machine based on the storage system according to claim 3, wherein if the snapshot file is not detected within a preset time period, the method further comprises:
and sending feedback information of snapshot failure to the cloud platform so as to enable the cloud platform to re-issue a snapshot creation request.
5. A memory snapshot device of a cloud computing platform virtual machine based on a storage system is characterized by comprising:
the interface pre-creation module is used for pre-constructing a memory synchronization interface matched with each virtual machine operating system, and the memory synchronization interface is used for synchronizing memory data at a preset moment to a corresponding disk;
the storage resource acquisition module is used for acquiring the mounted storage resources of the target virtual machine when receiving a snapshot creation operation instruction of the target virtual machine issued by the cloud platform; the storage resources comprise disks and storage volumes of the disks, which correspond to the storage systems;
the memory synchronization module is used for sending an instruction for interrupting the read-write request of the storage resource and calling a memory synchronization interface matched with the target virtual machine to synchronize memory data to the disk;
the disk snapshot module is used for calling a snapshot interface of the storage system to perform snapshot operation on the disk based on the corresponding relation between the disk and the storage system;
the disk snapshot module is further configured to: calling a consistency snapshot interface of the storage system to carry out consistency snapshot operation on each disk; the storage volumes corresponding to the disks are located in the same consistency group.
6. The memory snapshot apparatus of the cloud computing platform virtual machine based on the storage system according to claim 5, further comprising a snapshot rollback module, where the snapshot rollback module is configured to send a snapshot data recovery request to the cloud platform, so that the cloud platform calls a snapshot rollback interface of the storage system to perform a snapshot rollback operation on a corresponding storage volume.
7. A memory snapshot apparatus of a cloud computing platform virtual machine based on a storage system, comprising a processor, wherein the processor is configured to implement the steps of the memory snapshot method of the cloud computing platform virtual machine based on the storage system according to any one of claims 1 to 4 when executing a computer program stored in a storage.
8. A computer-readable storage medium, wherein a memory snapshot program of a cloud computing platform virtual machine based on a storage system is stored on the computer-readable storage medium, and when executed by a processor, the memory snapshot program of the cloud computing platform virtual machine based on the storage system implements the steps of the memory snapshot method of the cloud computing platform virtual machine based on the storage system according to any one of claims 1 to 4.
CN201911370305.0A 2019-12-26 2019-12-26 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium Active CN111078368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370305.0A CN111078368B (en) 2019-12-26 2019-12-26 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370305.0A CN111078368B (en) 2019-12-26 2019-12-26 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium

Publications (2)

Publication Number Publication Date
CN111078368A CN111078368A (en) 2020-04-28
CN111078368B true CN111078368B (en) 2023-03-21

Family

ID=70318556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370305.0A Active CN111078368B (en) 2019-12-26 2019-12-26 Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium

Country Status (1)

Country Link
CN (1) CN111078368B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732195B (en) * 2021-01-13 2022-09-20 苏州浪潮智能科技有限公司 Method, system, equipment and medium for online takeover of heterogeneous storage volume
US11972284B2 (en) 2021-04-13 2024-04-30 Nutanix, Inc. Virtual machine memory snapshots in persistent memory
CN113127209A (en) * 2021-05-12 2021-07-16 曙光信息产业(北京)有限公司 Cloud computing execution scheduling method and device, electronic equipment and storage medium
CN113760454A (en) * 2021-08-13 2021-12-07 济南浪潮数据技术有限公司 Method, system, equipment and storage medium for migrating virtual machine across cloud platforms
CN113609075A (en) * 2021-08-18 2021-11-05 济南浪潮数据技术有限公司 Method, system, storage medium and equipment for creating snapshot
CN113849341B (en) * 2021-08-31 2023-09-08 苏州浪潮智能科技有限公司 Performance optimization method, system and equipment for NAS snapshot and readable storage medium
CN113835835B (en) * 2021-09-18 2024-02-13 广东浪潮智慧计算技术有限公司 Method, device and computer readable storage medium for creating consistency group
CN114138182B (en) * 2021-10-27 2023-12-22 济南浪潮数据技术有限公司 Cross-storage online cloning method, system and device for distributed cloud hard disk
CN114237498B (en) * 2021-12-02 2023-08-11 上海道客网络科技有限公司 Snapshot generation method and system for cloud primary storage data volume
CN114780302B (en) * 2022-06-23 2022-09-16 山东爱特云翔信息技术有限公司 Snapshot rollback method, system, device and storage medium based on OPENSTACK cloud host
CN115098301B (en) * 2022-07-13 2023-06-27 上海道客网络科技有限公司 Snapshot generation method and system for stateful application in cloud primary scene

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520881A (en) * 2011-12-02 2012-06-27 中标软件有限公司 Virtual machine snapshot management method and system of cloud computing platform
CN104468521A (en) * 2014-11-13 2015-03-25 华为技术有限公司 Online migration method, device and system
WO2015154425A1 (en) * 2014-08-15 2015-10-15 中兴通讯股份有限公司 Disk data protection method and apparatus
CN109558213A (en) * 2018-11-30 2019-04-02 郑州云海信息技术有限公司 The method and apparatus for managing the virtual machine snapshot of OpenStack platform

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI676898B (en) * 2013-12-09 2019-11-11 安然國際科技有限公司 Decentralized memory disk cluster storage system operation method
CN104598293B (en) * 2015-01-06 2018-04-06 新华三技术有限公司 A kind of method and apparatus of online snapshot
CN106648830A (en) * 2016-11-18 2017-05-10 国云科技股份有限公司 Method for performing online snapshot on virtual machine disk
CN107402848A (en) * 2017-07-31 2017-11-28 郑州云海信息技术有限公司 A kind of implementation method of snapshot data uniformity

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520881A (en) * 2011-12-02 2012-06-27 中标软件有限公司 Virtual machine snapshot management method and system of cloud computing platform
WO2015154425A1 (en) * 2014-08-15 2015-10-15 中兴通讯股份有限公司 Disk data protection method and apparatus
CN104468521A (en) * 2014-11-13 2015-03-25 华为技术有限公司 Online migration method, device and system
CN109558213A (en) * 2018-11-30 2019-04-02 郑州云海信息技术有限公司 The method and apparatus for managing the virtual machine snapshot of OpenStack platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨皓森 ; 胡晓勤 ; 黄传波 ; .面向OpenStack/Ceph的虚拟机备份系统研究.2018,(11),全文. *

Also Published As

Publication number Publication date
CN111078368A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111078368B (en) Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
CN111625401B (en) Data backup method and device based on cluster file system and readable storage medium
US10073747B2 (en) Reducing recovery time in disaster recovery/replication setup with multitier backend storage
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN104965757A (en) Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN105242990A (en) Cloud platform based data backup method and apparatus
CN108763405A (en) A kind of business datum moving method, device, system and readable storage medium storing program for executing
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN110286997B (en) Multi-container application creation method, device, computer equipment and storage medium
US20190187977A1 (en) Dual boot operating system installation using multiple redundant drives
CN111813495A (en) Node testing method and device, storage medium and electronic device
CN112269694A (en) Management node determination method and device, electronic equipment and readable storage medium
CN104517067A (en) Method, device and system for data access
CN113687779A (en) Data migration method and device, electronic equipment and readable storage medium
CN108459960A (en) Method of automatic configuration, device, equipment and the storage medium of test environment
CN114780208B (en) Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine
CN112463188B (en) Network card firmware automatic upgrading method and device and computer readable storage medium
CN107222355B (en) Server upgrading method and device
CN114461341A (en) Method, device and medium for preventing brain crack of cloud platform virtual machine
US9934113B2 (en) Enhanced console assisted recovery for a coordinated timing network
CN111898161B (en) Method, system, device and medium for managing authority of HUE
CN112463438B (en) Configuration information generation method and device of storage product and readable storage medium
CN112596750A (en) Application testing method and device, electronic equipment and computer readable storage medium
CN118012665A (en) Consistent snapshot group method, device, electronic equipment and storage medium
CN112256382A (en) Resource data recovery method, storage medium and electronic device

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
GR01 Patent grant
GR01 Patent grant