WO2017092017A1 - 一种虚拟机备份信息迁移方法、装置和系统 - Google Patents

一种虚拟机备份信息迁移方法、装置和系统 Download PDF

Info

Publication number
WO2017092017A1
WO2017092017A1 PCT/CN2015/096361 CN2015096361W WO2017092017A1 WO 2017092017 A1 WO2017092017 A1 WO 2017092017A1 CN 2015096361 W CN2015096361 W CN 2015096361W WO 2017092017 A1 WO2017092017 A1 WO 2017092017A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
virtual machine
migration
information
backup server
Prior art date
Application number
PCT/CN2015/096361
Other languages
English (en)
French (fr)
Inventor
黄恒
张磊
程华
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580002876.2A priority Critical patent/CN107046810A/zh
Priority to EP15905648.0A priority patent/EP3200073B1/en
Priority to PCT/CN2015/096361 priority patent/WO2017092017A1/zh
Priority to US15/614,985 priority patent/US10678648B2/en
Publication of WO2017092017A1 publication Critical patent/WO2017092017A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality
    • G06F11/1484Generic software techniques for error detection or fault masking by means of middleware or OS functionality involving virtual machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0647Migration mechanisms
    • 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
    • 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/4557Distribution of virtual machine instances; Migration and load balancing
    • 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/45587Isolation or security of virtual machine instances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions

Definitions

  • the embodiments of the present invention relate to the field of computers, and in particular, to a virtual machine backup information migration method, apparatus, and system.
  • the current mainstream cloud computing platform supports the virtual machine migration feature, which refers to the process of moving a virtual machine from one host or storage location to another host or storage location.
  • Virtual machine migrations may be in the same data center or across data centers.
  • the establishment of a virtual machine data backup system generally deploys one or more backup servers according to the size of the backup service and the capabilities of the backup server.
  • the virtual machine For a data center where a virtual machine backup system is established, the virtual machine is protected by the backup server in its area. If the virtual machine is migrated beyond the scope of its original backup server protection, the virtual machine will be unable to continue to be obtained. The risk of backup protection.
  • the first data center and the second data center respectively deploy a backup server to protect the virtual machine from backup.
  • the backup data of the virtual machine remains on the backup storage of the first backup server of the first data center.
  • the backup server in the new location cannot automatically perform the same backup plan as before the migration, and the backup data before the virtual machine migration cannot be inherited after the migration. Therefore, the original backup data cannot be recovered after the virtual machine is migrated.
  • the present application provides a virtual machine backup information migration method, device, and system, which implements migration of backup information after virtual machine migration.
  • the technical solution disclosed in the present application is used to implement the migration of the backup information of the virtual machine from the first backup server to the second backup server.
  • the first backup server is configured to perform data backup on the virtual machine running on the first computing device
  • the second backup server is configured to perform data backup on the virtual machine running on the second computing device.
  • the backup information includes backup data information or backup policy, or the number of backups. According to the combination of information and backup strategy. If the two virtual machines that are located before and after the virtual machine migration share the storage device for storing the backup data, the backup data information may be the address information of the backup data of the virtual machine in the storage device, if the virtual machine is located before and after the migration. The virtual machine does not share the storage device for storing backup data, and the backup data information is the backup data itself of the virtual machine.
  • a backup policy refers to any one or combination of objects, backup times, or backup methods that the virtual machine needs to back up.
  • the application provides a method for migrating backup information of a virtual machine, including: receiving, by the first backup server, a migration trigger message, where the migration trigger message carries the information of the virtual machine identification information before migration and the indication information of the second backup server,
  • the first backup server is configured to migrate the backup information of the virtual machine to the second backup server; the first backup server determines the backup information of the virtual machine according to the pre-migration virtual machine identification information, and sends the backup information to the second backup server.
  • the backup message carries the backup information and the virtual machine identification information.
  • the pre-migration virtual machine identification information in the migration trigger message is an identifier of the virtual machine when it is in the first computing device.
  • the identification information of the second computing device is changed in the following description.
  • the identification information of the virtual machine in the first computing device is called the pre-migration virtual machine identification information.
  • VM identification information after migration The virtual machine identification information in the migration trigger message may be the pre-migration virtual machine identification information or the migrated virtual machine identification information.
  • the migration trigger message received by the first backup server is a migration trigger message from the second backup server, where the migration trigger message is used to request the first
  • a backup server sends the backup information of the virtual machine to the second backup server. If the first computing device and the second computing device are in the same data center, the mobility management module of the data center migrates the virtual machine from the first computing device to the second computing device, and then displays the indication information of the first backup server and The pre-migration virtual machine identification information is sent to the second backup server.
  • the indication information of the first backup server and the virtual information may be configured by the migration management module of the first data center
  • the virtual machine identification information of the machine is sent to the migration management module of the second data center, and the migration management module of the second data center sends the indication information of the first backup server and the pre-migration virtual machine identification information of the virtual machine. Give the second backup server.
  • the migration trigger message received by the first backup server is a migration trigger message from the migration management module, where the migration management module is configured to manage the virtual machine. Migration operation. If the first computing device and the second computing device belong to the same data center, the migration management module of the data center sends the migration trigger message to the first backup server after the virtual machine is migrated to the first computing device. If the first computing device and the second computing device belong to two different data centers of the first data center and the second data center, the migration management module of the first data center or the migration management module of the second data center may be first The backup server sends the migration trigger message.
  • the indication information of the second backup server is an identifier of the second computing device, where the first Before the backup server sends the backup information migration message to the second backup server, the second backup server is determined according to the identifier of the second computing device and the first corresponding relationship, where the first corresponding relationship includes the second computing device Correspondence with the second backup server.
  • the migration trigger message received by the first backup server is a migration trigger message from the backup server management platform, where the backup server management platform is configured to manage the first Migration of backup information between a backup server and the second backup server. If the first computing device and the second computing device belong to the same data center, the migration management module of the data center sends a migration notification message to the backup server management platform, if the first computing device and the second computing device belong to different data centers.
  • the migration management module of the first data center or the second data center may send a migration notification message to the backup server management platform, where the migration notification message may carry the identifier of the first computing device, the identifier of the second computing device, and the pre-migration
  • the virtual machine identifies the information
  • the backup server management platform determines the first backup server according to the identifier of the first computing device, determines the second backup server according to the identifier of the second computing device, and sends a migration trigger message to the first backup server.
  • the backup information includes backup data information or backup policy or backup data information and backup of the virtual machine a combination of the two, if the first backup server and the second backup server share a storage device for storing backup data of the virtual machine, the backup data information includes the backup data of the virtual machine at an address of the storage device Information; if the first backup server and the second backup server do not share a storage device for storing backup data of the virtual machine, the backup The data information contains backup data for the virtual machine.
  • first backup server and the second backup server share the storage device for data backup, only the address information of the backup data of the virtual machine needs to be migrated, thereby reducing the amount of data transmission.
  • the first backup server after the first backup server sends the backup information migration message to the second backup server, A feedback message from the second backup server, the feedback message is used to indicate completion of migration of the backup information.
  • the first backup server may disconnect the communication connection with the second backup server to release the communication resource and delete the original virtual machine backup information, thereby saving the storage resource of the first backup server.
  • the present application provides a computer readable medium, comprising computer executed instructions, when the processor of the computer executes the computer to execute an instruction, the computer executes the first aspect or any of the possible implementations of the first aspect Methods.
  • the present application provides a computing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store an execution instruction, the processor is connected to the memory through the bus, when the computing device is running The processor executes the execution instructions stored by the memory to cause the computing device to perform the method of any of the first aspect or the first aspect.
  • the application provides a backup information migration method for a virtual machine, including: receiving, by a second backup server, a backup information migration message from a first backup server, where the backup information migration message includes virtual machine identification information and the virtual machine Backup information; the second backup server determines the virtual machine according to the virtual machine identification information, and associates the virtual machine with the backup information.
  • the method before the second backup server receives the backup information migration message from the first backup server, the method further includes: the second backup server receives the migration management a notification message of the module, where the notification message carries the indication information of the first backup server and the pre-migration virtual machine identification information; the second backup server sends a migration trigger message to the first backup server, where the migration trigger message is used And requesting the first backup server to send the backup information of the virtual machine to the second backup server, where the migration trigger message carries the pre-migration virtual machine identification information and the indication information of the second backup server.
  • the migration management module of the data center migrates the virtual machine from the first computing device to the second computing device to the second device.
  • the server sends a notification message for notifying that a new virtual machine is migrated to the second computing device it manages; if the first computing device and the second computing device belong to the first data center and the second data center respectively
  • the center may send the notification message to the second backup server by the migration management module of the first data center or the second data center.
  • the virtual machine identification information is pre-migration virtual machine identification information
  • the second backup server is configured according to the The virtual machine identification information determines the virtual machine
  • the second backup server determines the migrated virtual machine identification information of the virtual machine according to the pre-migration virtual machine identification information and the second corresponding relationship, where the second correspondence includes Correspondence between the pre-migration virtual machine identification information and the migrated virtual machine identification information.
  • the second backup server determines the virtual machine according to the virtual machine identification information, including: The second backup server sends a query message to the migration management module, and receives a response message from the migration management module, where the query message includes the pre-migration virtual machine identification information, and the migration management module is configured to manage the migration operation of the virtual machine, and save There is the second correspondence, and the response message includes the migrated virtual machine identification information.
  • the backup information includes backup data information or backup policy or backup data information and backup of the virtual machine a combination of the two, if the first backup server and the second backup server share a storage device for storing backup data of the virtual machine, the backup data information includes the backup data of the virtual machine at an address of the storage device Information; if the first backup server and the second backup server do not share a storage device for storing backup data of the virtual machine, the backup data information includes backup data of the virtual machine.
  • the method further includes: after the second backup server associates the virtual machine with the backup information, in a fifth possible implementation manner of the fourth aspect, the method further includes: The second backup server prepares a backup plan for the virtual machine according to the backup information.
  • the backup plan can include a backup recovery plan, a well-considered, well-executed data backup and recovery plan, which is the most important foundation for ensuring successful recovery after a data disaster.
  • the method further includes: the second backup server sending a feedback message to the first backup server, the feedback message being used to indicate completion of the migration of the backup information.
  • the first backup server may disconnect the communication connection with the second backup server to release the communication resources.
  • the present application provides a computer readable medium, comprising computer executed instructions, in a possible implementation manner of the fourth aspect or the fourth aspect, when the processor of the computer executes the computer to execute the instruction Methods.
  • the present application provides a computing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store an execution instruction, the processor is connected to the memory through the bus, when the computing device is running The processor executes the execution instructions stored by the memory to cause the computing device to perform the method of any of the possible implementations of the fourth aspect or the fourth aspect.
  • the application provides a backup information migration device of a virtual machine, where the device includes: a receiving unit, configured to receive a migration trigger message, where the migration trigger message carries the virtual machine identification information before migration and the indication information of the backup server, The device is configured to perform data backup on a virtual machine running on the first computing device, where the backup server is configured to perform data backup on a virtual machine running on the second computing device; and determining a unit, according to the pre-migration The virtual machine identification information determines the backup information of the virtual machine, and the sending unit is configured to send a backup information migration message to the backup server, where the backup information migration message carries the backup information and the virtual machine identification information.
  • the receiving unit is configured to receive a migration trigger message, where the receiving unit is configured to receive a migration trigger message from the backup server, where the migration trigger message is used by The device is requested to send the backup information of the virtual machine to the backup server.
  • the receiving unit is configured to receive a migration trigger message, where the receiving unit is configured to receive a migration trigger message from the migration management module, where The migration management module is configured to manage a migration operation of the virtual machine, the migration trigger message is used to indicate that the virtual machine is migrated from the first computing device to the second computing device.
  • the indication information of the backup server is an identifier of the second computing device
  • the sending unit is Before the backup server sends the backup information migration message
  • the determining unit is further configured to: determine the backup server according to the identifier of the second computing device and the first correspondence, where The first correspondence includes a correspondence between the second computing device and the backup server.
  • the receiving unit is configured to receive a migration trigger message, where the receiving unit is configured to receive a migration trigger message from the backup server management platform,
  • the backup server management platform is used to manage the migration of backup information between the device and the backup server.
  • the backup information includes backup data information or backup policy or backup data information and backup of the virtual machine a combination of the two, if the device and the backup server share a storage device for storing backup data of the virtual machine, the backup data information includes address information of the backup data of the virtual machine in the storage device; And the backup server does not share a storage device for storing backup data of the virtual machine, and the backup data information includes backup data of the virtual machine.
  • the receiving unit is further configured to: receiving a feedback message from the backup server, the feedback message is used to indicate completion of the migration of the backup information.
  • the seventh aspect is the apparatus implementation of the first backup server in the first aspect or any one of the possible implementation manners of the first aspect, wherein the feature description in the first aspect or any one of the possible implementation manners in the first aspect is applicable to Any of the possible implementations of the seven aspects or the seventh aspect, and details are not described herein again.
  • the application provides a backup information migration apparatus for a virtual machine
  • the apparatus includes: a receiving unit, configured to receive a backup information migration message from a backup server, where the backup information migration message includes virtual machine identification information and the virtual Backup information of the machine for performing data backup on the virtual machine running on the first computing device, the device is configured to perform data backup on the virtual machine running on the second computing device; Determining the virtual machine according to the virtual machine identification information; and processing unit, configured to associate the virtual machine with the backup information.
  • the receiving unit before receiving the backup information migration message from the backup server, is further configured to: receive the notification message from the migration management module, where the notification message Carrying the indication information of the backup server and the pre-migration virtual machine identification information, where the migration management module is used to manage the migration operation of the virtual machine; And a sending unit, configured to send a migration trigger message to the backup server, where the migration trigger message is used to request the backup server to send the backup information of the virtual machine to the device, where the migration trigger message carries the pre-migration virtual machine identification information. And instructions for the device.
  • the virtual machine identification information is pre-migration virtual machine identification information;
  • the virtual machine identification information is determined by the virtual machine, and the determining unit is configured to determine the migrated virtual machine identification information of the virtual machine according to the pre-migration virtual machine identification information and the second corresponding relationship, where the second correspondence includes the migration Correspondence between the pre-virtual machine identification information and the migrated virtual machine identification information.
  • the device further includes a sending unit, where the determining unit is configured to determine, according to the virtual machine identification information
  • the virtual machine includes: the determining unit is configured to send, by using the sending unit, a query message to the migration management module, where the query message includes the pre-migration virtual machine identification information, where the migration management module is configured to manage the migration operation of the virtual machine, and save There is the second correspondence; the determining unit is configured to receive, by the receiving unit, a response message from the migration management module, where the response message includes the migrated virtual machine identification information.
  • the backup information includes backup data information or backup policy or backup data information and backup of the virtual machine a combination of the two, if the backup server and the device share a storage device for storing backup data of the virtual machine, the backup data information includes address information of the backup data of the virtual machine in the storage device; The server and the device do not share a storage device for storing backup data of the virtual machine, and the backup data information includes backup data of the virtual machine.
  • the processing unit is further configured to: according to the backup Information is used to develop a backup plan for the virtual machine.
  • the sending unit is further configured to: Sending a feedback message to the backup server, the feedback message is used to indicate completion of the migration of the backup information.
  • the eighth aspect is the device implementation manner of the second backup server in any one of the possible implementation manners of the fourth aspect or the fourth aspect, wherein the feature description in any one of the possible implementation manners of the fourth aspect or the fourth aspect is applicable to the Any possible implementation of the eight aspects or the eighth aspect, and details are not described herein again.
  • the application provides a backup information migration system for a virtual machine
  • the system includes a first backup server and a second backup server
  • the first backup server is configured to receive a migration trigger message, where the migration trigger message carries the migration
  • the virtual machine identification information and the indication information of the second backup server determine the backup information of the virtual machine according to the pre-migration virtual machine identification information, and send a backup information migration message to the second backup server, where the backup information migration message carries the
  • the backup information and the virtual machine identification information are used by the second backup server to receive the backup information migration message from the first backup server, determine the virtual machine according to the virtual machine identification information, and associate the virtual machine with the backup information.
  • the system further includes a migration management module, where the migration management module is configured to manage a migration operation of the virtual machine; the first backup server is specifically configured to receive the And the second backup server sends a notification message from the migration management module, where the second backup server carries the notification message from the migration management module, where the notification message carries the first backup
  • the migration management module is used to manage the migration operation of the virtual machine.
  • the system further includes a migration management module, where the migration management module is configured to manage the migration of the virtual machine
  • the first backup server is specifically configured to receive a migration trigger message from the migration management module.
  • the indication information of the second backup server is an identifier of the second computing device;
  • the backup server is further configured to determine the second backup server according to the identifier of the second computing device and the first correspondence, where the first correspondence includes the Correspondence between the second computing device and the second backup server.
  • the system further includes a backup server management platform and a migration management module
  • the backup server management platform is configured to manage a migration operation of the backup information between the first backup server and the second backup server, where the migration management module is configured to manage a migration operation of the virtual machine;
  • the first backup server is specifically used to Receiving a migration trigger message from the backup server management platform;
  • the backup server management platform is further configured to receive a notification message from the migration management module, and the notification message carries the first The indication information of the backup server, the indication information of the second backup server, and the pre-migration virtual machine identification information.
  • the virtual machine identification information is the pre-migration virtual machine identification information; Determining, after the pre-migration virtual machine identification information and the second corresponding relationship, the migrated virtual machine identification information of the virtual machine, where the second correspondence includes the mapping between the pre-migration virtual machine identification information and the migrated virtual machine identification information. relationship.
  • the system further includes a migration management module, where the migration management module is configured to manage the migration of the virtual machine And the second backup server is configured to send a query message to the migration management module, where the query message includes the pre-migration virtual machine identification information; the second backup server is configured to receive the A response message of the migration management module, the response message containing the migrated virtual machine identification information.
  • the backup information includes backup data information or backup policy or backup data information and backup of the virtual machine a combination of the two, if the first backup server and the second backup server share a storage device for storing backup data of the virtual machine, the backup data information includes the backup data of the virtual machine at an address of the storage device Information; if the first backup server and the second backup server do not share a storage device for storing backup data of the virtual machine, the backup data information includes backup data of the virtual machine.
  • the eighth possible implementation manner of the ninth aspect after the second backup server associates the virtual machine with the backup information, The backup information creates a backup plan for the virtual machine.
  • the ninth possible implementation manner in the ninth possible implementation manner of the ninth aspect, after the second backup server associates the virtual machine with the backup information, The first backup server sends a feedback message, which is used to indicate that the backup is completed. Migration of information.
  • the ninth aspect is the system implementation corresponding to the first aspect and the fourth aspect, the first aspect or any one of the possible implementation manners of the first aspect, and the feature description in any one of the possible implementation manners of the fourth aspect or the fourth aspect Applicable to any possible implementation of the ninth aspect or the ninth aspect, and details are not described herein again.
  • the application provides a method for migrating backup information of a virtual machine, the method comprising: the mobility management module migrating the virtual machine running on the first computing device to the second computing device; the mobile management module is first The backup server sends a migration trigger message, where the migration trigger message carries the pre-migration virtual machine identification information and the indication information of the second backup server.
  • the migration management module of the data center sends the migration trigger message to the first backup server after the virtual machine is migrated from the first computing device to the second computing device. And indicating that the first backup server migrates the backup information of the virtual machine to the second backup server. If the first computing device and the second computing device belong to two different data centers of the first data center and the second data center, respectively, the migration management module of the first data center or the second data center may send the data to the first backup server. This migration triggers the message.
  • the present application provides a computer readable medium comprising computer executed instructions that, when executed by a processor of a computer, execute the method of the tenth aspect.
  • the present application provides a computing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store an execution instruction, the processor is connected to the memory through the bus, and when the computing device is running The processor executes the execution instructions stored by the memory to cause the computing device to perform the method of the tenth aspect.
  • the application provides a backup information migration device for a virtual machine
  • the device includes: a migration unit, configured to migrate a virtual machine running on the first computing device to a second computing device; And sending a migration trigger message to the first backup server, where the migration trigger message carries the pre-migration virtual machine identification information and the indication information of the second backup server.
  • the thirteenth aspect is the device implementation manner of the migration management module of the tenth aspect, and the feature description of the tenth aspect is applicable to the thirteenth aspect, and details are not described herein again.
  • the present application provides a method for migrating backup information of a virtual machine, where the method includes: the backup server management platform receives a migration notification message from the migration management module, and the migration The notification message carries the identifier of the first computing device, the identifier of the second computing device, and the pre-migration virtual machine identification information, where the migration notification message is used to indicate that the virtual machine is migrated from the first computing device to the second computing device;
  • the server management platform determines the first backup server according to the identifier of the first computing device, determines the second backup server according to the identifier of the second computing device, and sends a migration trigger message to the first backup server, where the migration trigger message carries the pre-migration virtual Machine identification information and indication information of the second backup server.
  • the backup server management platform is responsible for unified management and scheduling of the first backup server and the second backup server, and monitors virtual machine migration events, and schedules migration of virtual machine backup information.
  • the backup server management platform stores a correspondence between the computing device and the backup server.
  • the present application provides a computer readable medium comprising computer executed instructions that, when executed by a processor of a computer, execute the method of the fourteenth aspect.
  • the application provides a computing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store an execution instruction, the processor is connected to the memory through the bus, when the computing device is running The processor executes the execution instructions stored by the memory to cause the computing device to perform the method of the fourteenth aspect.
  • the present application provides a backup information migration apparatus for a virtual machine, where the apparatus includes: a receiving unit, configured to receive a migration notification message from a migration management module, where the migration notification message carries an identifier of the first computing device The identifier of the second computing device and the pre-migration virtual machine identification information, the migration notification message is used to indicate that the virtual machine is migrated from the first computing device to the second computing device, and the determining unit is configured to use the identifier of the first computing device Determining, by the first backup server, the second backup server according to the identifier of the second computing device; the sending unit, configured to send a migration trigger message to the first backup server, where the migration trigger message carries the pre-migration virtual machine identification information and the second Instructions for backing up the server.
  • the seventeenth aspect is the device implementation manner of the migration management module of the fourteenth aspect, and the feature description of the fourteenth aspect is applicable to the seventeenth aspect, and details are not described herein again.
  • the application provides a method for migrating backup information of a virtual machine, the method comprising: the first migration management module sending a migration notification message to the first backup server, where the migration notification message carries the migration of the virtual machine
  • the first backup server determines the backup information of the virtual machine according to the migration notification message, and creates a backup data volume, where the backup data volume includes backup information and virtual machine identification information of the virtual machine;
  • First migration management module Sending the indication information of the backup data volume; the first migration management module determines the backup data volume according to the indication information of the backup data volume; the first migration management module sends a backup information migration message to the second migration management module, the backup information migration message Carrying the indication information of the second backup server and the backup data volume;
  • the second migration management module mounts the backup data volume to the second backup server according to the backup information migration message; and the second backup server determines according to the virtual machine identification information
  • the virtual machine associates the virtual machine with backup information of the virtual machine.
  • the present application provides a method for migrating a backup information of a virtual machine, where the method includes: the first migration management module sends a migration notification message to the first backup server, where the migration notification message carries the migration of the virtual machine.
  • the first backup server determines the backup information of the virtual machine according to the migration notification message, and creates a backup data volume, where the backup data volume includes backup information and virtual machine identification information of the virtual machine;
  • the first migration management module sends the indication information of the backup data volume;
  • the first migration management module determines the backup data volume according to the indication information of the backup data volume;
  • the first migration management module sends a backup information migration message to the second migration management module,
  • the backup information migration message carries the backup data volume;
  • the second migration management module determines the second backup server according to the virtual machine identification information, and mounts the backup data volume to the second backup server;
  • the second backup server is virtualized
  • the machine identification information determines the virtual machine and associates the virtual machine with Virtual machine backup information.
  • the backup data information and the backup policy are After the virtual machine is migrated to the new location, the backup data before the virtual machine migration can be inherited, so that the virtual machine after the migration continues to be protected by the backup data before the migration. If an error occurs, the original backup data can be used for recovery. Reduced the risk of user data loss.
  • the backup server of the second computing device can perform data backup on the virtual machine according to the backup policy before the migration, so that the data backup can be continuously performed.
  • FIG. 1(a), (b), (c), (d), and (e) are exemplary block diagrams of a backup information migration system of a virtual machine according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a hardware of a computing device according to an embodiment of the invention.
  • FIG. 3 is a signaling diagram of a method for migrating backup information of a virtual machine according to an embodiment of the invention
  • FIG. 4 is a schematic diagram showing the logical structure of a backup information migration apparatus of a virtual machine according to an embodiment of the invention
  • FIG. 5 is a schematic diagram showing the logical structure of a backup information migration apparatus of a virtual machine according to an embodiment of the invention
  • FIG. 6 is a signaling diagram of a method for migrating backup information of a virtual machine according to an embodiment of the invention.
  • a backup server is used to manage data backup of a virtual machine in a virtual machine group.
  • a virtual machine group may include multiple computing devices, and each virtual computing device may run multiple virtual machines. Virtual machines can be migrated on different computing devices. Virtual machine migration can simplify system maintenance management, improve system load balancing, enhance system error tolerance, and optimize system power management.
  • the backup server is used to perform data backup on the virtual machine inside the data center. When the virtual machine has an error, the backup data can be used to perform virtual machine recovery and the like.
  • the backup information includes backup data information and/or a backup policy. If the two virtual machines that are located before and after the virtual machine migration share the storage device for storing the backup data, the backup data information may be the address information of the backup data of the virtual machine in the storage device, if the virtual machine is located before and after the migration. The virtual machine does not share the storage device for storing backup data, and the backup data information is the backup data itself of the virtual machine.
  • the backup policy refers to the objects that the virtual machine needs to be backed up, the backup time, and the backup method.
  • Migration preparation The policy is to enable the migrated virtual machine to continue to back up data according to the original backup strategy.
  • the backup method is various, and the backup strategy determines which data backup method is used.
  • the backup mode may be one of a full backup, an incremental backup, or a differential backup, or a combination thereof.
  • the backup method can also be a combination of multiple ways. For example, an incremental or differential backup is performed once a day from Monday to Saturday, a full backup every Sunday, a full backup at the end of each month, and a full backup at the end of each year.
  • the importance of each type of data is different, and the way it is backed up can be different. For example, for data that is generally important, it is only necessary to re-establish a full backup after a certain period of time. For very important data, it is necessary not only to establish a full backup after a certain period of time, but also to carry out more during this time. Differential backups, as well as incremental backups every day or hour.
  • the migration backup policy enables the migrated virtual machine to back up data according to the backup policy determined before migration, and can more rationally utilize the resources of the backup server.
  • the backup strategy can also contain the specific content of the data that needs to be backed up.
  • the contents of the backup include the current location change of the data, content changes, hard links and instructions, and sometimes the permissions, owner and encryption status of the file should be backed up.
  • the backup strategy can also include the execution time of each backup method, because performing multiple backups at the same time consumes a lot of network bandwidth and computer resources, so the backup methods such as full backup and incremental backup should be staggered, for example, can be arranged in idle. Perform a full backup and perform the corresponding incremental or differential backup while ensuring that normal services are not affected.
  • FIG. 1(a) shows an exemplary networked environment block diagram of a virtual machine backup information migration system 100, as shown in FIG. 1(a), the system 100 includes a first virtual machine group 102 and a second virtual machine group 104, further Storage device 108 can also be included.
  • the first virtual machine group 102 and the second virtual machine group 104 each have at least one computing device 114, and each computing device 114 runs at least one virtual machine 116 for managing virtuality in the first virtual machine group 102.
  • the data backup of the machine 114 is used to manage data backup of the virtual machine 114 in the second virtual machine unit 104.
  • Components between the first virtual machine group 102 and the second virtual machine group 104 can communicate over the network 106.
  • the network 106 may be the Internet, an intranet, a local area network (LAN), a wireless local area network (WLANs), a storage area network (SANs), or the like, or a combination of the above.
  • LAN local area network
  • WLANs wireless local area network
  • SANs storage area network
  • the storage device 108 can be coupled to components within the first virtual machine group 102 and/or the second virtual machine group 104 via a communication interface, or can be implemented by the network 106 with components within the first virtual machine group 102 and/or the second virtual machine group 104. Coupled, components in either or both of the first virtual machine group 102 and the second virtual machine group 104 can access the storage device 108. Alternatively, the storage device 108 can be used to store backup data of the virtual machine 116 in the first virtual machine group 102 and/or the second virtual machine group 104.
  • the first virtual machine group 102 and the second virtual power unit 104 may be deployed in the same data center or in different data centers.
  • FIG. 1(b) is a specific implementation of FIG. 1(a).
  • the first virtual unit 102 and the second virtual unit 104 are deployed in the same data center 118.
  • the same migration management module 120, the migration management module 120 is used to manage the migration operation of the virtual machines in the data center 118.
  • FIG. 1(c) is another specific implementation manner of FIG. 1(a).
  • the first virtual unit 102 and the second virtual unit 104 are respectively deployed in the first data center 122 and the first Two data centers 124 two different data centers.
  • the first data center 122 has a first migration management module 126
  • the second data center has a second migration management module 128.
  • the migration management module is used to manage the migration of the virtual machine 116 inside the data center where it is located, and manage the operation of the virtual machine inside and across the data center.
  • the migration management module and the backup server may be independent components, or may be components integrated in the cloud management platform of the data center, that is, the functions of the migration management module and/or the backup server, or some functions may integrate data.
  • the migration management module and the backup server may be implemented by software or hardware.
  • the implementation of the migration management module and the backup server is not limited in the embodiment of the present invention. If the functions of the migration management module and the backup server are integrated in the cloud management platform, the communication flow between the two in the following description can be reduced.
  • the system 100 can also include a backup server management platform. As shown in FIG. 1(d) and FIG. 1(e), the backup server management platform is responsible for unified management and scheduling of the first backup server 110 and the second backup server 112, and monitors. A virtual machine migration event that schedules migration of virtual machine backup information.
  • the backup server management platform stores a correspondence between the computing device and the backup server.
  • FIG. 1(a)-FIG.1(e) may be of any architecture, which is not limited by the embodiment of the present invention.
  • the first backup server 110, the second backup server 112, the migration management module 120, the first migration management module 126, the second migration management module 128, and the backup server management platform 130 shown in FIG. 1(a)-FIG.1(e) This can be implemented by the computer 200 shown in FIG. 2.
  • the computer 200 includes a processor 202, a memory unit 204, an input/output interface 206, a communication interface 208, a bus 210, and a storage device 212.
  • the processor 202, the memory unit 204, the input/output interface 206, the communication interface 208, and the storage device 212 implement communication connections with each other through the bus 210.
  • the processor 202 is a control center of the computer 200 for executing related programs to implement the technical solutions provided by the embodiments of the present invention.
  • the processor 202 includes one or more central processing units (CPUs), such as the central processing unit 1 and the central processing unit 2 shown in FIG.
  • the computer 200 may further include a plurality of processors 202, each of which may be a single core processor (including one CPU) or a multi-core processor (including multiple CPUs).
  • a component for performing a specific function such as a processor or a memory unit, may be implemented by configuring a general-purpose component to perform a corresponding function, or by performing a specific function.
  • the specific components are implemented, and the application does not limit this.
  • the processor 202 can use a general-purpose central processing unit, a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs to implement the technology provided by the present application. Program.
  • ASIC application specific integrated circuit
  • Processor 202 can be coupled to one or more storage schemes via bus 210.
  • Storage scheme A memory unit 204 and a storage device 212 can be included.
  • the storage device 212 can be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • Memory unit 204 can be a random access memory.
  • the memory unit 204 can be integrated with or integrated with the processor 202, or it can be one or more memory units independent of the processor 202.
  • Program code for execution by the processor 202 or a CPU internal to the processor 202 may be stored in the storage device 212 or the memory unit 204.
  • program code eg, an operating system, application software, backup module, or communication module, etc.
  • stored within storage device 212 is copied to memory unit 204 for execution by processor 202.
  • the storage device 212 can be a physical hard disk or a partition thereof (including a small computer system interface storage or a global network block device volume), a network storage protocol (including a network file system NFS or the like network or a cluster file system), a file-based virtual storage device (virtual Disk mirroring), logical volume-based storage devices. It may include high speed random access memory (RAM), and may also include non-volatile memory, such as one or more disk memories, flash memories, or other non-volatile memory.
  • RAM random access memory
  • the storage device may further include a remote memory separate from the one or more processors 202, such as a network disk accessed through a communication interface 208 with a communication network, which may be the Internet, an intranet , local area networks (LANs), wide area networks (WLANs), storage area networks (SANs), etc., or a combination of the above.
  • the storage device 212 can also be used to store backup data of the virtual machine 116 backed up by the backup module.
  • Operating systems include controls and management of general system tasks (such as memory management, storage device control, power management, etc.) And various software components and/or drivers that facilitate communication between various hardware and software components.
  • the input/output interface 206 is for receiving input data and information, and outputting data such as operation results.
  • Communication interface 208 implements communication between computer 200 and other devices or communication networks using transceivers such as, but not limited to, transceivers.
  • Bus 210 may include a path for communicating information between various components of computer 200, such as processor 202, memory unit 204, input/output interface 206, communication interface 208, and storage device 212.
  • the bus 210 can use a wired connection or a wireless communication mode, which is not limited in this application.
  • computer 200 shown in FIG. 2 only shows the processor 202, the memory unit 204, the input/output interface 206, the communication interface 208, the bus 210, and the storage device 212, in a specific implementation process, the art The skilled person will appreciate that computer 200 also contains other devices necessary to achieve proper operation.
  • the computer 200 can be a general purpose computer or a special purpose computing device, including but not limited to any portable device, personal desktop computer, web server, tablet computer, mobile phone, personal digital assistant (PDA), or the like, or both. A variety of combinations of devices, this application does not limit the specific implementation of the computer 200.
  • computer 200 of FIG. 2 is merely an example of a computer 200 that may include more or fewer components than those shown in FIG. 2, or have different component configurations.
  • computer 200 may also include hardware devices that implement other additional functions, depending on the particular needs.
  • computer 200 may also only include the components necessary to implement embodiments of the present invention, and does not necessarily include all of the devices shown in FIG.
  • the various components shown in Figure 2 can be implemented in hardware, software, or a combination of hardware and software.
  • FIG. 2 and the foregoing description are applicable to various computing devices provided by the embodiments of the present invention, and are applicable to performing various virtual machine backup information migration methods provided by the embodiments of the present invention.
  • the memory unit 204 of the computer 200 includes a backup module, and the processor 202 executes the program code of the backup module to implement migration of the virtual machine backup information.
  • the virtual machines of different virtual machines cannot share the backup information
  • the virtual machine migrates to the new one.
  • the backup data before the virtual machine migration cannot be inherited after the migration, so that after the virtual machine is migrated, if an error occurs, the original backup data cannot be used for recovery, and the value of the backup is lost. And increase the risk of user data loss.
  • the second backup server 112 cannot perform the same backup strategy as the previous virtual machine, and it is necessary to re-designate a suitable backup policy for the migrated virtual machine at a relatively high cost.
  • the backup module can be constructed from one or more operational instructions to cause the computer 200 to perform one or more method steps in accordance with the above description.
  • the specific method steps are detailed in the following sections of this application. Detailed description.
  • FIG. 1(b) is an exemplary block diagram of a virtual machine backup information migration system according to an embodiment of the invention.
  • the first virtual machine group 102 and the second virtual machine group 104 are in the same data center 118, and the migration management module 120 is configured to manage the migration operation of the virtual machine in the data center 118, the first computing device and the first The two computing devices belong to the first virtual unit 102 and the second virtual unit 104 respectively.
  • the first backup server 110 is configured to manage the data backup of the virtual machine in the first virtual unit 102, and the second backup server 112 is used.
  • the data backup of the virtual machines in the second virtual machine group 104 is managed.
  • the signaling diagram of the backup information migration process of the virtual machine 116 is as shown in FIG. 3, and the backup information migration process of the virtual machine includes:
  • the migration management module 120 migrates the virtual machine 116 from the first computing device to the second computing device.
  • the migration management module 120 of the data center 118 initiates the migration operation of the virtual machine 116 and is responsible for migrating information such as configuration information and data volumes of the virtual machine 116 from the first computing device to the second computing device.
  • the first backup server 110 receives the migration trigger message.
  • step 302 and step 304 may be in no particular order. If the waiting time for preparing backup information is reduced, the migration notification message may be sent to the first backup server 110 in advance.
  • the identification information of the virtual machine 116 at the first computing device is referred to as the pre-migration virtual machine identification information, and the identification information of the second computing device is used for the description.
  • the virtual machine identification information for the migration is referred to as the pre-migration virtual machine identification information, and the identification information of the second computing device is used for the description.
  • the migration triggering message carries the pre-migration virtual machine identification information and the indication information of the second backup server 112.
  • the migration triggering message is used to instruct the first backup server 110 to send the backup information of the virtual machine 116 to the second backup server.
  • the pre-migration virtual machine identification information may include a host ID (Host ID) of the first computing device and a virtual machine identifier (VMID) of the virtual machine 116 at the first computing device.
  • the pre-migration virtual machine identification information may also be address information of the virtual machine when it is at the first computing device.
  • pre-migration virtual machine identification information is used to indicate the identification information of the virtual machine 116 in the first computing device, so that the first backup server 110 uniquely determines the virtual machine 116.
  • the present invention The embodiment does not limit the specific implementation manner of the virtual machine identification information before migration.
  • the indication information of the second backup server 112 may be the address information or the host number of the second backup server 112.
  • the indication information of the second backup server 112 is an identifier of the second computing device
  • the first backup server 110 determines the second backup server 112 according to the identifier of the second computing device and the first correspondence, where A correspondence relationship between the second computing device and the second backup server 112 is included in a correspondence.
  • the first corresponding relationship may be maintained by the first backup server 110, or the first corresponding relationship may be maintained by a management server, and the first backup server 110 may query the management server for the second The address information or host number information of the second backup server 112 corresponding to the computing device is calculated.
  • the migration trigger message received by the first backup server 110 may be a migration trigger message from the migration management module 120.
  • the migration management module 120 After migrating the virtual machine 116 from the first computing device to the second computing device, the migration management module 120 sends a migration trigger message to the first backup server 110, instructing the first backup server 110 to send the backup information of the virtual machine 116 to the first Second backup server 112.
  • the migration management module 120 maintains a correspondence between each computing device and the backup server in the data center 118.
  • the migration trigger message received by the first backup server 110 may also be a migration trigger message from the second backup server 112.
  • the migration management module 120 migrates the virtual machine 116 from the first computing device to the second computing device
  • the indication information of the first backup server 110 and the pre-migration virtual machine identification information are sent to the second backup server 112, and the second backup is performed.
  • the server 112 sends a migration trigger message to the first backup server 110, instructing the first backup server 110 to send the backup information of the virtual machine 116 to the second backup server 112.
  • the indication information of the first backup server 110 may be a host ID or address information of the first backup server 110.
  • the indication information of the first backup server 110 may also be the identifier of the first computing device, the second backup server 112 maintains the correspondence between the first computing device and the first backup server 110, and the second backup server 112 according to the correspondence and The identification of the first computing device determines the first backup server 110.
  • the system shown in FIG. 1(b) further includes a backup server management platform.
  • the backup server management platform 130 is responsible for the first backup server 110. Unified management and scheduling with the second backup server 112, and listening to the virtual Machine migration event, scheduling migration of virtual machine backup information.
  • the backup server management platform stores a correspondence between the computing device and the backup server.
  • the migration trigger message received by the first backup server 110 may also be from the backup server management platform 130.
  • the migration notification message is sent to the backup server management platform 130.
  • the migration notification message carries the identifier of the first computing device, the identifier of the second computing device, and the pre-migration virtual machine identification information.
  • the backup server management platform 130 determines the first backup server 110 according to the identifier of the first computing device, determines the second backup server 112 according to the identifier of the second computing device, and sends a migration trigger message to the first backup server 110.
  • the first backup server 110 determines backup information of the virtual machine 116 according to the pre-migration virtual machine identification information.
  • the first backup server 110 is configured to back up the virtual machine 116 on the first computing device, and internally maintains the backup information before the migration of the virtual machine 116.
  • the backup information of the virtual machine may be determined according to the pre-migration virtual machine identification information.
  • the backup information includes backup data information and/or a backup policy of the virtual machine 116. If the first backup server 110 and the second backup server 112 share a storage device for storing backup data of the virtual machine 116, the backup is performed.
  • the data information includes address information of the backup data of the virtual machine 116 in the storage device; if the first backup server 110 and the second backup server 112 do not share the storage device for storing the backup data of the virtual machine 116, the backup data information is backed up.
  • the backup data itself of the virtual machine 116 is included.
  • the embodiment of the present invention does not limit the form of the migration trigger message.
  • the first backup server 110 may not receive the pre-migration virtual machine identification information and the indication information of the second backup server, and may be, for example, the first backup server 110.
  • the first backup server 110 may query the migration management module 120 for the information of the second backup server.
  • the first backup server 110 sends a backup information migration message to the second backup server 112.
  • step 306 a mutual trust relationship is established between the first backup server 110 and the second backup server 112, and a communication connection between the two is established.
  • the backup information migration message includes the identification information of the virtual machine 116 and the backup information of the virtual machine 116.
  • the identification information of the virtual machine 116 carried in the backup information migration message may be the pre-migration virtual machine identification information.
  • the identification information of the virtual machine 116 carried in the backup information migration message may also be the migrated virtual machine identification information, and the migrated virtual machine identification information is the identification information of the virtual machine 116 in the second computing device.
  • the migrated virtual machine identification information may include a Host ID of the second computing device and a VMID of the virtual machine 116 at the second computing device.
  • the migrated virtual machine identification information may also be address information of the virtual machine at the second computing device.
  • the correspondence between the pre-migration virtual machine identification information and the migrated virtual machine identification information may be sent to the first backup server 110 by the migration management module 120 or the second backup server 112 or the backup server management platform 130.
  • the virtual machine identification information after the migration is to indicate the identification information of the virtual machine 116 in the second computing device, so that the second backup server 112 uniquely determines the virtual machine 116.
  • the embodiment of the present invention does not refer to the virtual machine after migration. The specific implementation of the identification information is limited.
  • the first backup server 110 sends the backup information migration message to the second backup server 112.
  • the first backup server 110 sends the backup information migration message to the second backup server 112 through the migration management module 120.
  • a backup server 110 sends a backup information migration message to the migration management module 120 (or the migration management module 120 obtains the backup information migration message from the first backup server 110), and the migration management module 120 sends the backup information migration message to the first Second backup server 112. It should be understood that the embodiment of the present invention does not limit the specific process that the first backup server 110 sends the backup information migration message to the second backup server 112.
  • the second backup server 112 determines the virtual machine 116 according to the identification information of the virtual machine 116.
  • the second backup server 112 determines the virtual machine 116 according to the pre-migration virtual machine identification information, specifically: the second backup server.
  • the virtual machine identification information of the virtual machine is determined according to the virtual machine identification information and the second corresponding relationship before the migration, and the second correspondence includes the mapping relationship between the virtual machine identification information before the migration and the virtual machine identification information after the migration.
  • the virtual machine 116 migrates from the first computing device to the second computing device, its pre-migration virtual machine identification information of the first computing device and the migrated virtual machine identification information of the second computing device
  • the second backup server 112 needs to determine the migrated virtual machine identification information according to the pre-migration virtual machine identification information.
  • the second backup server 112 sends a query message to the migration management module 120, where the query message includes the pre-migration virtual machine identification information, and receives a response message from the migration management module 120, and responds.
  • the message carries the virtual machine identification information after the migration.
  • the migration management module 120 stores the second correspondence, and can determine the migrated virtual machine identification information according to the second correspondence maintained by itself and the pre-migration virtual machine identification information.
  • the migration management module 120 actively sends the second corresponding relationship between the pre-migration virtual machine identification information and the migrated virtual machine identification information to the second backup server 112. .
  • the second backup server 112 directly determines the virtual machine 116 according to the migrated virtual machine identification information.
  • the second backup server 112 associates the virtual machine 116 with its backup information.
  • the backup information includes backup data information of the virtual machine 116. If the first backup server 110 and the second backup server 112 share a storage device for storing backup data of the virtual machine 116, the backup data information includes the virtual The backup data of the machine 116 is the address information of the storage device, and the second backup server 112 associates the virtual machine 116 with the storage area indicated by the address information.
  • the second backup server 112 further verifies whether the storage area indicated by the address information can be accessed normally, and the integrity and availability of the backup data of the storage area. If the storage area indicated by the address information cannot be accessed normally or the backup data in the storage area is incomplete or unavailable, the second backup server 112 may send the error information to the second migration management module or the first backup server 110.
  • the backup data information includes the backup data itself of the virtual machine 116, and the second backup server 112 is also The backup data creates a backup data storage area, and stores the received backup data in the created backup data storage area.
  • the backup information includes a backup policy
  • the second backup server 112 determines whether there is a backup policy in the backup information migration message, and if not, creates a backup policy.
  • the backup policy is associated with the virtual machine 116 with the backup policy.
  • a backup plan is also prepared for the virtual machine 116 based on the backup information.
  • the speed of data backup recovery determines the need to take appropriate backup storage media, storage methods and transmission media.
  • a well-considered, well-executed data backup and recovery plan is the most important foundation for ensuring successful recovery in the event of a data disaster.
  • the validity of the backup data is verified. After the data backup is completed, it cannot be said that the data after the backup can be used when needed. Therefore, a specific backup data validity check plan can be specified in the backup plan, as well as a clear way to verify the validity of the backup data. The validity of the backup data is clarified to ensure that the data stored in the system or device can be effectively recovered after a failure.
  • any data has its own life cycle, which is the complete cycle of data generation, use, storage, and destruction. Because the data types and importance of virtual machines are not identical, you need to determine the life cycle of different backup data and how to safely destroy it when not in use.
  • the life cycle of the data is determined to determine the capacity of the backup storage medium. The longer the life of the data, the greater the capacity of the required storage medium.
  • the embodiment of the present invention only exemplifies the backup plan. According to different functions of the virtual machine, there may be various backup plans, and different backup plans may contain more or less content, and the present invention is implemented. The example does not limit this.
  • the second backup server 112 sends a feedback message to the first backup server 110.
  • This feedback message is used to indicate the migration of the completed backup information.
  • the first backup server 110 may disconnect the communication connection with the second backup server to release the communication resource, and may delete the original backup data of the virtual machine, thereby releasing the first A backup server's storage resources.
  • the backup information is migrated between the two backup servers.
  • the backup data before the virtual machine migration can be inherited, so that the migrated virtual machine continues to be protected by the backup data before the migration.
  • the backup server of the second computing device can perform data backup on the virtual machine according to the backup policy before migration.
  • FIG. 1(c) is an exemplary block diagram of a virtual machine backup information migration system in accordance with an embodiment of the present invention.
  • the first virtual unit 102 and the second virtual unit 104 are in two different data centers of the first data center 122 and the second data center 124, respectively.
  • the first migration management module 126 is configured to manage the migration operation of the virtual machine in the first data center 122
  • the second migration management module 128 is configured to manage the migration operation of the virtual machine in the second data center 124.
  • the first computing device and the second computing device belong to the first virtual machine group 102 and the second virtual machine group 104 respectively.
  • the first backup server 110 is configured to manage data backup of the virtual machine in the first virtual machine group 102
  • the second backup server 112 is used to manage the data backup of the virtual machine in the first virtual machine group 102.
  • the data backup of the virtual machines in the second virtual machine group 104 is managed.
  • the virtual machine 116 is migrated from the first computing device to the second computing device.
  • the backup information migration process of the virtual machine 116 includes:
  • the first migration management module 126 and the second migration management module 128 migrate the virtual machine 116 from the first computing device to the second computing device.
  • the migration operation of the virtual machine 116 may be triggered by the first migration management module 126, and the configuration of the virtual machine 116 may be performed through interaction with the second migration management module 128 of the second data center 124.
  • Information migration such as information and data volumes, is migrated from the first computing device to the second computing device.
  • S404 The first backup server 110 receives the migration trigger message information.
  • step S402 and step S404 may be in no particular order. If the waiting time for preparing backup information is reduced, the migration notification message may be sent to the first backup server 110 in advance.
  • the migration trigger message has been described in the embodiment of FIG. 3, and details are not described herein again.
  • the indication information of the second backup server 112 may also be the identifier of the second data center 124.
  • the first backup server may determine the second backup server according to the identifier of the second data center according to the preset correspondence. .
  • the migration trigger message received by the first backup server 110 may be a migration trigger message from the first migration management module 126.
  • the first migration management module 126 migrates the virtual machine 116 from the first computing device to the second computing device, it sends a migration trigger message to the first backup server 110, instructing the first backup server 110 to send the backup information of the virtual machine 116.
  • the first migration management module 126 stores a correspondence between the first computing device and the first backup server 110.
  • the first migration management module 126 may save the correspondence between the second computing device and the second backup server 112, and may also obtain the indication information of the second backup server 112 from the second migration management module 128.
  • the migration trigger message received by the first backup server 110 may also be from the second migration management module 128.
  • the first migration management module 126 sends the indication information of the first backup server 110 and the pre-migration virtual machine identification information of the virtual machine 116 to the second migration management module 128.
  • the second migration management module 128 stores a correspondence between the second computing device and the second backup server 112.
  • the migration trigger message received by the first backup server 110 may also be from the second backup server 112.
  • the first migration management module 126 sends the indication information of the first backup server 110 and the pre-migration virtual machine identification information of the virtual machine 116 to the second migration management module 128, and the first migration server is used by the second migration management module 128.
  • the indication information of 110 and the pre-migration virtual machine identification information of the virtual machine 116 are sent to the second backup server 112.
  • the first migration management module 126 may directly send the indication information of the first backup server 110 and the pre-migration virtual machine identification information of the virtual machine 116 to the second backup server 112.
  • the first migration management module 126 may save the second
  • the mapping between the computing device and the second backup server 112 may be sent by the second migration management module 128 to the first migration management module 126.
  • the indication information of the first backup server 110 may be the identifier of the first computing device, and the second migration management module may save the correspondence between the first computing device and the first backup server 110, and according to the correspondence and the first The identity of the computing device determines the first backup server.
  • the second backup server may also store the corresponding relationship, and the second backup server determines the first backup server according to the identifier of the first computing device and the corresponding relationship.
  • the system shown in FIG. 1(c) further includes a backup server management platform 130.
  • the backup server management platform 130 is responsible for the first backup server 110. Unified management and scheduling with the second backup server 112, and listening to the virtual machine Migrate events and schedule migration of virtual machine backup information.
  • the backup server management platform stores a correspondence between the computing device and the backup server.
  • the migration trigger message received by the first backup server 110 may also be from the backup server management platform 130.
  • the first migration management module 126 or the second migration management module 128 sends a migration notification message to the backup server management platform 130.
  • the migration notification message carries the identifier of the first computing device, the identifier of the second computing device, and the pre-migration virtual machine identification information.
  • the backup server management platform 130 determines the first backup server 110 according to the identifier of the first computing device, determines the second backup server 112 according to the identifier of the second computing device, and sends a migration trigger message to the first backup server 110.
  • the embodiment of the present invention does not limit the form of the migration trigger message.
  • the first backup server 110 may not receive the pre-migration virtual machine identification information and the indication information of the second backup server 112, for example, may be the first backup server.
  • the notification message is received by the first backup server 126.
  • the first backup server 110 can query the first migration management module 126 for the indication information of the second backup server 112.
  • the first backup server 110 determines the backup information of the virtual machine 116 according to the pre-migration virtual machine identification information.
  • the remaining steps refer to the description of the steps in steps 306 to 312, and details are not described herein again.
  • the second backup server 112 determines that the migrated virtual machine identifier information is based on the pre-migration virtual machine identifier information: the second backup server 112 sends a query message to the second migration management module 128, where the query message includes the pre-migration The virtual machine identifies the information, and receives a response message from the second migration management module 128, where the response message carries the migrated virtual machine identification information.
  • the migration management module 128 stores the second correspondence, and can determine the migrated virtual machine identification information according to the second correspondence maintained by itself and the pre-migration virtual machine identification information.
  • the second migration management module 128 actively sends the pre-migration virtual machine identification information and the second virtual machine identification information to the second backup server 112. Correspondence relationship.
  • the first backup server 110 sends the backup information migration message to the second backup server 112.
  • the first backup server 110 sends the backup information migration message through the first migration management module 126 and the second migration management module 128.
  • the second backup server 112 sends the backup information migration message to the first migration management module 126 (or the first migration management module 126 acquires the backup information from the first backup server 110).
  • the backup information migration message is sent by the first migration management module 126 to the second migration management module 128, and the second migration management module 128 sends the backup information migration message to the second backup server 112. It should be understood that the embodiment of the present invention does not limit the specific process that the first backup server 110 sends the backup information migration message to the second backup server 112.
  • a virtual machine migrates from a first computing device in a different data center to a second computing device
  • migration of backup information between the two backup servers is implemented, and the virtual machine is migrated to After the new location
  • the backup data before the virtual machine migration can be inherited, so that the migrated virtual machine continues to be protected by the backup data before migration.
  • the backup server of the second computing device can perform data backup on the virtual machine according to the backup policy before migration.
  • FIG. 4 is a schematic diagram showing the logical structure of a backup information migration apparatus of a virtual machine according to an embodiment of the present invention. After the virtual machine running on the first computing device is migrated to the second computing device, the device 400 is configured to use the virtual machine. The backup information is migrated to the backup server of the second computing device. As shown in FIG. 4, the device 400 includes a receiving unit 402, a determining unit 404, and a sending unit 406, where
  • the receiving unit 402 is configured to receive a migration trigger message, where the migration trigger message carries the pre-migration virtual machine identification information and the indication information of the backup server, where the pre-migration virtual machine identification information is used to indicate the virtual machine, and the device 400 is used to operate
  • the virtual machine on the first computing device performs data backup
  • the backup server is configured to perform data backup on the virtual machine running on the second computing device.
  • the receiving unit 402 can be implemented by the processor 202, the memory unit 204, and the communication interface 208 shown in FIG. More specifically, the communication module in memory unit 204 can be executed by processor 202 to cause communication interface 208 to receive the migration trigger message.
  • the receiving unit 402 is configured to receive the migration trigger message, where the receiving unit 402 is configured to receive a migration trigger message from the backup server, where the migration trigger message is used to request the device 400 to perform the backup of the virtual machine. Information is sent to the backup server.
  • the receiving unit 402 is configured to receive the migration trigger message, where the receiving unit 402 is configured to receive a migration trigger message from the migration management module, where the migration management module is configured to manage a migration operation of the virtual machine, where the migration trigger A message is used to indicate that the virtual machine is being migrated from the first computing device to the second computing device.
  • the receiving unit 402 is configured to receive a migration trigger message, including: the receiving unit 402 is configured to receive a migration trigger message from a backup server management platform, and the backup server management platform is configured to manage migration of backup information between the device 400 and the backup server.
  • the determining unit 404 is configured to determine backup information of the virtual machine according to the pre-migration virtual machine identification information.
  • the determining unit 404 can be implemented by the processor 202 and the memory unit 204 shown in FIG. 2, and more specifically, the processor 202 can execute the backup module in the memory unit 204 to determine the backup information of the virtual machine. .
  • the sending unit 406 is configured to send a backup information migration message to the backup server, where the backup information migration message carries the backup information and the virtual machine identification information.
  • the sending unit 406 can be implemented by the processor 202, the memory unit 204, and the communication interface 208 shown in FIG. 2. More specifically, the communication module in memory unit 204 can be executed by processor 202 to cause communication interface 208 to send a backup information migration message to the backup server.
  • the indication information of the backup server is an identifier of the second computing device
  • the determining unit 404 is further configured to: according to the identifier of the second computing device And determining, by the first correspondence, the backup server, where the first correspondence includes a correspondence between the second computing device and the backup server.
  • the backup information includes backup data information and/or a backup policy of the virtual machine. If the device 400 and the backup server share a storage device for storing backup data of the virtual machine, the backup data information includes the The backup data of the virtual machine is the address information of the storage device; if the device 400 and the backup server do not share the storage device for storing the backup data of the virtual machine, the backup data information includes backup data of the virtual machine.
  • the receiving unit 402 is further configured to: receive a feedback message from the backup server, where the feedback message is used to indicate that the migration of the backup information is completed.
  • the embodiment of the present invention is an apparatus embodiment of the first backup server 110, and the features of the embodiment of FIG. 1(a) - FIG. 1(e) to FIG. 3 are applicable to the embodiment of the present invention, and details are not described herein again.
  • FIG. 5 is a schematic diagram showing the logical structure of a backup information migration apparatus of a virtual machine according to an embodiment of the present invention.
  • the device 500 is used to migrate the backup information of the virtual machine from the first backup server of the first computing device to the device 500.
  • the device 500 includes a receiving unit 502, a determining unit 504, and a processing unit 506.
  • the receiving unit 502 is configured to receive a backup information migration message from the backup server, where the backup information migration message includes virtual machine identification information and backup information of the virtual machine, where the virtual machine identification information is used to indicate the virtual machine, and the backup server is used by the backup server.
  • Data backup is performed on the virtual machine running on the first computing device, and the device 500 is configured to perform data backup on the virtual machine running on the second computing device.
  • the virtual machine identification information may be the pre-migration virtual machine identification information or the migrated virtual machine identification information.
  • the receiving unit 502 can be implemented by the processor 202, the memory unit 204, and the communication interface 208 shown in FIG. More specifically, the communication module in memory unit 204 can be executed by processor 202 to cause communication interface 208 to receive a backup information migration message from the backup server.
  • the receiving unit 502 is further configured to: receive the notification message from the migration management module, where the notification message carries the indication information of the backup server and the pre-migration virtual machine Identification information, the migration management module is configured to manage the migration operation of the virtual machine; the apparatus 500 further includes a sending unit, configured to send a migration trigger message to the backup server, where the migration trigger message is used to request the backup server to use the virtual machine The backup information is sent to the device 500, and the migration trigger message carries the pre-migration virtual machine identification information and the indication information of the device 500.
  • the determining unit 504 is configured to determine the virtual machine according to the virtual machine identification information.
  • the determining unit 504 can be implemented by the processor 202 and the memory unit 204 shown in FIG. 2, and more specifically, the processor 202 can execute the backup module in the memory unit 204 according to the pre-migration virtual machine identifier.
  • the information identifies the virtual machine.
  • the pre-migration virtual machine identification information is the pre-migration virtual machine identification information.
  • the determining unit 504 is configured to determine the virtual machine according to the virtual machine identification information, where the determining unit 504 is configured to use the pre-migration virtual machine.
  • the identification information and the second correspondence relationship are used to determine the migrated virtual machine identification information of the virtual machine, where the migrated virtual machine identification information is the identification information of the virtual machine in the second computing device, and the second correspondence includes the Pre-migration virtual machine identification information and the Correspondence of virtual machine identification information after migration.
  • the apparatus 500 further includes a sending unit, where the determining unit 504 is configured to determine the virtual machine according to the virtual machine identification information, where the determining unit 504 is configured to send, by using the sending unit, a query message to the migration management module, the query
  • the message includes the pre-migration virtual machine identification information
  • the migration management module is configured to manage the migration operation of the virtual machine, and the second correspondence is saved
  • the determining unit 504 is configured to receive, by the receiving unit 502, the migration management module.
  • the backup information includes backup data information of the virtual machine, and if the backup server and the device 500 share a storage device for storing backup data of the virtual machine, the backup data information includes backup data of the virtual machine.
  • the processing unit 506 is configured to associate the virtual machine with the backup information.
  • the determining unit 506 can be implemented by the processor 202 and the memory unit 204 shown in FIG. 2, and more specifically, the processor 202 can execute the backup module in the memory unit 204 to associate the virtual machine with the backup. information.
  • the processing unit 506 is further configured to: create a backup plan for the virtual machine according to the backup information.
  • the sending unit is further configured to: send a feedback message to the backup server, where the feedback message is used to indicate that the migration of the backup information is completed.
  • the embodiment of the present invention is an apparatus embodiment of the second backup server 112, and the features of the embodiment of FIG. 1(a) - FIG. 1(e) to FIG. 3 are applicable to the embodiment of the present invention, and details are not described herein again.
  • FIG. 6 is a signaling diagram of the backup information migration method of the virtual machine according to an embodiment of the present invention. As shown in FIG. 6, the method includes:
  • the first migration management module 126 and the second migration management module 128 migrate the virtual machine 116 from the first data center to the second data center.
  • the first migration management module 126 sends a migration notification message to the first backup server 110.
  • the migration notification message carries the pre-migration virtual machine identification information of the virtual machine 116, and is used to indicate that the virtual machine 116 is migrated.
  • step 602 and step 604 may be in no particular order. If the waiting time for preparing backup information is reduced, the first migration management module 126 may send a migration notification message to the first backup server 110 in advance.
  • the first backup server 110 creates a backup data volume and saves the backup information of the virtual machine 116 to the backup data volume.
  • the first backup server 110 After receiving the migration notification message, the first backup server 110 creates a backup data volume according to the migration notification message, where the backup data volume includes virtual machine identification information and backup information of the virtual machine 116.
  • the virtual machine identification information may be the pre-migration virtual machine identification information or the migrated virtual machine identification information.
  • the method for the first backup server to obtain the migrated virtual machine identification information has been described in the foregoing embodiment, and details are not described herein. .
  • the first backup server 110 sends a backup data volume indication message to the first migration management module 126.
  • the backup data volume indication message is used to indicate the backup data volume.
  • the first migration management module 126 sends a backup information migration message to the second migration management module 128.
  • the first migration management module 126 After receiving the backup data volume indication message sent by the first backup server 110, the first migration management module 126 generates a backup information migration message according to the backup data volume.
  • the backup information migration message includes the backup data volume and the indication information of the second backup server 112.
  • the backup information migration message includes the backup data volume and the backup server identifier, where the backup server identifier is used to indicate that the destination of the backup data volume is a backup server.
  • the server identifier may be recorded by using the field of the virtual machine identifier when the virtual machine data volume is migrated between the migration management modules.
  • the second migration management module 128 mounts the backup data volume to the second backup server 112.
  • the second migration management module 128 determines the second backup server according to the indication information of the second backup server 112. 112, and the backup data volume is mounted to the second backup server 112.
  • the backup data migration message carries the backup server identifier
  • the backup data volume is a data volume storing the virtual machine backup data
  • the second migration management module 128 determines that the backup data volume carries the backup information of the virtual machine.
  • the second backup server 112 is determined according to the virtual machine identification information carried in the backup information migration message. If the virtual machine identification information is the pre-migration virtual machine identification information, the second backup server 112 further determines the migration according to the pre-migration virtual machine identification information.
  • the virtual machine identifies the information) and mounts the backup data volume to the second backup server 112.
  • the second migration management module 128 maintains the correspondence between the virtual machine and the backup server, and the virtual machine identification information before migration and the virtual machine identification information after migration.
  • the second backup server 112 obtains the virtual machine identification information of the virtual machine 116 from the backup data volume, and determines the virtual machine 116.
  • the second backup server 112 determines the migrated virtual machine identification information according to the pre-migration virtual machine identification information of the virtual machine 116.
  • the second backup server 112 determines the specific description of the migrated virtual machine identification information according to the pre-migration virtual machine identification information, which has been described in the embodiment of FIG. 4, and details are not described herein again.
  • the second backup server 112 associates the virtual machine 116 with its backup information.
  • the second backup server 112 associates the virtual machine 116 indicated by the migrated virtual machine identification information with the backup information.
  • the second migration management module 128 further sends a feedback message to the first migration management module, to indicate that the migration of the backup information is completed.
  • FIG. 6 is another implementation manner in the scenario of FIG. 1(c) and FIG. 1(e), so the above description for the features of FIG. 1(c) and FIG. 1(e) is applicable to the present invention. , will not repeat them here.
  • the migration management module migrates the data volume, and the virtual machine backup information is migrated between different data centers.
  • the migration of the backup information between the two backup servers is realized.
  • the backup data before the virtual machine migration can be inherited, so that the virtual machine after the migration continues to be protected by the backup data before the migration.
  • the backup server of the second computing device can perform data backup on the virtual machine according to the backup policy before migration.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division, and may be implemented in another manner, for example, multiple modules or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or otherwise.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium.
  • the software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a mobile hard disk, a read-only memory (English: Read-Only Memory, ROM for short), a random access memory (English: Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like. The medium of the code.

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)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供了一种虚拟机备份信息迁移方法、装置和系统,实现虚拟机迁移后备份信息的迁移。该方法包括:第一备份服务器接收迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息,该第一备份服务器用于对迁移前的虚拟机进行数据备份,该第二备份服务器用于对迁移后的虚拟机进行数据备份;该第一备份服务器根据该迁移前虚拟机标识信息确定该虚拟机的备份信息;该第一备份服务器向该第二备份服务器发送该备份信息。从而使迁移后的虚拟机继承迁移之前的备份信息,从而使迁移之后的虚拟机继续受到迁移之前备份数据的保护,并按照迁移之前的备份策略对虚拟机进行数据备份。

Description

一种虚拟机备份信息迁移方法、装置和系统 技术领域
本发明实施例涉及计算机领域,尤其涉及一种虚拟机备份信息迁移方法、装置和系统。
背景技术
随着IT技术的不断发展,目前主流的云计算平台均支持了虚拟机迁移特性,虚拟机迁移是指的将虚拟机从一个主机或存储位置移至另一个主机或存储位置的过程。虚拟机迁移的范围可能在同一数据中心内,也有可能跨数据中心。在虚拟化环境中,虚拟机数据备份系统的建立,一般会根据备份业务规模和备份服务器的能力,部署一个或多个备份服务器。
对于建立了虚拟机备份系统的数据中心来说,虚拟机都会被其所在区域的备份服务器保护起来,如果虚拟机迁移到其原来所在备份服务器保护的范围之外,该虚拟机将面临无法继续得到备份保护的风险。
以跨数据中心的虚拟机迁移为例,第一数据中心和第二数据中心分别部署一个备份服务器对虚拟机进行备份保护。当第一数据中心中的虚拟机迁移到第二数据中心之后,该虚拟机的备份数据仍旧保留在第一数据中心的第一备份服务器的备份存储上面。虚拟机迁移到新位置之后,如果不进行备份信息的迁移,则新位置的备份服务器无法自动对该虚拟机执行和迁移之前相同的备份计划,且虚拟机迁移之前的备份数据在迁移之后无法继承,从而导致虚拟机迁移之后无法使用原有备份数据进行恢复。
发明内容
有鉴于此,本申请提供了一种虚拟机备份信息迁移方法、装置和系统,实现虚拟机迁移后备份信息的迁移。
当运行于第一计算设备上的虚拟机被迁移管理模块迁移到第二计算设备后,本申请公开的技术方案用于实现该虚拟机的备份信息从第一备份服务器到第二备份服务器的迁移,第一备份服务器用于对运行在第一计算设备上的虚拟机进行数据备份,第二备份服务器用于对运行在第二计算设备上的虚拟机进行数据备份。其中,备份信息包含备份数据信息或备份策略,或备份数 据信息和备份策略二者的组合。如果虚拟机迁移前后所在的两个虚拟机组共享用于存储备份数据的存储设备,则备份数据信息可以为该虚拟机的备份数据在该存储设备的地址信息,如果虚拟机迁移前后所在的两个虚拟机组不共享用于存储备份数据的存储设备,则备份数据信息为该虚拟机的备份数据本身。备份策略是指该虚拟机需要备份的对象、备份时间或备份方式中的任意之一或组合。
第一方面,本申请提供了一种虚拟机的备份信息迁移方法,包括:第一备份服务器接收迁移触发消息,该迁移触发消息携带有迁移前虚拟机标识信息和第二备份服务器的指示信息,用于指示第一备份服务器将虚拟机的备份信息迁移至第二备份服务器;该第一备份服务器根据迁移前虚拟机标识信息确定该虚拟机的备份信息,并向该第二备份服务器发送备份信息迁移消息,该备份信息迁移消息中携带该备份信息和虚拟机标识信息。
其中,迁移触发消息中的迁移前虚拟机标识信息为为该虚拟机在第一计算设备时的标识。虚拟机迁移前后的标识信息会发生变化,为了描述方便,在以下描述中,该虚拟机在第一计算设备时的标识信息称为迁移前虚拟机标识信息,在第二计算设备的标识信息为迁移后虚拟机标识信息。迁移触发消息中的虚拟机标识信息可以为迁移前虚拟机标识信息或迁移后虚拟机标识信息。
结合第一方面,在第一方面第一种可能的实现方式中,该第一备份服务器接收到的迁移触发消息为来自该第二备份服务器的迁移触发消息,该迁移触发消息用于请求该第一备份服务器将该虚拟机的该备份信息发送至该第二备份服务器。如果第一计算设备和第二计算设备处于同一个数据中心,则该数据中心的移管理模块将该虚拟机从第一计算设备迁移至第二计算设备后,将第一备份服务器的指示信息和该迁移前虚拟机标识信息发送给第二备份服务器。如果第一计算设备和第二计算设备分别处于第一数据中心和第二数据中心两个不同的数据中心,则可以由第一数据中心的迁移管理模块将第一备份服务器的指示信息和该虚拟机的迁移前虚拟机标识信息发送给第二数据中心的迁移管理模块,并由第二数据中心的迁移管理模块将该第一备份服务器的指示信息和该虚拟机的迁移前虚拟机标识信息发送给第二备份服务器。
结合第一方面,在第一方面第二种可能的实现方式中,该第一备份服务器接收到的迁移触发消息为来自迁移管理模块的迁移触发消息,该迁移管理模块用于管理该虚拟机的迁移操作。如果第一计算设备和第二计算设备属于同一个数据中心,则该数据中心的迁移管理模块将该虚拟机迁移至第一计算设备后,向第一备份服务器发送该迁移触发消息。如果第一计算设备和第二计算设备属于第一数据中心和第二数据中心两个不同的数据中心,则可以由第一数据中心的迁移管理模块或第二数据中心的迁移管理模块向第一备份服务器发送该迁移触发消息。
结合第一方面或第一方面以上任一种可能的实现方式,在第一方面第三种可能的实现方式中,该第二备份服务器的指示信息为该第二计算设备的标识,该第一备份服务器向该第二备份服务器发送备份信息迁移消息之前,根据该第二计算设备的标识和第一对应关系,确定该第二备份服务器,其中,该第一对应关系中包含该第二计算设备和该第二备份服务器的对应关系。
结合第一方面,在第一方面第四种可能的实现方式中,该第一备份服务器接收到的迁移触发消息为来自备份服务器管理平台的迁移触发消息,该备份服务器管理平台用于管理该第一备份服务器和该第二备份服务器之间的备份信息的迁移。如果第一计算设备和第二计算设备属于同一个数据中心,则该数据中心的迁移管理模块向该备份服务器管理平台发送迁移通知消息,如果第一计算设备和第二计算设备属于不同的数据中心,则可以由第一数据中心或第二数据中心的迁移管理模块向该备份服务器管理平台发送迁移通知消息,迁移通知消息中可以携带第一计算设备的标识、第二计算设备的标识和迁移前虚拟机标识信息,该备份服务器管理平台根据第一计算设备的标识确定第一备份服务器,根据第二计算设备的标识确定第二备份服务器,并向第一备份服务器发送迁移触发消息。
结合第一方面或第一方面以上任一种可能的实现方式,在第一方面第五种可能的实现方式中,该备份信息包含该虚拟机的备份数据信息或备份策略或备份数据信息和备份策略二者的组合,若该第一备份服务器和该第二备份服务器共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该第一备份服务器和该第二备份服务器不共享用于存储该虚拟机的备份数据的存储设备,则该备份 数据信息包含该虚拟机的备份数据。
如果第一备份服务器和第二备份服务器共用用于数据备份的存储设备,则只需要将该虚拟机的备份数据所在的地址信息进行迁移即可,从而减少了数据的传输量。
结合第一方面或第一方面以上任一种可能的实现方式,在第一方面第六种可能的实现方式中,该第一备份服务器向该第二备份服务器发送备份信息迁移消息之后,还接收来自该第二备份服务器的反馈消息,该反馈消息用于指示完成该备份信息的迁移。第一备份服务器接收到来自第二备份服务器的反馈消息后,可以断开与第二备份服务器的通信连接,以释放通信资源,并删除原始虚拟机备份信息,从而节省第一备份服务器的存储资源。
第二方面,本申请提供了一种计算机可读介质,包括计算机执行指令,当计算机的处理器执行该计算机执行指令时,该计算机执行第一方面或第一方面任一种可能的实现方式中的方法。
第三方面,本申请提供了一种计算设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储执行指令,该处理器与该存储器通过该总线连接,当该计算设备运行时,该处理器执行该存储器存储的该执行指令,以使该计算设备执行第一方面或第一方面任一种可能的实现方式中的方法。
第四方面,本申请提供了一种虚拟机的备份信息迁移方法,包括:第二备份服务器接收来自第一备份服务器的备份信息迁移消息,该备份信息迁移消息包含虚拟机标识信息和该虚拟机的备份信息;该第二备份服务器根据该虚拟机标识信息确定该虚拟机,并关联该虚拟机与该备份信息。
结合第四方面,在第四方面第一种可能的实现方式中,该第二备份服务器接收来自第一备份服务器的备份信息迁移消息之前,该方法还包括:该第二备份服务器接收来自迁移管理模块的通知消息,其中,该通知消息中携带该第一备份服务器的指示信息和迁移前虚拟机标识信息;该第二备份服务器向该第一备份服务器发送迁移触发消息,该迁移触发消息用于请求该第一备份服务器将该虚拟机的该备份信息发送至该第二备份服务器,该迁移触发消息携带该迁移前虚拟机标识信息和该第二备份服务器的指示信息。
如果第一计算设备和第二计算设备属于同一个数据中心,该数据中心的迁移管理模块将该虚拟机从第一计算设备迁移至第二计算设备后,向第二备 份服务器发送通知消息,用于通知有新的虚拟机迁移至其管理的第二计算设备;如果第一计算设备和第二计算设备分别属于第一数据中心和第二数据中心两个不同的数据中心,则可以由第一数据中心或第二数据中心的迁移管理模块向第二备份服务器发送该通知消息。
结合第四方面或第四方面以上任一种可能的实现方式,在第四方面第二种可能的实现方式中,该虚拟机标识信息为迁移前虚拟机标识信息,该第二备份服务器根据该虚拟机标识信息确定该虚拟机,包括:该第二备份服务器根据该迁移前虚拟机标识信息和第二对应关系,确定该虚拟机的迁移后虚拟机标识信息,其中,该第二对应关系包含该迁移前虚拟机标识信息和该迁移后虚拟机标识信息的对应关系。
结合第四方面或第四方面以上任一种可能的实现方式,在第四方面第三种可能的实现方式中,该第二备份服务器根据该虚拟机标识信息确定该虚拟机,包括:该第二备份服务器向迁移管理模块发送查询消息,并接收来自该迁移管理模块的应答消息,该查询消息包含该迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作,并保存有该第二对应关系,该应答消息包含该迁移后虚拟机标识信息。
结合第四方面或第四方面以上任一种可能的实现方式,在第四方面第四种可能的实现方式中,该备份信息包含该虚拟机的备份数据信息或备份策略或备份数据信息和备份策略二者的组合,若该第一备份服务器和该第二备份服务器共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该第一备份服务器和该第二备份服务器不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
结合第四方面或第四方面以上任一种可能的实现方式,在第四方面第五种可能的实现方式中,该第二备份服务器关联该虚拟机与该备份信息之后,该方法还包括:该第二备份服务器根据该备份信息为该虚拟机制定备份计划。该备份计划可以包含备份恢复计划,一个考虑周详,执行透彻的数据备份恢复计划,是保证当发生数据灾难后能否成功恢复的最重要的基础条件。
结合第四方面或第四方面以上任一种可能的实现方式,在第四方面第六种可能的实现方式中,该第二备份服务器关联该虚拟机与该备份信息之后, 该方法还包括:该第二备份服务器向该第一备份服务器发送反馈消息,该反馈消息用于指示完成该备份信息的迁移。第一备份服务器接收到来自第二备份服务器的反馈消息后,可以断开与第二备份服务器的通信连接,以释放通信资源。
第五方面,本申请提供了一种计算机可读介质,包括计算机执行指令,当计算机的处理器执行该计算机执行指令时,该计算机执行第四方面或第四方面任一种可能的实现方式中的方法。
第六方面,本申请提供了一种计算设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储执行指令,该处理器与该存储器通过该总线连接,当该计算设备运行时,该处理器执行该存储器存储的该执行指令,以使该计算设备执行第四方面或第四方面任一种可能的实现方式中的方法。
第七方面,本申请提供了一种虚拟机的备份信息迁移装置,该装置包括:接收单元,用于接收迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和备份服务器的指示信息,该装置用于对运行在该第一计算设备上的虚拟机进行数据备份,该备份服务器用于对运行在该第二计算设备上的虚拟机进行数据备份;确定单元,用于根据该迁移前虚拟机标识信息确定该虚拟机的备份信息;发送单元,用于向该备份服务器发送备份信息迁移消息,该备份信息迁移消息中携带该备份信息和该虚拟机标识信息。
结合第七方面,在第七方面第一种可能的实现方式中,该接收单元用于接收迁移触发消息,包括:该接收单元用于接收来自该备份服务器的迁移触发消息,该迁移触发消息用于请求该装置将该虚拟机的该备份信息发送至该备份服务器。
结合第七方面或第七方面,在第七方面第二种可能的实现方式中,该接收单元用于接收迁移触发消息,包括:该接收单元用于接收来自迁移管理模块的迁移触发消息,该迁移管理模块用于管理该虚拟机的迁移操作,该迁移触发消息用于指示该虚拟机被从该第一计算设备迁移至该第二计算设备。
结合第七方面或第七方面以上任一种可能的实现方式,在第七方面第三种可能的实现方式中,该备份服务器的指示信息为该第二计算设备的标识,该发送单元向该备份服务器发送备份信息迁移消息之前,该确定单元还用于:根据该第二计算设备的标识和第一对应关系,确定该备份服务器,其中, 该第一对应关系中包含该第二计算设备和该备份服务器的对应关系。
结合第七方面或第七方面,在第七方面第四种可能的实现方式中,该接收单元用于接收迁移触发消息,包括:该接收单元用于接收来自备份服务器管理平台的迁移触发消息,该备份服务器管理平台用于管理该装置和该备份服务器之间的备份信息的迁移。
结合第七方面或第七方面以上任一种可能的实现方式,在第七方面第五种可能的实现方式中,该备份信息包含该虚拟机的备份数据信息或备份策略或备份数据信息和备份策略二者的组合,若该装置和该备份服务器共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该装置和该备份服务器不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
结合第七方面或第七方面以上任一种可能的实现方式,在第七方面第六种可能的实现方式中,该发送单元向该备份服务器发送备份信息迁移消息之后,该接收单元还用于:接收来自该备份服务器的反馈消息,该反馈消息用于指示完成该备份信息的迁移。
第七方面为第一方面或第一方面任何一种可能的实现方式中的第一备份服务器的装置实施方式,第一方面或第一方面任意一种可能的实现方式中的特征描述适用于第七方面或第七方面任一种可能的实现方式,在此不再赘述。
第八方面,本申请提供了一种虚拟机的备份信息迁移装置,该装置包括:接收单元,用于接收来自备份服务器的备份信息迁移消息,该备份信息迁移消息包含虚拟机标识信息和该虚拟机的备份信息,该备份服务器用于对运行在该第一计算设备上的虚拟机进行数据备份,该装置用于对运行在该第二计算设备上的虚拟机进行数据备份;确定单元,用于根据该虚拟机标识信息确定该虚拟机;处理单元,用于关联该虚拟机与该备份信息。
结合第八方面,在第八方面第一种可能的实现方式中,该接收单元接收来自备份服务器的备份信息迁移消息之前,还用于:接收来自迁移管理模块的通知消息,其中,该通知消息中携带该备份服务器的指示信息和迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作;该装置还包 括发送单元,用于向该备份服务器发送迁移触发消息,该迁移触发消息用于请求该备份服务器将该虚拟机的该备份信息发送至该装置,该迁移触发消息携带该迁移前虚拟机标识信息和该装置的指示信息。
结合第八方面或第八方面以上任一种可能的实现方式,在第八方面第二种可能的实现方式中,该虚拟机标识信息为迁移前虚拟机标识信息;该确定单元用于根据该虚拟机标识信息确定该虚拟机,包括:该确定单元用于根据该迁移前虚拟机标识信息和第二对应关系,确定该虚拟机的迁移后虚拟机标识信息,该第二对应关系包含该迁移前虚拟机标识信息和该迁移后虚拟机标识信息的对应关系。
结合第八方面或第八方面以上任一种可能的实现方式,在第八方面第三种可能的实现方式中,该装置还包括发送单元,该确定单元用于根据该虚拟机标识信息确定该虚拟机,包括:该确定单元用于通过该发送单元向迁移管理模块发送查询消息,该查询消息包含该迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作,并保存有该第二对应关系;该确定单元用于通过该接收单元接收来自该迁移管理模块的应答消息,该应答消息包含该迁移后虚拟机标识信息。
结合第八方面或第八方面以上任一种可能的实现方式,在第八方面第四种可能的实现方式中,该备份信息包含该虚拟机的备份数据信息或备份策略或备份数据信息和备份策略二者的组合,若该备份服务器和该装置共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该备份服务器和该装置不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
结合第八方面或第八方面以上任一种可能的实现方式,在第八方面第五种可能的实现方式中,该处理单元关联该虚拟机与该备份信息之后,还用于:根据该备份信息为该虚拟机制定备份计划。
结合第八方面或第八方面以上任一种可能的实现方式,在第八方面第六种可能的实现方式中,该处理单元关联该虚拟机与该备份信息之后,该发送单元还用于:向该备份服务器发送反馈消息,该反馈消息用于指示完成该备份信息的迁移。
第八方面为第四方面或第四方面任何一种可能的实现方式中的第二备份服务器的装置实施方式,第四方面或第四方面任意一种可能的实现方式中的特征描述适用于第八方面或第八方面任一种可能的实现方式,在此不再赘述。
第九方面,本申请提供了一种虚拟机的备份信息迁移系统,该系统包括第一备份服务器和第二备份服务器;第一备份服务器,用于接收迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息,根据该迁移前虚拟机标识信息确定该虚拟机的备份信息,并向该第二备份服务器发送备份信息迁移消息,该备份信息迁移消息中携带该备份信息和虚拟机标识信息;第二备份服务器,用于收来自该第一备份服务器的该备份信息迁移消息,根据该虚拟机标识信息确定该虚拟机,并关联该虚拟机与该备份信息。
结合第九方面,在第九方面第一种可能的实现方式中,该系统还包括迁移管理模块,该迁移管理模块用于管理该虚拟机的迁移操作;该第一备份服务器具体用于接收来自该第二备份服务器的迁移触发消息;该第二备份服务器向该第一备份服务器发送迁移触发消息之前,还用于接收来自迁移管理模块的通知消息,其中,该通知消息中携带该第一备份服务器的指示信息和该迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第二种可能的实现方式中,该系统还包括迁移管理模块,该迁移管理模块用于管理该虚拟机的迁移操作;该第一备份服务器具体用于接收来自该迁移管理模块的迁移触发消息。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第三种可能的实现方式中,该第二备份服务器的指示信息为该第二计算设备的标识;该第一备份服务器向该第二备份服务器发送备份信息迁移消息之前,还用于:根据该第二计算设备的标识和第一对应关系,确定该第二备份服务器,其中,该第一对应关系中包含该第二计算设备和该第二备份服务器的对应关系。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第四种可能的实现方式中,该系统还包括备份服务器管理平台和迁移管理模块, 该备份服务器管理平台用于管理该第一备份服务器和该第二备份服务器之间的备份信息的迁移操作,该迁移管理模块用于管理该虚拟机的迁移操作;该第一备份服务器具体用于接收来自备份服务器管理平台的迁移触发消息;该备份服务器管理平台向该第一备份服务器发送该迁移触发消息之前,还用于接收来自该迁移管理模块的通知消息,该通知消息中携带该第一备份服务器的指示信息、该第二备份服务器的指示信息和该迁移前虚拟机标识信息。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第五种可能的实现方式中,该虚拟机标识信息为迁移前虚拟机标识信息;该第二备份服务器具体用于根据该迁移前虚拟机标识信息和第二对应关系,确定该虚拟机的迁移后虚拟机标识信息,该第二对应关系包含该迁移前虚拟机标识信息和该迁移后虚拟机标识信息的对应关系。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第六种可能的实现方式中,该系统还包括迁移管理模块,该迁移管理模块用于管理该虚拟机的迁移操作,并保存有该第二对应关系;该第二备份服务器具体用于向该迁移管理模块发送查询消息,该查询消息包含该迁移前虚拟机标识信息;该第二备份服务器用于接收来自该迁移管理模块的应答消息,该应答消息包含该迁移后虚拟机标识信息。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第七种可能的实现方式中,该备份信息包含该虚拟机的备份数据信息或备份策略或备份数据信息和备份策略二者的组合,若该第一备份服务器和该第二备份服务器共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该第一备份服务器和该第二备份服务器不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第八种可能的实现方式中,该第二备份服务器关联该虚拟机与该备份信息之后,还用于根据该备份信息为该虚拟机制定备份计划。
结合第九方面或第九方面以上任一种可能的实现方式,在第九方面第九种可能的实现方式中,该第二备份服务器关联该虚拟机与该备份信息之后,还用于向该第一备份服务器发送反馈消息,该反馈消息用于指示完成该备份 信息的迁移。
第九方面为第一方面和第四方面对应的系统实施方式,第一方面或第一方面任意一种可能的实现方式,第四方面或第四方面任意一种可能的实现方式中的特征描述适用于第九方面或第九方面任一种可能的实现方式,在此不再赘述。
第十方面,本申请提供了一种虚拟机的备份信息迁移方法,该方法包括:移动管理模块将运行于第一计算设备上的虚拟机迁移到第二计算设备;该移动管理模块向第一备份服务器发送迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息。
如果第一计算设备和第二计算设备属于同一个数据中心,则该数据中心的迁移管理模块将该虚拟机从第一计算设备迁移至第二计算设备后,向第一备份服务器发送迁移触发消息,用于指示第一备份服务器将该虚拟机的备份信息迁移至第二备份服务器。如果第一计算设备和第二计算设备分别属于第一数据中心和第二数据中心两个不同的数据中心,则可以由第一数据中心或第二数据中心的迁移管理模块向第一备份服务器发送该迁移触发消息。
第十一方面,本申请提供了一种计算机可读介质,包括计算机执行指令,当计算机的处理器执行该计算机执行指令时,该计算机执行第十方面中的方法。
第十二方面,本申请提供了一种计算设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储执行指令,该处理器与该存储器通过该总线连接,当该计算设备运行时,该处理器执行该存储器存储的该执行指令,以使该计算设备执行第十方面的方法。
第十三方面,本申请提供了一种虚拟机的备份信息迁移装置,该装置包括:迁移单元,用于将运行于第一计算设备上的虚拟机迁移到第二计算设备;发送单元,用于向第一备份服务器发送迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息。第十三方面为第十发面的迁移管理模块的装置实施方式,第十方面的特征描述适用于第十三方面,在此不再赘述。
第十四方面,本申请提供了一种虚拟机的备份信息迁移方法,该方法包括:备份服务器管理平台接收来自迁移管理模块的迁移通知消息,该迁移通 知消息中携带第一计算设备的标识、第二计算设备的标识和迁移前虚拟机标识信息,该迁移通知消息用于指示该虚拟机被从第一计算设备迁移至第二计算设备;该备份服务器管理平台根据第一计算设备的标识确定第一备份服务器,根据第二计算设备的标识确定第二备份服务器,并向第一备份服务器发送迁移触发消息,该迁移触发消息携带有该迁移前虚拟机标识信息和第二备份服务器的指示信息。其中,该备份服务器管理平台负责第一备份服务器和第二备份服务器的统一管理和调度,并监听虚拟机迁移事件,调度虚拟机备份信息的迁移。该备份服务器管理平台上保存有计算设备与备份服务器之间的对应关系。
第十五方面,本申请提供了一种计算机可读介质,包括计算机执行指令,当计算机的处理器执行该计算机执行指令时,该计算机执行第十四面中的方法。
第十六方面,本申请提供了一种计算设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储执行指令,该处理器与该存储器通过该总线连接,当该计算设备运行时,该处理器执行该存储器存储的该执行指令,以使该计算设备执行第十四方面的方法。
第十七方面,本申请提供了一种虚拟机的备份信息迁移装置,该装置包括:接收单元,用于接收来自迁移管理模块的迁移通知消息,该迁移通知消息中携带第一计算设备的标识、第二计算设备的标识和迁移前虚拟机标识信息,该迁移通知消息用于指示该虚拟机被从第一计算设备迁移至第二计算设备;确定单元,用于根据第一计算设备的标识确定第一备份服务器,根据第二计算设备的标识确定第二备份服务器;发送单元,用于向第一备份服务器发送迁移触发消息,该迁移触发消息携带有该迁移前虚拟机标识信息和第二备份服务器的指示信息。第十七方面为第十四发面的迁移管理模块的装置实施方式,第十四方面的特征描述适用于第十七方面,在此不再赘述。
第十八方面,本申请提供了一种虚拟机的备份信息迁移方法,该方法包括:第一迁移管理模块向第一备份服务器发送迁移通知消息,该迁移通知消息中携带该虚拟机的迁移前虚拟机标识信息;第一备份服务器根据该迁移通知消息确定该虚拟机的备份信息,并创建备份数据卷,该备份数据卷包含该虚拟机的备份信息和虚拟机标识信息;第一备份服务器向第一迁移管理模块 发送该备份数据卷的指示信息;第一迁移管理模块根据该备份数据卷的指示信息确定该备份数据卷;第一迁移管理模块向第二迁移管理模块发送备份信息迁移消息,该备份信息迁移消息中携带第二备份服务器的指示信息和该备份数据卷;第二迁移管理模块根据该备份信息迁移消息将该备份数据卷挂载给该第二备份服务器;第二备份服务器根据虚拟机标识信息确定该虚拟机,并关联该虚拟机与该虚拟机的备份信息。
第十九方面,本申请提供了一种虚拟机的备份信息迁移方法,该方法包括:第一迁移管理模块向第一备份服务器发送迁移通知消息,该迁移通知消息中携带该虚拟机的迁移前虚拟机标识信息;第一备份服务器根据该迁移通知消息确定该虚拟机的备份信息,并创建备份数据卷,该备份数据卷包含该虚拟机的备份信息和虚拟机标识信息;第一备份服务器向第一迁移管理模块发送该备份数据卷的指示信息;第一迁移管理模块根据该备份数据卷的指示信息确定该备份数据卷;第一迁移管理模块向第二迁移管理模块发送备份信息迁移消息,该备份信息迁移消息中携带该备份数据卷;第二迁移管理模块根据该虚拟机标识信息确定第二备份服务器,并将该备份数据卷挂载给该第二备份服务器;第二备份服务器根据虚拟机标识信息确定该虚拟机,并关联该虚拟机与该虚拟机的备份信息。
根据本申请公开的技术方案,当一个虚拟机从备份服务器不同的第一计算设备迁移至第二计算设备时,因为备份服务器不同的计算设备无法共享备份信息,通过对备份数据信息以及备份策略的迁移,使虚拟机迁移到新位置之后,能够继承虚拟机迁移之前的备份数据,从而使迁移之后的虚拟机继续受到迁移之前备份数据的保护,如果发生错误,可以使用原有备份数据进行恢复,降低了了用户数据丢失的风险。另外,通过备份策略的迁移,使第二计算设备的备份服务器能够按照迁移之前的备份策略对该虚拟机进行数据备份,使数据备份能够连续进行。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1(a)、(b)、(c)、(d)和(e)为本发明实施例提供的虚拟机的备份信息迁移系统的示例性框图;
图2为依据本发明一实施例的计算设备硬件结构示意图;
图3为依据本发明一实施例的虚拟机的备份信息迁移方法的信令图;
图4为依据本发明一实施例的虚拟机的备份信息迁移装置的逻辑结构示意图;
图5为依据本发明一实施例的虚拟机的备份信息迁移装置的逻辑结构示意图;
图6为依据本发明一实施例的虚拟机的备份信息迁移方法的信令图。
具体实施方式
下面将结合附图,对本发明的实施例进行描述。
根据本发明实施例,一个备份服务器用于管理一个虚拟机组中虚拟机的数据备份,一个虚拟机组中可以包含多个计算设备,每一个计算设备上可以运行着多个虚拟机。虚拟机可以在不同的计算设备上进行迁移,虚拟机迁移可以简化系统维护管理,提高系统负载均衡,增强系统错误容忍度和优化系统电源管理等特点。为了增加系统的容灾性能,备份服务器用于对该数据中心内部的虚拟机进行数据备份,当虚拟机发生错误时,可以使用其备份数据来进行虚拟机恢复等操作。
虚拟机在一个虚拟机组内部进行迁移时,因为一个虚拟机组内部的不同计算设备有共同的备份服务器,所以不需要进行备份数据的迁移操作。当虚拟机在不同的虚拟机组之间进行迁移时,因为不同的虚拟机组拥有不同的备份服务器,不同虚拟机组的虚拟机备份相互独立,为了使迁移后的虚拟机继续受到备份数据的保护,需要对备份信息进行迁移。
其中,备份信息包含备份数据信息和/或备份策略。如果虚拟机迁移前后所在的两个虚拟机组共享用于存储备份数据的存储设备,则备份数据信息可以为该虚拟机的备份数据在该存储设备的地址信息,如果虚拟机迁移前后所在的两个虚拟机组不共享用于存储备份数据的存储设备,备份数据信息为该虚拟机的备份数据本身。
备份策略是指该虚拟机需要备份的对象、备份时间及备份方式。迁移备 份策略是为了使迁移后的虚拟机可以继续按照原来的备份策略进行数据的备份。其中,备份方式多种多样,备份策略决定使用什么样的数据备份方法,例如,备份方式可以为完全备份、增量备份或差分备份等中的一种或其结合。
本申请并不对备份策略的具体实现进行限定,可以采用任意的备份方式。在实际应用中,备份方式还可以是多种方式的结合。例如,每周一至周六每天进行一次增量备份或差分备份,每周日进行全备份,每月底进行一次全备份,每年底进行一次全备份。
每种数据的重要性不同,备份的方式也可以不相同。例如,对于一般性重要的数据,只需要在某段时间之后重新建立一个完全备份即可,而对于非常重要的数据,不仅需要在一段时间后建立完全备份,还必需在这段时间内进行多次的差分备份,以及每天或每小时建立增量备份。迁移备份策略可以使迁移后的虚拟机按照迁移前确定的备份策略进行数据的备份,可以更加合理的利用备份服务器的资源。
备份策略还可以包含需要备份的数据的具体内容。备份的内容包括数据当前的位置改变、内容改变、硬链接和指令等,有时还应当备份文件的权限、属主和加密状态等。
备份策略还可以包含每种备份方式的执行时间,因为同时执行多种备份会耗费大量的网络带宽和计算机资源,因此要将完全备份和增量备份等备份方法错开,例如,可以安排在空闲的时候执行完全备份,在保证不影响正常业务的同时,执行相应的增量备份或差分备份。
应了解,以上描述仅仅是一般性的对备份策略的功能进行举例说明,根据虚拟机的不同功能,可以有各种各样的备份策略,不同的备份策略可以包含更多或更少的内容,本申请并不对此进行限定。
图1(a)示出了一种虚拟机备份信息迁移系统100的示例性联网环境框图,如图1(a)所示,系统100包含第一虚拟机组102和第二虚拟机组104,进一步的还可以包含存储设备108。第一虚拟机组102和第二虚拟机组104分别拥有至少一个计算设备114,每一个计算设备114上运行着至少一个虚拟机116,第一备份服务器110用于管理对第一虚拟机组102中的虚拟机114的数据备份,第二备份服务器112用于管理对第二虚拟机组104中的虚拟机114的数据备份。
第一虚拟机组102和第二虚拟机组104之间的组件可以通过网络106进行通信。
网络106可以是因特网,内联网,局域网(Local Area Networks,简称LANs),广域网络(Wireless Local Area Networks,简称WLANs),存储区域网络(Storage Area Networks,简称SANs)等,或者以上网络的组合。
存储设备108可以通过通信接口与第一虚拟机组102和/或第二虚拟机组104内部的组件进行耦合,也可以通过网络106与第一虚拟机组102和/或第二虚拟机组104内部的组件进行耦合,第一虚拟机组102和第二虚拟机组104二者或二者中的任意一个中的组件可以访问存储设备108。可选的,存储设备108可以用来存储第一虚拟机组102和/或第二虚拟机组104中虚拟机116的备份数据。
在实际的业务部署中,第一虚拟机组102和第二虚拟机组104可以部署在同一个数据中心,也可以部署在不同的数据中心。
如图1(b)所示,图1(b)为图1(a)的一种具体的实现方式,第一虚拟机组102和第二虚拟机组104部署在同一个数据中心118,二者拥有相同的迁移管理模块120,迁移管理模块120用于管理数据中心118中虚拟机的迁移操作。
如图1(c)所示,图1(c)为图1(a)的另一种具体的实现方式,第一虚拟机组102和第二虚拟机组104分别部署在第一数据中心122和第二数据中心124两个不同的数据中心。第一数据中心122拥有第一迁移管理模块126,第二数据中心拥有第二迁移管理模块128。
其中,迁移管理模块用于对其所在的数据中心内部的虚拟机116的迁移进行管理,管理虚拟机在数据中心内部和跨数据中心的操作。
在具体实现中,迁移管理模块和备份服务器可以是独立的组件,也可以是集成在数据中心的云管理平台中的组件,即迁移管理模块和/或备份服务器的功能,或者部分功能可以集成数据中心的云管理平台中,迁移管理模块和备份服务器可以采用软件实现或者硬件实现,在本发明实施例并不对迁移管理模块和备份服务器的实现方式进行限定。如果迁移管理模块和备份服务器的功能都集成在云管理平台中,则可以减少以下描述中二者之间的通信流程。
系统100还可以包含备份服务器管理平台,如图1(d)和图1(e)所示,该备份服务器管理平台负责第一备份服务器110和第二备份服务器112的统一管理和调度,并监听虚拟机迁移事件,调度虚拟机备份信息的迁移。该备份服务器管理平台上保存有计算设备与备份服务器之间的对应关系。
应了解,以上命名仅仅是为了描述方便,不应对本发明有任何限制。
应理解,图1(a)-图1(e)的目的仅仅是示例性的引入虚拟机备份信息迁移系统100的参与者以及它们的相互关系。因此,所描绘的系统100被大大地简化,本发明实施例仅仅对其进行概括性的说明,并不对其实现方式进行任何的限定。且图1(a)-图1(e)中的计算设备114、第一备份服务器110和第二备份服务器112可以是任意体系结构的,本发明实施例并不对此进行限定。
图1(a)-图1(e)所示的第一备份服务器110、第二备份服务器112、迁移管理模块120,第一迁移管理模块126、第二迁移管理模块128和备份服务器管理平台130可以由图2所示的计算机200来实现。
图2为计算机200的简化的逻辑结构示意图,如图2所示,计算机200包括处理器202、内存单元204、输入/输出接口206、通信接口208、总线210和存储设备212。其中,处理器202、内存单元204、输入/输出接口206、通信接口208和存储设备212,通过总线210实现彼此之间的通信连接。
处理器202是计算机200的控制中心,用于执行相关程序,以实现本发明实施例所提供的技术方案。可选的,处理器202包含一个或多个中央处理器单元(Central Processing Unit,CPU),例如,图2所示的中央处理器单元1和中央处理器单元2。可选的,计算机200还可以包含多个处理器202,每一个处理器202可以是一个单核处理器(包含一个CPU)或多核处理器(包含多个CPU)。除非另有说明,在本发明中,一个用于执行特定功能的组件,例如,处理器或内存单元,可以通过配置一个通用的组件来执行相应功能来实现,也可以通过一个专门执行特定功能的专用组件来实现,本申请并不对此进行限定。处理器202可以采用通用的中央处理器,微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本申请所提供的技术方案。
处理器202可以通过总线210与一个或多个存储方案相连接。存储方案 可以包含内存单元204和存储设备212。其中,存储设备212可以为只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。内存单元204可以为随机存取存储器。内存单元204可以与处理器202集成在一起或集成在处理器202的内部,也可以是独立于处理器202的一个或多个存储单元。
供处理器202或处理器202内部的CPU执行的程序代码可以存储在存储设备212或内存单元204中。可选的,存储在存储设备212内部的程序代码(例如,操作系统、应用软件、备份模块或通信模块等)被拷贝到内存单元204中,以供处理器202执行。
存储设备212可以为物理硬盘或其分区(包括小型计算机系统接口存储或全局网络块设备卷)、网络存储协议(包括网络文件系统NFS等网络或机群文件系统)、基于文件的虚拟存储设备(虚拟磁盘镜像)、基于逻辑卷的存储设备。可以包含高速随机存储器(RAM),也可以包含非易失性存储器,例如一个或者多个磁盘存储器,闪速存储器,或者其他非易失性存储器。在一些实施例中,存储设备还可能进一步包含与所述一个和多个处理器202分离的远程存储器,例如通过通信接口208与通信网络进行访问的网盘,该通信网络可以为因特网,内联网,局域网(LANs),广域网络(WLANs),存储区域网络(SANs)等,或者以上网络的组合。存储设备212还可以用于存储备份模块备份的虚拟机116的备份数据。
操作系统(例如Darwin、RTXC、LINUX、UNIX、OS X、WINDOWS或是诸如Vxworks之类的嵌入式操作系统)包括用于控制和管理常规系统任务(例如内存管理、存储设备控制、电源管理等等)以及有助于各种软硬件组件之间通信的各种软件组件和/或驱动器。
输入/输出接口206用于接收输入的数据和信息,输出操作结果等数据。
通信接口208使用例如但不限于收发器一类的收发装置,来实现计算机200与其他设备或通信网络之间的通信。
总线210可包括一通路,在计算机200各个部件(例如处理器202、内存单元204、输入/输出接口206、通信接口208和存储设备212)之间传送信息。可选的,总线210可以使用有线的连接方式或采用无线的通讯方式,本申请并不对此进行限定。
应注意,尽管图2所示的计算机200仅仅示出了处理器202、内存单元204、输入/输出接口206、通信接口208、总线210以及存储设备212,但是在具体实现过程中,本领域的技术人员应当明白,计算机200还包含实现正常运行所必须的其他器件。
计算机200可以为一般的通用计算机或专门用途的计算设备,包括但不限于便携计算机,个人台式计算机,网络服务器,平板电脑,手机,个人数字助理(PDA)等任何电子设备,或者以上两种或者多种的组合设备,本申请并不对计算机200的具体实现形式进行任何限定。
此外,图2的计算机200仅仅是一个计算机200的例子,计算机200可能包含相比于图2展示的更多或者更少的组件,或者有不同的组件配置方式。根据具体需要,本领域的技术人员应当明白,计算机200还可包含实现其他附加功能的硬件器件。本领域的技术人员应当明白,计算机200也可仅仅包含实现本发明实施例所必须的器件,而不必包含图2中所示的全部器件。同时,图2中展示的各种组件可以用硬件、软件或者硬件与软件的结合方式实施。
图2所示的硬件结构以及上述描述适用于本发明实施例所提供的各种计算设备,适用于执行本发明实施例所提供的各种虚拟机备份信息迁移方法。
如图2所示,计算机200的内存单元204中包含备份模块,处理器202执行该备份模块的程序代码,实现虚拟机备份信息的迁移。
因为不同虚拟机组的虚拟机无法共享备份信息,当一个虚拟机116从第一虚拟机组102迁移至第二虚拟机组104时,如果不进行备份数据信息以及备份策略的迁移,则虚拟机迁移到新位置之后,在第二虚拟机组104中,虚拟机迁移之前的备份数据在迁移之后无法继承,从而导致虚拟机迁移之后,如果发生错误,无法使用原有备份数据进行恢复,不仅丧失了备份的价值,而且增加了用户数据丢失的风险。而且第二备份服务器112无法对该虚拟机执行和迁移之前相同的备份策略,要花比较大的代价重新为迁移的虚拟机指定合适的备份策略。
备份模块可以由一个或者多个操作指令构成,以使计算机200根据以上描述执行一个或多个方法步骤。具体的方法步骤在本申请的以下部分进行详 细描述。
图1(b)为依据本发明一实施例的虚拟机备份信息迁移系统的示例性框图。如图1(b)所示,第一虚拟机组102和第二虚拟机组104处于同一个数据中心118,迁移管理模块120用于管理数据中心118中虚拟机的迁移操作,第一计算设备和第二计算设备分别属于第一虚拟机组102和第二虚拟机组104两个不同的虚拟机组,第一备份服务器110用于管理第一虚拟机组102中虚拟机的数据备份,第二备份服务器112用于管理第二虚拟机组104中虚拟机的数据备份。该虚拟机116的备份信息迁移流程的信令图如图3所示,该虚拟机的备份信息迁移流程包括:
302:迁移管理模块120将虚拟机116从第一计算设备迁移至第二计算设备。
数据中心118的迁移管理模块120启动该虚拟机116的迁移操作,并负责将虚拟机116的配置信息和数据卷等信息从第一计算设备迁移至第二计算设备。
304:第一备份服务器110接收到迁移触发消息。
应理解,步骤302和步骤304可以不分先后顺序,如果为了减少准备备份信息的等待时间,可以提前给第一备份服务器110发送迁移通知消息。
虚拟机迁移前后的标识信息会发生变化,为了描述方便,在以下描述中,该虚拟机116在第一计算设备时的标识信息称为迁移前虚拟机标识信息,在第二计算设备的标识信息为迁移后虚拟机标识信息。
迁移触发消息中携带迁移前虚拟机标识信息和第二备份服务器112的指示信息,该迁移触发消息用于指示第一备份服务器110将该虚拟机116的备份信息发送至第二备份服务器。
在具体实现过程中,迁移前虚拟机标识信息可以包含第一计算设备的主机号(Host ID)和该虚拟机116在第一计算设备的虚拟机标识符(Virtual Machine IDentifier,VMID)。迁移前虚拟机标识信息还可以是该虚拟机在第一计算设备时的地址信息。
应了解,迁移前虚拟机标识信息是为了表示该虚拟机116在第一计算设备的标识信息,以供第一备份服务器110唯一的确定该虚拟机116,本发明 实施例并不对迁移前虚拟机标识信息的具体实现方式进行限定。
该第二备份服务器112的指示信息可以为第二备份服务器112的地址信息或主机号。
可选的,该第二备份服务器112的指示信息为第二计算设备的标识,第一备份服务器110根据第二计算设备的标识和第一对应关系,确定该第二备份服务器112,其中,第一对应关系中包含第二计算设备和第二备份服务器112的对应关系。在具体实现过程中,可以由第一备份服务器110维护该第一对应关系,也可以由一个管理服务器维护所述第一对应关系,所述第一备份服务器110可以通过向该管理服务器查询第二计算设备对应的第二备份服务器112的地址信息或主机号信息等。
第一备份服务器110接收到的迁移触发消息可以为来自迁移管理模块120的迁移触发消息。迁移管理模块120将该虚拟机116从第一计算设备迁移至第二计算设备后,向第一备份服务器110发送迁移触发消息,指示第一备份服务器110将该虚拟机116的备份信息发送至第二备份服务器112。其中,迁移管理模块120中维护有数据中心118中每一个计算设备与备份服务器之间的对应关系。
第一备份服务器110接收到的迁移触发消息还可以为来自第二备份服务器112的迁移触发消息。迁移管理模块120将该虚拟机116从第一计算设备迁移至第二计算设备后,将第一备份服务器110的指示信息和该迁移前虚拟机标识信息发送给第二备份服务器112,第二备份服务器112向第一备份服务器110发送迁移触发消息,指示第一备份服务器110将该虚拟机116的备份信息发送至第二备份服务器112。
其中,该第一备份服务器110的指示信息可以为第一备份服务器110的主机号(host ID)或地址信息。该第一备份服务器110的指示信息还可以为第一计算设备的标识,第二备份服务器112维护有第一计算设备与第一备份服务器110的对应关系,第二备份服务器112根据该对应关系和第一计算设备的标识确定第一备份服务器110。
在本发明实施例的一种实现方式中,图1(b)所示的系统还包含一个备份服务器管理平台,如图1(d)所示,该备份服务器管理平台130负责第一备份服务器110和第二备份服务器112的统一管理和调度,并监听虚拟 机迁移事件,调度虚拟机备份信息的迁移。该备份服务器管理平台上保存有计算设备与备份服务器之间的对应关系。
第一备份服务器110接收到的迁移触发消息还可以来自该备份服务器管理平台130。迁移管理模块120完成该虚拟机116的迁移后,向该备份服务器管理平台130发送迁移通知消息,迁移通知消息中携带第一计算设备的标识、第二计算设备的标识和迁移前虚拟机标识信息,该备份服务器管理平台130根据第一计算设备的标识确定第一备份服务器110,根据第二计算设备的标识确定第二备份服务器112,并向第一备份服务器110发送迁移触发消息。
第一备份服务器110根据该迁移前虚拟机标识信息确定该虚拟机116的备份信息。第一备份服务器110用于对第一计算设备上的虚拟机116进行备份,其内部维护有该虚拟机116迁移之前的备份信息,可以根据迁移前虚拟机标识信息确定虚拟机的备份信息。
可选的,备份信息包含该虚拟机116的备份数据信息和/或备份策略,若第一备份服务器110和第二备份服务器112共享用于存储该虚拟机116的备份数据的存储设备,则备份数据信息包含该虚拟机116的备份数据在该存储设备的地址信息;若第一备份服务器110和第二备份服务器112不共享用于存储该虚拟机116的备份数据的存储设备,则备份数据信息包含该虚拟机116的备份数据本身。
应了解,本发明实施例并不限定迁移触发消息的形式,例如第一备份服务器110可以不是同时接收到迁移前虚拟机标识信息和第二备份服务器的指示信息,例如可以为第一备份服务器110接收到通知消息,指示迁移前虚拟机标识信息标识的虚拟机被迁移,第一备份服务器110可以向迁移管理模块120查询第二备份服务器的信息。
306:第一备份服务器110向第二备份服务器112发送备份信息迁移消息。
在步骤306之前,第一备份服务器110和第二备份服务器112之间建立互信关系,并建立二者的通信连接。
其中,备份信息迁移消息包括虚拟机116的标识信息和虚拟机116的备份信息。
该备份信息迁移消息中携带的虚拟机116的标识信息可以为迁移前虚拟机标识信息。
该备份信息迁移消息中携带的虚拟机116的标识信息还可以为迁移后虚拟机标识信息,迁移后虚拟机标识信息为该虚拟机116在第二计算设备的标识信息。在具体实现过程中,迁移后虚拟机标识信息可以包含第二计算设备的Host ID和该虚拟机116在第二计算设备的VMID。迁移后虚拟机标识信息还可以是该虚拟机在第二计算设备的地址信息。其中,迁移前虚拟机标识信息和迁移后虚拟机标识信息之间的对应关系可以由迁移管理模块120或第二备份服务器112或备份服务器管理平台130发送给该第一备份服务器110。
应了解,迁移后虚拟机标识信息是为了表示该虚拟机116在第二计算设备的标识信息,以供第二备份服务器112唯一的确定该虚拟机116,本发明实施例并不对迁移后虚拟机标识信息的具体实现方式进行限定。
在具体实现过程中,第一备份服务器110向第二备份服务器112发送备份信息迁移消息可以为:第一备份服务器110通过迁移管理模块120将备份信息迁移消息发送至第二备份服务器112,即第一备份服务器110将备份信息迁移消息发送至迁移管理模块120(或迁移管理模块120从第一备份服务器110处获取该备份信息迁移消息),并由迁移管理模块120将备份信息迁移消息发送至第二备份服务器112。应了解,本发明实施例并不对第一备份服务器110将该备份信息迁移消息发送至第二备份服务器112的具体流程进行限定。
308:第二备份服务器112根据该虚拟机116的标识信息,确定该虚拟机116。
如果该备份信息迁移消息中携带的虚拟机116的标识信息为迁移前虚拟机标识信息,则第二备份服务器112根据迁移前虚拟机标识信息,确定该虚拟机116,具体为:第二备份服务器112根据迁移前虚拟机标识信息和第二对应关系,确定虚拟机的迁移后虚拟机标识信息,第二对应关系包含迁移前虚拟机标识信息和迁移后虚拟机标识信息的对应关系。
因为该虚拟机116从第一计算设备迁移至第二计算设备后,其在第一计算设备的迁移前虚拟机标识信息和在第二计算设备的迁移后虚拟机标识信 息二者不同,第二备份服务器112需要根据迁移前虚拟机标识信息确定迁移后虚拟机标识信息。
在本发明实施例的一种具体实现中,第二备份服务器112向迁移管理模块120发送查询消息,查询消息包含迁移前虚拟机标识信息,并接收到来自该迁移管理模块120的应答消息,应答消息携带迁移后虚拟机标识信息。该迁移管理模块120保存有该第二对应关系,可以根据自己维护的第二对应关系和迁移前虚拟机标识信息确定迁移后虚拟机标识信息。
在本发明实施例的一种实现方式中,发生虚拟机迁移事件后,迁移管理模块120主动向第二备份服务器112发送该迁移前虚拟机标识信息和迁移后虚拟机标识信息的第二对应关系。
如果该虚拟机116的标识信息为迁移后虚拟机标识信息,则第二备份服务器112根据该迁移后虚拟机标识信息直接确定该虚拟机116。
310:第二备份服务器112关联该虚拟机116与其备份信息。
可选的,备份信息包含该虚拟机116的备份数据信息,若第一备份服务器110和第二备份服务器112共享用于存储该虚拟机116的备份数据的存储设备,则备份数据信息包含该虚拟机116的备份数据在该存储设备的地址信息,第二备份服务器112关联该虚拟机116与该地址信息指示的存储区域。
可选的,第二备份服务器112在关联虚拟机与该地址信息指示的存储区域之前,还验证该地址信息指示的存储区域是否可以正常访问,以及该存储区域的备份数据的完整性和可用性。如果该地址信息指示的存储区域无法正常访问或该存储区域中的备份数据不完整或不可用,则第二备份服务器112可以向第二迁移管理模块或第一备份服务器110发送报错信息。
若第一备份服务器110和第二备份服务器112不共享用于存储该虚拟机116的备份数据的存储设备,则备份数据信息包含该虚拟机116的备份数据本身,第二把备份服务器112还为该备份数据创建备份数据存储区域,并将接收到的备份数据存储于创建的备份数据存储区域。
可选的,备份信息中包含备份策略,第二备份服务器112接收到来自第一备份服务器110的备份信息迁移消息后,判断自身是否有该备份信息迁移消息中的备份策略,如果没有,则创建该备份策略,并关联该虚拟机116与该备份策略。
第二备份服务器112关联该虚拟机116与备份信息之后,还根据该备份信息为该虚拟机116制定备份计划。
例如,确定恢复处理流程,当数据出现故障时,按什么样的处理流程,使用哪些备份来恢复故障的应用程序和数据,数据出现故障后应当恢复到什么时间点,以及恢复的速度有什么要求。数据备份恢复的速度决定需要采取相应的备份存储媒介、存储方式和传输介质。一个考虑周详,执行透彻的数据备份恢复计划,是保证当发生数据灾难后能否成功恢复的最重要的基础条件。
再例如,备份数据的有效性校验,数据备份完成后,并不能说明这些备份后的数据就一定能在需要时可以使用。因此,可以在备份计划当中规定一个具体的备份数据有效性检查计划,以及明确备份数据有效性检验的方式。明确了备份数据的有效性,才能保证当系统或设备发生故障后,保存在其中的数据才能被有效地恢复。
再例如,确定如何防范备份操作过程中的异常,当进行数据备份时,并不能确定每次数据备份过程都会不出错。在数据的备份过程中可能会出现备份服务器或存储设备出现机械故障,以及在备份过程中出现停电或其它情况,这些意外的情况就会造成备份任务的中断。因此,制定数据备份计划之时,可以考虑出现这些情况的机率,以及在出现这种情况时该项如何去应对。
再例如,确定数据的生命周期,任何数据都有其存在的生命周期,也就是数据的产生、使用、存储和销毁这一完整的周期。由于虚拟机的数据类型和重要性都不完全相同,因此,需要确定不同备份数据的生命周期,以及在不使用时如何安全地销毁。确定数据的生命周期是为了确定备份存储媒介的容量,数据的生命周期越长,需要的存储媒介的容量就相对地增加。
应了解,本发明实施例仅仅对备份计划进行了举例说明,根据虚拟机的不同功能,可以有各种各样的备份计划,不同的备份计划可以包含更多或更少的内容,本发明实施例并不对此进行限定。
312:第二备份服务器112向第一备份服务器110发送反馈消息。
该反馈消息用于指示完成备份信息的迁移。第一备份服务器110接收到来自第二备份服务器112的反馈消息后,可以断开与第二备份服务器的通信连接,以释放通信资源,并可以删除该虚拟机的原始备份数据,从而释放第 一备份服务器的存储资源。
根据发明实施例公开的技术方案,在同一个数据中心中,当一个虚拟机从备份服务器不同的第一计算设备迁移至第二计算设备时,实现了备份信息在两个备份服务器之间的迁移,使虚拟机迁移到新位置之后,能够继承虚拟机迁移之前的备份数据,从而使迁移之后的虚拟机继续受到迁移之前备份数据的保护。另外,通过备份策略的迁移,使第二计算设备的备份服务器能够按照迁移之前的备份策略对该虚拟机进行数据备份。
图1(c)为依据本发明一实施例的虚拟机备份信息迁移系统的示例性框图。如图1(c)所示,第一虚拟机组102和第二虚拟机组104分别处于第一数据中心122和第二数据中心124两个不同的数据中心。第一迁移管理模块126用于管理第一数据中心122中虚拟机的迁移操作,第二迁移管理模块128用于管理第二数据中心124中虚拟机的迁移操作。第一计算设备和第二计算设备分别属于第一虚拟机组102和第二虚拟机组104,第一备份服务器110用于管理第一虚拟机组102中虚拟机的数据备份,第二备份服务器112用于管理第二虚拟机组104中虚拟机的数据备份。虚拟机116被从第一计算设备迁移至第二计算设备。虚拟机116的备份信息迁移流程包括:
S402:第一迁移管理模块126和第二迁移管理模块128将虚拟机116从第一计算设备迁移至第二计算设备。
在具体实现过程中,可以由第一迁移管理模块126触发该虚拟机116的迁移操作,并通过与第二数据中心124的第二迁移管理模块128之间的交互,将该虚拟机116的配置信息和数据卷等信息迁移从第一计算设备迁移至第二计算设备。
S404:第一备份服务器110接收到迁移触发消息信息。
应理解,步骤S402和步骤S404可以不分先后顺序,如果为了减少准备备份信息的等待时间,可以提前给第一备份服务器110发送迁移通知消息。
迁移触发消息在图3实施例已有描述,在此不再赘述。
在本发明实施例中,第二备份服务器112的指示信息还可以为第二数据中心124的标识,第一备份服务器可以根据预设的对应关系,根据第二数据中心的标识确定第二备份服务器。
第一备份服务器110接收到的迁移触发消息可以为来自第一迁移管理模块126的迁移触发消息。第一迁移管理模块126将该虚拟机116从第一计算设备迁移至第二计算设备后,向第一备份服务器110发送迁移触发消息,指示第一备份服务器110将该虚拟机116的备份信息发送至第二备份服务器112。第一迁移管理模块126保存有第一计算设备与第一备份服务器110之间的对应关系。第一迁移管理模块126可以保存第二计算设备与第二备份服务器112之间的对应关系,也可以从第二迁移管理模块128处获取到第二备份服务器112的指示信息。
第一备份服务器110接收到的迁移触发消息还可以来自第二迁移管理模块128。第一迁移管理模块126将第一备份服务器110的指示信息和该虚拟机116的迁移前虚拟机标识信息发送给第二迁移管理模块128。第二迁移管理模块128保存有第二计算设备与第二备份服务器112之间的对应关系。
第一备份服务器110接收到的迁移触发消息还可以来自第二备份服务器112。第一迁移管理模块126将第一备份服务器110的指示信息和该虚拟机116的迁移前虚拟机标识信息发送给第二迁移管理模块128,并由第二迁移管理模块128将该第一备份服务器110的指示信息和该虚拟机116的迁移前虚拟机标识信息发送给第二备份服务器112。
也可以由第一迁移管理模块126直接将第一备份服务器110的指示信息和该虚拟机116的迁移前虚拟机标识信息发送给第二备份服务器112,第一迁移管理模块126可以保存有第二计算设备和第二备份服务器112之间的对应关系,也可由第二迁移管理模块128将第二备份服务器的指示信息发送给该第一迁移管理模块126。
该第一备份服务器110的指示信息可以为第一计算设备的标识,第二迁移管理模块可以保存有第一计算设备与第一备份服务器110之间的对应关系,并根据该对应关系和第一计算设备的标识确定第一备份服务器。也可以由第二备份服务器保存有该对应关系,第二备份服务器根据第一计算设备的标识和该对应关系,确定第一备份服务器。
在本发明实施例的一种实现方式中,图1(c)所示的系统还包含备份服务器管理平台130,如图1(e)所示,该备份服务器管理平台130负责第一备份服务器110和第二备份服务器112的统一管理和调度,并监听虚拟机 迁移事件,调度虚拟机备份信息的迁移。该备份服务器管理平台上保存有计算设备与备份服务器之间的对应关系。
第一备份服务器110接收到的迁移触发消息还可以来自该备份服务器管理平台130。第一迁移管理模块126或第二迁移管理模块128向该备份服务器管理平台130发送迁移通知消息,迁移通知消息中携带第一计算设备的标识、第二计算设备的标识和迁移前虚拟机标识信息,该备份服务器管理平台130根据第一计算设备的标识确定第一备份服务器110,根据第二计算设备的标识确定第二备份服务器112,并向第一备份服务器110发送迁移触发消息。
应了解,本发明实施例并不限定迁移触发消息的形式,例如第一备份服务器110可以不是同时接收到迁移前虚拟机标识信息和第二备份服务器112的指示信息,例如可以为第一备份服务器110接收到通知消息,该通知消息指示迁移前虚拟机标识信息指示的虚拟机116被迁移,第一备份服务器110可以向第一迁移管理模块126查询第二备份服务器112的指示信息。
第一备份服务器110根据迁移前虚拟机标识信息确定该虚拟机116的备份信息,剩余步骤参照306~312步骤部分的描述,在此不再赘述。
在本发明实施例中,第二备份服务器112根据迁移前虚拟机标识信息确定迁移后虚拟机标识信息可以为:第二备份服务器112向第二迁移管理模块128发送查询消息,查询消息包含迁移前虚拟机标识信息,并接收到来自该第二迁移管理模块128的应答消息,应答消息携带迁移后虚拟机标识信息。该迁移管理模块128保存有该第二对应关系,可以根据自己维护的第二对应关系和迁移前虚拟机标识信息确定迁移后虚拟机标识信息。
在本发明实施例的一种实现方式中,发生虚拟机迁移事件后,第二迁移管理模块128主动向第二备份服务器112发送该迁移前虚拟机标识信息和迁移后虚拟机标识信息的第二对应关系。
在具体实现过程中,第一备份服务器110向第二备份服务器112发送备份信息迁移消息可以为:第一备份服务器110通过第一迁移管理模块126和第二迁移管理模块128将备份信息迁移消息发送至第二备份服务器112,即第一备份服务器110将备份信息迁移消息发送至第一迁移管理模块126(或第一迁移管理模块126从第一备份服务器110处获取该备份信息迁移消 息),并由第一迁移管理模块126将备份信息迁移消息发送至第二迁移管理模块128,由第二迁移管理模块128将备份信息迁移消息发送给第二备份服务器112。应了解,本发明实施例并不对第一备份服务器110将该备份信息迁移消息发送至第二备份服务器112的具体流程进行限定。
根据发明实施例公开的技术方案,当一个虚拟机从处于不同数据中心的第一计算设备迁移至第二计算设备时,实现了备份信息在两个备份服务器之间的迁移,使虚拟机迁移到新位置之后,能够继承虚拟机迁移之前的备份数据,从而使迁移之后的虚拟机继续受到迁移之前备份数据的保护。另外,通过备份策略的迁移,使第二计算设备的备份服务器能够按照迁移之前的备份策略对该虚拟机进行数据备份。
图4为依据本发明一实施例的虚拟机的备份信息迁移装置的逻辑结构示意图,运行于第一计算设备上的虚拟机被迁移到第二计算设备后,装置400用于将该虚拟机的备份信息迁移至第二计算设备的备份服务器,如图4所示,装置400包含接收单元402、确定单元404和发送单元406,其中,
接收单元402,用于接收迁移触发消息,该迁移触发消息携带迁移前虚拟机标识信息和备份服务器的指示信息,该迁移前虚拟机标识信息用于指示该虚拟机,该装置400用于对运行在该第一计算设备上的虚拟机进行数据备份,该备份服务器用于对运行在该第二计算设备上的虚拟机进行数据备份。
在具体实现过程中,接收单元402可以由图2所示的处理器202,内存单元204和通信接口208来实现。更具体的,可以由处理器202执行内存单元204中的通信模块,以使通信接口208接收该迁移触发消息。
可选的,该接收单元402用于接收迁移触发消息,包括:该接收单元402用于接收来自该备份服务器的迁移触发消息,该迁移触发消息用于请求该装置400将该虚拟机的该备份信息发送至该备份服务器。
可选的,该接收单元402用于接收迁移触发消息,包括:该接收单元402用于接收来自迁移管理模块的迁移触发消息,该迁移管理模块用于管理该虚拟机的迁移操作,该迁移触发消息用于指示该虚拟机被从该第一计算设备迁移至该第二计算设备。
可选的,该接收单元402用于接收迁移触发消息,包括:该接收单元 402用于接收来自备份服务器管理平台的迁移触发消息,该备份服务器管理平台用于管理该装置400和该备份服务器之间的备份信息的迁移。
确定单元404,用于根据该迁移前虚拟机标识信息确定该虚拟机的备份信息。
在具体实现过程中,确定单元404可以由图2所示的处理器202和内存单元204来实现,更具体的可以由处理器202执行内存单元204中的备份模块来确定该虚拟机的备份信息。
发送单元406,用于向该备份服务器发送备份信息迁移消息,该备份信息迁移消息中携带该备份信息和虚拟机标识信息。
在具体实现过程中,发送单元406可以由图2所示的处理器202,内存单元204和通信接口208来实现。更具体的,可以由处理器202执行内存单元204中的通信模块,以使通信接口208向该备份服务器发送备份信息迁移消息。
可选的,该备份服务器的指示信息为该第二计算设备的标识,该发送单元406向该备份服务器发送备份信息迁移消息之前,该确定单元404还用于:根据该第二计算设备的标识和第一对应关系,确定该备份服务器,其中,该第一对应关系中包含该第二计算设备和该备份服务器的对应关系。
可选的,该备份信息包含该虚拟机的备份数据信息和/或备份策略,若该装置400和该备份服务器共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该装置400和该备份服务器不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
可选的,该发送单元406向该备份服务器发送备份信息迁移消息之后,该接收单元402还用于:接收来自该备份服务器的反馈消息,该反馈消息用于指示完成该备份信息的迁移。
本发明实施例是第一备份服务器110的装置实施例,图1(a)-图1(e)至图3实施例部分的特征描述,适用于本发明实施例,在此不再赘述。
图5为依据本发明一实施例的虚拟机的备份信息迁移装置的逻辑结构示意图,运行于第一计算设备上的虚拟机被迁移到第二计算设备后,装置 500用于将该虚拟机的备份信息从第一计算设备的第一备份服务器迁移至所述装置500,如图5所示,装置500包含接收单元502、确定单元504和处理单元506,其中,
接收单元502,用于接收来自备份服务器的备份信息迁移消息,该备份信息迁移消息包含虚拟机标识信息和该虚拟机的备份信息,该虚拟机标识信息用于指示该虚拟机,该备份服务器用于对运行在该第一计算设备上的虚拟机进行数据备份,该装置500用于对运行在该第二计算设备上的虚拟机进行数据备份。
可选的,该虚拟机标识信息可以为迁移前虚拟机标识信息或迁移后虚拟机标识信息。
在具体实现过程中,接收单元502可以由图2所示的处理器202,内存单元204和通信接口208来实现。更具体的,可以由处理器202执行内存单元204中的通信模块,以使通信接口208接收接收来自备份服务器的备份信息迁移消息。
可选的,该接收单元502接收来自备份服务器的备份信息迁移消息之前,还用于:接收来自迁移管理模块的通知消息,其中,该通知消息中携带该备份服务器的指示信息和迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作;该装置500还包括发送单元,用于向该备份服务器发送迁移触发消息,该迁移触发消息用于请求该备份服务器将该虚拟机的该备份信息发送至该装置500,该迁移触发消息携带该迁移前虚拟机标识信息和该装置500的指示信息。
确定单元504,用于根据该虚拟机标识信息确定该虚拟机。
在具体实现过程中,确定单元504可以由图2所示的处理器202和内存单元204来实现,更具体的可以由处理器202执行内存单元204中的备份模块来根据该迁移前虚拟机标识信息确定该虚拟机。
可选的,该迁移前虚拟机标识信息为迁移前虚拟机标识信息;该确定单元504用于根据该虚拟机标识信息确定该虚拟机,包括:该确定单元504用于根据该迁移前虚拟机标识信息和第二对应关系,确定该虚拟机的迁移后虚拟机标识信息,其中,该迁移后虚拟机标识信息为该虚拟机在该第二计算设备的标识信息,该第二对应关系包含该迁移前虚拟机标识信息和该 迁移后虚拟机标识信息的对应关系。
可选的,该装置500还包括发送单元,该确定单元504用于根据虚拟机标识信息确定该虚拟机,包括:该确定单元504用于通过该发送单元向迁移管理模块发送查询消息,该查询消息包含该迁移前虚拟机标识信息,该迁移管理模块用于管理该虚拟机的迁移操作,并保存有该第二对应关系;该确定单元504用于通过该接收单元502接收来自该迁移管理模块的应答消息,该应答消息包含该迁移后虚拟机标识信息。
可选的,该备份信息包含该虚拟机的备份数据信息,若该备份服务器和该装置500共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据在该存储设备的地址信息;若该备份服务器和该装置500不共享用于存储该虚拟机的备份数据的存储设备,则该备份数据信息包含该虚拟机的备份数据。
处理单元506,用于关联该虚拟机与该备份信息。
在具体实现过程中,确定单元506可以由图2所示的处理器202和内存单元204来实现,更具体的可以由处理器202执行内存单元204中的备份模块来关联该虚拟机与该备份信息。
可选的,该处理单元506关联该虚拟机与该备份信息之后,还用于:根据该备份信息为该虚拟机制定备份计划。
可选的,该处理单元506关联该虚拟机与该备份信息之后,该发送单元还用于:向该备份服务器发送反馈消息,该反馈消息用于指示完成该备份信息的迁移。
本发明实施例是第二备份服务器112的装置实施例,图1(a)-图1(e)至图3实施例部分的特征描述,适用于本发明实施例,在此不再赘述。
图1(c)和图1(e)场景下,备份信息的迁移还可以采用图6所示的流程,图6为依据本发明一实施例的虚拟机的备份信息迁移方法的信令图,如图6所示,该方法包括:
602:第一迁移管理模块126和第二迁移管理模块128将虚拟机116从第一数据中心迁移至第二数据中心。
604:第一迁移管理模块126向第一备份服务器110发送迁移通知消息。
其中,迁移通知消息中携带该虚拟机116的迁移前虚拟机标识信息,用于指示该虚拟机116被迁移。
应理解,步骤602和步骤604可以不分先后顺序,如果为了减少准备备份信息的等待时间,第一迁移管理模块126可以提前给第一备份服务器110发送迁移通知消息。
606:第一备份服务器110创建一个备份数据卷,并把该虚拟机116的备份信息保存至该备份数据卷。
第一备份服务器110接收到迁移通知消息以后,会根据该迁移通知消息创建一个备份数据卷,其中,该备份数据卷中包含该虚拟机116的虚拟机标识信息和备份信息。其中,该虚拟机标识信息可以为迁移前虚拟机标识信息或迁移后虚拟机标识信息,第一备份服务器获取到迁移后虚拟机标识信息的方法在以上实施例已有描述,在此不再赘述。
608:第一备份服务器110向第一迁移管理模块126发送备份数据卷指示消息。
该备份数据卷指示消息用于指示该备份数据卷。
610:第一迁移管理模块126向第二迁移管理模块128发送备份信息迁移消息。
第一迁移管理模块126接收到第一备份服务器110发送的备份数据卷指示消息后,会根据该备份数据卷生成备份信息迁移消息。
可选的,该备份信息迁移消息中包含该备份数据卷和第二备份服务器112的指示信息。
可选的,该备份信息迁移消息中包含该备份数据卷和备份服务器标识,其中备份服务器标识用于指示该备份数据卷的目的地是备份服务器。具体实现过程中,可以使用迁移管理模块之间迁移虚拟机数据卷时记录虚拟机标识的字段记录该服务器标识。
612:第二迁移管理模块128将该备份数据卷挂载给第二备份服务器112。
如果备份信息迁移消息中携带第二备份服务器112的指示信息,则第二迁移管理模块128根据第二备份服务器112的指示信息确定第二备份服务器 112,并将备份数据卷挂载至第二备份服务器112。
如果备份信息迁移消息中携带备份服务器标识,则表明该备份数据卷是一个存储虚拟机备份数据的数据卷,则第二迁移管理模块128判断该备份数据卷携带的是虚拟机的备份信息,则根据备份信息迁移消息中携带的虚拟机标识信息确定第二备份服务器112(如果该虚拟机标识信息为迁移前虚拟机标识信息,则第二备份服务器112还根据迁移前虚拟机标识信息确定迁移后虚拟机标识信息),并将该备份数据卷挂载至第二备份服务器112。其中,第二迁移管理模块128维护虚拟机与备份服务器的对应关系,以及迁移前虚拟机标识信息和迁移后虚拟机标识信息。
614:第二备份服务器112从该备份数据卷中获取该虚拟机116的虚拟机标识信息,并确定该虚拟机116。
如果该虚拟机标识信息为迁移前虚拟机标识信息,则第二备份服务器112根据该虚拟机116的迁移前虚拟机标识信息确定迁移后虚拟机标识信息。其中,第二备份服务器112根据迁移前虚拟机标识信息确定迁移后虚拟机标识信息的具体描述,在图4实施例已有描述,在此不再赘述。
616:第二备份服务器112关联该虚拟机116与其备份信息。
具体的,第二备份服务器112关联该迁移后虚拟机标识信息指示的虚拟机116与该备份信息。
可选的,第二迁移管理模块128还向第一迁移管理模块发送反馈消息,用于指示完成该备份信息的迁移。
应理解,图6实施例为图1(c)和图1(e)场景下的另外一种实现方式,所以以上针对图1(c)和图1(e)的特征描述,适用于本发明,在此不再赘述。
根据本发明实施例公开的技术方案,利用了迁移管理模块迁移数据卷的能力,在不同的数据中心之间实现了虚拟机备份信息的迁移。实现了备份信息在两个备份服务器之间的迁移,使虚拟机迁移到新位置之后,能够继承虚拟机迁移之前的备份数据,从而使迁移之后的虚拟机继续受到迁移之前备份数据的保护。另外,通过备份策略的迁移,使第二计算设备的备份服务器能够按照迁移之前的备份策略对该虚拟机进行数据备份。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:移动硬盘、只读存储器(英文:Read-Only Memory,简称ROM)、随机存取存储器(英文:Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的保护范围。

Claims (37)

  1. 一种虚拟机的备份信息迁移系统,其特征在于,运行于第一计算设备上的虚拟机被迁移到第二计算设备,所述系统包括第一备份服务器和第二备份服务器,所述第一备份服务器用于对迁移前的虚拟机进行数据备份,所述第二备份服务器用于对迁移后的虚拟机进行数据备份;
    第一备份服务器,用于接收迁移触发消息,所述迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息,根据所述迁移前虚拟机标识信息确定所述虚拟机的备份信息,并向所述第二备份服务器发送备份信息迁移消息,所述备份信息迁移消息中携带所述备份信息和虚拟机标识信息;
    第二备份服务器,用于收来自所述第一备份服务器的所述备份信息迁移消息,根据所述虚拟机标识信息确定所述虚拟机,并关联所述虚拟机与所述备份信息。
  2. 根据权利要求1所述的系统,其特征在于,所述系统还包括迁移管理模块,所述迁移管理模块用于管理所述虚拟机的迁移操作;
    所述第一备份服务器具体用于接收来自所述第二备份服务器发送的迁移触发消息;
    所述第二备份服务器还用于接收来自迁移管理模块的通知消息,根据所述迁移管理模块的通知消息向所述第一备份服务器发送迁移触发消息,其中,所述通知消息中携带所述第一备份服务器的指示信息和所述迁移前虚拟机标识信息。
  3. 根据权利要求1所述的系统,其特征在于,所述系统还包括迁移管理模块,所述迁移管理模块用于管理所述虚拟机的迁移操作;
    所述第一备份服务器具体用于接收来自所述迁移管理模块在发起所述虚拟机的迁移操作之后发送的迁移触发消息。
  4. 根据权利要求2或3所述的系统,其特征在于,所述第二备份服务器的指示信息为所述第二计算设备的标识;
    所述第一备份服务器向所述第二备份服务器发送备份信息迁移消息之前,还用于:根据所述第二计算设备的标识和第一对应关系,确定所述 第二备份服务器,其中,所述第一对应关系中包含所述第二计算设备和所述第二备份服务器的对应关系。
  5. 根据权利要求1所述的系统,其特征在于,所述系统还包括备份服务器管理平台和迁移管理模块,所述备份服务器管理平台用于管理所述第一备份服务器和所述第二备份服务器,所述迁移管理模块用于管理所述虚拟机的迁移操作;
    所述第一备份服务器具体用于接收来自所述备份服务器管理平台发送的迁移触发消息;
    所述备份服务器管理平台用于接收来自所述迁移管理模块的通知消息,根据所述迁移管理模块的通知消息向所述第一备份服务器发送所述迁移触发消息,其中,所述通知消息中携带所述第一备份服务器的指示信息、所述第二备份服务器的指示信息和所述迁移前虚拟机标识信息。
  6. 根据权利要求1-5任一项所述的系统,其特征在于,所述虚拟机标识信息为所述迁移前虚拟机标识信息;
    所述第二备份服务器用于根据所述虚拟机标识信息确定所述虚拟机,包括:所述第二备份服务器具体用于根据所述迁移前虚拟机标识信息和第二对应关系,确定所述虚拟机的迁移后虚拟机标识信息,所述第二对应关系包含所述迁移前虚拟机标识信息和所述迁移后虚拟机标识信息的对应关系。
  7. 根据权利要求6所述的系统,其特征在于,所述系统还包括迁移管理模块,所述迁移管理模块用于管理所述虚拟机的迁移操作,并保存有所述第二对应关系;
    所述第二备份服务器用于根据所述虚拟机标识信息确定所述虚拟机,包括:
    所述第二备份服务器具体用于向所述迁移管理模块发送查询消息,所述查询消息包含所述迁移前虚拟机标识信息,并接收来自所述迁移管理模块的应答消息,所述应答消息包含所述迁移后虚拟机标识信息。
  8. 根据权利要求1-7任一项所述的系统,其特征在于,所述备份信息包含所述虚拟机的备份策略或所述虚拟机的备份数据信息,所述备份数据信息包含所述虚拟机的备份数据或所述虚拟机的备份数据在所述存储 设备的地址信息。
  9. 根据权利要求1-8任一项所述的系统,其特征在于,所述第二备份服务器关联所述虚拟机与所述备份信息之后,还用于向所述第一备份服务器发送反馈消息,所述反馈消息用于指示完成所述备份信息的迁移。
  10. 一种虚拟机的备份信息迁移方法,其特征在于,运行于第一计算设备上的虚拟机被迁移到第二计算设备,所述方法包括:
    第一备份服务器接收迁移触发消息,所述迁移触发消息携带迁移前虚拟机标识信息和第二备份服务器的指示信息,所述第一备份服务器用于对迁移前的虚拟机进行数据备份,所述第二备份服务器用于对迁移后的虚拟机进行数据备份;
    所述第一备份服务器根据所述迁移前虚拟机标识信息确定所述虚拟机的备份信息;
    所述第一备份服务器向所述第二备份服务器发送所述备份信息。
  11. 根据权利要求10所述的方法,其特征在于,所述第一备份服务器接收迁移触发消息,包括:所述第一备份服务器接收来自所述第二备份服务器或迁移管理模块的迁移触发消息,所述迁移管理模块用于管理所述虚拟机的迁移操作。
  12. 根据权利要求11所述的方法,其特征在于,所述第二备份服务器的指示信息为所述第二计算设备的标识,所述第一备份服务器向所述第二备份服务器发送所述备份信息之前,所述方法还包括:所述第一备份服务器根据所述第二计算设备的标识和第一对应关系,确定所述第二备份服务器,其中,所述第一对应关系中包含所述第二计算设备和所述第二备份服务器的对应关系。
  13. 根据权利要求10所述的方法,其特征在于,所述第一备份服务器接收迁移触发消息,包括:所述第一备份服务器接收来自备份服务器管理平台的迁移触发消息,所述备份服务器管理平台用于管理所述第一备份服务器和所述第二备份服务器。
  14. 根据权利要求10-13任一项所述的方法,其特征在于,所述备份信息包含所述虚拟机的备份策略或所述虚拟机的备份数据信息,所述备份数据信息包含所述虚拟机的备份数据或所述虚拟机的备份数据在存储设 备的地址信息。
  15. 根据权利要求10-14任一项所述的方法,其特征在于,所述第一备份服务器向所述第二备份服务器发送备份信息迁移消息之后,所述方法还包括:所述第一备份服务器接收来自所述第二备份服务器的反馈消息,所述反馈消息用于指示完成所述备份信息的迁移。
  16. 一种虚拟机的备份信息迁移方法,其特征在于,运行于第一计算设备上的虚拟机被迁移到第二计算设备,所述方法包括:
    第二备份服务器接收来自第一备份服务器的备份信息迁移消息,所述备份信息迁移消息包含虚拟机标识信息和所述虚拟机的备份信息,所述第一备份服务器用于对迁移前的虚拟机进行数据备份,所述第二备份服务器用于对迁移后虚拟机进行数据备份;
    所述第二备份服务器根据所述虚拟机标识信息确定所述虚拟机;
    所述第二备份服务器关联所述虚拟机与所述备份信息。
  17. 根据权利要求16所述的方法,其特征在于,所述第二备份服务器接收来自第一备份服务器的备份信息迁移消息之前,所述方法还包括:
    所述第二备份服务器接收来自迁移管理模块的通知消息,其中,所述通知消息中携带所述第一备份服务器的指示信息和迁移前虚拟机标识信息,所述迁移管理模块用于管理所述虚拟机的迁移操作;
    所述第二备份服务器向所述第一备份服务器发送迁移触发消息,所述迁移触发消息用于请求所述第一备份服务器将所述虚拟机的所述备份信息发送至所述第二备份服务器,所述迁移触发消息携带所述迁移前虚拟机标识信息和所述第二备份服务器的指示信息。
  18. 根据权利要求16或17所述的方法,其特征在于,所述虚拟机标识信息为迁移前虚拟机标识信息;
    所述第二备份服务器根据所述虚拟机标识信息确定所述虚拟机,包括:所述第二备份服务器根据所述迁移前虚拟机标识信息和第二对应关系,确定所述虚拟机的迁移后虚拟机标识信息,所述第二对应关系包含所述迁移前虚拟机标识信息和所述迁移后虚拟机标识信息的对应关系。
  19. 根据权利要求18所述的方法,其特征在于,所述第二备份服务 器根据所述虚拟机标识信息确定所述虚拟机,包括:
    所述第二备份服务器向迁移管理模块发送查询消息,所述查询消息包含所述迁移前虚拟机标识信息,所述迁移管理模块用于管理所述虚拟机的迁移操作,并保存有所述第二对应关系;
    所述第二备份服务器接收来自所述迁移管理模块的应答消息,所述应答消息包含所述迁移后虚拟机标识信息。
  20. 根据权利要求16-19任一项所述的方法,其特征在于,所述备份信息包含所述虚拟机的备份策略或所述虚拟机的备份数据信息,所述备份数据信息包含所述虚拟机的备份数据或所述虚拟机的备份数据在所述存储设备的地址信息。
  21. 根据权利要求16-20任一项所述的方法,其特征在于,所述第二备份服务器关联所述虚拟机与所述备份信息之后,所述方法还包括:所述第二备份服务器向所述第一备份服务器发送反馈消息,所述反馈消息用于指示完成所述备份信息的迁移。
  22. 一种虚拟机的备份信息迁移装置,其特征在于,运行于第一计算设备上的虚拟机被迁移到第二计算设备,所述装置包括:
    接收单元,用于接收迁移触发消息,所述迁移触发消息携带迁移前虚拟机标识信息和备份服务器的指示信息,所述装置用于对迁移前的虚拟机进行数据备份,所述备份服务器用于对迁移后虚拟机进行数据备份;
    确定单元,用于根据所述迁移前虚拟机标识信息确定所述虚拟机的备份信息;
    发送单元,用于向所述备份服务器发送所述备份信息迁移消息。
  23. 根据权利要求22所述的装置,其特征在于,所述接收单元具体用于接收来自所述备份服务器或迁移管理模块的迁移触发消息,所述迁移管理模块用于管理所述虚拟机的迁移操作。
  24. 根据权利要求23所述的装置,其特征在于,所述备份服务器的指示信息为所述第二计算设备的标识,所述发送单元向所述备份服务器发送备份信息迁移消息之前,所述确定单元还用于:根据所述第二计算设备的标识和第一对应关系,确定所述备份服务器,其中,所述第一对应关系中包含所述第二计算设备和所述备份服务器的对应关系。
  25. 根据权利要求22所述的装置,其特征在于,所述接收单元用于接收迁移触发消息,包括:所述接收单元用于接收来自备份服务器管理平台的迁移触发消息,所述备份服务器管理平台用于管理所述装置和所述备份服务器。
  26. 根据权利要求22-25任一项所述的装置,其特征在于,所述备份信息包含所述虚拟机的备份策略或所述虚拟机的备份数据信息,所述备份数据信息包含所述虚拟机的备份数据或所述虚拟机的备份数据在所述存储设备的地址信息。
  27. 根据权利要求22-26任一项所述的装置,其特征在于,所述发送单元向所述备份服务器发送备份信息迁移消息之后,所述接收单元还用于:接收来自所述备份服务器的反馈消息,所述反馈消息用于指示完成所述备份信息的迁移。
  28. 一种虚拟机的备份信息迁移装置,其特征在于,运行于第一计算设备上的虚拟机被迁移到第二计算设备,所述装置包括:
    接收单元,用于接收来自备份服务器的备份信息迁移消息,所述备份信息迁移消息包含虚拟机标识信息和所述虚拟机的备份信息,所述备份服务器用于对迁移前的虚拟机进行数据备份,所述装置用于对迁移后虚拟机进行数据备份;
    确定单元,用于根据所述虚拟机标识信息确定所述虚拟机;
    处理单元,用于关联所述虚拟机与所述备份信息。
  29. 根据权利要求28所述的装置,其特征在于,所述接收单元接收来自备份服务器的备份信息迁移消息之前,还用于:接收来自迁移管理模块的通知消息,其中,所述通知消息中携带所述备份服务器的指示信息和迁移前虚拟机标识信息,所述迁移管理模块用于管理所述虚拟机的迁移操作;
    所述装置还包括发送单元,用于向所述备份服务器发送迁移触发消息,所述迁移触发消息用于请求所述备份服务器将所述虚拟机的所述备份信息发送至所述装置,所述迁移触发消息携带所述迁移前虚拟机标识信息和所述装置的指示信息。
  30. 根据权利要求28或29所述的装置,其特征在于,所述虚拟机标 识信息为迁移前虚拟机标识信息;
    所述确定单元用于根据所述虚拟机标识信息确定所述虚拟机,包括:所述确定单元用于根据所述迁移前虚拟机标识信息和第二对应关系,确定所述虚拟机的迁移后虚拟机标识信息,所述第二对应关系包含所述迁移前虚拟机标识信息和所述迁移后虚拟机标识信息的对应关系。
  31. 根据权利要求30所述的装置,其特征在于,所述装置还包括发送单元,所述确定单元用于根据所述虚拟机标识信息确定所述虚拟机,包括:
    所述确定单元用于通过所述发送单元向迁移管理模块发送查询消息,所述查询消息包含所述迁移前虚拟机标识信息,所述迁移管理模块用于管理所述虚拟机的迁移操作,并保存有所述第二对应关系;
    所述确定单元用于通过所述接收单元接收来自所述迁移管理模块的应答消息,所述应答消息包含所述迁移后虚拟机标识信息。
  32. 根据权利要求28-31任一项所述的装置,其特征在于,所述备份信息包含所述虚拟机的备份策略或所述虚拟机的备份数据信息,所述备份数据信息包含所述虚拟机的备份数据或所述虚拟机的备份数据在所述存储设备的地址信息。
  33. 根据权利要求28-32任一项所述的装置,其特征在于,所述装置还包括发送单元,所述处理单元关联所述虚拟机与所述备份信息之后,所述发送单元还用于:向所述备份服务器发送反馈消息,所述反馈消息用于指示完成所述备份信息的迁移。
  34. 一种计算机可读介质,其特征在于,包括计算机执行指令,当计算机的处理器执行所述计算机执行指令时,所述计算机执行权利要求10-15任一项所述的方法。
  35. 一种计算设备,其特征在于,包括:处理器、存储器、总线和通信接口;
    所述存储器用于存储执行指令,所述处理器与所述存储器通过所述总线连接,当所述计算设备运行时,所述处理器执行所述存储器存储的所述执行指令,以使所述装置执行权利要求10-15任一项所述的方法。
  36. 一种计算机可读介质,其特征在于,包括计算机执行指令,当计 算机的处理器执行所述计算机执行指令时,所述计算机执行权利要求16-21任一项所述的方法。
  37. 一种计算设备,其特征在于,包括:处理器、存储器、总线和通信接口;
    所述存储器用于存储执行指令,所述处理器与所述存储器通过所述总线连接,当所述计算设备运行时,所述处理器执行所述存储器存储的所述执行指令,以使所述装置执行权利要求16-21任一项所述的方法。
PCT/CN2015/096361 2015-12-03 2015-12-03 一种虚拟机备份信息迁移方法、装置和系统 WO2017092017A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201580002876.2A CN107046810A (zh) 2015-12-03 2015-12-03 一种虚拟机备份信息迁移方法、装置和系统
EP15905648.0A EP3200073B1 (en) 2015-12-03 2015-12-03 Method, apparatus and system for migrating virtual machine backup information
PCT/CN2015/096361 WO2017092017A1 (zh) 2015-12-03 2015-12-03 一种虚拟机备份信息迁移方法、装置和系统
US15/614,985 US10678648B2 (en) 2015-12-03 2017-06-06 Method, apparatus, and system for migrating virtual machine backup information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/096361 WO2017092017A1 (zh) 2015-12-03 2015-12-03 一种虚拟机备份信息迁移方法、装置和系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/614,985 Continuation US10678648B2 (en) 2015-12-03 2017-06-06 Method, apparatus, and system for migrating virtual machine backup information

Publications (1)

Publication Number Publication Date
WO2017092017A1 true WO2017092017A1 (zh) 2017-06-08

Family

ID=58796108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096361 WO2017092017A1 (zh) 2015-12-03 2015-12-03 一种虚拟机备份信息迁移方法、装置和系统

Country Status (4)

Country Link
US (1) US10678648B2 (zh)
EP (1) EP3200073B1 (zh)
CN (1) CN107046810A (zh)
WO (1) WO2017092017A1 (zh)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10339081B2 (en) 2015-05-09 2019-07-02 Medtronic, Inc. Methods and devices that utilize hardware to move blocks of operating parameter data from memory to a register set
US11341103B2 (en) * 2017-08-04 2022-05-24 International Business Machines Corporation Replicating and migrating files to secondary storage sites
US10552265B1 (en) * 2017-09-14 2020-02-04 EMC IP Holding Company LLC Method of tracking and analyzing data integrity issues by leveraging cloud services
CN107992512A (zh) * 2017-10-20 2018-05-04 中国建设银行股份有限公司上海市分行 一种数据迁移的方法、系统及计算机可读存储介质
US20190230156A1 (en) * 2018-01-19 2019-07-25 Nutanix, Inc. System and method of managing cloud resources and services across two or more regions in a single view
US11216370B2 (en) * 2018-02-20 2022-01-04 Medtronic, Inc. Methods and devices that utilize hardware to move blocks of operating parameter data from memory to a register set
CN110389857B (zh) * 2018-04-20 2023-04-21 伊姆西Ip控股有限责任公司 数据备份的方法、设备和非瞬态计算机存储介质
CN109445908B (zh) * 2018-10-30 2021-04-27 杭州炎魂网络科技有限公司 一种虚拟机备份方法和系统
US10642698B1 (en) * 2018-12-21 2020-05-05 EMC IP Holding Company LLC System and method for consumption based tagging of resources
CN111399763B (zh) * 2019-12-24 2023-05-16 杭州海康威视系统技术有限公司 数据存储的方法、装置、系统、设备及存储介质
US11711351B2 (en) * 2020-01-14 2023-07-25 Vmware, Inc. Distributed management and installation of digital certificates on a cluster for authentication with an external key management service
CN111459416B (zh) * 2020-04-24 2021-02-23 杭州网银互联科技股份有限公司 一种基于分布式存储的热迁移系统及其迁移方法
CN112511634A (zh) * 2020-12-02 2021-03-16 北京邮电大学 一种数据获取方法、装置、电子设备及存储介质
CN113037569A (zh) * 2021-04-19 2021-06-25 杭州和利时自动化有限公司 一种基于双服务器的冗余服务方法、装置、设备及介质
CN113835839A (zh) * 2021-09-27 2021-12-24 湖南小算科技信息有限公司 一种虚拟机切换方法
US20230315561A1 (en) * 2022-03-31 2023-10-05 Google Llc Memory Error Recovery Using Write Instruction Signaling
CN116700899B (zh) * 2023-06-14 2023-11-14 北京志凌海纳科技有限公司 一种虚拟机热迁移过程中Option ROM的兼容性解决方法和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102317910A (zh) * 2011-08-03 2012-01-11 华为技术有限公司 虚拟化数据备份方法、虚拟化数据重组方法、装置及系统
CN102646064A (zh) * 2011-02-16 2012-08-22 微软公司 支持迁移的增量虚拟机备份
CN103678045A (zh) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 虚拟机的数据备份方法
CN104298553A (zh) * 2013-07-16 2015-01-21 中国移动通信集团公司 一种虚拟机迁移的方法、vrms和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917617B1 (en) * 2008-08-14 2011-03-29 Netapp, Inc. Mitigating rebaselining of a virtual machine (VM)
JP5446040B2 (ja) * 2009-09-28 2014-03-19 日本電気株式会社 コンピュータシステム、及び仮想マシンのマイグレーション方法
WO2014032233A1 (zh) * 2012-08-29 2014-03-06 华为技术有限公司 虚拟机热迁移的系统和方法
CN104468641B (zh) 2013-09-12 2019-01-15 腾讯科技(深圳)有限公司 一种业务数据迁移方法、装置和云存储系统
CN103647849B (zh) * 2013-12-24 2017-02-08 华为技术有限公司 一种业务迁移方法、装置和一种容灾系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102646064A (zh) * 2011-02-16 2012-08-22 微软公司 支持迁移的增量虚拟机备份
CN102317910A (zh) * 2011-08-03 2012-01-11 华为技术有限公司 虚拟化数据备份方法、虚拟化数据重组方法、装置及系统
CN104298553A (zh) * 2013-07-16 2015-01-21 中国移动通信集团公司 一种虚拟机迁移的方法、vrms和系统
CN103678045A (zh) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 虚拟机的数据备份方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3200073A4 *

Also Published As

Publication number Publication date
EP3200073A4 (en) 2018-01-10
CN107046810A (zh) 2017-08-15
US20170270007A1 (en) 2017-09-21
US10678648B2 (en) 2020-06-09
EP3200073A1 (en) 2017-08-02
EP3200073B1 (en) 2020-02-05

Similar Documents

Publication Publication Date Title
WO2017092017A1 (zh) 一种虚拟机备份信息迁移方法、装置和系统
US20200334113A1 (en) Heartbeat monitoring of virtual machines for initiating failover operations in a data storage management system, including operations by a master monitor node
US9747179B2 (en) Data management agent for selective storage re-caching
US8473692B2 (en) Operating system image management
US7370336B2 (en) Distributed computing infrastructure including small peer-to-peer applications
WO2018058942A1 (zh) 一种数据处理方法以及备份服务器
US9792150B1 (en) Detecting site change for migrated virtual machines
CN107544783B (zh) 一种数据更新方法、装置及系统
CN112311646B (zh) 基于超融合系统的混合云及部署方法
US11169835B1 (en) VM data migration between storage devices
US20120066678A1 (en) Cluster-aware virtual input/output server
US11588698B2 (en) Pod migration across nodes of a cluster
CN113032085A (zh) 云操作系统的管理方法、装置、服务器、管理系统及介质
US20120151095A1 (en) Enforcing logical unit (lu) persistent reservations upon a shared virtual storage device
US9100443B2 (en) Communication protocol for virtual input/output server (VIOS) cluster communication
CN106855834B (zh) 一种数据备份方法、装置和系统
US11153173B1 (en) Dynamically updating compute node location information in a distributed computing environment
US8661089B2 (en) VIOS cluster alert framework
CN112035062B (zh) 云计算的本地存储的迁移方法、计算机设备及存储介质
US10664190B1 (en) Geographically dispersed data protection and replication
US10635544B1 (en) Assigning VMware local proxy host-datastore groups for consistently optimized access
US20240143460A1 (en) Managing reference snapshots across multiple sites for efficient failover/failback
US8738581B1 (en) Using multiple clients for data backup
CN115794492A (zh) 基于备份与恢复实现异构kubernetes集群数据迁移的方法及系统

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2015905648

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015905648

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15905648

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE