CN111382008B - Virtual machine data backup method, device and system - Google Patents

Virtual machine data backup method, device and system Download PDF

Info

Publication number
CN111382008B
CN111382008B CN201811628361.5A CN201811628361A CN111382008B CN 111382008 B CN111382008 B CN 111382008B CN 201811628361 A CN201811628361 A CN 201811628361A CN 111382008 B CN111382008 B CN 111382008B
Authority
CN
China
Prior art keywords
backup
backed
disk
identifier
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811628361.5A
Other languages
Chinese (zh)
Other versions
CN111382008A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811628361.5A priority Critical patent/CN111382008B/en
Publication of CN111382008A publication Critical patent/CN111382008A/en
Application granted granted Critical
Publication of CN111382008B publication Critical patent/CN111382008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the invention provides a backup method, a device and a system for virtual machine data, which are applied to a backup server, wherein a virtual machine is established in a host machine, and the virtual machine is configured with at least one disk; the method comprises the following steps: acquiring a backup request, wherein the backup request carries a disk identifier to be backed up; transmitting the disc identification to be backed up to a storage server, so that the storage server determines a target host machine where the virtual machine to be backed up belongs according to the disc identification to be backed up and the corresponding relation among the disc, the virtual machine and the host machine stored in advance, and transmitting the target host machine identification to the backup server; and receiving the target host machine identification, and sending a backup instruction to a host machine corresponding to the target host machine identification, wherein the host machine receives the backup instruction and backs up the data of the disk corresponding to the disk identification to be backed up. When the virtual machine data is backed up, the influence of the coupling relation between the disk and the corresponding virtual machine can be avoided, and the problem that the backup error occurs when the virtual machine data is backed up is avoided.

Description

Virtual machine data backup method, device and system
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, and a system for backing up virtual machine data.
Background
The cloud service is used as a simple, efficient, safe and reliable computing service with elastically scalable processing capacity, is a service platform for providing comprehensive service capacity for various Internet users, can reduce the difficulty and the overall cost of developing operation and maintenance, provides Internet-based infrastructure service for users, and has a very wide application prospect.
The cloud service cluster can be virtualized into a plurality of virtual machines with configurable performances through a virtualization technology, a user can rent the virtual machines to realize internet service, and the user needs to back up virtual machine data during the use of the virtual machines, so that the data recovery can be performed by using the backup data under the condition that the virtual machines fail and the like, and the data security of the user is ensured.
In the current cloud service, a virtual machine is used as a minimum data backup unit when data is backed up, but one virtual machine can be correspondingly provided with at least one magnetic disk for storing data, and because the magnetic disk has a coupling relationship with the corresponding virtual machine, when the magnetic disk is required to be increased or decreased by the virtual machine, the influence of the coupling relationship between the magnetic disk and the corresponding virtual machine is influenced, and backup errors are easily caused when the data of the virtual machine is backed up.
Disclosure of Invention
The embodiment of the invention aims to provide a virtual machine data backup method, device and system, so as to avoid the influence of the coupling relation between a disk and a corresponding virtual machine and avoid the problem of backup errors when virtual machine data is backed up. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for backing up virtual machine data, which is applied to a backup server, where a virtual machine is created in a host machine, and the virtual machine configures at least one disk; the method comprises the following steps:
obtaining a backup request, wherein the backup request carries a disk identifier to be backed up;
the disc identification to be backed up is sent to a storage server, so that the storage server determines a target host where the virtual machine to which the disc to be backed up belongs is located according to the disc identification to be backed up and the corresponding relation among the prestored disc, the virtual machine and the host, and sends the target host identification to the backup server;
and receiving the target host machine identification, and sending a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, so that the host machine backs up the data of the disk corresponding to the disk identification to be backed up when receiving the backup instruction.
Optionally, the step of sending the disc identifier to be backed up to the storage server includes:
the disc identification to be backed up is sent to a management server, so that the management server sends the disc identification to be backed up to the storage server, the storage server receives the disc identification to be backed up, the target host identification is determined according to the corresponding relation stored in advance by the disc identification to be backed up and the storage server, and the target host identification is sent to the management server;
the step of receiving the target host identifier includes:
and receiving the target host identification sent by the management server.
Optionally, the method further comprises:
receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up;
and recording a backup result of the backup request based on the disk identification to be backed up.
In a second aspect, an embodiment of the present invention provides a method for backing up virtual machine data, applied to a storage server, where the virtual machine is created in a host machine, and the virtual machine configures at least one disk; the method comprises the following steps:
Receiving a disc identifier to be backed up sent by a backup server when a backup request is acquired, wherein the backup request carries the disc identifier to be backed up;
determining a target host machine identifier of a virtual machine to which the disk to be backed up belongs according to a pre-stored corresponding relation among the disk, the virtual machine and the host machine and the disk identifier to be backed up;
and sending the target host identifier to the backup server so that the backup server sends a backup instruction to a host corresponding to the target host identifier, wherein the backup instruction carries the disc identifier to be backed up, and when the host receives the backup instruction, the host backs up the data of the disc corresponding to the disc identifier to be backed up.
Optionally, the step of receiving the disc identifier to be backed up sent by the backup server when the backup request is acquired includes:
receiving the disc identification to be backed up sent by the management server, wherein the disc identification to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the step of sending the target host identifier to the backup server includes:
And sending the target host machine identification to the management server so that the management server receives the target host machine identification and sends the target host machine identification to the backup server.
In a third aspect, an embodiment of the present invention provides a method for backing up virtual machine data, which is applied to a host, where the virtual machine is created in the host, and the virtual machine configures at least one disk; the method comprises the following steps:
receiving a backup instruction, wherein the backup instruction carries a disk identifier to be backed up, the backup instruction is sent after a backup server obtains a target host identifier from a storage server, the target host identifier is determined by the storage server according to the disk identifier to be backed up and the corresponding relation of a prestored disk, virtual machine and host and is sent to the backup server, the disk identifier to be backed up is sent to the storage server when the backup server obtains a backup request, and the backup request carries the disk identifier to be backed up;
and determining a disk corresponding to the disk identifier to be backed up, and backing up the data of the disk.
Optionally, proxy service is installed on the host;
the step of determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk comprises the following steps:
and determining a disk corresponding to the disk identifier to be backed up through the proxy service, and backing up the data stored in the disk.
Optionally, the method further comprises:
and when the data backup is completed, sending a backup completion message to the backup server so that the backup server receives the backup completion message, and recording a backup result of the backup request based on the disk identification to be backed up, wherein the backup completion message carries the disk identification to be backed up.
In a fourth aspect, an embodiment of the present invention provides a backup device for virtual machine data, which is applied to a backup server, where the virtual machine is created in a host machine, and the virtual machine configures at least one disk; the device comprises:
the backup request acquisition module is used for acquiring a backup request, wherein the backup request carries a disk identifier to be backed up;
the disk identification sending module is used for sending the disk identification to be backed up to the storage server so that the storage server can determine a target host where the virtual machine of the disk to be backed up is located according to the corresponding relation between the disk identification to be backed up and the storage disk, the virtual machine and the host, and send the target host identification to the backup server;
The host machine identification receiving module is used for receiving the target host machine identification and sending a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, so that the host machine backs up the data stored in the disk corresponding to the disk identification to be backed up when receiving the backup instruction.
Optionally, the disk identifier sending module includes:
the disk identifier sending unit is used for sending the disk identifier to be backed up to a management server, so that the management server sends the disk identifier to be backed up to the storage server, the storage server receives the disk identifier to be backed up, the target host identifier is determined according to the corresponding relation between the disk identifier to be backed up and the storage server stored in advance, and the target host identifier is sent to the management server;
the host identity receiving module comprises:
and the host identity receiving unit is used for receiving the target host identity sent by the management server.
Optionally, the apparatus further includes:
the information receiving module is used for receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up;
And the result recording module is used for recording the backup result of the backup request based on the disk identification to be backed up.
In a fifth aspect, an embodiment of the present invention provides a backup device for virtual machine data, applied to a storage server, where the virtual machine is created in a host machine, and the virtual machine configures at least one disk; the device comprises:
the disk identification acquisition module is used for receiving a disk identification to be backed up sent by the backup server when a backup request is acquired, wherein the backup request carries the disk identification to be backed up;
the host machine identification searching module is used for determining a target host machine identification of the virtual machine to which the disk to be backed up belongs according to the corresponding relation among the prestored disk, the virtual machine and the host machine and the disk identification to be backed up;
the host machine identification sending module is used for sending the target host machine identification to the backup server so that the backup server sends a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, and when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up.
Optionally, the disk identifier obtaining module includes:
the disk identifier obtaining unit is configured to receive the disk identifier to be backed up sent by the management server, where the disk identifier to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the host identity sending module comprises:
and the host machine identification transmitting unit is used for transmitting the target host machine identification to the management server so that the management server receives the target host machine identification and transmits the target host machine identification to the backup server.
In a sixth aspect, an embodiment of the present invention provides a backup device for virtual machine data, which is applied to a host, where the virtual machine is created in the host, and the virtual machine configures at least one disk; the device comprises:
the backup instruction receiving module is used for receiving a backup instruction, wherein the backup instruction is sent after a backup server obtains a target host machine identifier from a storage server, the target host machine identifier is determined by the storage server according to a disc identifier to be backed up and a corresponding relation among a prestored disc, a virtual machine and a host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server when the backup server obtains a backup request, the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up;
And the data backup module is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk.
Optionally, proxy service is installed on the host;
the data backup module comprises:
and the data backup unit is used for determining the disk corresponding to the disk identifier to be backed up through the proxy service and backing up the data stored in the disk.
Optionally, the apparatus further includes:
and the message sending module is used for sending a backup completion message to the backup server when the data backup is completed, so that the backup server receives the backup completion message and records the backup result of the backup request based on the disk identifier to be backed up, wherein the backup completion message carries the disk identifier to be backed up.
In a seventh aspect, an embodiment of the present invention provides a backup system for virtual machine data, where the system includes a backup server, a storage server, and a host, where the virtual machine is created in the host, and where the virtual machine configures at least one disk;
the backup server is used for acquiring a backup request, sending a disk identifier to be backed up to the storage server, acquiring a target host machine identifier from the storage server, and sending a backup instruction to a host machine corresponding to the target host machine identifier, wherein the backup request carries the disk identifier to be backed up, and the backup instruction carries the disk identifier to be backed up;
The storage server is used for storing the corresponding relation among the disk, the virtual machine and the host machine, determining a target host machine where the virtual machine of the disk to be backed up belongs according to the disk identification to be backed up and the corresponding relation when the disk identification to be backed up is obtained, and sending the target host machine identification to the backup server;
and the host machine is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk when receiving the backup instruction.
Optionally, the system further comprises a management server;
the backup server is specifically configured to obtain a backup request, and send the disc identifier to be backed up to the management server;
the management server is used for receiving the disc identification to be backed up and sending the disc identification to be backed up to the storage server; receiving the target host machine identification and sending the target host machine identification to the backup server;
the storage server is specifically configured to receive the disc identifier to be backed up, determine the target host identifier according to the disc identifier to be backed up and the correspondence stored in advance by the storage server, and send the target host identifier to the management server.
Optionally, proxy service is installed on the host;
and the proxy service is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data stored in the disk when the backup instruction is received.
Optionally, the method is characterized in that,
the host machine is further configured to send a backup completion message to the backup server when the data backup is completed, where the backup completion message carries the disc identifier to be backed up;
and the backup server is further configured to record a backup result of the backup request based on the disc identifier to be backed up when the backup completion message is received.
In an eighth aspect, an embodiment of the present invention provides a backup server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the first virtual machine data backup method step when executing the program stored in the memory.
In a ninth aspect, an embodiment of the present invention provides a storage server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and the processor is used for realizing the second virtual machine data backup method step when executing the program stored in the memory.
In a tenth aspect, an embodiment of the present invention provides a host, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the third step of the backup method of the virtual machine data when executing the program stored in the memory.
In an eleventh aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements any one of the steps of the virtual machine data backup method described above.
In the scheme provided by the embodiment of the invention, the data backup system comprises a backup server, a storage server and a host machine, wherein a virtual machine is created in the host machine, and the virtual machine is configured with at least one disk. When a backup request is acquired, the backup server sends a disk identifier to be backed up to the storage server, acquires a target host machine identifier from the storage server, and further sends a backup instruction to a host machine corresponding to the target host machine identifier, wherein the backup request carries the disk identifier to be backed up, and the backup instruction carries the disk identifier to be backed up. And the storage server stores the corresponding relation among the disk, the virtual machine and the host, determines the target host identifier according to the disk identifier to be backed up and the corresponding relation when acquiring the disk identifier to be backed up, and then sends the target host identifier to the backup server. When receiving the backup instruction, the host determines the disk corresponding to the disk identifier to be backed up, and backs up the data of the disk. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a virtual machine data backup system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another virtual machine data backup system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a first method for backing up virtual machine data according to an embodiment of the present invention;
FIG. 4 is a flowchart of a second method for backing up virtual machine data according to an embodiment of the present invention;
FIG. 5 is a flowchart of a third method for backing up virtual machine data according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first virtual machine data backup device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second virtual machine data backup device according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a third virtual machine data backup device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a backup server according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a storage server according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a host according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to avoid the influence of the coupling relation between the disk and the corresponding virtual machine and avoid the problem of backup errors during the data backup of the virtual machine, the embodiment of the invention provides a method, a device, a system, a backup server, a storage server, a host and a computer readable storage medium for backing up the data of the virtual machine.
In order to facilitate understanding of the solution provided by the embodiment of the present invention, the following first describes a virtual machine data backup system provided by the embodiment of the present invention.
As shown in fig. 1, a backup system of virtual machine data, the system includes a backup server 110, a storage server 120, a host machine 130, a virtual machine 140 is created in the host machine 130, and the virtual machine 140 configures at least one disk 150;
the backup server 110 is configured to obtain a backup request, send a disc identifier to be backed up to the storage server 120, obtain a target host identifier from the storage server 120, and send a backup instruction to a host 130 corresponding to the target host identifier, where the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up;
the storage server 120 is configured to store a correspondence between a disk, a virtual machine, and a host machine, determine, when the disk identifier to be backed up is obtained, a target host machine where the virtual machine to which the disk to be backed up belongs is located according to the disk identifier to be backed up and the correspondence, and send the target host machine identifier to the backup server 110;
And the host 130 is configured to determine, when receiving the backup instruction, a disk 140 corresponding to the disk identifier to be backed up, and backup data of the disk 140.
In the scheme provided by the embodiment of the invention, the backup system of the virtual machine data comprises a backup server, a storage server and a host machine, wherein the virtual machine is built in the host machine, and the virtual machine is configured with at least one disk. When a backup request is acquired, the backup server sends a disk identifier to be backed up to the storage server, acquires a target host machine identifier from the storage server, and further sends a backup instruction to a host machine corresponding to the target host machine identifier, wherein the backup request carries the disk identifier to be backed up, and the backup instruction carries the disk identifier to be backed up. And the storage server stores the corresponding relation among the disk, the virtual machine and the host machine, determines a target host machine where the virtual machine of the disk to be backed up is located according to the disk identification to be backed up and the corresponding relation when the disk identification to be backed up is obtained, and then sends the target host machine identification to the backup server. When receiving the backup instruction, the host determines the disk corresponding to the disk identifier to be backed up, and backs up the data of the disk. In the virtual machine data backup system, when the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by virtual machine data backup is avoided.
In the above data backup system, when data backup is needed, the backup server may obtain a backup request, where the backup request carries a disc identifier to be backed up. In one embodiment, when a user needs to perform data backup, a backup request can be sent in a preset mode, and the backup server can acquire the backup request. The preset mode may be to press a preset button, call a preset interface, etc., which is not limited herein.
In another embodiment, the data backup system may perform a regular data backup according to a preset time period, for example, may perform a data backup every hour, every day, every 12 hours, etc., so that when the current time reaches a time corresponding to the preset time period, the backup server may obtain a backup request.
Of course, since there are generally multiple virtual machines and multiple disks in the data backup system, it is reasonable that the data backup system also sets different preset time periods for different disks according to factors such as the kind of data stored in the disks.
When the backup server obtains the backup request, in order to determine the disk needing to be backed up for data, the disk identifier to be backed up may be sent to the storage server. The storage server may store the corresponding relation between the disk, the virtual machine and the host in advance, and further determine, according to the identifier of the disk to be backed up and the corresponding relation, the target host where the virtual machine to which the disk to be backed up belongs is located.
In one embodiment, the correspondence may be a correspondence between a disk identifier, a virtual machine identifier, and a host identifier, so that after the storage server obtains the disk identifier to be backed up, the storage server may search the correspondence, and further determine the host identifier corresponding to the disk identifier to be backed up, that is, the target host identifier.
For example, the correspondence between the disk identifier and the virtual machine identifier stored in advance by the storage server and the host identifier is as follows:
Figure BDA0001928461550000111
if the disk to be backed up is identified as the disk B3, the storage server can determine that the virtual machine corresponding to the disk B3 is identified as the virtual machine B according to the table, and further determine that the host machine corresponding to the virtual machine is identified as the host machine B, and then the target host machine identification is identified as the host machine B.
After the storage server determines the target host identifier, the target host identifier may be sent to the backup server. The backup server receives the target host machine identification and can send a backup instruction to the host machine corresponding to the target host machine identification, wherein the backup instruction carries the disc identification to be backed up.
Furthermore, the host machine corresponding to the target host machine identifier can receive the backup instruction and acquire the disk identifier to be backed up. The host machine can determine the disk corresponding to the disk identifier to be backed up, and back up the data stored in the disk according to the back-up instruction.
For example, still the corresponding relationship between the disk identifier and the virtual machine identifier in the table and the host identifier is taken as an example, if the target host identifier is the host B, the backup server may send a backup instruction to the host whose host identifier is the host B, where the backup instruction carries the disk identifier to be backed up, that is, the disk B3. Then, the host machine can determine the disk corresponding to the disk identifier b3 to be backed up, and further back up the data stored in the disk according to the backup instruction.
Because the virtual machine data backup may store different types, for example, may be incremental backup or may be full backup, in an embodiment, in order to facilitate the host machine to perform the data backup process, the backup instruction may further carry information such as a data backup type identifier, a backup data identifier, and the like, which is not particularly limited herein.
In the backup system of virtual machine data, because the disk is used as granularity, the virtual machine and the disk do not have a coupling relation, so that when the virtual machine is created, the virtual machine is restored, the disk corresponding to the virtual machine is increased or decreased, the influence of the coupling relation between the virtual machine and the disk is avoided, and operations such as the creation of the virtual machine, the restoration of the virtual machine, the increase or decrease of the disk corresponding to the virtual machine can be accurately and rapidly completed.
As shown in fig. 2, the system may further include a management server 160 as an implementation of the embodiment of the present invention. For this case, the backup server may be specifically configured to obtain a backup request, and send the disc identifier to be backed up to the management server; the management server may be configured to receive the disc identifier to be backed up, and send the disc identifier to be backed up to the storage server; receiving the target host machine identification and sending the target host machine identification to the backup server; the storage server may be specifically configured to receive the disc identifier to be backed up, determine the target host identifier according to the correspondence between the disc identifier to be backed up and the storage server stored in advance, and send the target host identifier to the management server.
When the backup server obtains the backup request, the backup request can be sent to the management server, and then the management server can receive the disc identifier to be backed up and send the disc identifier to be backed up to the storage server. The storage server receives the disc identification to be backed up, and can determine the target host machine identification according to the disc identification to be backed up and the corresponding relation.
The storage server may then send the target host identity to the management server. The management server may also receive the target host identifier and send the target host identifier to the backup server.
It can be seen that, in this embodiment, the backup system of virtual machine data may also be a management server, and the backup server may interact with the storage server through the management server, so that management of the data backup system may be more convenient.
As an implementation manner of the embodiment of the present invention, a proxy service may be installed on the host.
The proxy service may be configured to determine, when receiving the backup instruction, a disk corresponding to the disk identifier to be backed up, and backup data stored in the disk.
In this embodiment, the host machine may receive a backup instruction through the proxy service installed in the host machine, determine a disk corresponding to the disk identifier to be backed up, and complete the backup process of the data stored in the disk. In this way, the proxy service can quickly complete the data backup processing without being influenced by other services executed by the host machine, so that the efficiency of the virtual machine data backup processing is higher.
In order to inform the user of the progress of the data backup process of the virtual machine, as an implementation manner of the embodiment of the present invention, the host machine may be further configured to send a backup completion message to the backup server when the data backup is completed.
Correspondingly, the backup server may be further configured to record, when the backup completion message is received, a backup result of the backup request based on the disc identifier to be backed up.
When the data backup is completed, the host machine can send a backup completion message to the backup server, wherein the backup completion message can carry the disc identification to be backed up so as to inform the backup server of which disc the disc which is currently subjected to the data backup processing is.
When the backup server receives the backup completion message, in order to inform the user that the data backup process is completed, the backup server may record the backup result of the backup request based on the disc identifier to be backed up. Of course, the successful backup message may also carry information such as the completion time of the data backup, so as to facilitate the terminal to record relevant processing information.
In another embodiment, when receiving the backup completion message, the backup server may send a backup success message to the terminal that sends the backup request, and then the terminal may receive the backup success message, where the backup success message may also carry the disc identifier to be backed up.
Furthermore, the terminal can record the backup result of the backup request based on the disc identification to be backed up. Of course, the successful backup message may also carry information such as the completion time of the data backup, so as to facilitate the terminal to record relevant processing information.
It can be seen that, in this embodiment, the host may send a backup completion message to the backup server when the data backup is completed. When receiving the backup completion message, the backup server may record the backup result of the backup request based on the disc identifier to be backed up, or may send a backup success message to the terminal sending the backup request, so that the terminal records the backup result of the backup request based on the disc identifier to be backed up. The progress of the data backup processing of the virtual machine can be informed to the user, and the user experience is improved.
Corresponding to the backup system of the virtual machine data, the embodiment of the invention also provides a backup method of the virtual machine data. The following describes a first virtual machine data backup method provided by the embodiment of the present invention.
The first virtual machine data backup method provided by the embodiment of the invention is applied to a backup server, the virtual machine is established in a host machine, and the virtual machine is configured with at least one disk. The backup server may be a backup server in a backup system of virtual machine data, and the system may further include a storage server.
As shown in fig. 3, a data backup method, the method includes:
s301, acquiring a backup request;
and the backup request carries the disc identifier to be backed up.
S302, sending the disc identification to be backed up to a storage server, so that the storage server determines a target host where the virtual machine to which the disc to be backed up belongs is located according to the correspondence between the disc identification to be backed up and the prestored disc, virtual machine and host machine identification, and sending the target host identification to the backup server;
s303, receiving the target host identifier, and sending a backup instruction to a host corresponding to the target host identifier, so that the host backs up the data of the disk corresponding to the disk identifier to be backed up when receiving the backup instruction.
And the backup instruction carries the disc identification to be backed up.
Therefore, in the scheme provided by the embodiment of the invention, the backup server can acquire the backup request, and send the disc identifier to be backed up to the storage server, so that when the storage server acquires the disc identifier to be backed up, the target host is determined according to the corresponding relationship between the disc identifier to be backed up and the prestored disc, virtual machine and host identifier, and the target host identifier is sent to the backup server. And then receiving the target host machine identification, and sending a backup instruction to the host machine corresponding to the target host machine identification, so that when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, the step of sending the disc identifier to be backed up to the storage server may include:
the disc identification to be backed up is sent to a management server, so that the management server sends the disc identification to be backed up to the storage server, the storage server receives the disc identification to be backed up, the target host machine identification is determined according to the corresponding relation between the disc identification to be backed up and the storage server stored in advance, and the target host machine identification is sent to the management server;
the step of receiving the target host identifier may include:
and receiving the target host identification sent by the management server.
The management server may be a management server in the backup system of the virtual machine data.
As an implementation manner of the embodiment of the present invention, the method may further include:
receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up; and recording a backup result of the backup request based on the disk identification to be backed up.
Or receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up; and sending a backup success message to the terminal sending the backup request so that the terminal records the backup result of the backup request based on the disc identification to be backed up, wherein the backup success message carries the disc identification to be backed up.
Corresponding to the backup system of the virtual machine data, the embodiment of the invention also provides a backup method of the virtual machine data. The following describes a second virtual machine data backup method provided by the embodiment of the present invention.
The second backup method of the virtual machine data provided by the embodiment of the invention is applied to a storage server, the virtual machine is created in a host machine, and the virtual machine is configured with at least one disk. The storage server may be a storage server in a backup system of virtual machine data, which may also include a backup server.
As shown in fig. 4, a data backup method, the method includes:
s401, receiving a disk identifier to be backed up sent by a backup server when a backup request is acquired;
And the backup request carries the disc identifier to be backed up.
S402, determining a target host machine identifier of a virtual machine to which the disk to be backed up belongs according to a pre-stored corresponding relation among the disk, the virtual machine and the host machine and the disk identifier to be backed up;
s403, the target host machine identification is sent to the backup server, so that the backup server sends a backup instruction to a host machine corresponding to the target host machine identification, and when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up.
And the backup instruction carries the disc identifier to be backed up.
Therefore, in the scheme provided by the embodiment of the invention, the storage server can receive the disc identifier to be backed up sent by the backup server when the backup server obtains the backup request, and the backup request carries the disc identifier to be backed up. And then determining the target host identity of the virtual machine to which the disk to be backed up belongs according to the corresponding relation of the prestored disk, virtual machine and host identity and the disk identity to be backed up. And then the target host machine identification is sent to the backup server, so that the backup server sends a backup instruction to the host machine corresponding to the target host machine identification, and when the host machine receives the backup instruction, the data of the disk corresponding to the disk identification to be backed up is backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, the step of receiving the disc identifier to be backed up sent by the backup server when the backup request is acquired may include:
receiving the disc identification to be backed up sent by the management server, wherein the disc identification to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the step of sending the target host identifier to the backup server may include:
and sending the target host machine identification to the management server so that the management server receives the target host machine identification and sends the target host machine identification to the backup server.
The management server may be a management server in the backup system of the virtual machine data.
Corresponding to the backup system of the virtual machine data, the embodiment of the invention also provides a backup method of the virtual machine data. The following describes a third virtual machine data backup method provided by the embodiment of the present invention.
The third virtual machine data backup method provided by the embodiment of the invention is applied to a host machine, wherein the virtual machine is established in the host machine, and the virtual machine is configured with at least one disk. The host machine can be a host machine in a backup system of virtual machine data, and the system can also comprise a backup server and a storage server.
As shown in fig. 5, a method for backing up virtual machine data, the method includes:
s501, receiving a backup instruction;
the backup command carries a disk identifier to be backed up, the backup command is sent after a backup server obtains a target host identifier from a storage server, the target host identifier is determined by the storage server according to the corresponding relationship between the disk identifier to be backed up and a prestored disk, virtual machine and host identifier, and the backup command is sent to the backup server, the disk identifier to be backed up is sent to the storage server when the backup server obtains a backup request, and the backup request carries the disk identifier to be backed up.
S502, determining a disk corresponding to the disk identifier to be backed up, and backing up the data of the disk.
It can be seen that, in the scheme provided by the embodiment of the invention, the host machine receives the backup instruction, the backup instruction is sent after the backup server obtains the target host machine identifier from the storage server, the target host machine identifier is determined by the storage server according to the disc identifier to be backed up and the corresponding relationship between the prestored disc, the virtual machine and the host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server by the backup server when the backup request is obtained, the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up. And then determining a disk corresponding to the disk identifier to be backed up, and backing up the data stored in the disk. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, a proxy service may be installed on the host;
the step of determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk may include:
and determining a disk corresponding to the disk identifier to be backed up through the proxy service, and backing up the data stored in the disk.
As an implementation manner of the embodiment of the present invention, the method may further include:
when the data backup is completed, a backup completion message is sent to the backup server, so that the backup server receives the backup completion message, and a backup result of the backup request is recorded based on the disk identification to be backed up, wherein the backup completion message carries the disk identification to be backed up;
or when the data backup is completed, sending a backup completion message to the backup server, so that the backup server receives the backup completion message, and sending a backup success message to a terminal sending the backup request, so that the terminal records the backup result of the backup request based on the disc identifier to be backed up, wherein the backup success message carries the disc identifier to be backed up.
Corresponding to the first virtual machine data backup method, the embodiment of the invention also provides a virtual machine data backup device. The following describes a first virtual machine data backup device provided by the embodiment of the present invention.
The backup device of the first virtual machine data provided by the embodiment of the invention is applied to a backup server, the virtual machine is established in a host machine, and the virtual machine is configured with at least one disk. The backup server may be a backup server in a data backup system, which may also include a storage server.
As shown in fig. 6, a backup apparatus of virtual machine data, the apparatus includes:
a backup request acquiring module 610, configured to acquire a backup request;
and the backup request carries the disc identifier to be backed up.
The disk identifier sending module 620 is configured to send the to-be-backed up disk identifier to a storage server, so that the storage server determines, according to the to-be-backed up disk identifier and a corresponding relationship between a disk, a virtual machine and a host machine that are stored in advance, a target host machine where the virtual machine to which the to-be-backed up disk belongs is located, and sends the target host machine identifier to the backup server;
The host identifier receiving module 630 is configured to receive the target host identifier, and send a backup instruction to a host corresponding to the target host identifier, so that when the host receives the backup instruction, the host backs up the data of the disk corresponding to the disk identifier to be backed up.
And the backup instruction carries the disc identifier to be backed up.
Therefore, in the scheme provided by the embodiment of the invention, the backup server can acquire the backup request and send the disc identifier to be backed up to the storage server, so that when the storage server acquires the disc identifier to be backed up, the target host where the virtual machine to which the disc to be backed up belongs is determined according to the disc identifier to be backed up and the corresponding relation between the disc identifier to be backed up, the virtual machine and the host, and the target host identifier is sent to the backup server. And then receiving the target host machine identification, and sending a backup instruction to the host machine corresponding to the target host machine identification, so that when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, the disk identifier sending module 620 may include:
a disk identifier sending unit (not shown in fig. 6) configured to send the disk identifier to be backed up to a management server, so that the management server receives the disk identifier to be backed up, and sends the disk identifier to be backed up to the storage server, so that the storage server receives the disk identifier to be backed up, determines the target host identifier according to a correspondence between the disk identifier to be backed up and a storage server stored in advance, and sends the target host identifier to the management server;
the host identity receiving module 630 may include:
a host identity receiving unit (not shown in fig. 6) for receiving the target host identity sent by the management server.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a message receiving module (not shown in fig. 6) configured to receive a backup completion message, where the backup completion message is sent by the host machine when data backup is completed, and the backup completion message carries the disc identifier to be backed up;
And a result recording module (not shown in fig. 6) configured to record a backup result of the backup request based on the disc identifier to be backed up, or send a backup success message to a terminal that sends the backup request, so that the terminal records the backup result of the backup request based on the disc identifier to be backed up, where the backup success message carries the disc identifier to be backed up.
Corresponding to the second virtual machine data backup method, the embodiment of the invention also provides a virtual machine data backup device. The following describes a second virtual machine data backup device provided in the embodiment of the present invention.
The backup device for the data of the second virtual machine provided by the embodiment of the invention is applied to a storage server, the virtual machine is created in a host machine, and the virtual machine is configured with at least one disk. The storage server may be a storage server in a data backup system, which may also include a backup server.
As shown in fig. 7, a backup apparatus of virtual machine data, the apparatus includes:
the disk identifier obtaining module 710 is configured to receive a disk identifier to be backed up sent by the backup server when obtaining a backup request;
And the backup request carries the disc identifier to be backed up.
The host machine identifier searching module 720 is configured to determine, according to a pre-stored correspondence between a disk, a virtual machine, and a host machine identifier, and the to-be-backed-up disk identifier, a target host machine identifier where the virtual machine to which the to-be-backed-up disk belongs is located;
and the host identifier sending module 730 is configured to send the target host identifier to the backup server, so that the backup server sends a backup instruction to a host corresponding to the target host identifier, and when the host receives the backup instruction, the host backs up the data of the disk corresponding to the disk identifier to be backed up.
And the backup instruction carries the disc identifier to be backed up.
Therefore, in the scheme provided by the embodiment of the invention, the storage server can receive the disc identifier to be backed up sent by the backup server when the backup server obtains the backup request, and the backup request carries the disc identifier to be backed up. And then determining the target host machine identification of the virtual machine to which the disk to be backed up belongs according to the corresponding relation among the prestored disk, the virtual machine and the host machine and the disk identification to be backed up. And then the target host machine identification is sent to the backup server, so that the backup server sends a backup instruction to the host machine corresponding to the target host machine identification, and when the host machine receives the backup instruction, the data of the disk corresponding to the disk identification to be backed up is backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, the disk identifier obtaining module 710 may include:
a disk identifier obtaining unit (not shown in fig. 7), configured to receive the disk identifier to be backed up sent by the management server, where the disk identifier to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the host identity sending module 730 may include:
a host identifier sending unit (not shown in fig. 7) configured to send the target host identifier to the management server, so that the management server receives the target host identifier and sends the target host identifier to the backup server.
Corresponding to the third virtual machine data backup method, the embodiment of the invention also provides a virtual machine data backup device. The following describes a third virtual machine data backup device provided by the embodiment of the present invention.
The third virtual machine data backup device provided by the embodiment of the invention is applied to a host machine, the virtual machine is created in the host machine, and the virtual machine is configured with at least one disk. The host machine can be a host machine in a backup system of virtual machine data, and the system can also comprise a backup server and a storage server.
As shown in fig. 8, a backup apparatus of virtual machine data, the apparatus includes:
a backup instruction receiving module 810, configured to receive a backup instruction;
the backup command is sent after the backup server obtains the target host machine identifier from the storage server, the target host machine identifier is determined by the storage server according to the disc identifier to be backed up and the corresponding relationship among the prestored disc, virtual machine and host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server when the backup server obtains the backup request, the backup request carries the disc identifier to be backed up, and the backup command carries the disc identifier to be backed up.
And the data backup module 820 is configured to determine a disk corresponding to the disk identifier to be backed up, and backup data stored in the disk.
It can be seen that, in the scheme provided by the embodiment of the invention, the host machine receives the backup instruction, the backup instruction is sent after the backup server obtains the target host machine identifier from the storage server, the target host machine identifier is determined by the storage server according to the disc identifier to be backed up and the corresponding relationship between the prestored disc, the virtual machine and the host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server by the backup server when the backup request is obtained, the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up. And then determining the disk corresponding to the disk identifier to be backed up, and backing up the data of the disk. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
As an implementation manner of the embodiment of the present invention, a proxy service may be installed on the host;
the data backup module 820 may include:
and a data backup unit (not shown in fig. 8) configured to determine, by using the proxy service, a disk corresponding to the disk identifier to be backed up, and backup data stored in the disk.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
and a message sending module (not shown in fig. 8) configured to send a backup completion message to the backup server when the data backup is completed, so that the backup server receives the backup completion message, and records a backup result of the backup request based on the to-be-backed-up disk identifier, where the backup completion message carries the to-be-backed-up disk identifier.
Or when the data backup is completed, sending a backup completion message to the backup server, so that the backup server receives the backup completion message, and sending a backup success message to a terminal sending the backup request, so that the terminal records the backup result of the backup request based on the disc identifier to be backed up, wherein the backup success message carries the disc identifier to be backed up.
The embodiment of the present invention further provides a backup server, as shown in fig. 9, where the backup server may include a processor 901, a communication interface 902, a memory 903, and a communication bus 904, where the processor 901, the communication interface 902, and the memory 903 complete communication with each other through the communication bus 904;
a memory 903 for storing a computer program;
the processor 901 is configured to implement the first virtual machine data backup method when executing the program stored in the memory 903.
Therefore, in the scheme provided by the embodiment of the invention, the backup server can acquire the backup request, and send the disc identifier to be backed up to the storage server, so that when the storage server acquires the disc identifier to be backed up, the target host is determined according to the corresponding relationship between the disc identifier to be backed up and the prestored disc, the virtual machine and the host, and the target host identifier is sent to the backup server. And then receiving the target host machine identification, and sending a backup instruction to the host machine corresponding to the target host machine identification, so that when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
The communication bus mentioned by the backup server may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the backup server and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the present invention further provides a storage server, as shown in fig. 10, where the storage server may include a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004, where the processor 1001, the communication interface 1002, and the memory 1003 complete communication with each other through the communication bus 1004;
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the second method for backing up virtual machine data when executing the program stored in the memory 1003.
Therefore, in the scheme provided by the embodiment of the invention, the storage server can receive the disc identifier to be backed up sent by the backup server when the backup server obtains the backup request, and the backup request carries the disc identifier to be backed up. And then determining the target host machine identification according to the corresponding relation among the prestored disk, the virtual machine and the host machine and the disk identification to be backed up. And then the target host machine identification is sent to the backup server, so that the backup server sends a backup instruction to the host machine corresponding to the target host machine identification, and when the host machine receives the backup instruction, the data of the disk corresponding to the disk identification to be backed up is backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
The communication bus mentioned by the storage server may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the storage server and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the present invention further provides a host, as shown in fig. 11, where the host may include a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, where the processor 1101, the communication interface 1102, and the memory 1103 complete communication with each other through the communication bus 1104;
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the third method for backing up virtual machine data when executing the program stored in the memory 1103.
It can be seen that, in the scheme provided by the embodiment of the invention, the host machine receives the backup instruction, the backup instruction is sent after the backup server obtains the target host machine identifier from the storage server, the target host machine identifier is determined by the storage server according to the disc identifier to be backed up and the corresponding relationship between the prestored disc, the virtual machine and the host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server by the backup server when the backup request is obtained, the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up. And then determining a disk corresponding to the disk identifier to be backed up, and backing up the data stored in the disk. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
The communication bus mentioned by the host may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the host machine and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the backup method of the first virtual machine data when being executed by a processor.
It can be seen that, in the solution provided in the embodiment of the present invention, when the computer program is executed by the processor, a backup request may be obtained, and the disc identifier to be backed up is sent to the storage server, so that when the storage server obtains the disc identifier to be backed up, the target host is determined according to the disc identifier to be backed up and the correspondence between the prestored disc, the virtual machine and the host, and the target host identifier is sent to the backup server. And then receiving the target host machine identification, and sending a backup instruction to the host machine corresponding to the target host machine identification, so that when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
The embodiment of the invention also provides another computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the backup method of the second virtual machine data when being executed by a processor.
Therefore, in the scheme provided by the embodiment of the invention, when the computer program is executed by the processor, the disc identifier to be backed up sent by the backup server when the backup request is acquired can be received, and the backup request carries the disc identifier to be backed up. And then determining the target host machine identification according to the corresponding relation among the prestored disk, the virtual machine and the host machine and the disk identification to be backed up. And then the target host machine identification is sent to the backup server, so that the backup server sends a backup instruction to the host machine corresponding to the target host machine identification, and when the host machine receives the backup instruction, the data of the disk corresponding to the disk identification to be backed up is backed up. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
The embodiment of the invention also provides another computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and the computer program realizes the backup method of the third virtual machine data when being executed by a processor.
In the scheme provided by the embodiment of the invention, when the computer program is executed by the processor, the computer program can receive a backup instruction, wherein the backup instruction is sent after the backup server obtains the target host machine identifier from the storage server, the target host machine identifier is determined by the storage server according to the disc identifier to be backed up and the corresponding relation between the prestored disc, the virtual machine and the host machine and is sent to the backup server, the disc identifier to be backed up is sent to the storage server when the backup server obtains a backup request, the backup request carries the disc identifier to be backed up, and the backup instruction carries the disc identifier to be backed up. And then determining a disk corresponding to the disk identifier to be backed up, and backing up the data stored in the disk. When the virtual machine data is backed up, the magnetic disk is used as granularity, so that the influence of the coupling relation between the magnetic disk and the corresponding virtual machine can be avoided, and the problem of backup errors caused by the virtual machine data backup is avoided.
It should be noted that, in the embodiments of the method, apparatus, backup server, storage server, host, and computer readable storage medium described above, the description is relatively simple, and the relevant points are referred to in the description of the system embodiments, because they are basically similar to the system embodiments.
It is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (24)

1. The backup method of the virtual machine data is characterized by being applied to a backup server, wherein the virtual machine is established in a host machine, and the virtual machine is configured with at least one disk; the method comprises the following steps:
obtaining a backup request, wherein the backup request carries a disk identifier to be backed up;
the disc identification to be backed up is sent to a storage server, so that the storage server determines a target host where the virtual machine to which the disc to be backed up belongs is located according to the disc identification to be backed up and the corresponding relation among the prestored disc, the virtual machine and the host, and sends the target host identification to the backup server;
and receiving the target host machine identification, and sending a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, so that the host machine backs up the data of the disk corresponding to the disk identification to be backed up when receiving the backup instruction.
2. The method of claim 1, wherein the step of sending the disc identification to be backed up to the storage server comprises:
the disc identification to be backed up is sent to a management server, so that the management server sends the disc identification to be backed up to the storage server, the storage server receives the disc identification to be backed up, the target host identification is determined according to the corresponding relation stored in advance by the disc identification to be backed up and the storage server, and the target host identification is sent to the management server;
the step of receiving the target host identifier includes:
and receiving the target host identification sent by the management server.
3. The method of claim 1 or 2, wherein the method further comprises:
receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up;
and recording a backup result of the backup request based on the disk identification to be backed up.
4. The backup method of the virtual machine data is characterized by being applied to a storage server, wherein the virtual machine is created in a host machine, and the virtual machine is configured with at least one disk; the method comprises the following steps:
Receiving a disc identifier to be backed up sent by a backup server when a backup request is acquired, wherein the backup request carries the disc identifier to be backed up;
determining a target host machine identifier of a virtual machine to which the disk to be backed up belongs according to a pre-stored corresponding relation among the disk, the virtual machine and the host machine and the disk identifier to be backed up;
and sending the target host identifier to the backup server so that the backup server sends a backup instruction to a host corresponding to the target host identifier, wherein the backup instruction carries the disc identifier to be backed up, and when the host receives the backup instruction, the host backs up the data of the disc corresponding to the disc identifier to be backed up.
5. The method of claim 4, wherein the step of receiving the disc identifier to be backed up sent by the backup server when the backup request is acquired comprises:
receiving the disc identification to be backed up sent by the management server, wherein the disc identification to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the step of sending the target host identifier to the backup server includes:
And sending the target host machine identification to the management server so that the management server receives the target host machine identification and sends the target host machine identification to the backup server.
6. The backup method of the virtual machine data is characterized by being applied to a host machine, wherein the virtual machine is established in the host machine, and the virtual machine is configured with at least one disk; the method comprises the following steps:
receiving a backup instruction, wherein the backup instruction carries a disk identifier to be backed up, the backup instruction is sent after a backup server obtains a target host identifier from a storage server, the target host identifier is determined by the storage server according to the disk identifier to be backed up and the corresponding relation of a prestored disk, virtual machine and host and is sent to the backup server, the disk identifier to be backed up is sent to the storage server when the backup server obtains a backup request, and the backup request carries the disk identifier to be backed up;
and determining a disk corresponding to the disk identifier to be backed up, and backing up the data of the disk.
7. The method of claim 6, wherein the host has a proxy service installed thereon;
The step of determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk comprises the following steps:
and determining a disk corresponding to the disk identifier to be backed up through the proxy service, and backing up the data stored in the disk.
8. The method of claim 6 or 7, wherein the method further comprises:
and when the data backup is completed, sending a backup completion message to the backup server so that the backup server receives the backup completion message, and recording a backup result of the backup request based on the disk identification to be backed up, wherein the backup completion message carries the disk identification to be backed up.
9. A backup device for virtual machine data, which is characterized by being applied to a backup server, wherein the virtual machine is created in a host machine, and the virtual machine is configured with at least one disk; the device comprises:
the backup request acquisition module is used for acquiring a backup request, wherein the backup request carries a disk identifier to be backed up;
the disk identification sending module is used for sending the disk identification to be backed up to the storage server so that the storage server can determine a target host where the virtual machine of the disk to be backed up is located according to the corresponding relation between the disk identification to be backed up and the storage disk, the virtual machine and the host, and send the target host identification to the backup server;
The host machine identification receiving module is used for receiving the target host machine identification and sending a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, so that the host machine backs up the data stored in the disk corresponding to the disk identification to be backed up when receiving the backup instruction.
10. The apparatus of claim 9, wherein the disk identification transmission module comprises:
the disk identifier sending unit is used for sending the disk identifier to be backed up to a management server, so that the management server sends the disk identifier to be backed up to the storage server, the storage server receives the disk identifier to be backed up, the target host identifier is determined according to the corresponding relation between the disk identifier to be backed up and the storage server stored in advance, and the target host identifier is sent to the management server;
the host identity receiving module comprises:
and the host identity receiving unit is used for receiving the target host identity sent by the management server.
11. The apparatus according to claim 9 or 10, wherein the apparatus further comprises:
The information receiving module is used for receiving a backup completion message, wherein the backup completion message is sent by the host machine when the data backup is completed, and the backup completion message carries the disc identifier to be backed up;
and the result recording module is used for recording the backup result of the backup request based on the disk identification to be backed up.
12. A backup device of virtual machine data, which is characterized by being applied to a storage server, wherein the virtual machine is created in a host machine, and the virtual machine is configured with at least one disk; the device comprises:
the disk identification acquisition module is used for receiving a disk identification to be backed up sent by the backup server when a backup request is acquired, wherein the backup request carries the disk identification to be backed up;
the host machine identification searching module is used for determining a target host machine identification of the virtual machine to which the disk to be backed up belongs according to the corresponding relation among the prestored disk, the virtual machine and the host machine and the disk identification to be backed up;
the host machine identification sending module is used for sending the target host machine identification to the backup server so that the backup server sends a backup instruction to a host machine corresponding to the target host machine identification, wherein the backup instruction carries the disk identification to be backed up, and when the host machine receives the backup instruction, the host machine backs up the data of the disk corresponding to the disk identification to be backed up.
13. The apparatus of claim 12, wherein the disk identification acquisition module comprises:
the disk identifier obtaining unit is configured to receive the disk identifier to be backed up sent by the management server, where the disk identifier to be backed up is: the backup server sends a backup request to the management server when acquiring the backup request;
the host identity sending module comprises:
and the host machine identification transmitting unit is used for transmitting the target host machine identification to the management server so that the management server receives the target host machine identification and transmits the target host machine identification to the backup server.
14. A backup device of virtual machine data, which is characterized by being applied to a host machine, wherein the virtual machine is created in the host machine, and the virtual machine is configured with at least one disk; the device comprises:
the backup instruction receiving module is used for receiving a backup instruction, wherein the backup instruction carries a disk identifier to be backed up, the backup instruction is sent after a backup server obtains a target host identifier from a storage server, the target host identifier is determined by the storage server according to the disk identifier to be backed up and the corresponding relation between a prestored disk, a virtual machine and a host and is sent to the backup server, the disk identifier to be backed up is sent to the storage server when the backup server obtains a backup request, and the backup request carries the disk identifier to be backed up;
And the data backup module is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk.
15. The apparatus of claim 14, wherein the host has a proxy service installed thereon;
the data backup module comprises:
and the data backup unit is used for determining the disk corresponding to the disk identifier to be backed up through the proxy service and backing up the data stored in the disk.
16. The apparatus of claim 14 or 15, wherein the apparatus further comprises:
and the message sending module is used for sending a backup completion message to the backup server when the data backup is completed, so that the backup server receives the backup completion message and records the backup result of the backup request based on the disk identifier to be backed up, wherein the backup completion message carries the disk identifier to be backed up.
17. A backup system of virtual machine data, which is characterized in that the system comprises a backup server, a storage server and a host, wherein the virtual machine is established in the host, and the virtual machine is configured with at least one disk;
the backup server is used for acquiring a backup request, sending a disk identifier to be backed up to the storage server, acquiring a target host machine identifier from the storage server, and sending a backup instruction to a host machine corresponding to the target host machine identifier, wherein the backup request carries the disk identifier to be backed up, and the backup instruction carries the disk identifier to be backed up;
The storage server is used for storing the corresponding relation among the disk, the virtual machine and the host machine, determining a target host machine where the virtual machine of the disk to be backed up belongs according to the disk identification to be backed up and the corresponding relation when the disk identification to be backed up is obtained, and sending the target host machine identification to the backup server;
and the host machine is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data of the disk when receiving the backup instruction.
18. The system of claim 17, wherein the system further comprises a management server;
the backup server is specifically configured to obtain a backup request, and send the disc identifier to be backed up to the management server;
the management server is used for receiving the disc identification to be backed up and sending the disc identification to be backed up to the storage server; receiving the target host machine identification and sending the target host machine identification to the backup server;
the storage server is specifically configured to receive the disc identifier to be backed up, determine the target host identifier according to the disc identifier to be backed up and the correspondence stored in advance by the storage server, and send the target host identifier to the management server.
19. The system of claim 17, wherein the host has a proxy service installed thereon;
and the proxy service is used for determining the disk corresponding to the disk identifier to be backed up and backing up the data stored in the disk when the backup instruction is received.
20. The system of any one of claims 17-19, wherein,
the host machine is further configured to send a backup completion message to the backup server when the data backup is completed, where the backup completion message carries the disc identifier to be backed up;
and the backup server is further configured to record a backup result of the backup request based on the disc identifier to be backed up when the backup completion message is received.
21. The backup server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-3 when executing a program stored on a memory.
22. The storage server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
A memory for storing a computer program;
a processor for implementing the method steps of claim 4 or 5 when executing a program stored on a memory.
23. The host machine is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 6-8 when executing a program stored on a memory.
24. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3, 4-5 or 6-8.
CN201811628361.5A 2018-12-28 2018-12-28 Virtual machine data backup method, device and system Active CN111382008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811628361.5A CN111382008B (en) 2018-12-28 2018-12-28 Virtual machine data backup method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811628361.5A CN111382008B (en) 2018-12-28 2018-12-28 Virtual machine data backup method, device and system

Publications (2)

Publication Number Publication Date
CN111382008A CN111382008A (en) 2020-07-07
CN111382008B true CN111382008B (en) 2023-05-02

Family

ID=71222877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811628361.5A Active CN111382008B (en) 2018-12-28 2018-12-28 Virtual machine data backup method, device and system

Country Status (1)

Country Link
CN (1) CN111382008B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113301090B (en) * 2020-07-29 2024-03-29 阿里巴巴集团控股有限公司 Storage system access method, device, equipment and storage medium
CN111651305B (en) * 2020-08-05 2020-11-03 腾讯科技(深圳)有限公司 Virtual machine backup method, virtual machine backup assembly and cloud computing system
CN113254268B (en) * 2021-05-20 2024-05-24 深信服科技股份有限公司 Data processing method and device, equipment and storage medium
CN113282571A (en) * 2021-05-26 2021-08-20 北京金山云网络技术有限公司 Data transfer method and device, electronic equipment and storage medium
CN114328026B (en) * 2021-12-30 2023-11-14 苏州浪潮智能科技有限公司 Virtual disk backup method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266565A (en) * 2008-04-18 2008-09-17 华为技术有限公司 Data backup process and device
CN103713860A (en) * 2014-01-03 2014-04-09 浪潮(北京)电子信息产业有限公司 Method and system for building virtual disk base on basis of backup architecture
CN105022678A (en) * 2015-07-02 2015-11-04 深圳市深信服电子科技有限公司 Data backup method and apparatus for virtual machine
US9836357B1 (en) * 2014-04-25 2017-12-05 Veritas Technologies Llc Systems and methods for backing up heterogeneous virtual environments
US10114706B1 (en) * 2015-09-22 2018-10-30 EMC IP Holding Company LLC Backup and recovery of raw disks [RDM] in virtual environment using snapshot technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140236892A1 (en) * 2013-02-21 2014-08-21 Barracuda Networks, Inc. Systems and methods for virtual machine backup process by examining file system journal records

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266565A (en) * 2008-04-18 2008-09-17 华为技术有限公司 Data backup process and device
CN103713860A (en) * 2014-01-03 2014-04-09 浪潮(北京)电子信息产业有限公司 Method and system for building virtual disk base on basis of backup architecture
US9836357B1 (en) * 2014-04-25 2017-12-05 Veritas Technologies Llc Systems and methods for backing up heterogeneous virtual environments
CN105022678A (en) * 2015-07-02 2015-11-04 深圳市深信服电子科技有限公司 Data backup method and apparatus for virtual machine
US10114706B1 (en) * 2015-09-22 2018-10-30 EMC IP Holding Company LLC Backup and recovery of raw disks [RDM] in virtual environment using snapshot technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王迪.一种SAN环境下数据备份***的设计与实现.《小型微型计算机***》.2006,(第第9期期),第1788-1792页. *

Also Published As

Publication number Publication date
CN111382008A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN111382008B (en) Virtual machine data backup method, device and system
US8910172B2 (en) Application resource switchover systems and methods
CN107220142B (en) Method and device for executing data recovery operation
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
EP3489825A1 (en) Method, apparatus and computer readable storage medium for processing service
CN103201724A (en) Providing application high availability in highly-available virtual machine environments
CN111880967A (en) File backup method, device, medium and electronic equipment in cloud scene
WO2012171349A1 (en) Method, apparatus and system for implementing distributed auto-incrementing counting
CN104601617A (en) Peripheral access processing method and device in virtual desktop system
US10958523B1 (en) Consistent deployment of monitoring configurations on multiple computing systems
US11930292B2 (en) Device state monitoring method and apparatus
CN108694022A (en) The system and method for solid-state disk for identification with the delay of minimum tail
CN111126940A (en) Service application processing method, device, equipment and computer readable storage medium
CN114328029A (en) Backup method and device of application resources, electronic equipment and storage medium
CN102841825A (en) Drive backup method and device and drive restoration method and device
CN112153146B (en) Operation notification method and apparatus, storage medium, and electronic apparatus
TWI267758B (en) Method, apparatus and recording medium for determining unreturned standby resource usage
CN111625402A (en) Data recovery method and device, electronic equipment and computer readable storage medium
US20230066698A1 (en) Compute instance warmup operations
CN110968456A (en) Method and device for processing fault disk in distributed storage system
US9934113B2 (en) Enhanced console assisted recovery for a coordinated timing network
CN116391177A (en) Prioritized inactive memory device updates
CN112463457A (en) Data protection method, device, medium and system for guaranteeing application consistency
CN113032021A (en) System switching and data processing method, device, equipment and storage medium thereof
CN110908886A (en) Data sending method and device, electronic equipment and storage medium

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