Virtual machine backup method, device and computer equipment based on iSCSI protocol service

By using the iSCSI protocol service in a distributed block storage system, binding the backup host node and the iSCSI initiator, the problem of the backup host requiring the installation of complex VBS components in the traditional virtual machine backup method is solved, and efficient, general and compatible virtual machine backup is achieved.

CN119512813BActive Publication Date: 2025-05-23GUANGZHOU DINGJIA COMPUTER TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411465755.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-05-23
Estimated Expiration
2044-10-21

AI Technical Summary

Technical Problem

The traditional virtual machine backup method based on distributed block storage systems requires the installation of complex VBS components on the backup host, resulting in high backup threshold, low versatility and compatibility, and low backup efficiency.

Method used

The backup host is added to the distributed block storage system through the management service node, and the iSCSI protocol service is enabled in the management service node. The backup host node installs the initiator of the iSCSI protocol service, binds the backup host node with the initiator of the iSCSI protocol service in the management service node, reads the mapped data with the backup host through the iSCSI protocol service, reads the virtual machine snapshot from the distributed block storage system and performs backup operations in the backup host node.

Benefits of technology

It realizes efficient backup of virtual machines based on the iSCSI protocol without installing VBS components, supports multiple operating systems and processor architectures, improves the universality and compatibility of backup hosts, lowers the backup threshold, and improves backup efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512813B_ABST
    Figure CN119512813B_ABST
Patent Text Reader

Abstract

The present application relates to a virtual machine backup method, device, computer equipment, storage medium and computer program product based on iSCSI protocol service. The method comprises: adding a backup host to a distributed block storage system through a management service node as a backup host node in the distributed block storage system, and starting the iSCSI protocol service in the management service node; the backup host node is installed with an initiator of the iSCSI protocol service; the backup host node is bound to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service; the virtual machine snapshot pre-stored and mapped with the backup host is read from the distributed block storage system through the backup host node, and the backup operation for the virtual machine snapshot is performed in the backup host node to complete the backup of the virtual machine. The use of this method can improve the efficiency of virtual machine backup.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a virtual machine backup method, device, computer equipment, storage medium and computer program product based on iSCSI protocol service. Background Art

[0002] With the emergence of large-scale cloud computing platforms, the requirements for storage are becoming increasingly higher, and distributed storage has become the basis for supporting large-scale virtualization environments.

[0003] Distributed block storage systems provide highly available and high-performance distributed storage solutions. Currently, when implementing virtual machine backups with storage services based on distributed block storage systems, the VBS (Virtual Block Service) component of the distributed block storage system is often installed on the backup host first, and then the VBS service is used in the backup host to read and write virtual machine snapshots to implement virtual machine backups. However, this method of implementing virtual machine backups with storage services based on distributed block storage systems requires the installation of VBS components in the backup host. The installation of VBS components is relatively complex, and the threshold for virtual machine backup is relatively high. In addition, this method is limited by the support of VBS components for operating systems and CPU architectures. The operating system and CPU architecture of the backup host will also be subject to corresponding restrictions, resulting in low versatility and compatibility of the backup host.

[0004] Therefore, when implementing virtual machine backup based on a distributed block storage system in traditional technologies, there is a problem of low backup efficiency. Summary of the invention

[0005] Based on this, it is necessary to provide a virtual machine backup method, device, computer equipment, computer-readable storage medium and computer program product based on iSCSI protocol service, which can improve the backup efficiency when implementing virtual machine backup based on a distributed block storage system, in order to solve the above technical problems.

[0006] A virtual machine backup method based on iSCSI protocol service is applied to a distributed block storage system, wherein the distributed block storage system is configured with a management service node, and the method comprises:

[0007] Add the backup host to the distributed block storage system through the management service node as the backup host node in the distributed block storage system, and enable the iSCSI protocol service on the management service node; the backup host node has the initiator of the iSCSI protocol service installed;

[0008] Binding the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service;

[0009] The backup host node reads the virtual machine snapshot that is pre-stored and mapped with the backup host from the distributed block storage system, and performs a backup operation on the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

[0010] In one embodiment, before the step of reading, by the backup host node, from the distributed block storage system, a pre-stored virtual machine snapshot mapped with the backup host, the method further includes:

[0011] When the backup host node receives a virtual machine backup request, the backup host node calls a virtual machine snapshot creation interface provided by the cloud computing platform to create a virtual machine snapshot, and stores the virtual machine snapshot in the distributed block storage system.

[0012] In one of the embodiments, when the backup host node receives a virtual machine backup request, the method further includes:

[0013] Obtain backup request information corresponding to the virtual machine backup request through the backup host node;

[0014] The backup host node determines a cloud computing platform from among the candidate cloud computing platforms according to the backup request information.

[0015] In one embodiment, reading a pre-stored virtual machine snapshot mapped to a backup host from a distributed block storage system by a backup host node includes:

[0016] The backup host node calls a mapping interface in the distributed block storage system to map the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to the disk of the backup host node; the mapping interface has the function of mapping the virtual machine snapshot to the backup host;

[0017] Log in to the backup host node using the initiator of the iSCSI protocol service to access the disk of the backup host node based on the iSCSI protocol service and obtain the virtual machine snapshot.

[0018] In one embodiment, the backup host node calls a mapping interface in the distributed block storage system to map a virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node, including:

[0019] The snapshot name of the virtual machine snapshot and the host name of the backup host are passed as parameters to the mapping interface through the backup host node;

[0020] Through the mapping interface, based on the snapshot name and the host name, the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host is mapped to the disk of the backup host node.

[0021] In one embodiment, accessing a disk of a backup host node based on an iSCSI protocol service to obtain a virtual machine snapshot includes:

[0022] Access the disk list of the backup host node through the backup host node based on the iSCSI protocol service;

[0023] Use the backup host node to identify the disk corresponding to the virtual machine snapshot in the disk list.

[0024] A virtual machine backup device based on iSCSI protocol service is applied to a distributed block storage system, wherein the distributed block storage system is configured with a management service node, and the device comprises:

[0025] The enabling module is used to add the backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and enable the iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service;

[0026] A binding module, used to bind the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service;

[0027] The backup module is used to read the pre-stored virtual machine snapshot mapped with the backup host from the distributed block storage system through the backup host node, and perform a backup operation on the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

[0028] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0029] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0030] A computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0031] The above-mentioned virtual machine backup method, device, computer equipment, storage medium and computer program product based on iSCSI protocol service add the backup host to the distributed block storage system through the management service node as the backup host node in the distributed block storage system, and start the iSCSI protocol service in the management service node; the backup host node is installed with the initiator of the iSCSI protocol service; the backup host node is bound to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service; the backup host node reads the pre-stored virtual machine snapshot mapped with the backup host from the distributed block storage system, and performs the backup operation for the virtual machine snapshot in the backup host node to complete the backup of the virtual machine; in this way, it is possible to realize efficient backup of the virtual machine based on the iSCSI configuration without installing complex VBS components on the backup host, and is no longer limited by the support of the VBS component for the operating system and CPU architecture, and supports multiple operating systems and processor architectures, improves the versatility and compatibility of the backup host, and makes the virtual machine backup more convenient and efficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 An application environment diagram of a virtual machine backup method based on iSCSI protocol service in one embodiment;

[0034] Figure 2 A flowchart of a virtual machine backup method based on iSCSI protocol service in one embodiment;

[0035] Figure 3 A schematic diagram of using a backup host as a node of FusionStorage in an embodiment;

[0036] Figure 4 A schematic diagram of a backup host invoking a virtual machine creation interface of a cloud computing platform in one embodiment;

[0037] Figure 5 A schematic diagram of a backup host calling a mapping interface to obtain a virtual machine snapshot in an embodiment;

[0038] Figure 6A schematic diagram of using an iSCSI initiator to discover a virtual machine snapshot mapped to a disk of a backup host in one embodiment;

[0039] Figure 7 A schematic diagram of a backup host reading a mapped virtual machine snapshot to complete backup in an embodiment;

[0040] Figure 8 A flowchart of a virtual machine backup method based on iSCSI protocol service in another embodiment;

[0041] Fig. 9 A structural block diagram of a virtual machine backup device based on iSCSI protocol service in one embodiment;

[0042] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0044] The virtual machine backup method based on iSCSI protocol service provided in the embodiment of the present application can be applied to Figure 1 The distributed block storage system 102 shown is configured with a management service node. Figure 1 The distributed block storage system 102 in the example may refer to FusionStorage (a distributed storage system that can be horizontally expanded on a large scale). Figure 1 The management service node configured in the distributed block storage system 102 may be FSM (FusionStorage Manager, a management module of FusionStorage, which has functions such as providing alarm, monitoring, logging, and configuration) in FusionStorage.

[0045] In an exemplary embodiment, Figure 2 As shown, a virtual machine backup method based on iSCSI protocol service is provided, and the method is applied to Figure 1 The distributed block storage system 102 in FIG. 1 is taken as an example to illustrate, including the following steps 202 to 206. Among them:

[0046] Step 202: add the backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and enable the iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service.

[0047] The backup host may refer to a host used to back up a virtual machine.

[0048] The management service node may refer to the FSM module in FusionStorage.

[0049] iSCSI stands for Internet Small Computer System Interface. iSCSI protocol is a network protocol that allows SCSI commands and data to be encapsulated in IP protocol for transmission, so that storage devices can communicate over IP networks. SCSI (Small Computer System Interface) is a standard interface for connecting computers and their peripheral devices.

[0050] Optionally, by adding a backup host as a node of the distributed block storage system in the management service node of the distributed block storage system, and enabling the iSCSI protocol service in the management service node of the distributed block storage system, wherein an iSCSI initiator is installed in the backup host, the iSCSI initiator is used to initiate an iSCSI connection and access an iSCSI target, and the iSCSI target is used to accept an iSCSI connection request and provide storage resources.

[0051] For example, in FusionStorage, use FSM to add the backup host to FusionStorage, so that the backup host becomes a node of FusionStorage. At the same time, the iSCSI service needs to be enabled on the backup host.

[0052] Step 204: Bind the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service.

[0053] The data mapped with the backup host may refer to data bound with the host name of the backup host.

[0054] Optionally, by binding the backup host and the iSCSI initiator in the management service node of the distributed block storage system, the backup host can read data mapped with the backup host through the iSCSI initiator, for example, data corresponding to the virtual machine snapshot.

[0055] For example, bind the backup host and the iSCSI initiator in the FusionStorage FSM. After the volume is mapped to the backup host, the iSCSI initiator can read the corresponding volume.

[0056] In order to facilitate the understanding of those skilled in the art, Figure 3 A schematic diagram of using a backup host as a node of FusionStorage is provided as an example. When using the backup host as a node of FusionStorage, the iSCSI service needs to be enabled through FSM, the iSCSI initiator needs to be installed in the backup host, and the iSCSI service needs to be enabled in the backup host.

[0057] Step 206: read the pre-stored virtual machine snapshot mapped with the backup host from the distributed block storage system through the backup host node, and perform a backup operation on the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

[0058] The virtual machine snapshot may be a snapshot corresponding to the virtual machine that needs to be backed up and pre-stored in the distributed block storage system.

[0059] Optionally, a virtual machine snapshot pre-stored and mapped with the backup host is read from the distributed block storage system by the backup host node, and then a backup operation for the virtual machine snapshot is performed in the backup host node to complete the backup of the virtual machine.

[0060] For example, the backup host accesses the virtual machine snapshot that needs to be backed up stored in the distributed block storage system through the iSCSI protocol. After reading the virtual machine snapshot, the backup host backs up the virtual machine.

[0061] In the above-mentioned virtual machine backup method based on iSCSI protocol service, the backup host is added to the distributed block storage system through the management service node as the backup host node in the distributed block storage system, and the iSCSI protocol service is started in the management service node; the backup host node is installed with the initiator of the iSCSI protocol service; the backup host node is bound to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service; the pre-stored virtual machine snapshot mapped with the backup host is read from the distributed block storage system through the backup host node, and the backup operation for the virtual machine snapshot is performed in the backup host node to complete the backup of the virtual machine; in this way, the efficient backup of the virtual machine can be achieved based on the iSCSI configuration without installing complex VBS components on the backup host, and it is no longer limited by the support of the VBS component for the operating system and CPU architecture, and it supports multiple operating systems and processor architectures, improves the versatility and compatibility of the backup host, and makes the virtual machine backup more convenient and efficient.

[0062] In an exemplary embodiment, before the step of reading a pre-stored virtual machine snapshot mapped to a backup host from a distributed block storage system through a backup host node, the method further includes: when the backup host node receives a virtual machine backup request, the backup host node calls a virtual machine snapshot creation interface provided by a cloud computing platform to create a virtual machine snapshot, and stores the virtual machine snapshot in the distributed block storage system.

[0063] The virtual machine backup request may be a request initiated by a user account to back up any virtual machine.

[0064] The cloud computing platform provides an interface for operating virtual machines for the backup host, so the backup host can complete the virtual machine snapshot creation operation by calling the interface for operating virtual machines provided by the cloud computing platform.

[0065] The virtual machine snapshot creation interface may be an interface having a virtual machine snapshot creation function.

[0066] Optionally, the user account initiates a backup for the virtual machine, thereby triggering a virtual machine backup request. When the backup host node receives the virtual machine backup request, the backup host node calls the virtual machine snapshot creation interface provided by the cloud computing platform to create a virtual machine snapshot and stores the virtual machine snapshot in the distributed block storage system.

[0067] For example, the user selects virtual machine vm1 in the backup software and then backs up virtual machine vm1. At this time, the backup software will call the virtual machine snapshot creation interface of the cloud computing platform to create a snapshot for virtual machine vm1.

[0068] In order to facilitate the understanding of those skilled in the art, Figure 4 A schematic diagram of a backup host calling a virtual machine creation interface of a cloud computing platform is exemplarily provided, wherein the backup host calls the virtual machine creation interface of the cloud computing platform to create a snapshot for the virtual machine vm1. In actual applications, since FusionStorage is used as storage, the snapshot of the virtual machine vm1 created by the virtual machine creation interface of the cloud computing platform is stored in FusionStorage together with the virtual machine vm1.

[0069] In this embodiment, when the backup host node receives a virtual machine backup request, the backup host node calls the virtual machine snapshot creation interface provided by the cloud computing platform to create a virtual machine snapshot, and stores the virtual machine snapshot in the distributed block storage system, so that the virtual machine snapshot can be created quickly.

[0070] In an exemplary embodiment, when the backup host node receives a virtual machine backup request, the method also includes: obtaining backup request information corresponding to the virtual machine backup request through the backup host node; and determining a cloud computing platform from among the candidate cloud computing platforms based on the backup request information through the backup host node.

[0071] The backup request information may be request information carried by the virtual machine backup request, for example, the name of the backup software or the name of the cloud computing platform.

[0072] The candidate cloud computing platform may be a cloud computing platform accessible to the backup host.

[0073] It should be noted that in actual applications, there may be candidate cloud computing platforms C1 and C2. Different platforms have different corresponding virtual machine snapshot creation interfaces. However, for a specific cloud computing platform backup software, the virtual machine snapshot creation interface called can be determined. Therefore, by parsing the backup request information, it can be determined that the cloud computing platform to be accessed is C1 or C2.

[0074] Optionally, the backup request information corresponding to the virtual machine backup request is obtained through the backup host node, and the backup request information is parsed through the backup host node, so as to determine the cloud computing platform among the candidate cloud computing platforms according to the platform information carried in the backup request information.

[0075] In this embodiment, when the backup host node receives a virtual machine backup request, the backup host node obtains backup request information corresponding to the virtual machine backup request, and the backup host node determines the cloud computing platform from various candidate cloud computing platforms based on the backup request information. The cloud computing platform to be called can be determined quickly and accurately, thereby facilitating the rapid creation of virtual machine snapshots.

[0076] In an exemplary embodiment, a virtual machine snapshot pre-stored and mapped with a backup host is read from a distributed block storage system by a backup host node, including: calling a mapping interface in the distributed block storage system by the backup host node to map the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node; the mapping interface has a function of mapping the virtual machine snapshot to the backup host; and the backup host node uses an initiator of an iSCSI protocol service to log in to access the disk of the backup host node based on the iSCSI protocol service to obtain the virtual machine snapshot.

[0077] The mapping interface may be a functional interface provided by FusionStorage, which has a function of mapping a virtual machine snapshot to a backup host.

[0078] The disk of the backup host node may refer to a disk of the backup host.

[0079] Optionally, the backup host calls a mapping interface in the distributed block storage system to map a virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node. The backup host logs in using an initiator of an iSCSI protocol service to access the backup host's disk based on the iSCSI protocol to obtain the virtual machine snapshot.

[0080] In actual applications, before backup, use the iSCSI initiator to log in to the backup host and record the disk list disks1. After mapping through the mapping interface, FusionStorage will mount the virtual machine snapshot to be backed up. At this time, use the iSCSI initiator to log in to the backup host again. At this time, the disk list disks2 has one more disk than disks1. This disk is the disk of the virtual machine to be backed up.

[0081] In order to facilitate the understanding of those skilled in the art, Figure 5 A schematic diagram of a backup host calling a mapping interface to obtain a virtual machine snapshot is exemplarily provided, wherein the backup host calls the mapping interface of FusionStorage based on the iSCSI protocol to map the snapshot of the virtual machine vm1 to the disk of the backup host. After the mapping is completed, the disk corresponding to the mapped snapshot of the virtual machine vm1 can be accessed by logging in to the backup host using the iSCSI initiator.

[0082] In this embodiment, the backup host node calls the mapping interface in the distributed block storage system, and maps the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to the disk of the backup host node; the mapping interface has the function of mapping the virtual machine snapshot to the backup host; the backup host node uses the initiator of the iSCSI protocol service to log in, so as to access the disk of the backup host node based on the iSCSI protocol service to obtain the virtual machine snapshot; in this way, the snapshot of the virtual machine can be quickly obtained based on the more extensive iSCSI protocol, and the efficient transmission of the virtual machine snapshot can be achieved.

[0083] In an exemplary embodiment, a mapping interface in a distributed block storage system is called by a backup host node to map a virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node, including: passing a snapshot name of the virtual machine snapshot and a host name of the backup host as parameters to the mapping interface by the backup host node; and mapping the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node based on the snapshot name and the host name by the mapping interface.

[0084] Optionally, the backup host passes the snapshot name of the virtual machine snapshot to be mapped and the host name of the backup host as parameters to the mapping interface provided by the distributed block storage system, and maps the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to the disk of the backup host node based on the snapshot name and the host name through the mapping interface provided by the distributed block storage system.

[0085] In this embodiment, the snapshot name of the virtual machine snapshot and the host name of the backup host are passed as parameters to the mapping interface through the backup host node; the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host is mapped to the disk of the backup host node based on the snapshot name and the host name through the mapping interface; in this way, based on the binding relationship between the backup host and the virtual machine snapshot, the virtual machine snapshot for the backup host can be quickly and accurately determined, so that the backup of the virtual machine can be quickly realized.

[0086] In an exemplary embodiment, the disk of the backup host node is accessed based on the iSCSI protocol service to obtain a virtual machine snapshot, including: accessing the disk list of the backup host node based on the iSCSI protocol service through the backup host node; determining the disk corresponding to the virtual machine snapshot in the disk list through the backup host node.

[0087] Optionally, the backup host accesses a disk list of the backup host node based on an iSCSI protocol service, and the backup host then determines a disk corresponding to the virtual machine snapshot in the disk list.

[0088] In order to facilitate the understanding of those skilled in the art, Figure 6 An exemplary diagram is provided for using an iSCSI initiator to discover a virtual machine snapshot mapped to a disk of a backup host, wherein before backup, the iSCSI initiator is used to log in to the backup host, and the disk list disks1 at this time is recorded. After mapping, FusionStorage will mount the virtual machine snapshot to be backed up. At this time, the iSCSI initiator is used to log in to the backup host again. At this time, the disk list disks2 will have one more disk than disks1. This disk is the disk corresponding to the snapshot of the virtual machine vm1 to be backed up. Figure 7 A schematic diagram of a backup host reading a mapped virtual machine snapshot to complete the backup is also exemplarily provided, wherein a read-write interface of the backup host reads the mapped virtual machine snapshot to complete the backup of the virtual machine.

[0089] In this embodiment, the backup host node accesses the disk list of the backup host node based on the iSCSI protocol service, and then the backup host node determines the disk corresponding to the virtual machine snapshot in the disk list. The disk of the virtual machine snapshot can be quickly determined in the disk list of the backup host, thereby quickly and accurately backing up the virtual machine.

[0090] In another embodiment, Figure 8 As shown, a virtual machine backup method based on iSCSI protocol service is provided, and the method is applied to Figure 1 The distributed block storage system 102 in FIG. 1 is used as an example to illustrate the method, which includes the following steps:

[0091] Step 802: Add a backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and enable iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service.

[0092] Step 804: Bind the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service.

[0093] Step 806: The backup host node calls a mapping interface in the distributed block storage system to map a virtual machine snapshot pre-stored in the distributed block storage system and established with the backup host to a disk of the backup host node; the mapping interface has a function of mapping the virtual machine snapshot to the backup host.

[0094] Step 808: Log in through the backup host node using the initiator of the iSCSI protocol service, so as to access the disk list of the backup host node through the backup host node based on the iSCSI protocol service.

[0095] Step 810: Determine, through the backup host node, the disk corresponding to the virtual machine snapshot in the disk list.

[0096] Step 812: Execute a backup operation for the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

[0097] It should be noted that the specific definition of the above steps can refer to the specific definition of a virtual machine backup method based on iSCSI protocol service mentioned above.

[0098] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0099] Based on the same inventive concept, the embodiment of the present application also provides a virtual machine backup device based on iSCSI protocol service for implementing the virtual machine backup method based on iSCSI protocol service involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more virtual machine backup devices based on iSCSI protocol service provided below can refer to the limitations of the virtual machine backup method based on iSCSI protocol service above, and will not be repeated here.

[0100] In an exemplary embodiment, Fig. 9 As shown, a virtual machine backup device based on iSCSI protocol service is provided, including: an opening module 902, a binding module 909 and a backup module 906, wherein:

[0101] The start module 902 is used to add the backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and start the iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service;

[0102] The binding module 904 is used to bind the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service;

[0103] The backup module 906 is used to read the pre-stored virtual machine snapshot mapped with the backup host from the distributed block storage system through the backup host node, and perform a backup operation on the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

[0104] In one of the embodiments, the device also includes: a creation module, which is used to create a virtual machine snapshot by calling a virtual machine snapshot creation interface provided by the cloud computing platform through the backup host node when the backup host node receives a virtual machine backup request, and store the virtual machine snapshot in a distributed block storage system.

[0105] In one of the embodiments, a module is created for obtaining backup request information corresponding to a virtual machine backup request through a backup host node; and determining a cloud computing platform from among candidate cloud computing platforms through the backup host node according to the backup request information.

[0106] In one of the embodiments, the backup module 906 is specifically used to call a mapping interface in a distributed block storage system through a backup host node to map a virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host to a disk of the backup host node; the mapping interface has a function of mapping the virtual machine snapshot to the backup host; the backup host node uses an initiator of an iSCSI protocol service to log in to access the disk of the backup host node based on the iSCSI protocol service to obtain a virtual machine snapshot.

[0107] In one of the embodiments, the backup module 906 is specifically used to pass the snapshot name of the virtual machine snapshot and the host name of the backup host as parameters to the mapping interface through the backup host node; through the mapping interface, based on the snapshot name and the host name, the virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host is mapped to the disk of the backup host node.

[0108] In one embodiment, the backup module 906 is specifically configured to access the disk list of the backup host node based on the iSCSI protocol service through the backup host node; and determine the disk corresponding to the virtual machine snapshot in the disk list through the backup host node.

[0109] Each module in the above-mentioned virtual machine backup device based on iSCSI protocol service can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0110] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.10As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store virtual machine backup data based on iSCSI protocol services. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a virtual machine backup method based on iSCSI protocol services is implemented.

[0111] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0112] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for backing up a virtual machine based on an iSCSI protocol service. The steps of the method for backing up a virtual machine based on an iSCSI protocol service here may be the steps of the method for backing up a virtual machine based on an iSCSI protocol service in each of the above-mentioned embodiments.

[0113] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the virtual machine backup method based on iSCSI protocol service. The steps of the virtual machine backup method based on iSCSI protocol service here can be the steps of the virtual machine backup method based on iSCSI protocol service in each of the above embodiments.

[0114] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the processor executes the steps of the virtual machine backup method based on iSCSI protocol service. The steps of the virtual machine backup method based on iSCSI protocol service here can be the steps of the virtual machine backup method based on iSCSI protocol service in each of the above embodiments.

[0115] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0116] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0117] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A virtual machine backup method based on iSCSI protocol service, characterized in that: Applied to a distributed block storage system, the distributed block storage system is configured with a management service node, the method comprises: Adding a backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and starting the iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service; Binding the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read data mapped with the backup host through the initiator of the iSCSI protocol service; When the backup host node receives a virtual machine backup request, the backup host node calls a virtual machine snapshot creation interface provided by the cloud computing platform to create the virtual machine snapshot, and stores the virtual machine snapshot in the distributed block storage system; Reading the virtual machine snapshot pre-stored in the distributed block storage system and establishing the mapping with the backup host through the backup host node specifically includes: calling the mapping interface in the distributed block storage system through the backup host node to map the virtual machine snapshot pre-stored in the distributed block storage system and establishing the mapping with the backup host to the disk of the backup host node; the mapping interface has the function of mapping the virtual machine snapshot to the backup host; logging in through the backup host node using the initiator of the iSCSI protocol service to access the disk of the backup host node based on the iSCSI protocol service to obtain the virtual machine snapshot; A backup operation for the virtual machine snapshot is performed in the backup host node to complete the backup of the virtual machine.

2. The method according to claim 1, characterized in that In the case where the backup host node receives a virtual machine backup request, the method further includes: Acquire backup request information corresponding to the virtual machine backup request through the backup host node; The backup host node determines the cloud computing platform from among the candidate cloud computing platforms according to the backup request information.

3. The method according to claim 1, characterized in that The calling of the mapping interface in the distributed block storage system by the backup host node to map the virtual machine snapshot pre-stored in the distributed block storage system and established with the backup host to the disk of the backup host node includes: The backup host node passes the snapshot name of the virtual machine snapshot and the host name of the backup host as parameters to the mapping interface; The virtual machine snapshot pre-stored in the distributed block storage system and mapped with the backup host is mapped to the disk of the backup host node based on the snapshot name and the host name through the mapping interface.

4. The method according to claim 1, characterized in that: The accessing the disk of the backup host node based on the iSCSI protocol service to obtain the virtual machine snapshot includes: Accessing the disk list of the backup host node through the backup host node based on the iSCSI protocol service; The backup host node determines the disk corresponding to the virtual machine snapshot in the disk list.

5. A virtual machine backup device based on iSCSI protocol service, characterized in that: Applied to a distributed block storage system, the distributed block storage system is configured with a management service node, the device comprises: An enabling module, used to add a backup host to the distributed block storage system through the management service node as a backup host node in the distributed block storage system, and enable an iSCSI protocol service on the management service node; the backup host node is installed with an initiator of the iSCSI protocol service; A binding module is used to bind the backup host node to the initiator of the iSCSI protocol service in the management service node, so as to read the data mapped with the backup host through the initiator of the iSCSI protocol service; when the backup host node receives a virtual machine backup request, the backup host node calls the virtual machine snapshot creation interface provided by the cloud computing platform to create the virtual machine snapshot, and stores the virtual machine snapshot in the distributed block storage system; The backup module is used to read the virtual machine snapshot pre-stored in the distributed block storage system and the mapping established with the backup host through the backup host node, specifically including: calling the mapping interface in the distributed block storage system through the backup host node, mapping the virtual machine snapshot pre-stored in the distributed block storage system and the mapping established with the backup host to the disk of the backup host node; the mapping interface has the function of mapping the virtual machine snapshot to the backup host; logging in through the backup host node using the initiator of the iSCSI protocol service to access the disk of the backup host node based on the iSCSI protocol service to obtain the virtual machine snapshot; performing a backup operation for the virtual machine snapshot in the backup host node to complete the backup of the virtual machine.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Storage device, method and system for realizing disaster recovery backup

    CN117950915A

  • Backup of virtual machines from storage snapshot

    US10481984B1