CN114780208A - Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine - Google Patents
Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine Download PDFInfo
- Publication number
- CN114780208A CN114780208A CN202210479973.2A CN202210479973A CN114780208A CN 114780208 A CN114780208 A CN 114780208A CN 202210479973 A CN202210479973 A CN 202210479973A CN 114780208 A CN114780208 A CN 114780208A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- snapshot file
- backup
- type information
- target
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method for verifying the backup validity of a multi-platform virtual machine, which comprises the following steps: the virtual machine to be checked forms the backed-up data into an initial snapshot file, and sends the initial snapshot file to the data source processing platform; after receiving the initial snapshot file, the data source processing platform judges whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the detected virtual machine; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is suitable for the detection virtual machine; and the detection virtual machine receives and loads the target snapshot file, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file. The scheme is suitable for various virtual machine platforms, and the verification efficiency of the backup effectiveness of different virtual machines is effectively improved.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a system, an apparatus, and a storage medium for verifying the validity of a backup of a multi-platform virtual machine.
Background
Regarding the virtual backup, the existing backup manufacturer generally backs up data through a backup interface provided by the original manufacturer, or implants a backup agent in the production environment to directly obtain backup data and write the backup data into the backup storage. The main virtualization software used as the backup interface is VMware, Hyper-V or fusion computer, which provides a method for obtaining effective backup data such as CBT \ RCT, and the like, and the full backup can also reduce the data amount of the backup through the method.
In the prior art, the validity of the backup data cannot be ensured because the validity verification is not carried out aiming at the backup data; or the data in the backup storage is written into the production environment for verification, and if the verification fails, the data cannot be put into the production environment; moreover, a set of virtual machine platform verification environments consistent with the generation environment is configured for each type of virtual machine platform, and when a plurality of types of virtual machine platforms are involved, a plurality of sets of virtual machine platform verification environments need to be set, and the involved hardware and cost are high.
Disclosure of Invention
In view of the above, to solve the above problems, the present invention provides a method, a system, an apparatus, and a storage medium for verifying the validity of a backup of a multi-platform virtual machine.
In a first aspect, an embodiment of the present invention provides a method for verifying the backup validity of a multi-platform virtual machine, which is applied to a checking system including a virtual machine to be checked and a detection virtual machine, and is used for detecting the backup validity of the virtual machine to be checked, where the method includes:
the virtual machine to be checked forms the backed-up data into an initial snapshot file and sends the initial snapshot file to the data source processing platform; the initial snapshot file carries the type information of the virtual machine to be tested;
after receiving the initial snapshot file, the data source processing platform judges whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the virtual machine to be detected, which is acquired in advance; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is matched with the detection virtual machine; the target snapshot file carries script information;
and the detection virtual machine receives and loads the target snapshot file, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file.
In an optional embodiment, the type information of the virtual machine to be detected is VMware type information or Hyper-V type information, and the type information of the detection virtual machine is KVM type information; the format of the target snapshot file is raw format.
In an optional embodiment, the method for verifying the validity of the backup of the multi-platform virtual machine further includes:
the virtual machine to be checked carries out integrity check on the backed-up data;
the virtual machine to be checked forms the backed-up data into an initial snapshot file and sends the initial snapshot file to the data source processing platform, and the method comprises the following steps:
and the virtual machine to be verified forms an initial snapshot file from the backup data passing the integrity verification, and sends the initial snapshot file to the data source processing platform.
In an optional embodiment, the determining the validity of the virtual machine backup to be checked by verifying the target snapshot file includes:
executing script information carried in the target snapshot file;
and if the execution result of the script information carried in the target snapshot file meets the preset requirement, determining that the virtual machine backup to be detected is effective, otherwise, determining that the virtual machine backup to be detected is ineffective. .
In a second aspect, an embodiment of the present invention further provides a system for verifying the backup validity of a multi-platform virtual machine, which is applied to a detection system including a virtual machine to be verified and a detection virtual machine, and is used to detect the backup validity of the virtual machine to be verified, where the apparatus includes:
the virtual machine to be checked is used for forming the backed-up data into an initial snapshot file and sending the initial snapshot file to the data source processing platform; the initial snapshot file carries the type information of the virtual machine to be tested;
the data source processing platform is used for judging whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the detected virtual machine after the initial snapshot file is received; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is matched with the detection virtual machine;
and the checking device is used for receiving and loading the target snapshot file by the detection virtual machine and determining the effectiveness of the backup of the virtual machine to be checked by checking the target snapshot file.
In an optional embodiment, the type information of the virtual machine to be detected is VMware type information or Hyper-V type information, and the type information of the detection virtual machine is KVM type information; the format of the target snapshot file is raw format.
In an optional embodiment, further comprising:
the integrity checking module is used for carrying out integrity checking on the data to be checked for backup of the virtual machine;
the virtual machine to be checked is further used for:
and forming an initial snapshot file by the backup data verified by the integrity verification module, and sending the initial snapshot file to the data source processing platform.
In an optional embodiment, the inspection apparatus further comprises:
the execution module is used for executing the script information carried in the target snapshot file;
and the detection module is used for determining that the virtual machine backup to be detected is effective if the execution result of the script information carried in the target snapshot file meets the preset requirement, and otherwise, determining that the virtual machine backup to be detected is ineffective.
In a third aspect, an apparatus for verifying validity of a backup of a multi-platform virtual machine according to an embodiment of the present invention includes: the storage and the processor are connected with each other in a communication mode, the storage stores computer instructions, and the processor executes the computer instructions, so that the method for verifying the backup validity of the multi-platform virtual machine in any one of the first aspect is implemented.
In a fourth aspect, a non-transitory computer-readable storage medium is provided according to an embodiment of the present invention, which stores computer instructions that, when executed by a processor, implement the method for verifying the validity of a backup of a multi-platform virtual machine according to any one of the first aspect.
The method, the system, the device and the storage medium for verifying the backup validity of the multi-platform virtual machine provided by the embodiment of the invention at least have the following beneficial effects:
according to the method, the system, the device and the storage medium for verifying the backup effectiveness of the multi-platform virtual machine, after the virtual machine to be verified forms backup data into an initial snapshot file, the initial snapshot file is sent to the data source processing platform, the initial snapshot file carries type information of the virtual machine to be verified, and whether the type information of the virtual machine to be verified carried by the initial snapshot file is target type information is judged according to the type information of the virtual machine to be verified, which is obtained in advance; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, the target snapshot file is sent to the detection virtual machine, the target snapshot file is loaded to the detection virtual machine, the target snapshot file carries script information, and the effectiveness of the virtual machine backup to be detected is determined by verifying the target snapshot file. According to the scheme, the initial snapshot file can be converted into the target snapshot file, and the virtual machine can be detected to be suitable for various types of virtual machine platforms, so that the method, the system, the device and the storage medium for verifying the backup effectiveness of the multi-platform virtual machine provided by the embodiment of the application can be suitable for various types of virtual machine platforms.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for verifying the validity of a backup of a multi-platform virtual machine according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a manner of incrementally synthesizing backup data according to an embodiment of the present invention;
fig. 3 is a block diagram of a system for verifying the validity of a backup of a multi-platform virtual machine according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for verifying the backup validity of a multi-platform virtual machine according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present 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.
Furthermore, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Although the processes described below include multiple operations that occur in a particular order, it should be clearly understood that the processes may include more or fewer operations that are performed sequentially or in parallel.
Example 1
Regarding the virtual backup, the existing backup manufacturer generally backs up data through a backup interface provided by the original manufacturer, or implants a backup agent in the production environment to directly obtain backup data and write the backup data into the backup storage. However, the mainstream virtualization software used as the backup interface is VMware, Hyper-V or fusion computer, which all provide methods for acquiring backup effective data such as CBT \ RCT, and the like, and full backup can also reduce the amount of backup data by this method, or corresponding backup agents are implanted in the production environment to directly write the acquired backup data into the backup storage.
However, the validity of the backed-up data is not verified, so that the integrity and the validity of the backed-up data cannot be ensured when a disaster occurs; or the data in the backup storage is written into the production environment for verification, and if the verification fails, the data cannot be put into the production environment; moreover, a set of virtual machine platform verification environments consistent with the generation environment is configured for each type of virtual machine platform, and when a plurality of types of virtual machine platforms are involved, a plurality of sets of virtual machine platform verification environments are required to be arranged in a ratio of 1:1, and the involved hardware and cost are high.
In view of this, a method for verifying the backup validity of a multi-platform virtual machine, which is applicable to various platform environments, is needed.
Fig. 1 is a flowchart of a method for verifying the validity of a backup of a multi-platform virtual machine according to an embodiment of the present invention. The embodiment of the invention provides a method for verifying the backup validity of a multi-platform virtual machine, which is applied to a verification system comprising a virtual machine to be verified and a detection virtual machine and is used for detecting the backup validity of the virtual machine to be verified. Referring to fig. 1, the method comprises the following steps:
step S101, a virtual machine to be checked forms backed-up data into an initial snapshot file and sends the initial snapshot file to a data source processing platform; the initial snapshot file carries the type information of the virtual machine to be tested;
step S102, after receiving the initial snapshot file, the data source processing platform judges whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the virtual machine to be detected, which is acquired in advance; if the target type information does not exist, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is adapted to the detection virtual machine; the target snapshot file carries script information;
step S103, the detection virtual machine receives and loads the target snapshot file, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file.
In the above embodiment, specifically, the virtual machine to be checked forms the backed-up data into an initial snapshot file, sends the initial snapshot file to the data source processing platform, and synthesizes the backed-up data in an incremental manner to obtain the initial snapshot file corresponding to the backed-up data of the virtual machine to be checked. The manner of incrementally synthesizing backup data is shown in fig. 2, where each time the corresponding data is incrementally backed up, it backs up all the data that contained the last full backup. Based on the mode of incremental synthesis of backup data, after all the current data are subjected to incremental backup, one-time consistent snapshot is taken and reserved as a current backup point, and a corresponding initial snapshot file is obtained. The incremental backup has no specific requirements on the traditional format and type, and supports data backup of a virtualization platform and a cloud platform and distributed file system backup. Furthermore, the incremental synthetic backup data can be combined with a repeated data deleting technology, so that the occupied space of backup storage is reduced, and the storage cost is saved.
In the above embodiment, specifically, after receiving the initial snapshot file, the data source processing platform determines, according to the type information of the detection virtual machine obtained in advance, whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information; and if the target type information does not exist, converting the initial snapshot file to obtain a target snapshot file, and sending the target snapshot file to the detection virtual machine, wherein the target snapshot file is adapted to the detection virtual machine. If the type information of the virtual machine to be detected carried by the initial snapshot file is target type information, that is, the virtual machine to be detected and the detection virtual machine for detecting the backup validity of the virtual machine to be detected belong to the same type, at this time, the initial snapshot file is determined to be the corresponding target snapshot file, and format conversion processing of the initial snapshot file is not required. On the contrary, if the type information of the virtual machine to be checked carried by the initial snapshot file is not the target type information, that is, the virtual machine to be checked and the detection virtual machine for detecting the backup validity of the virtual machine to be checked belong to the same type, at this time, the initial snapshot file needs to be converted to obtain the target snapshot file, wherein the target snapshot file is adapted to the detection virtual machine. For example, the initial snapshot file is transformed by using a corresponding transformation tool, such as a transform tool, to obtain the target snapshot file. The transform tool function includes, but is not limited to, format conversion and driver conversion, so as to perform format conversion processing or driver conversion on the initial snapshot file, thereby obtaining a corresponding target snapshot file. Specifically, when the initial snapshot file corresponds to backup data existing on multiple disks in the virtual machine to be checked, the initial snapshot file includes a sub-snapshot file corresponding to each disk, and when the initial snapshot file is converted, it is necessary to determine whether the disk to which each sub-snapshot file belongs is a system disk or a data disk, and if the disk to which the sub-snapshot file belongs is a data disk, format conversion may be directly performed on the sub-snapshot file, and if the disk to which the sub-snapshot file belongs is a system disk, drive replacement of the sub-snapshot file is also necessary.
Further, before the conversion processing is performed on the initial snapshot file, a copy of data is cloned from the initial snapshot file to check the integrity of a backup chain corresponding to the initial snapshot file, for example, the disk configuration condition is checked by contrasting the metadata of the virtual machine, so that the integrity of the backup chain is determined, and the accuracy of the backup validity of the virtual machine to be checked in the subsequent verification is further improved.
In the above embodiment, specifically, the target snapshot file is sent to the detection virtual machine, where the target snapshot file is adapted to the detection virtual machine; the target snapshot file carries script information, the detection virtual machine receives and loads the target snapshot file, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file. After the virtual machine obtains the corresponding target snapshot file, the corresponding target snapshot file is loaded in an isolation network of a verification environment, and then the effectiveness of the backup of the virtual machine to be verified is determined by verifying the target snapshot file. For example, if the type of the virtual machine is the KVM virtual machine, after the corresponding target snapshot file is obtained, the corresponding format of the target snapshot file is the raw format, and then the KVM virtual machine loads the target snapshot file in the raw format in the isolated network of the corresponding verification environment and verifies the target snapshot file in the raw format. The verification is based on the premise of isolating the network, in other words, avoiding connection with the production network or an external network, so as to prevent secret leakage or influence on a normal production network. And verifying the validity of the virtual machine to be verified based on a verification instruction and a script corresponding to a preset verification rule. On the other hand, the validity of the virtual machine to be checked can be verified by setting the corresponding verification calculation specification, for example, the configuration information backup data of the virtual machine to be checked, which is correspondingly carried, such as the verification of the CPU and the memory configuration information backup data, can be verified. And for example, judging whether an additional data disc exists, and if so, adding the corresponding additional data disc to perform backup data verification. Other verification means are not described in detail herein.
After the virtual machine to be detected forms an initial snapshot file with the backed-up data, the initial snapshot file is sent to a data source processing platform, the initial snapshot file carries the type information of the virtual machine to be detected, and whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not is judged according to the type information of the detection virtual machine which is obtained in advance; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, the target snapshot file is sent to the detection virtual machine, the target snapshot file is loaded to the detection virtual machine, the target snapshot file carries script information, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file. According to the scheme, the initial snapshot file can be converted into the target snapshot file, and the virtual machine can be detected to be suitable for various types of virtual machine platforms, so that the method for verifying the backup effectiveness of the multi-platform virtual machine provided by the embodiment of the application can be suitable for various types of virtual machine platforms.
In an optional embodiment, the type information of the to-be-detected virtual machine is VMware type information or Hyper-V type information, and the type information of the to-be-detected virtual machine is KVM type information; the format of the target snapshot file is raw format.
In the above embodiment, specifically, the type information of the virtual device to be detected is VMware type information or Hyper-v type information, where the Hyper-v virtual machine is a microsoft virtual machine product, is deployed in Windows 8 and an upper server version, and has similar functions to the virtual machines such as VMware and VirtualBox. Kernel-based Virtual Machine (KVM) is an open source virtualization technology built into Linux. In particular, a KVM virtual machine may transform Linux into a virtual machine monitor, enabling a host computer to run multiple isolated virtual environments, i.e., virtual clients or Virtual Machines (VMs). The KVM virtual machine turns Linux to a class 1 (bare metal recovery) virtual machine monitor. And if the virtual machine to be detected is a VMware virtual machine or a Hyper-v virtual machine, detecting the virtual machine to be a KVM virtual machine. And the VMware virtual machine or the Hyper-v virtual machine sends an initial snapshot file formed by corresponding backup data to the data source processing platform, and judges whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the detected virtual machine. In other words, it is determined whether the VMware virtual machine or the Hyper-v virtual machine is of the same type as the KVM virtual machine, and it is obvious that the Hyper-v virtual machine or the VMware virtual machine is not of the same type as the KVM virtual machine. That is, the initial snapshot file corresponding to the Hyper-v virtual machine or the VMware virtual machine is not adapted to the KVM virtual machine. At this time, the initial snapshot file corresponding to the Hyper-v virtual machine or the VMware virtual machine needs to be converted to obtain a target snapshot file to be adapted to the KVM detection virtual machine. If the initial snapshot file is an img format file or a vdi format file, and the correspondingly adapted snapshot file of the KVM virtual machine is a raw format file, the initial snapshot file in the img format or the vdi format file is converted to obtain the raw format file. On the contrary, if the to-be-detected virtual machine and the detection virtual machine are both KVM-type virtual machines, the type information of the to-be-detected virtual machine carried by the initial snapshot file corresponding to the to-be-detected virtual machine is target type information, and at this time, the format corresponding to the initial snapshot file is also in raw format and is adapted to the detection virtual machine. The initial snapshot file is determined to be a corresponding target snapshot file without conversion processing of the initial snapshot file, the target snapshot file is further sent to the detection virtual machine, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file. For example, if the virtual machine to be checked is arranged in the airy cloud, and the initial snapshot file corresponding to the virtual machine to be checked is an image file in raw format, the image file is directly determined as a target snapshot file, the virtual machine receiving image file is detected, and the validity of the backup of the virtual machine to be checked in the airy cloud is determined by verifying the image file.
It should be noted that the type of the virtual machine to be checked, the type of the detection virtual machine, and the format of the snapshot file are only examples for facilitating a clearer understanding of the embodiment of the present application, and the embodiment of the present application also covers snapshot files of other types of virtual machines and other formats, and the implementation principle is based on determining whether the type information of the virtual machine to be checked carried by the initial snapshot file is the target type information according to the type information of the detection virtual machine; and if the target type information is not the target type information, converting the initial snapshot file to obtain a target snapshot file, and sending the target snapshot file to the detection virtual machine, wherein the target snapshot file is adapted to the detection virtual machine. The initial snapshot file corresponding to the virtual machine to be detected is converted into the target format file so as to adapt to the detection virtual machine, and therefore the effectiveness of the backup of the virtual machine to be detected can be conveniently determined through the verification of the target snapshot file. The format of the initial snapshot file is the same as that of the target snapshot file, and conversion processing is not needed. The initial snapshot file is converted into the target snapshot file, and the virtual machine is further detected to be applicable to various types of virtual machine platforms, so that the method for verifying the backup effectiveness of the multi-platform virtual machine provided by the embodiment of the application can be applicable to various types of virtual machine platforms.
In an optional embodiment, the method for verifying the validity of the backup of the multi-platform virtual machine further includes:
the virtual machine to be checked carries out integrity check on the backed-up data;
the virtual machine to be checked forms the backed-up data into an initial snapshot file and sends the initial snapshot file to the data source processing platform, and the method comprises the following steps:
and the virtual machine to be verified forms an initial snapshot file with the backup data passing the integrity verification, and sends the initial snapshot file to the data source processing platform.
In the above embodiment, specifically, the virtual machine to be verified performs integrity check on the backed-up data. And cloning a copy of data from the backup point corresponding to the virtual machine to be checked, and checking the integrity of the backup chain. Such as checking the disk configuration against the virtual machine elements. And after the integrity of the backup chain is checked, the initial snapshot file is sent to the data verification processing platform. Further, before the conversion processing is performed on the initial snapshot file, integrity check is performed on the backup chain corresponding to the initial snapshot file, format conversion is performed, taking a Hyper-V type virtual machine to be checked as an example, the snapshot disks of the Hyper-V virtual machine are merged forward until reaching a base volume, and the vhd format initial snapshot file corresponding to the Hyper-V virtual machine is converted into a raw format file. The drive loading of the raw file is convenient for the follow-up. The integrity of the data backed up by the virtual machine to be checked is checked, and the integrity of the initial snapshot file before the conversion is checked, so that the validity of the target snapshot file obtained by converting the initial snapshot file into the target snapshot file is ensured, and the accuracy of checking the validity of the backup of the virtual machine to be checked is further ensured. The detection virtual machine can be further ensured to be suitable for various types of virtual machine platforms, so that the method for verifying the backup effectiveness of the multi-platform virtual machine provided by the embodiment of the application can be suitable for various types of virtual machine platforms.
In an optional embodiment, the determining the validity of the virtual machine backup to be checked by verifying the target snapshot file includes:
executing script information carried in the target snapshot file;
and if the execution result of the script information carried in the target snapshot file meets the preset requirement, determining that the virtual machine backup to be detected is effective, otherwise, determining that the virtual machine backup to be detected is ineffective. In the above embodiment, specifically, the validity of the backup of the virtual machine to be verified is determined by executing the script information carried in the target snapshot file and determining whether an execution result corresponding to the script information carried in the target snapshot file meets a preset requirement. Further, determining the validity verification mode of the virtual machine backup to be verified further includes: 1) the virtual machine is normally started on the verification platform, and the mounted data disk is normal; 2) ping verifies the virtual machine network; 3) the VNC remote virtual machine client system checks the integrity of files and programs.
In an optional embodiment, the method further comprises: and after the backup validity of the virtual machine to be checked is determined, destroying the backup point corresponding to the virtual machine to be checked, and marking the backup point as verified.
Example 2
Fig. 3 is a block diagram of a system for verifying the validity of a backup of a multi-platform virtual machine according to an embodiment of the present invention, and this embodiment explains that the apparatus is applied to the method for verifying the validity of a backup of a multi-platform virtual machine shown in fig. 1. The embodiment of the invention also provides a device for verifying the backup validity of the multi-platform virtual machine, which is applied to a detection system comprising the virtual machine to be verified and a detection virtual machine and is used for detecting the backup validity of the virtual machine to be verified, wherein the device at least comprises the following modules:
the virtual machine to be checked 31 is used for forming the backed-up data into an initial snapshot file and sending the initial snapshot file to the data source processing platform; the initial snapshot file carries type information of the virtual machine to be tested;
the data source processing unit 32 is configured to, after receiving the initial snapshot file, determine whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information according to the type information of the virtual machine to be detected; if the target type information does not exist, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is adapted to the detection virtual machine;
and the checking device 33 is configured to receive and load the target snapshot file by the detection virtual machine, and determine the validity of the backup of the virtual machine to be checked by verifying the target snapshot file.
In an optional embodiment, the type information of the virtual machine to be detected is VMware type information or Hyper-V type information, and the type information of the detection virtual machine is KVM type information; the format of the target snapshot file is raw format.
In an optional embodiment, the method further comprises:
the integrity checking module is used for checking the integrity of the data to be checked for the backup of the virtual machine;
the virtual machine to be checked is further used for:
and forming an initial snapshot file from the backup data verified by the integrity verification module, and sending the initial snapshot file to the data source processing platform.
In an optional embodiment, the inspection apparatus further comprises:
the execution module is used for executing the script information carried in the target snapshot file;
and the detection module is used for determining that the virtual machine backup to be detected is effective if the execution result of the script information carried in the target snapshot file meets the preset requirement, and otherwise, determining that the virtual machine backup to be detected is ineffective.
The system for verifying the backup validity of a multi-platform virtual machine provided in the embodiment of the present application may be used in the method for verifying the backup validity of a multi-platform virtual machine executed in embodiment 1, and for relevant details, reference is made to the above method embodiment, and the implementation principle and technical effect thereof are similar, and details are not described here.
It should be noted that: in the system for verifying the backup validity of the multi-platform virtual machine provided in the foregoing embodiment, when the backup validity of the multi-platform virtual machine is verified, only the division of the functional modules is used for illustration, and in practical applications, the function allocation may be completed by different functional modules as needed, that is, the internal structure of the system for verifying the backup validity of the multi-platform virtual machine is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the system for verifying the backup validity of the multi-platform virtual machine provided in the above embodiment and the embodiment of the method for verifying the backup of the multi-platform virtual machine belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Example 3
Referring to fig. 4, an embodiment of the present invention further provides a device for verifying the backup validity of a multi-platform virtual machine, where the device may be a desktop computer, a notebook computer, a palm computer, a cloud server, or other computer device. The computer device may include, but is not limited to, a processor and a memory, where the processor and the memory may be connected by a bus or other means.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), a Graphics Processing Unit (GPU), an embedded Neural Network Processor (NPU), or other dedicated deep learning coprocessor, an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like, or a combination thereof.
The memory, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods of the above-described method embodiments. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The one or more modules are stored in the memory and, when executed by the processor, perform the methods of the above-described method embodiments.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer-executable instructions, which are capable of executing the method in the above method embodiments. The non-transitory computer readable storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid-State Drive (SSD), or the like; the non-transitory computer readable storage medium may also include a combination of memories of the above sort.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, computer device, or non-transitory computer-readable storage medium, all relating to or including a computer program product.
Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The features of the above-described embodiments may be arbitrarily combined, and for the sake of brevity, all possible combinations of the features in the above-described embodiments are not described, but should be construed as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
Obviously, the above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that various changes and modifications to the above description could be made by those skilled in the art without departing from the spirit of the present application. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for verifying the backup validity of a multi-platform virtual machine is applied to a verification system comprising a virtual machine to be verified and a detection virtual machine and is used for detecting the backup validity of the virtual machine to be verified, and is characterized by comprising the following steps:
the virtual machine to be checked forms the backed-up data into an initial snapshot file and sends the initial snapshot file to the data source processing platform; the initial snapshot file carries type information of the virtual machine to be tested;
after the data source processing platform receives the initial snapshot file, judging whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the virtual machine to be detected, which is acquired in advance; if the target type information is not the target type information, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is matched with the detection virtual machine; the target snapshot file carries script information;
and the detection virtual machine receives and loads the target snapshot file, and the effectiveness of the backup of the virtual machine to be detected is determined by verifying the target snapshot file.
2. The method for verifying the validity of a backup of a multi-platform virtual machine according to claim 1,
the type information of the virtual machine to be detected is VMware type information or Hyper-V type information, and the type information of the virtual machine to be detected is KVM type information; the format of the target snapshot file is raw format.
3. The method for verifying the validity of a backup of a multi-platform virtual machine according to claim 1, further comprising:
the virtual machine to be checked carries out integrity check on the backed-up data;
the virtual machine to be checked forms the backed-up data into an initial snapshot file and sends the initial snapshot file to the data source processing platform, and the method comprises the following steps:
and the virtual machine to be verified forms an initial snapshot file with the backup data passing the integrity verification, and sends the initial snapshot file to the data source processing platform.
4. The method for verifying the validity of the backup of the multi-platform virtual machine according to claim 1, wherein the determining the validity of the backup of the virtual machine to be verified by verifying the target snapshot file comprises:
executing script information carried in the target snapshot file;
and if the execution result of the script information carried in the target snapshot file meets the preset requirement, determining that the virtual machine backup to be detected is effective, otherwise, determining that the virtual machine backup to be detected is ineffective.
5. The utility model provides a system for verifying multi-platform virtual machine backup validity, is applied to including waiting to inspect the virtual machine and detecting the detecting system of virtual machine for detect and wait to inspect virtual machine backup validity, its characterized in that, the device includes:
the virtual machine to be checked is used for forming the backed-up data into an initial snapshot file and sending the initial snapshot file to the data source processing platform; the initial snapshot file carries type information of the virtual machine to be tested;
the data source processing platform is used for judging whether the type information of the virtual machine to be detected carried by the initial snapshot file is target type information or not according to the type information of the detected virtual machine after the initial snapshot file is received; if the target type information does not exist, the initial snapshot file is converted to obtain a target snapshot file, and the target snapshot file is sent to the detection virtual machine, wherein the target snapshot file is adapted to the detection virtual machine;
and the checking device is used for receiving and loading the target snapshot file by the detection virtual machine and determining the effectiveness of the backup of the virtual machine to be checked by checking the target snapshot file.
6. The apparatus for verifying the validity of a backup of a multi-platform virtual machine according to claim 5,
the type information of the virtual machine to be detected is VMware type information or Hyper-V type information, and the type information of the virtual machine to be detected is KVM type information; the format of the target snapshot file is raw format.
7. The apparatus for verifying validity of a backup of a multi-platform virtual machine according to claim 5, further comprising:
the integrity checking module is used for carrying out integrity checking on the data to be checked for backup of the virtual machine;
the virtual machine to be checked is further used for:
and forming an initial snapshot file from the backup data verified by the integrity verification module, and sending the initial snapshot file to the data source processing platform.
8. The apparatus for verifying the validity of a backup of a multi-platform virtual machine according to any one of claims 5 to 7, wherein the verifying means further comprises:
the execution module is used for executing the script information carried in the target snapshot file;
and the detection module is used for determining that the virtual machine backup to be detected is effective if the execution result of the script information carried in the target snapshot file meets the preset requirement, and otherwise, determining that the virtual machine backup to be detected is ineffective.
9. An apparatus for verifying the validity of a backup of a multi-platform virtual machine, comprising: a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method for verifying the validity of a backup of a multi-platform virtual machine as recited in any one of claims 1 to 4 by executing the computer instructions.
10. A non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, implement the method of verifying multi-platform virtual machine backup validity of any of claims 1-4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210479973.2A CN114780208B (en) | 2022-05-05 | 2022-05-05 | Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210479973.2A CN114780208B (en) | 2022-05-05 | 2022-05-05 | Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114780208A true CN114780208A (en) | 2022-07-22 |
| CN114780208B CN114780208B (en) | 2023-08-08 |
Family
ID=82434548
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210479973.2A Active CN114780208B (en) | 2022-05-05 | 2022-05-05 | Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114780208B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115858246A (en) * | 2022-12-27 | 2023-03-28 | 安超云软件有限公司 | Disaster tolerance drilling method, device, equipment and storage medium |
| CN119322655A (en) * | 2024-12-19 | 2025-01-17 | 成都云祺科技有限公司 | Industry compliance verification method, system, equipment and storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120303954A1 (en) * | 2010-05-21 | 2012-11-29 | Zte Corporation | Managing method, device and terminal for application program |
| US10061660B1 (en) * | 2015-10-27 | 2018-08-28 | EMC IP Holding Company LLC | Cross-platform instant granular recovery for virtual machine backups |
| US10572346B1 (en) * | 2016-09-30 | 2020-02-25 | EMC IP Holding Company LLC | Data integrity check for VM disaster recovery using backup application |
| CN112181589A (en) * | 2020-09-25 | 2021-01-05 | 苏州浪潮智能科技有限公司 | An optimization method for KVM virtual machine to realize snapshot migration with snapshot based on reflink |
| CN112596950A (en) * | 2020-12-23 | 2021-04-02 | 深圳市科力锐科技有限公司 | Virtual machine data backup method, device, equipment and storage medium |
| US10983877B1 (en) * | 2019-10-29 | 2021-04-20 | Efolder Inc. | Backup monitoring with automatic verification |
| US20210286639A1 (en) * | 2020-03-12 | 2021-09-16 | Commvault Systems, Inc. | Cross-hypervisor live recovery of virtual machines |
| CN113918385A (en) * | 2021-10-14 | 2022-01-11 | 江苏安超云软件有限公司 | Method and application for online incremental backup and recovery of local storage virtual machine |
-
2022
- 2022-05-05 CN CN202210479973.2A patent/CN114780208B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120303954A1 (en) * | 2010-05-21 | 2012-11-29 | Zte Corporation | Managing method, device and terminal for application program |
| US10061660B1 (en) * | 2015-10-27 | 2018-08-28 | EMC IP Holding Company LLC | Cross-platform instant granular recovery for virtual machine backups |
| US10572346B1 (en) * | 2016-09-30 | 2020-02-25 | EMC IP Holding Company LLC | Data integrity check for VM disaster recovery using backup application |
| US10983877B1 (en) * | 2019-10-29 | 2021-04-20 | Efolder Inc. | Backup monitoring with automatic verification |
| US20210286639A1 (en) * | 2020-03-12 | 2021-09-16 | Commvault Systems, Inc. | Cross-hypervisor live recovery of virtual machines |
| CN112181589A (en) * | 2020-09-25 | 2021-01-05 | 苏州浪潮智能科技有限公司 | An optimization method for KVM virtual machine to realize snapshot migration with snapshot based on reflink |
| CN112596950A (en) * | 2020-12-23 | 2021-04-02 | 深圳市科力锐科技有限公司 | Virtual machine data backup method, device, equipment and storage medium |
| CN113918385A (en) * | 2021-10-14 | 2022-01-11 | 江苏安超云软件有限公司 | Method and application for online incremental backup and recovery of local storage virtual machine |
Non-Patent Citations (3)
| Title |
|---|
| CHIEN-HENG WU等: "Development of Big Data Multi-VM Platform for Rapid Prototyping of Distributed Deep Learning", 《BIGDATA 2018: BIG DATA – BIGDATA 2018 》, vol. 10968, pages 182 * |
| 万鑫: "云计算环境下可信虚拟数据中心构建及其关键技术研究", 《中国博士学位论文全文数据库 信息科技辑》, no. 10, pages 138 - 3 * |
| 任建刚: "基于可信计算的Web服务安全增强技术的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 3, pages 139 - 424 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115858246A (en) * | 2022-12-27 | 2023-03-28 | 安超云软件有限公司 | Disaster tolerance drilling method, device, equipment and storage medium |
| CN115858246B (en) * | 2022-12-27 | 2023-11-21 | 安超云软件有限公司 | Disaster recovery exercise method, device, equipment and storage medium |
| CN119322655A (en) * | 2024-12-19 | 2025-01-17 | 成都云祺科技有限公司 | Industry compliance verification method, system, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114780208B (en) | 2023-08-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106951345B (en) | Consistency test method and device for disk data of virtual machine | |
| US8356149B2 (en) | Memory migration | |
| JP6186374B2 (en) | System and method for secure migration to a virtualized platform | |
| CN107608757B (en) | Container-based isolation processing method and related equipment | |
| EP3499358B1 (en) | Method and device for deleting cascade snapshot | |
| CN107807839B (en) | Method and device for modifying memory data of virtual machine and electronic equipment | |
| US10042744B2 (en) | Adopting an existing automation script to a new framework | |
| CN112068852B (en) | Method, system, equipment and medium for installing open-source software based on domestic server | |
| US9032414B1 (en) | Systems and methods for managing system resources allocated for backup validation | |
| CN111679889B (en) | Conversion migration method and system of virtual machine | |
| CN114706661B (en) | Disaster recovery backup method and system for virtual machine, computer equipment and storage medium | |
| CN114780208B (en) | Method, system, device and storage medium for verifying backup validity of multi-platform virtual machine | |
| US20190332461A1 (en) | Embedding forensic and triage data in memory dumps | |
| CN112133357B (en) | eMMC test method and device | |
| US9003139B1 (en) | Systems and methods for recovering virtual machines after disaster scenarios | |
| US20130198742A1 (en) | Subsequent operation input reduction systems and methods for virtual machines | |
| US20160259578A1 (en) | Apparatus and method for detecting performance deterioration in a virtualization system | |
| US9740544B2 (en) | Live snapshotting of multiple virtual disks in networked systems | |
| US9250942B2 (en) | Hardware emulation using on-the-fly virtualization | |
| US9158550B2 (en) | Caching based operating system installation | |
| EP3264254B1 (en) | System and method for a simulation of a block storage system on an object storage system | |
| CN107766385B (en) | Method and equipment for converting file format of virtual disk | |
| CN114385418A (en) | Protection method, device, equipment and storage medium for communication equipment | |
| CN107077406B (en) | Method and apparatus for SATA receiver equalization margin determination/setting | |
| CN109491961B (en) | File system snapshot method and snapshot 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 | ||
| TA01 | Transfer of patent application right | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20230613 Address after: Room 1602, No. 6, 3rd Financial Street, Wuxi Economic Development Zone, Wuxi City, Jiangsu Province, 214000 Applicant after: Anchao cloud Software Co.,Ltd. Address before: Room 1601, no.6, financial Third Street, Wuxi Economic Development Zone, Jiangsu Province, 214000 Applicant before: Jiangsu Anchao cloud Software Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |