CN114328026A - Virtual disk backup method, device, equipment and medium - Google Patents

Virtual disk backup method, device, equipment and medium Download PDF

Info

Publication number
CN114328026A
CN114328026A CN202111660643.5A CN202111660643A CN114328026A CN 114328026 A CN114328026 A CN 114328026A CN 202111660643 A CN202111660643 A CN 202111660643A CN 114328026 A CN114328026 A CN 114328026A
Authority
CN
China
Prior art keywords
backup
virtual disk
backed
disk
management platform
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
Application number
CN202111660643.5A
Other languages
Chinese (zh)
Other versions
CN114328026B (en
Inventor
宋霖锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111660643.5A priority Critical patent/CN114328026B/en
Publication of CN114328026A publication Critical patent/CN114328026A/en
Application granted granted Critical
Publication of CN114328026B publication Critical patent/CN114328026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a virtual disk backup method, a virtual disk backup device and a virtual disk backup medium, which are applied to a third-party backup tool, wherein the virtual disk backup method comprises the following steps: the method comprises the steps of connecting to a preset cloud computing management platform through a preset interface, determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform, controlling the target host to be connected with the virtual disk to be backed up so as to obtain the read-write permission of the virtual disk to be backed up, carrying out disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology so as to obtain backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium. According to the method and the device, the preset backup interface can be called through a third-party backup tool to realize incremental backup of the virtual disk, the use efficiency of a backup disk medium is improved, the flexibility of cloud computing management platform backup disaster tolerance is improved, and third-party backup of the virtual disk is realized.

Description

Virtual disk backup method, device, equipment and medium
Technical Field
The present invention relates to the field of disk backup, and in particular, to a virtual disk backup method, apparatus, device, and medium.
Background
The CBT (Changed Block Tracking, Data Block modification Tracking technology) is an important component of the VADP (i.e., VMware vStorage API for Data Protection), is a function of VMware to simplify and improve the backup efficiency of a VMware virtual machine, and is used for Tracking changes made to the contents of a virtual disk.
In the prior art, VDDK (Virtual Disk Development Kit) of VMware is a set of functions for operating Virtual Disk files in a VMDK (Virtual Machine Disk Format) Format, and when a Disk backup is performed by using a VDDK method, the VMDK files need to be opened, allocated blocks are queried, then additional threads are used for reading and writing, and the read blocks are transmitted to a backup storage medium through a network, so that remote backup is realized.
Therefore, in the virtual disk backup process, how to avoid the situation that the flexibility of the cloud computing management platform backup disaster tolerance is not high due to the inflexibility of the existing virtual disk backup method is a problem to be solved in the field.
Disclosure of Invention
In view of this, the present invention aims to provide a virtual disk backup method, device, equipment and medium, which can call a preset backup interface through a third-party backup tool to implement incremental backup of a virtual disk, improve the flexibility of cloud computing management platform backup disaster recovery, and implement third-party backup of the virtual disk. The specific scheme is as follows:
in a first aspect, the present application discloses a virtual disk backup method applied to a third-party backup tool, including:
the cloud computing management platform is connected to a preset cloud computing management platform through a preset interface;
determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform;
controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up;
and performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to acquire backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium.
Optionally, the connecting to a preset cloud computing management platform through a preset interface includes:
inputting a user name, a user password and an IP address of the cloud computing management platform into an information input interface on a client interface of the cloud computing management platform so as to connect to the cloud computing management platform by using the user name, the user password and the IP address of the cloud computing management platform.
Optionally, the determining, by using the cloud computing management platform, a target host meeting a preset condition from a storage pool where a virtual disk to be backed up is located includes:
determining the identification number of a storage pool corresponding to the virtual disk to be backed up according to the storage position of the virtual disk to be backed up, and determining a target storage pool according to the identification number;
and determining a target host with the lowest utilization rate of the current central processing unit in the target storage pool by using a preset platform interface of the cloud computing management platform.
Optionally, the controlling the target host to connect with the virtual disk to be backed up to obtain the read-write permission of the virtual disk to be backed up includes:
inquiring a storage path of the virtual disk to be backed up;
and controlling the target host to be connected with the virtual disk to be backed up by using the storage path of the virtual disk to be backed up through a preset service interface of the cloud computing management platform so as to acquire the read-write permission of the virtual disk to be backed up.
Optionally, the performing, by using a data block modification tracking technology, a disk snapshot on the virtual disk to be backed up by using the target host to obtain backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium includes:
performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to obtain a corresponding snapshot file;
and determining a target data block from the snapshot file, and transmitting the target data block to a target backup storage medium for backup.
Optionally, the determining a target data block from the snapshot file includes:
and if the current backup operation is the first backup operation, all the data blocks in the snapshot file are determined as target data blocks, and if the current backup operation is the non-first backup operation, the incremental data blocks in the snapshot file are determined as the target data blocks.
Optionally, the virtual disk backup method further includes:
and creating a tool screening instruction based on user requirements, and sending the tool screening instruction to a preset third-party tool library so as to screen out the third-party backup tool from the third-party tool library.
In a second aspect, the present application discloses a virtual disk backup apparatus, which is applied to a third-party backup tool, and includes:
the platform connection module is used for connecting to a preset cloud computing management platform through a preset interface;
the host determination module is used for determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform;
the connection establishing module is used for controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up;
and the disk backup module performs disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to acquire backup data of the disk to be backed up and transmits the backup data to a target backup storage medium.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the virtual disk backup method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the steps of a virtual disk backup method as disclosed above.
The method comprises the steps of firstly connecting to a preset cloud computing management platform through a preset interface, then determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform, then controlling the target host to be connected with the virtual disk to be backed up so as to obtain the read-write permission of the virtual disk to be backed up, and finally carrying out disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology so as to obtain backup data of the disk to be backed up and transmitting the backup data to a target backup storage medium. According to the method and the device, the preset backup interface can be called through the third-party backup tool, incremental backup of the virtual disk is achieved, the flexibility of backup disaster tolerance of the cloud computing management platform is improved, and third-party backup of the virtual disk is achieved.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a virtual disk backup method provided in the present application;
fig. 2 is a flowchart of a specific virtual disk backup method provided in the present application;
fig. 3 is a schematic view of a virtual disk backup process according to the present application;
fig. 4 is a schematic structural diagram of a virtual disk backup device disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In the prior art, the backup mode of disk backup by using a VDDK method is relatively fixed, and the backup flexibility is not high. In the application, a preset backup interface is called through a third-party backup tool, so that incremental backup of the virtual disk is realized, the flexibility of backup disaster tolerance of the cloud computing management platform is improved, and third-party backup of the virtual disk is realized.
The embodiment of the invention discloses a virtual disk backup method, which is applied to a third-party backup tool and comprises the following steps:
step S11: and the system is connected to a preset cloud computing management platform through a preset interface.
The virtual disk backup method described in this embodiment may further include: and creating a tool screening instruction based on user requirements, and sending the tool screening instruction to a preset third-party tool library so as to screen out the third-party backup tool from the third-party tool library.
It can be understood that the present embodiment is applied to a third-party backup tool, that is, the present embodiment may be completed by a preset third-party backup tool, and the third-party backup tool creates a tool screening instruction based on a user requirement, and sends the tool screening instruction to a preset third-party tool library, so as to screen the tool from the third-party tool library. Before the backup operation of the virtual disk is performed, different third-party backup tools including, but not limited to, backup software may be selected to perform the backup of the disk based on the user's will.
In this embodiment, the connecting to the preset cloud computing management platform through the preset interface may include: inputting a user name, a user password and an IP address of the cloud computing management platform into an information input interface on a client interface of the cloud computing management platform so as to connect to the cloud computing management platform by using the user name, the user password and the IP address of the cloud computing management platform. It can be understood that the third-party backup tool may be connected to the cloud computing management platform by calling a preset interface of the cloud computing management platform. Further, the parameters are input into a preset interface of the cloud computing management platform for login through a pre-acquired IP address of the cloud computing management platform and a user name and a password for logging in the cloud computing management platform, and then the cloud computing management platform is connected. The cloud computing management platform may include a cloud computing management platform under each enterprise flag, for example, an ICS management platform developed under a wave flag, and the preset interface may specifically be an iccenter interface in the ICS management platform.
Step S12: and determining a target host meeting preset conditions from the storage pool where the virtual disk to be backed up is located by using the cloud computing management platform.
In this embodiment, the determining, by using the cloud computing management platform, a target host that meets a preset condition from a storage pool where a virtual disk to be backed up is located may include: determining the identification number of a storage pool corresponding to the virtual disk to be backed up according to the storage position of the virtual disk to be backed up, and determining a target storage pool according to the identification number; and determining a target host with the lowest utilization rate of the current central processing unit in the target storage pool by using a preset platform interface of the cloud computing management platform.
It can be understood that, before this step, the storage pool where the virtual disk to be backed up is located is determined, the ID of the storage pool where the virtual disk is located is queried, and the storage pool is confirmed according to the queried ID number of the storage pool. Next, querying the host IP with the lowest current CPU utilization in the storage pool, in a specific embodiment, the query result of querying the iNode host IP with the lowest current CPU utilization may be: if only one query result is available, the iNode host corresponding to the query result is directly determined as the target host; in another specific embodiment, if the query result corresponds to a plurality of iNode hosts with the same CPU utilization rate, at this time, one iNode host may be randomly determined from the current plurality of iNode hosts with the same CPU utilization rate, and the primary and secondary hosts may be determined as the target host, or a host selection instruction may be obtained according to user preference, and the target host may be determined according to the host selection instruction.
It can be understood that, in this embodiment, the host with the lowest CPU utilization rate is used for performing the disk backup, so that the CPU utilization rate of the host in the storage pool is improved, and the resource consumption and waste of the CPU are reduced.
Step S13: and controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up.
In this embodiment, the controlling the target host to connect with the virtual disk to be backed up to obtain the read-write permission of the virtual disk to be backed up may include: inquiring a storage path of the virtual disk to be backed up; and controlling the target host to be connected with the virtual disk to be backed up by using the storage path of the virtual disk to be backed up through a preset service interface of the cloud computing management platform so as to acquire the read-write permission of the virtual disk to be backed up.
It can be understood that the step is a process of connecting the target host and the virtual disk to be backed up, and the process is performed by calling a preset service interface of the cloud computing management platform. And after the target host is connected with the virtual disk to be backed up, acquiring the read-write permission of the virtual disk to be backed up so as to complete subsequent data read-write and backup operations.
It should be noted that, if the cloud computing management platform described in this embodiment adopts an ICS management platform developed under the wave flag, the corresponding preset service interface may specifically be an iva service interface of the ICS management platform.
Step S14: and performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to acquire backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium.
It can be understood that what is done in this step is to perform the operation of data backup after the target host is connected with the virtual disk to be backed up and the read-write permission of the virtual disk to be backed up is acquired. In one embodiment, it may be represented as: after the IP of the iNode host is obtained, a virtual disk handle is searched through an iva service interface, and the snapshot operation of the virtual disk is realized by calling a CBT method. It should be noted that, when performing disk backup, the first backup is full backup, and the second backup is incremental backup.
Further, in this embodiment, after the backup data is transmitted to the target backup medium, the snapshot file in the backup process is also deleted, and the connection between the target host and the virtual disk is disconnected, thereby completing the whole backup process.
The embodiment is firstly connected to a preset cloud computing management platform through a preset interface, then a target host meeting preset conditions is determined from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform, then the target host is controlled to be connected with the virtual disk to be backed up so as to obtain the read-write permission of the virtual disk to be backed up, and finally the target host is used for carrying out disk snapshot on the virtual disk to be backed up through a data block modification tracking technology so as to obtain backup data of the disk to be backed up, and the backup data is transmitted to a target backup storage medium. According to the method and the device, the preset backup interface can be called through the third-party backup tool, the virtual disk backup is realized in the interface, the flexibility of the cloud computing management platform backup disaster tolerance is improved, and the third-party backup of the virtual disk is realized.
Fig. 2 is a flowchart of a specific virtual disk backup method according to an embodiment of the present application. Referring to fig. 2, the method includes:
step S21: and the system is connected to a preset cloud computing management platform through a preset interface.
Step S22: and determining a target host meeting preset conditions from the storage pool where the virtual disk to be backed up is located by using the cloud computing management platform.
Step S23: and controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up.
Step S24: performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to obtain a corresponding snapshot file;
in a specific implementation manner, in this embodiment, a preset service interface is called to perform CBT snapshot operation on a virtual disk, so as to obtain a generated CBT file and a CBT bitmap file.
Step S25: and determining a target data block from the snapshot file, and transmitting the target data block to a target backup storage medium for backup.
In this embodiment, the determining a target data block from the snapshot file may include: and if the current backup operation is the first backup operation, all the data blocks in the snapshot file are determined as target data blocks, and if the current backup operation is the non-first backup operation, the incremental data blocks in the snapshot file are determined as the target data blocks. It should be noted that, when the first backup is performed, a full backup mode is adopted; in the subsequent backup, namely when the backup is not the first backup, an incremental backup mode is adopted.
In a specific embodiment, when performing a first full backup, all data blocks in a CBT bitmap file are determined as target data blocks; during incremental backup, the data block modified by the snapshot last time is obtained according to the CBT bitmap file, the data block modified by the snapshot last time is determined as a target data block, and finally the target data block and the CBT file are transmitted to a backup storage medium to complete the backup process of the disk.
In the embodiment, the backup process of the disk is expanded, and the specific backup process that the first backup is the full backup and the non-first backup is the incremental backup in the backup process of the disk is explained in detail.
Fig. 3 is a schematic diagram of a process of performing incremental backup on a virtual disk, where an ICS is used as a cloud computing management platform, and is connected to the ICS management platform through a login interface iecenter of the ICS management platform, then a host with the highest CPU idle rate in a storage pool where the virtual disk to be backed up is located is obtained, then the obtained host is connected to the virtual disk, CBT snapshot is performed on the disk, a CBT file and a CBT bitmap file are obtained, a changed data block is obtained through the CBT bitmap file, the changed data block and the CBT file are transmitted to a backup disk medium together, the snapshot file is deleted after transmission is completed, and the connection between the host and the virtual disk is disconnected, so as to complete a backup process.
Referring to fig. 4, an embodiment of the present application discloses a virtual disk backup apparatus, which may specifically include:
the platform connection module 11 is used for connecting to a preset cloud computing management platform through a preset interface;
the host determination module 12 is configured to determine, by using the cloud computing management platform, a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located;
a connection establishing module 13, configured to control the target host to connect with the virtual disk to be backed up, so as to obtain a read-write permission of the virtual disk to be backed up;
and the disk backup module 14 is configured to perform a disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to obtain backup data of the disk to be backed up, and transmit the backup data to a target backup storage medium.
The method comprises the steps of firstly connecting to a preset cloud computing management platform through a preset interface, then determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform, then controlling the target host to be connected with the virtual disk to be backed up so as to obtain the read-write permission of the virtual disk to be backed up, and finally carrying out disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology so as to obtain backup data of the disk to be backed up and transmitting the backup data to a target backup storage medium. According to the method and the device, the preset backup interface can be called through the third-party backup tool, incremental backup of the virtual disk is achieved, the flexibility of backup disaster tolerance of the cloud computing management platform is improved, and third-party backup of the virtual disk is achieved.
In some embodiments, the platform connection module 11 includes:
the information input unit is used for inputting a user name, a user password and an IP address of the cloud computing management platform to an information input interface on a client interface of the cloud computing management platform so as to be connected to the cloud computing management platform by using the user name, the user password and the IP address of the cloud computing management platform.
In some embodiments, the host determination module 12 includes:
the storage pool determining unit is used for determining the identification number of the corresponding storage pool according to the storage position of the virtual disk to be backed up and determining the target storage pool according to the identification number;
and the target host determination unit is used for determining the target host with the lowest current central processor utilization rate in the target storage pool by using a preset platform interface of the cloud computing management platform.
In some embodiments, the connection establishing module 13 includes:
the path query unit is used for querying the storage path of the virtual disk to be backed up;
and the authority acquisition unit is used for controlling the target host to be connected with the virtual disk to be backed up by using the storage path of the virtual disk to be backed up through a preset service interface of the cloud computing management platform so as to acquire the read-write authority of the virtual disk to be backed up.
In some embodiments, the disk backup module 14 includes:
the file acquisition unit is used for carrying out disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology so as to obtain a corresponding snapshot file;
a data block determination unit, configured to determine a target data block from the snapshot file;
and the data block transmission unit is used for transmitting the target data block to a target backup storage medium for backup.
In some embodiments, the data block determining unit includes:
and the target data block determining unit is used for determining all data blocks in the snapshot file as target data blocks if the current backup operation is a first backup operation, and determining incremental data blocks in the snapshot file as target data blocks if the current backup operation is a non-first backup operation.
In some specific embodiments, the virtual disk backup method further includes:
the backup tool determining unit is used for creating a tool screening instruction based on user requirements and sending the tool screening instruction to a preset third-party tool library so as to screen out the third-party backup tool from the third-party tool library.
Further, an electronic device is also disclosed in the embodiments of the present application, and fig. 5 is a block diagram of the electronic device 20 shown in the exemplary embodiments, and the contents in the diagram cannot be considered as any limitation to the scope of the application.
Fig. 5 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the virtual disk backup method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer programs 222 may further include computer programs that can be used to perform other specific tasks in addition to the computer programs that can be used to perform a virtual disk backup method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the virtual disk backup method disclosed above. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The virtual disk backup method, device, equipment and storage medium provided by the invention are described in detail above, and a specific example is applied in the text to explain the principle and implementation of the invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A virtual disk backup method is applied to a third-party backup tool and comprises the following steps:
the cloud computing management platform is connected to a preset cloud computing management platform through a preset interface;
determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform;
controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up;
and performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to acquire backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium.
2. The virtual disk backup method according to claim 1, wherein the connecting to a preset cloud computing management platform through a preset interface comprises:
inputting a user name, a user password and an IP address of the cloud computing management platform into an information input interface on a client interface of the cloud computing management platform so as to connect to the cloud computing management platform by using the user name, the user password and the IP address of the cloud computing management platform.
3. The virtual disk backup method according to claim 1, wherein the determining, by using the cloud computing management platform, a target host that meets a preset condition from a storage pool in which the virtual disk to be backed up is located includes:
determining the identification number of a storage pool corresponding to the virtual disk to be backed up according to the storage position of the virtual disk to be backed up, and determining a target storage pool according to the identification number;
and determining a target host with the lowest utilization rate of the current central processing unit in the target storage pool by using a preset platform interface of the cloud computing management platform.
4. The virtual disk backup method according to claim 1, wherein the controlling the target host to connect with the virtual disk to be backed up to obtain the read-write permission of the virtual disk to be backed up comprises:
inquiring a storage path of the virtual disk to be backed up;
and controlling the target host to be connected with the virtual disk to be backed up by using the storage path of the virtual disk to be backed up through a preset service interface of the cloud computing management platform so as to acquire the read-write permission of the virtual disk to be backed up.
5. The virtual disk backup method according to any one of claims 1 to 4, wherein performing a disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technique to obtain backup data of the disk to be backed up, and transmitting the backup data to a target backup storage medium, includes:
performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology to obtain a corresponding snapshot file;
and determining a target data block from the snapshot file, and transmitting the target data block to a target backup storage medium for backup.
6. The virtual disk backup method according to claim 5, wherein the determining a target data block from the snapshot file comprises:
and if the current backup operation is the first backup operation, all the data blocks in the snapshot file are determined as target data blocks, and if the current backup operation is the non-first backup operation, the incremental data blocks in the snapshot file are determined as the target data blocks.
7. The virtual disk backup method according to any one of claims 1 to 4, further comprising:
and creating a tool screening instruction based on user requirements, and sending the tool screening instruction to a preset third-party tool library so as to screen out the third-party backup tool from the third-party tool library.
8. A virtual disk backup apparatus, comprising:
the platform connection module is used for connecting to a preset cloud computing management platform through a preset interface;
the host determination module is used for determining a target host meeting preset conditions from a storage pool where a virtual disk to be backed up is located by using the cloud computing management platform;
the connection establishing module is used for controlling the target host to be connected with the virtual disk to be backed up so as to acquire the read-write permission of the virtual disk to be backed up;
and the disk backup module is used for performing disk snapshot on the virtual disk to be backed up by using the target host through a data block modification tracking technology so as to acquire backup data of the disk to be backed up and transmitting the backup data to a target backup storage medium.
9. An electronic device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the virtual disk backup method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the virtual disk backup method of any of claims 1 to 7.
CN202111660643.5A 2021-12-30 2021-12-30 Virtual disk backup method, device, equipment and medium Active CN114328026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111660643.5A CN114328026B (en) 2021-12-30 2021-12-30 Virtual disk backup method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111660643.5A CN114328026B (en) 2021-12-30 2021-12-30 Virtual disk backup method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114328026A true CN114328026A (en) 2022-04-12
CN114328026B CN114328026B (en) 2023-11-14

Family

ID=81018370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111660643.5A Active CN114328026B (en) 2021-12-30 2021-12-30 Virtual disk backup method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114328026B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009147A (en) * 2023-09-28 2023-11-07 新华三技术有限公司 Data backup method and device of cloud platform virtual machine and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776113A (en) * 2016-02-18 2017-05-31 新华三技术有限公司 A kind of virtual machine backup method and device
CN107544870A (en) * 2017-06-14 2018-01-05 新华三云计算技术有限公司 A kind of disk backup method of virtue machine and device
US20190220364A1 (en) * 2018-01-18 2019-07-18 EMC IP Holding Company LLC Method, device and computer program product for data backup
CN111124615A (en) * 2019-12-22 2020-05-08 北京浪潮数据技术有限公司 Virtual machine migration method, device, equipment and computer readable storage medium
CN111143133A (en) * 2019-12-31 2020-05-12 广州鼎甲计算机科技有限公司 Virtual machine backup method and backup virtual machine recovery method
CN111382008A (en) * 2018-12-28 2020-07-07 北京金山云网络技术有限公司 Virtual machine data backup method, device and system
CN112527452A (en) * 2020-12-03 2021-03-19 北京浪潮数据技术有限公司 Virtual machine migration method, device and medium across OpenStack
US11023329B1 (en) * 2012-09-05 2021-06-01 Acronis International Gmbh Systems and methods for the recovery of virtual machines
CN113672340A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Incremental backup method, system and device of virtual machine and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11023329B1 (en) * 2012-09-05 2021-06-01 Acronis International Gmbh Systems and methods for the recovery of virtual machines
CN106776113A (en) * 2016-02-18 2017-05-31 新华三技术有限公司 A kind of virtual machine backup method and device
CN107544870A (en) * 2017-06-14 2018-01-05 新华三云计算技术有限公司 A kind of disk backup method of virtue machine and device
US20190220364A1 (en) * 2018-01-18 2019-07-18 EMC IP Holding Company LLC Method, device and computer program product for data backup
CN110058959A (en) * 2018-01-18 2019-07-26 伊姆西Ip控股有限责任公司 Data back up method, equipment and computer program product
CN111382008A (en) * 2018-12-28 2020-07-07 北京金山云网络技术有限公司 Virtual machine data backup method, device and system
CN111124615A (en) * 2019-12-22 2020-05-08 北京浪潮数据技术有限公司 Virtual machine migration method, device, equipment and computer readable storage medium
CN111143133A (en) * 2019-12-31 2020-05-12 广州鼎甲计算机科技有限公司 Virtual machine backup method and backup virtual machine recovery method
CN112527452A (en) * 2020-12-03 2021-03-19 北京浪潮数据技术有限公司 Virtual machine migration method, device and medium across OpenStack
CN113672340A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Incremental backup method, system and device of virtual machine and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009147A (en) * 2023-09-28 2023-11-07 新华三技术有限公司 Data backup method and device of cloud platform virtual machine and electronic equipment

Also Published As

Publication number Publication date
CN114328026B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN107431651B (en) Life cycle management method and equipment for network service
US5859973A (en) Methods, system and computer program products for delayed message generation and encoding in an intermittently connected data communication system
US20060253848A1 (en) Method and apparatus for solutions deployment in a heterogeneous systems management environment
CN108416199B (en) User permission control method and device of application and server
CN108521444B (en) Network debugging method and device and computer readable storage medium
CN105224396A (en) A kind of business data processing method and device
CN110851303B (en) Data backup method, system and equipment
CN110890987A (en) Method, device, equipment and system for automatically creating cluster
CN107656796B (en) Virtual machine cold migration method, system and equipment
CN114826749A (en) Interface access control method, device and medium
CN104618388A (en) Quick registration and login method and corresponding reset server and information server
CN114328026B (en) Virtual disk backup method, device, equipment and medium
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN114745757B (en) Cluster switching method, device, equipment and medium
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN114244703B (en) Bare metal server checking and deploying method, device, equipment and medium
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN113256360B (en) Invoice processing control method, device, equipment and storage medium based on Ukey cabinet
CN112685613B (en) Resource package query method and device and information processing system
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN114490189A (en) Cloud platform database backup method and device, electronic equipment and storage medium
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
CN112685102A (en) Gateway plug-in hot loading method, device, equipment and medium
CN112559472A (en) File transmission method and device, computer equipment and storage medium
CN109871288A (en) Execute method, apparatus, equipment and the medium of android system order

Legal Events

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