CN112416527A - Data recovery method, device, equipment and storage medium - Google Patents

Data recovery method, device, equipment and storage medium Download PDF

Info

Publication number
CN112416527A
CN112416527A CN202011377765.9A CN202011377765A CN112416527A CN 112416527 A CN112416527 A CN 112416527A CN 202011377765 A CN202011377765 A CN 202011377765A CN 112416527 A CN112416527 A CN 112416527A
Authority
CN
China
Prior art keywords
virtual machine
target virtual
data
backup
backup data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011377765.9A
Other languages
Chinese (zh)
Inventor
刘行朴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202011377765.9A priority Critical patent/CN112416527A/en
Publication of CN112416527A publication Critical patent/CN112416527A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data recovery method, a device, equipment and a storage medium, wherein the method comprises the following steps: when the backup data is restored, a target virtual machine executing data restoration operation is established; and sending disk information for storing backup data to the virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery. Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.

Description

Data recovery method, device, equipment and storage medium
Technical Field
The present application relates to computer application technologies, and in particular, to a data recovery method, apparatus, device, and storage medium.
Background
The field discloses a method for recovering a virtual machine by a third-party backup Software in a heterogeneous manner, namely a method for backing up the virtual machine on a first virtual platform by using the third-party backup Software and then recovering the backup virtual machine on a second virtual platform, and particularly relates to a method for writing related data of the virtual machine backed up by the third-party backup Software into a disk of the virtual machine of the platform by using a Software Development Kit (SDK) provided by the second virtual platform, wherein the virtual machine of the platform can be started up after the full data is completely written in, so that the recovery of the backup virtual machine is realized.
However, when the SDK is used for recovery, the full data of the backup virtual machine needs to be written into the disk, and when the full data of the backup virtual machine exceeds a certain threshold, the time for writing into the disk is prolonged, thereby affecting the recovery rate of the backup virtual machine.
Disclosure of Invention
In order to solve the foregoing technical problems, it is desirable to provide a data recovery method, apparatus, device and storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, a data recovery method is provided, which is applied to a backup device, and includes:
when the backup data is restored, a target virtual machine executing data restoration operation is established;
and sending disk information for storing the backup data to virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery.
In the foregoing solution, after creating a target virtual machine that performs a data recovery operation when recovering the backup data, the method further includes: acquiring identification information of the target virtual machine; the sending the disk information storing the backup data to the virtual machine management device and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine itself includes: sending the disk information of the backup data to the virtual machine management equipment by calling a first interface of the virtual machine management equipment; and modifying the backup data into the rear-end mirror image data of the disk of the target virtual machine based on the identification information of the target virtual machine.
In the foregoing solution, when restoring the backup data, creating a target virtual machine that performs a data restoring operation includes: when the backup data is restored, sending a restoration instruction of the backup data to the virtual machine management equipment; receiving a recovery confirmation instruction returned by the virtual machine management equipment; and responding to the confirmation recovery instruction, and creating the target virtual machine executing data recovery operation.
In the foregoing solution, the creating the target virtual machine that performs the data recovery operation includes: acquiring configuration information for creating the target virtual machine from the backup data; creating the target virtual machine based on the configuration information.
In the foregoing solution, the creating the target virtual machine based on the configuration information includes: creating the target virtual machine in the virtual machine management device through a second interface of the virtual machine management device based on the configuration information.
In the foregoing solution, before the recovering for the backup data, the method further includes: determining an original virtual machine or an original physical machine needing to be backed up according to a backup requirement; and carrying out backup operation on the original virtual machine or the original physical machine to obtain the backup data.
In the above scheme, the method further comprises: and establishing communication connection with the virtual machine management equipment based on an Internet small computer system interface protocol.
In the above scheme, the method further comprises: the target virtual machine comprises a plurality of disks; and starting the target virtual machine by calling a third interface of the virtual machine management equipment, and storing the read partial backup data into a disk corresponding to the target virtual machine.
In the above scheme, the method further comprises: and starting the target virtual machine by calling the third interface of the virtual machine management equipment, and storing all the backup data into a disk corresponding to the target virtual machine.
In a second aspect, a data recovery method is provided, which is applied to a virtual machine management device, and includes:
when the backup data is restored, a target virtual machine executing data restoration operation is established;
controlling the target virtual machine to receive the disk information which is sent by the backup device and used for storing the backup data;
and controlling the target virtual machine to read the backup data from the backup device based on the disk information so as to restore the backup data in the target virtual machine.
In the foregoing solution, when restoring the backup data, creating a target virtual machine that performs a data restoring operation includes: when the backup data is restored, receiving a restoration instruction of the backup data sent by the backup equipment; and responding to the recovery instruction, and creating the target virtual machine executing data recovery operation.
In the above solution, the creating the target virtual machine executing the data recovery operation in response to the recovery instruction includes: acquiring configuration information for creating the target virtual machine from the recovery instruction; creating the target virtual machine based on the configuration information.
In the foregoing solution, after the target virtual machine is created based on the configuration information, the method further includes: and returning a recovery confirmation instruction to the backup device.
In the foregoing solution, before creating a target virtual machine for performing a data recovery operation when recovering the backup data, the method further includes: and establishing communication connection with the backup device based on an Internet small computer system interface protocol.
In the above scheme, the method further comprises: the target virtual machine comprises a plurality of disks; and starting the target virtual machine, and storing the read partial backup data into a disk corresponding to the target virtual machine.
In the above scheme, the method further comprises: and after the target virtual machine is started, all the backup data are stored in a disk corresponding to the target virtual machine.
In a third aspect, a data recovery apparatus is provided, which is applied to a backup device, and includes:
the system comprises a first establishing unit, a second establishing unit and a third establishing unit, wherein the first establishing unit is used for establishing a target virtual machine for executing data recovery operation when recovering the backup data;
and the modification unit is used for sending the disk information for storing the backup data to the virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so as to enable the target virtual machine to read the back-end mirror image data based on the disk information for data recovery.
In a fourth aspect, a data recovery apparatus is provided, which is applied to a virtual machine management device, and includes:
the second creating unit is used for creating a target virtual machine for executing data recovery operation when the backup data is recovered;
the receiving unit is used for controlling the target virtual machine to receive the disk information which is sent by the backup device and used for storing the backup data;
and the recovery unit is used for controlling the target virtual machine to read the backup data from the backup device based on the disk information so as to recover the backup data in the target virtual machine.
In a fifth aspect, a backup device is provided, including: a processor and a memory configured to store a computer program operable on the processor, wherein the processor is configured to perform the steps of the aforementioned method when executing the computer program.
In a sixth aspect, a virtual machine management device is provided, including: a processor and a memory configured to store a computer program operable on the processor, wherein the processor is configured to perform the steps of the aforementioned method when executing the computer program.
In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
By adopting the technical scheme, when the backup data is restored, a target virtual machine for executing data restoration operation is established; and sending disk information for storing backup data to the virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery. Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.
Drawings
FIG. 1 is a first flowchart of a data recovery method according to an embodiment of the present application;
FIG. 2 is a second flowchart of a data recovery method according to an embodiment of the present application;
FIG. 3 is a third flowchart of a data recovery method according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a first structure of a data recovery apparatus according to an embodiment of the present application;
FIG. 5 is a second structural diagram of a data recovery apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a backup device in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a virtual machine management device in an embodiment of the present application.
Detailed Description
So that the manner in which the features and elements of the present embodiments can be understood in detail, a more particular description of the embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
An embodiment of the present application provides a data recovery method, fig. 1 is a first flowchart of the data recovery method in the embodiment of the present application, and as shown in fig. 1, the data recovery method is applied to a backup device, and includes the following specific steps:
step 101: when the backup data is restored, a target virtual machine executing data restoration operation is established;
it should be noted that, in order to prevent some virtual machines or physical machines from losing stored data due to an accident (such as a fire, an earthquake, etc.), the data of the virtual machines or physical machines are usually backed up by using backup software when the virtual machines or physical machines are in a normal working state, so that the data can be restored by using the data restoration method provided in the following embodiment when the data needs to be restored subsequently.
It should be noted that the created target virtual machine is a virtual machine newly created on the virtual machine management device, and is used to replace a virtual machine or a physical machine storing backup data. Namely, the target virtual machine is the virtual machine for restoring the backup data.
Here, creating the target virtual machine may be performed by the backup device or the virtual machine management device (described in detail in the next embodiment).
In some embodiments, the step specifically includes: when the backup data is restored, sending a restoration instruction of the backup data to the virtual machine management equipment; receiving a recovery confirmation instruction returned by the virtual machine management equipment; and responding to the confirmation recovery instruction, and creating the target virtual machine executing data recovery operation.
That is to say, when the backup data needs to be restored, the backup device sends a restoration instruction to the virtual machine management device, and after the backup device receives a recovery confirmation instruction returned by the virtual machine management device, the backup device needs to create a target virtual machine for data restoration.
In addition, it should be noted that the backup device may automatically initiate a recovery instruction to the virtual machine management device for the same or different backup data according to a time period, and stop sending until receiving a recovery confirmation instruction.
In some embodiments, the creating the target virtual machine that performs data recovery operations includes: acquiring configuration information for creating the target virtual machine from the backup data; creating the target virtual machine based on the configuration information.
It should be noted that the configuration information is information required for creating the target virtual machine, and the configuration information may include: a Central Processing Unit (CPU), a memory size, a network card, a time point for selecting recovery, and the like.
Further, the backup device may create, in the virtual machine management device, a target virtual machine having the same configuration information as the original virtual machine or the original physical machine to which the backup data to be restored belongs according to the acquired configuration information.
In addition, the configuration information of the target virtual machine can be set according to the requirements of the user.
In some embodiments, said creating said target virtual machine based on said configuration information comprises: creating the target virtual machine in the virtual machine management device through a second interface of the virtual machine management device based on the configuration information.
It should be noted that the backup device may create the target virtual machine in the virtual machine management device through a second Interface (API).
Here, the backup device calls the second interface, and creates a target virtual machine having the same configuration information in the virtual machine management device in combination with the configuration information of the original virtual machine or the original physical machine.
The API is a predefined function that is intended to provide applications and developers the ability to access a set of routines based on certain software or hardware without having to access source code or understand the details of the internal workings.
In some embodiments, before the restoring for the backup data, the method further comprises: determining an original virtual machine or an original physical machine needing to be backed up according to a backup requirement; and carrying out backup operation on the original virtual machine or the original physical machine to obtain the backup data.
It should be noted that the backup requirement may be understood as a user requirement, for example, before a user performs an experiment based on data stored in a certain original virtual machine or an original physical machine, in order to prevent a situation that data of the original virtual machine or the original physical machine is lost due to an accident in the experiment process, the data stored in the certain original virtual machine or the original physical machine needs to be backed up.
It should be further noted that, when the original virtual machine or the original physical machine is in a normal working state, the original virtual machine or the original physical machine is backed up by the backup device, and the backup data is stored.
In some embodiments, the method further comprises: and establishing communication connection with the virtual machine management equipment based on an Internet small computer system interface protocol.
Here, the backup device and the virtual machine management device establish communication connection according to an Internet Small Computer System Interface (ISCSI) protocol, and implement data transmission.
Step 102: and sending disk information for storing the backup data to virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery.
It should be noted that the disk information includes address information of the disk storing the backup data. The backup device transmits the disk address information to a target virtual machine in the virtual machine management device based on an ISCSI protocol, so that the target virtual machine can directly access the disk address information of the backup data without storing the backup data, and further read the backup data.
In some embodiments, after creating the target virtual machine for performing the data recovery operation when recovering the backup data, the method further includes: acquiring identification information of the target virtual machine; the sending the disk information storing the backup data to the virtual machine management device and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine itself includes: sending the disk information of the backup data to the virtual machine management equipment by calling a first interface of the virtual machine management equipment; and modifying the backup data into the rear-end mirror image data of the disk of the target virtual machine based on the identification information of the target virtual machine.
It should be noted that the identification information of the target virtual machine is used to identify the target virtual machine, and the identification information may be a name of the target virtual machine or other information related to the target virtual machine and different from other virtual machines.
It should be noted that the backup device sends the disk information to the target virtual machine in the virtual machine management device through the first interface (i.e., the first API).
Specifically, the backup device calls the first interface to send the disk information for storing the backup data to the virtual machine management device, and then based on the identification information of the target virtual machine, the backup device modifies the backup data into the rear-end mirror image data of the disk of the target virtual machine, so that when the target virtual machine restores the backup data, the backup data is not required to be completely stored in the disk of the target virtual machine and then restored, but the rear-end mirror image data is directly read based on the disk information to restore the data, and the restoring speed of the backup data is improved.
In addition, it should be noted that the process of modifying the backup data into the back-end mirror image data of the disk of the target virtual machine itself is, in fact, modifying the disk storing the backup data into the back-end mirror image of the disk of the target virtual machine itself. Here, the created target virtual machine includes a plurality of disks, and the number of disks is greater than or equal to the number of disks storing backup data.
In some embodiments, the method further comprises: the target virtual machine comprises a plurality of disks; and starting the target virtual machine by calling a third interface of the virtual machine management equipment, and storing the read partial backup data into a disk corresponding to the target virtual machine.
It should be noted that the backup device starts the virtual machine management device through the third interface (i.e., the third API).
Here, the function of storing the read part of the backup data in the disk corresponding to the target virtual machine is specifically realized by a copy-on-read (copy-on-read) function. The backup device can synchronously start a copy-on-read function when starting the target virtual machine by calling the third interface, the target virtual machine which starts the copy-on-read can gradually synchronize the read data to the corresponding disk in the target virtual machine in the running process, and then the target virtual machine can directly read the backup data from the disk if reading the backup data again, so that the performance and the stability of the target virtual machine are improved.
In some embodiments, the method further comprises: and starting the target virtual machine by calling the third interface of the virtual machine management equipment, and storing all the backup data into a disk corresponding to the target virtual machine.
Here, the function of storing all backup data in a disk corresponding to the target virtual machine is specifically realized, and the function can be realized through a blockstream function. After the backup device finishes the startup of the target virtual machine, the blockstream function is started, and the backup data can be completely copied to the disk corresponding to the target virtual machine, so that the purpose of breaking backup is achieved.
It should be noted that, when the copy-on-read function and the blockstream function are simultaneously turned on, the performance and stability of the target virtual machine are improved to the best.
In addition, the first interface, the second interface and the third interface mentioned above may be the same interface or different interfaces.
Here, the execution subject of steps 101 to 102 may be a processor of the data recovery apparatus.
Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.
An embodiment of the present application provides a data recovery method, fig. 2 is a second flow diagram of the data recovery method in the embodiment of the present application, and as shown in fig. 2, the data recovery method is applied to a virtual machine management device, and includes the following specific steps:
step 201: when the backup data is restored, a target virtual machine executing data restoration operation is established;
here, the virtual machine management device is configured to manage a plurality of virtual machines, and specifically includes creating a target virtual machine.
In some embodiments, the step specifically includes: when the backup data is restored, receiving a restoration instruction of the backup data sent by the backup equipment; and responding to the recovery instruction, and creating the target virtual machine executing data recovery operation.
That is to say, after receiving the recovery instruction sent by the backup device, the virtual machine management device learns that the backup data of a certain virtual machine or physical machine needs to be recovered, and at this time, the virtual machine management device creates a target virtual machine for performing data recovery operation according to the received recovery instruction.
In some embodiments, said creating said target virtual machine that performs data recovery operations in response to said recovery instructions comprises: acquiring configuration information for creating the target virtual machine from the recovery instruction; creating the target virtual machine based on the configuration information.
It should be noted that the recovery instruction includes configuration information of the original virtual machine or the original physical machine, where the configuration information is information required for creating the target virtual machine, and the configuration information may include: CPU, memory size, network card, time point for selecting recovery, etc.
Here, the virtual machine management apparatus creates the target virtual machine based on the acquired configuration information.
In some embodiments, after creating the target virtual machine based on the configuration information, the method further comprises: and returning a recovery confirmation instruction to the backup device.
Here, a recovery confirmation instruction is returned to the backup device to inform that the target virtual machine has been created, and the backup data that needs to be recovered can be received.
In some embodiments, before creating the target virtual machine for performing the data recovery operation when recovering the backup data, the method further includes: and establishing communication connection with the backup device based on an Internet small computer system interface protocol.
Here, the backup device and the virtual machine management device establish communication connection according to an Internet Small Computer System Interface (ISCSI) protocol, and implement data transmission.
Step 202: controlling the target virtual machine to receive the disk information which is sent by the backup device and used for storing the backup data;
step 203: and controlling the target virtual machine to read the backup data from the backup device based on the disk information so as to restore the backup data in the target virtual machine.
That is to say, the target virtual machine does not need to store the backup data to its own disk completely and then perform the data recovery operation, but directly reads the backup data (i.e. the back-end mirror image data of its own disk) based on the disk information to perform the data recovery, thereby increasing the recovery speed of the backup data.
In some embodiments, the method further comprises: the target virtual machine comprises a plurality of disks; and starting the target virtual machine, and storing the read partial backup data into a disk corresponding to the target virtual machine.
Here, the function of storing the read part of the backup data in the disk corresponding to the target virtual machine is specifically realized by a copy-on-read (copy-on-read) function.
Here, the virtual machine management device may complete the start of the target virtual machine, and additionally, may synchronously start a copy-on-read function. The target virtual machine which starts the copy-on-read can gradually synchronize the read data to the corresponding disk in the target virtual machine in the running process, and then the target virtual machine can directly read the backup data from the disk if reading the backup data again, so that the performance and the stability of the target virtual machine are improved.
In some embodiments, the method further comprises: and after the target virtual machine is started, all the backup data are stored in a disk corresponding to the target virtual machine.
Here, the function of storing all backup data in a disk corresponding to the target virtual machine is specifically realized, and the function can be realized through a blockstream function.
Here, after the virtual machine management device completes the startup of the target virtual machine, the blockstream function is started again, and the backup data is completely copied to the disk corresponding to the target virtual machine, so that the purpose of breaking away from backup is achieved.
It should be noted that, when the copy-on-read function and the blockstream function are simultaneously turned on, the performance and stability of the target virtual machine are improved to the best.
Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.
The following virtual machine management device provides a data recovery method by taking HCI as an example, fig. 3 is a schematic diagram of a third flow of the data recovery method in the embodiment of the present application, and as shown in fig. 3, the specific steps are as follows:
step 301: starting;
step 302: backing up the virtual machine or the physical machine to obtain backup data;
here, the backup device backs up the original virtual machine or the original physical machine to obtain backup data and store the backup data.
Step 303: initiating a resume to HCI task;
the backup data is restored in the HCI, and therefore, a target virtual machine for restoring the backup data needs to be created in the HCI.
Step 304: creating a target virtual machine;
here, after receiving a recovery confirmation instruction returned by the HCI, the backup device acquires configuration information for creating the target virtual machine from the backup data, and creates the target virtual machine in the HCI by calling the second interface of the HCI based on the configuration information.
Step 305: mapping the backup data to the HCI in the form of ISCSI bare equipment;
here, the backup device maps the backup data to the HCI by calling a first interface of the HCI based on the ISCSI protocol. Specifically, based on the ISCSI protocol, the backup device sends the disk information storing the backup data to the HCI by calling the first interface of the HCI.
A bare device (or disk) that is typically mapped based on the ISCSI protocol is referred to as an ISCSI bare device (or disk).
A bare device is a special block device file that is not formatted and not read by Unix through the file system. The application program is responsible for reading and writing the file system without buffering the file system, and the file system is not directly managed by the operating system. The device has less operating system layer and higher I/O efficiency.
Step 306: modifying ISCSI bare equipment into a rear-end mirror image of a target virtual machine disk;
here, the disc information-based backup device also modifies the ISCSI bare device (or disc) to the back-end mirror image of the target vm disc through the first interface of the HCI, that is, modifies the backup data to the back-end mirror image data of the target vm disc. Therefore, the subsequent virtual machine management equipment can directly access the backup data (namely the back-end mirror image data) based on the disk information, and the recovery rate of the backup data is improved.
Step 307: starting a copy-on-read function;
and the copy-on-read function is to store the read partial backup data into a corresponding disk of the target virtual machine.
Step 308: whether a blockstream function is started or not; if not, go to step 309; if yes, go to step 310;
and the blockstream function is to store all backup data into a disk corresponding to the target virtual machine.
Step 309: starting up;
step 310: starting up and carrying out blockstream;
step 311: and (6) ending.
An embodiment of the present application provides a data recovery apparatus, which is applied to a backup device, and fig. 4 is a schematic diagram of a first structure of the data recovery apparatus in the embodiment of the present application, and as shown in fig. 4, the apparatus includes:
a first creating unit 401, configured to create a target virtual machine that performs a data recovery operation when recovering backup data;
a modifying unit 402, configured to send disk information for storing the backup data to a virtual machine management device, and modify the backup data into back-end mirror image data of a disk of the target virtual machine itself, so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery.
In some embodiments, when the backup data is restored, after a target virtual machine that performs a data restoration operation is created, identification information of the target virtual machine is acquired; the apparatus comprises: a modifying unit 402, specifically configured to send the disk information of the backup data to the virtual machine management device by calling a first interface of the virtual machine management device; and modifying the backup data into the rear-end mirror image data of the disk of the target virtual machine based on the identification information of the target virtual machine.
In some embodiments, the apparatus comprises: a first creating unit 401, configured to send a recovery instruction of backup data to the virtual machine management device when recovering the backup data; receiving a recovery confirmation instruction returned by the virtual machine management equipment; and responding to the confirmation recovery instruction, and creating the target virtual machine executing data recovery operation.
In some embodiments, the apparatus comprises: the first creating unit 401 is further specifically configured to acquire configuration information for creating the target virtual machine from the backup data; creating the target virtual machine based on the configuration information.
In some embodiments, the apparatus comprises: the first creating unit 401 is further specifically configured to create the target virtual machine in the virtual machine management device through the second interface of the virtual machine management device based on the configuration information.
In some embodiments, before the backup data is restored, an original virtual machine or an original physical machine that needs to be backed up is determined according to a backup requirement; and carrying out backup operation on the original virtual machine or the original physical machine to obtain the backup data.
In some embodiments, a communication connection is established with the virtual machine management device based on an internet small computer system interface protocol.
In some embodiments, the target virtual machine includes a plurality of disks therein; and starting the target virtual machine by calling a third interface of the virtual machine management equipment, and storing the read partial backup data into a disk corresponding to the target virtual machine.
In some embodiments, the target virtual machine is started by calling the third interface of the virtual machine management device, and all the backup data is stored in the disk corresponding to the target virtual machine.
Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.
An embodiment of the present application provides a data recovery apparatus, which is applied to a virtual machine management device, and fig. 5 is a second schematic structural diagram of the data recovery apparatus in the embodiment of the present application, and as shown in fig. 5, the apparatus includes:
a second creating unit 501, configured to create a target virtual machine that performs a data recovery operation when recovering backup data;
a receiving unit 502, configured to control the target virtual machine to receive disk information, which is sent by a backup device and used for storing the backup data;
a restoring unit 503, configured to control the target virtual machine to read the backup data from the backup device based on the disk information, so as to restore the backup data in the target virtual machine.
In some embodiments, the apparatus comprises: a second creating unit 501, configured to receive a recovery instruction of the backup data sent by the backup device when recovering the backup data; and responding to the recovery instruction, and creating the target virtual machine executing data recovery operation.
In some embodiments, the apparatus comprises: a second creating unit 501, configured to obtain configuration information for creating the target virtual machine from the recovery instruction; creating the target virtual machine based on the configuration information.
In some embodiments, after the target virtual machine is created based on the configuration information, a confirmation restore instruction is returned to the backup device.
In some embodiments, when the recovery is performed on the backup data, a communication connection is established with the backup device based on an internet small computer system interface protocol before a target virtual machine for performing a data recovery operation is created.
In some embodiments, the target virtual machine includes a plurality of disks therein; and starting the target virtual machine, and storing the read partial backup data into a disk corresponding to the target virtual machine.
In some embodiments, after the target virtual machine is started, all the backup data is stored in the disk corresponding to the target virtual machine.
Therefore, the target virtual machine does not need to store the backup data to the disk of the target virtual machine completely and then restore the backup data, but directly reads the backup data from the backup device based on the disk information to restore the backup data, and the restoring speed of the backup data is improved.
An embodiment of the present application further provides a backup device, fig. 6 is a schematic structural diagram of the backup device in the embodiment of the present application, and as shown in fig. 6, the backup device includes: a processor 601 and a memory 602 configured to store computer programs executable on the processor; wherein the processor 601 is configured to execute the method steps in the previous embodiments when running the computer program.
Of course, in practice, the various components of the terminal device are coupled together by a bus system 603, as shown in FIG. 6.
An embodiment of the present application further provides a virtual machine management device, fig. 7 is a schematic structural diagram of the virtual machine management device in the embodiment of the present application, and as shown in fig. 7, the terminal device includes: a processor 701 and a memory 702 configured to store a computer program capable of running on the processor; wherein the processor 701 is configured to execute the method steps in the previous embodiments when running the computer program.
In practice, of course, the various components of the terminal device are coupled together by a bus system 703, as shown in fig. 7.
In practical applications, the processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
The Memory may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
The embodiment of the application also provides a computer readable storage medium for storing the computer program.
Optionally, the computer-readable storage medium may be applied to any one of the methods in the embodiments of the present application, and the computer program enables a computer to execute corresponding processes implemented by a processor in each method in the embodiments of the present application, which is not described herein again for brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (21)

1. A data recovery method is applied to backup equipment, and is characterized by comprising the following steps:
when the backup data is restored, a target virtual machine executing data restoration operation is established;
and sending disk information for storing the backup data to virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so that the target virtual machine reads the back-end mirror image data based on the disk information to perform data recovery.
2. The method of claim 1, wherein when the recovery is performed on the backup data, after the target virtual machine for performing the data recovery operation is created, the method further comprises:
acquiring identification information of the target virtual machine;
the sending the disk information storing the backup data to the virtual machine management device and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine itself includes:
sending the disk information of the backup data to the virtual machine management equipment by calling a first interface of the virtual machine management equipment;
and modifying the backup data into the rear-end mirror image data of the disk of the target virtual machine based on the identification information of the target virtual machine.
3. The method of claim 1, wherein, when restoring the backup data, creating a target virtual machine for performing a data restoration operation comprises:
when the backup data is restored, sending a restoration instruction of the backup data to the virtual machine management equipment;
receiving a recovery confirmation instruction returned by the virtual machine management equipment;
and responding to the confirmation recovery instruction, and creating the target virtual machine executing data recovery operation.
4. The method of claim 3, wherein the creating the target virtual machine that performs the data recovery operation comprises:
acquiring configuration information for creating the target virtual machine from the backup data;
creating the target virtual machine based on the configuration information.
5. The method of claim 4, wherein creating the target virtual machine based on the configuration information comprises:
creating the target virtual machine in the virtual machine management device through a second interface of the virtual machine management device based on the configuration information.
6. The method of claim 1, wherein prior to the restoring for the backup data, the method further comprises:
determining an original virtual machine or an original physical machine needing to be backed up according to a backup requirement;
and carrying out backup operation on the original virtual machine or the original physical machine to obtain the backup data.
7. The method of claim 6, further comprising:
and establishing communication connection with the virtual machine management equipment based on an Internet small computer system interface protocol.
8. The method of claim 1, further comprising:
the target virtual machine comprises a plurality of disks;
and starting the target virtual machine by calling a third interface of the virtual machine management equipment, and storing the read partial backup data into a disk corresponding to the target virtual machine.
9. The method of claim 8, further comprising:
and starting the target virtual machine by calling the third interface of the virtual machine management equipment, and storing all the backup data into a disk corresponding to the target virtual machine.
10. A data recovery method is applied to virtual machine management equipment, and is characterized by comprising the following steps:
when the backup data is restored, a target virtual machine executing data restoration operation is established;
controlling the target virtual machine to receive the disk information which is sent by the backup device and used for storing the backup data;
and controlling the target virtual machine to read the backup data from the backup device based on the disk information so as to restore the backup data in the target virtual machine.
11. The method of claim 10, wherein, when restoring the backup data, creating a target virtual machine for performing a data restore operation comprises:
when the backup data is restored, receiving a restoration instruction of the backup data sent by the backup equipment;
and responding to the recovery instruction, and creating the target virtual machine executing data recovery operation.
12. The method of claim 11, wherein creating the target virtual machine that performs a data recovery operation in response to the recovery instruction comprises:
acquiring configuration information for creating the target virtual machine from the recovery instruction;
creating the target virtual machine based on the configuration information.
13. The method of claim 12, wherein after creating the target virtual machine based on the configuration information, the method further comprises:
and returning a recovery confirmation instruction to the backup device.
14. The method of claim 10, wherein when restoring the backup data, before creating a target virtual machine for performing a data restore operation, the method further comprises:
and establishing communication connection with the backup device based on an Internet small computer system interface protocol.
15. The method of claim 10, further comprising:
the target virtual machine comprises a plurality of disks;
and starting the target virtual machine, and storing the read partial backup data into a disk corresponding to the target virtual machine.
16. The method of claim 15, further comprising:
and after the target virtual machine is started, all the backup data are stored in a disk corresponding to the target virtual machine.
17. A data recovery device applied to backup equipment is characterized by comprising:
the system comprises a first establishing unit, a second establishing unit and a third establishing unit, wherein the first establishing unit is used for establishing a target virtual machine for executing data recovery operation when recovering the backup data;
and the modification unit is used for sending the disk information for storing the backup data to the virtual machine management equipment, and modifying the backup data into the back-end mirror image data of the disk of the target virtual machine so as to enable the target virtual machine to read the back-end mirror image data based on the disk information for data recovery.
18. A data recovery device is applied to virtual machine management equipment, and is characterized by comprising:
the second creating unit is used for creating a target virtual machine for executing data recovery operation when the backup data is recovered;
the receiving unit is used for controlling the target virtual machine to receive the disk information which is sent by the backup device and used for storing the backup data;
and the recovery unit is used for controlling the target virtual machine to read the backup data from the backup device based on the disk information so as to recover the backup data in the target virtual machine.
19. A backup device, characterized in that the backup device comprises: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any one of claims 1 to 9 when running the computer program.
20. A virtual machine management apparatus, characterized in that the virtual machine management apparatus comprises: a processor and a memory configured to store a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the method of any one of claims 10 to 16 when running the computer program.
21. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 16.
CN202011377765.9A 2020-11-30 2020-11-30 Data recovery method, device, equipment and storage medium Pending CN112416527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011377765.9A CN112416527A (en) 2020-11-30 2020-11-30 Data recovery method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011377765.9A CN112416527A (en) 2020-11-30 2020-11-30 Data recovery method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112416527A true CN112416527A (en) 2021-02-26

Family

ID=74829125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011377765.9A Pending CN112416527A (en) 2020-11-30 2020-11-30 Data recovery method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112416527A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254268A (en) * 2021-05-20 2021-08-13 深信服科技股份有限公司 Data processing method and device, equipment and storage medium
CN116578447A (en) * 2023-07-12 2023-08-11 武汉吧哒科技股份有限公司 Virtual machine data recovery method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648981A (en) * 2016-12-13 2017-05-10 龚平 Continuous data protection based virtual machine data protection method
CN109324931A (en) * 2018-10-31 2019-02-12 广州鼎甲计算机科技有限公司 The method that vmware carry restores is realized in data deduplication system
CN111399984A (en) * 2020-03-19 2020-07-10 上海英方软件股份有限公司 File recovery method and system based on virtual machine backup data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648981A (en) * 2016-12-13 2017-05-10 龚平 Continuous data protection based virtual machine data protection method
CN109324931A (en) * 2018-10-31 2019-02-12 广州鼎甲计算机科技有限公司 The method that vmware carry restores is realized in data deduplication system
CN111399984A (en) * 2020-03-19 2020-07-10 上海英方软件股份有限公司 File recovery method and system based on virtual machine backup data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254268A (en) * 2021-05-20 2021-08-13 深信服科技股份有限公司 Data processing method and device, equipment and storage medium
CN113254268B (en) * 2021-05-20 2024-05-24 深信服科技股份有限公司 Data processing method and device, equipment and storage medium
CN116578447A (en) * 2023-07-12 2023-08-11 武汉吧哒科技股份有限公司 Virtual machine data recovery method and device, computer equipment and storage medium
CN116578447B (en) * 2023-07-12 2023-10-10 武汉吧哒科技股份有限公司 Virtual machine data recovery method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
US9552168B2 (en) Virtual machine backup from storage snapshot
EP2840495B1 (en) Container-based processing method and apparatus
CN108027757B (en) System and method for restoring data from opaque data backup streams
CN104216793A (en) Application program backing up and restoring method and device
CN105117246A (en) Method for rapidly booting electronic equipment
CN103729264A (en) Method for backing up and restoring Windows virtual machine system disk
JPWO2013103023A1 (en) Information processing apparatus, information processing method, and computer program
CN102521289B (en) File synchronization method, device and system
CN113626256B (en) Virtual machine disk data backup method, device, terminal and storage medium
EP3474143B1 (en) Method and apparatus for incremental recovery of data
KR101673299B1 (en) Operating system recovery method and apparatus, and terminal device
CN105320578A (en) Method and apparatus for backing up and recovering APP
CN112416527A (en) Data recovery method, device, equipment and storage medium
WO2018049798A1 (en) Method and apparatus for reconstructing cache partition
US20150269029A1 (en) Immediate Recovery of an Application from File Based Backups
CN110941516B (en) Operating system restoration method, device, equipment and storage medium
CN116185720A (en) Virtual machine backup and recovery method based on vSAN super-fusion virtualization platform
KR101552580B1 (en) Method for system recovery including mobile device and backup supporting multi operation system
CN114995852A (en) Equipment upgrading method, equipment and computer readable storage medium
US10592329B2 (en) Method and electronic device for continuing executing procedure being aborted from physical address where error occurs
CN111858175A (en) Method and equipment for backing up cloud platform data based on mobile storage device
CN107832090B (en) Method for improving starting speed of man-machine interaction module of fault information processing device
CN115904603A (en) Virtual machine application migration method and device between heterogeneous platforms
CN116795589A (en) Data backup method and 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