Method, computer system and program product for determining ownership of virtual machine nodes

By determining the ownership of virtual machine nodes and shared storage resources and creating cluster-wide checkpoints, the problem of low backup efficiency in virtual machine clusters is solved, achieving efficient overall consistent backup, saving resources and increasing processing speed.

CN112035293BActive Publication Date: 2024-09-06MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202010833034.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2014-11-13
Filing Date
2015-11-10
Publication Date
2024-09-06
Estimated Expiration
2035-11-10

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently back up in a virtual machine cluster, resulting in a waste of storage resources and excessive usage of processing resources, and it is impossible to achieve consistent backup of the entire cluster.

Method used

Achieve consistent backup of the entire virtual machine cluster and shared storage resources by determining ownership of virtual machine nodes and shared storage resources, issuing quiesce instructions to node owners, and creating cluster-wide checkpoints to avoid backing up each virtual machine individually.

Benefits of technology

It reduces storage requirements, saves processing resources during the backup process, increases the processing speed of other tasks, and achieves overall consistent backup of virtual machine clusters and shared storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112035293B_ABST
    Figure CN112035293B_ABST
Patent Text Reader

Abstract

Embodiments relate to backing up a virtual machine cluster and determining virtual machine node ownership prior to backing up the virtual machine cluster. In one scenario, a computer system determines which virtual machine nodes are part of the virtual machine cluster, determines which shared storage resources are part of the virtual machine cluster, and determines which virtual machine nodes own the shared storage resources. The computer system then indicates to the virtual machine node owners that at least one specified application will be quiesced on the nodes of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created. The computer system further creates a cluster-wide checkpoint that includes a checkpoint for each virtual machine in the virtual machine cluster.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Related Applications

[0002] This application is a divisional application of the invention patent application with international application number PCT / US2015 / 059819, international application date November 10, 2015, entering the Chinese national stage on May 12, 2017, Chinese national application number 201580061651.4, and invention name “Virtual Machine Cluster Backup”.

[0003] This application claims priority to U.S. Patent Application No. 14 / 540,640, filed on November 13, 2014, entitled “VIRTUAL MACHINE CLUSTER BACKUP,” the entire contents of which are hereby incorporated by reference in their entirety. Background Art

[0004] Computing systems have become ubiquitous, ranging from small embedded devices to phones and tablet devices to PCs and back-end servers. Each of these computing systems is designed to process software code. The software allows users to perform functions and interact with the hardware provided by the computing system. In some cases, these computing systems allow users to create and run virtual machines. These virtual machines can provide functions not provided by the host operating system, or can include completely different operating systems. In this way, virtual machines can be used to expand the functionality of computing systems. Summary of the invention

[0005] Embodiments described herein relate to backing up a virtual machine cluster and determining virtual machine node ownership before backing up the virtual machine cluster. In one embodiment, a computer system determines which virtual machine nodes are part of the virtual machine cluster, determines which shared storage resources are part of the virtual machine cluster, and determines which virtual machine nodes own the shared storage resources. The computer system then indicates to the virtual machine node owner that at least one specified application will be quiesced on the node of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created. The computer system further creates a cluster-wide checkpoint including a checkpoint for each virtual machine in the virtual machine cluster. Creating a consistent cluster-wide checkpoint reduces storage requirements within the system because it avoids backing up each virtual machine individually. In addition, since each virtual machine is not backed up individually, processing resources for each of those backups are saved, allowing these resources to be used elsewhere and increasing the processing speed of other projects.

[0006] In another embodiment, a computer system performs a method for determining virtual machine node ownership prior to backing up a virtual machine cluster. The computer system determines that ownership has changed for at least one shared storage resource within the virtual machine cluster, and identifies at least one potential new owner of the shared storage resource. The computer system determines which virtual machine nodes own the shared storage resource, and indicates to the virtual machine node owners that at least one specified application will be quiesced on the nodes of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created. The computer system then creates a cluster-wide virtual machine checkpoint that includes a checkpoint for each shared storage device in the virtual machine cluster.

[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.

[0008] Additional features and advantages will be set forth in the description that follows, and in part will be apparent to those skilled in the art from the description, or may be learned by practicing the teachings herein. The features and advantages of the embodiments described herein may be realized and obtained by the instruments and combinations specifically pointed out in the appended claims. The features of the embodiments described herein will become apparent from the following description and the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] To further clarify the above and other features of the embodiments described herein, a more specific description will be given with reference to the accompanying drawings. It should be recognized that these drawings only depict examples of the embodiments described herein and therefore should not be considered as limiting the scope thereof. The embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings, in which:

[0010] Figure 1 Illustrated is a computer architecture in which embodiments described herein may operate including a backup virtual machine cluster.

[0011] Figure 2 A flow chart of an example method for backing up a cluster of virtual machines is illustrated.

[0012] Figure 3 A flow chart of an example method for determining virtual machine node ownership prior to backing up a virtual machine cluster is illustrated.

[0013] Figure 4 An embodiment is illustrated in which a virtual machine node within a virtual machine cluster is shut down and ownership of the node is changed.

[0014] Figure 5An embodiment is illustrated in which an agent instantiated in a virtual machine node creates checkpoints for multiple shared storage resources. DETAILED DESCRIPTION

[0015] Embodiments described herein relate to backing up a virtual machine cluster and determining virtual machine node ownership prior to backing up the virtual machine cluster. In one embodiment, a computer system determines which virtual machine nodes are part of a virtual machine cluster, determines which shared storage resources are part of a virtual machine cluster, and determines which virtual machine nodes own the shared storage resources. The computer system then indicates to the virtual machine node owners that at least one specified application will be quiesced on a node of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created. The computer system further creates a cluster-wide checkpoint that includes a checkpoint for each virtual machine in the virtual machine cluster.

[0016] In another embodiment, a computer system performs a method for determining virtual machine node ownership prior to backing up a virtual machine cluster. The computer system determines that ownership has changed for at least one shared storage resource within the virtual machine cluster, and identifies at least one potential new owner of the shared storage resource. The computer system determines which virtual machine nodes own the shared storage resource, and indicates to the virtual machine node owners that at least one specified application will be quiesced on the nodes of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created. The computer system then creates a cluster-wide virtual machine checkpoint that includes a checkpoint for each shared storage device in the virtual machine cluster.

[0017] The following discussion now relates to some methods and method actions that can be performed. It should be noted that although method actions may be discussed in a particular order or illustrated in a flow chart as occurring in a specific order, no particular order is required unless specifically stated or required because one action depends on another action being completed before the action is performed.

[0018] The embodiments described herein can implement various types of computing systems. These computing systems are now increasingly taking a variety of forms. The computing system can be, for example, a handheld device such as a smart phone or a feature phone, a home appliance, a laptop computer, a wearable device, a desktop computer, a mainframe, a distributed computing system, or even a device that is not conventionally considered a computing system. In this description and claims, the term "computing system" is broadly defined as any device or system (or combination thereof) including at least one physical and tangible processor and a physical and tangible memory on which a computer executable instruction that can be executed by a processor can be provided. The computing system can be distributed on a network environment and can include multiple member computing systems.

[0019] As in Figure 1 As shown in FIG. 1 , computing system 101 typically includes at least one processing unit 102 and memory 103. Memory 103 may be physical system memory, which may be volatile, non-volatile, or some combination of the two. The term "memory" may also be used herein to refer to non-volatile mass storage devices such as physical storage media. If the computing system is distributed, processing, memory, and / or storage capabilities may also be distributed.

[0020] As used herein, the term "executable module" or "executable component" may refer to a software object, routine, or method that can be executed on a computing system. The various components, modules, engines, and services described herein may be implemented as objects or processes that execute (e.g., as separate threads) on a computing system.

[0021] In the following description, embodiments are described with reference to actions performed by one or more computing systems. If such actions are implemented in software, one or more processors of the associated computing system that performs the actions direct the operation of the computing system in response to having the computer executable instructions executed. For example, such computer executable instructions may be embodied in one or more computer readable media forming a computer program product. Examples of such operations involve manipulation of data. The computer executable instructions (and the manipulated data) may be stored in the memory 103 of the computing system 101. The computing system 101 may also include a communication channel that allows the computing system 101 to communicate with other message processors via a wired or wireless network.

[0022] The embodiments described herein may include or use a special or general purpose computer system including, for example, computer hardware such as one or more processors and system memory as discussed in detail below. The system memory may be included within the overall memory 103. The system memory may also be referred to as "main memory" and includes memory locations addressable by at least one processing unit 102 via a memory bus, in which case the address locations are asserted on the memory bus itself. The system memory is traditionally volatile, but the principles described herein also apply to situations where the system memory is partially or even completely non-volatile.

[0023] Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. Such computer-readable media can be any available media that can be accessed by a general or special-purpose computer system. Computer-readable media that store computer-executable instructions and / or data structures are computer storage media. Computer-readable media that carry computer-executable instructions and / or data structures are transmission media. Therefore, by way of example and not limitation, embodiments of the present invention may include at least two completely different types of computer-readable media: computer storage media and transmission media.

[0024] Computer storage media are physical hardware storage media that store computer executable instructions and / or data structures. Physical hardware storage media include computer hardware, such as RAM, ROM, EEPROM, solid state drive ("SSD"), flash memory, phase change memory ("PCM"), optical disk storage, magnetic disk storage, or other (one or more) magnetic storage devices, or any other (one or more) hardware storage devices that can be used to store program code in the form of computer executable instructions or data structures that can be accessed and executed by general or special purpose computer systems to implement the disclosed functions of the present invention.

[0025] Transmission medium can include the program code that can be used to carry the form of computer executable instructions or data structure and can be accessed by general or special computer system and / or data link." network " is defined as one or more data links that can carry out the electronic data transmission between computer system and / or module and / or other electronic equipment. When being connected (hardwired, wireless or hardwired or wireless combination) to computer system transmission or providing information by network or another kind of communication, computer system can be regarded as transmission medium by connection. The combination of the above items also should be included in the scope of computer readable medium.

[0026] Further, upon reaching various computer system components, program code in the form of computer executable instructions or data structures can be automatically transferred from transmission media to computer storage media (or vice versa). For example, computer executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., "NIC"), and then ultimately transferred to computer system RAM and / or to a relatively non-volatile computer storage medium at the computer system. Thus, it should be understood that computer storage media can be included in computer system components that also (or even primarily) use transmission media.

[0027] Computer executable instructions include, for example, instructions and data that cause a general purpose computer system, a special purpose computer system, or a special purpose processing device to perform a specific function or group of functions when executed at one or more processors. Computer executable instructions may be, for example, binary files, intermediate format instructions such as assembly language, or even source code.

[0028] Those skilled in the art will recognize that the principles described herein can be put into practice in a network computing environment with many types of computer system configurations, including personal computers, desktop computers, laptop computers, message processors, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, microcomputers, large computers, mobile phones, PDAs, tablet devices, pagers, routers, switches, etc. The present invention can also be put into practice in a distributed system environment in which both local and remote computer systems that are linked (by a hardwired data link, a wireless data link or by a combination of a hardwired and wireless data link) perform tasks through a network. Therefore, in a distributed system environment, a computer system can include multiple member computer systems. In a distributed system environment, program modules can be placed in both local and remote memory storage devices.

[0029] Those skilled in the art will also recognize that the present invention can be practiced in a cloud computing environment. A cloud computing environment can be distributed, although this is not required. When distributed, a cloud computing environment can be internationally distributed within an organization and / or have components owned across multiple organizations. In this specification and the claims that follow, "cloud computing" is defined as a model for enabling on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage devices, applications, and services). The definition of "cloud computing" is not limited to any of the many other advantages that can be obtained from such a model when properly deployed.

[0030] Still further, the system architecture described herein may include multiple independent components, each of which contributes to the functionality of the system as a whole. This modularization allows for increased flexibility when dealing with issues of platform scalability, and provides multiple advantages for this purpose. System complexity and growth can be more easily managed by using smaller-scale parts with limited functional scope. Platform fault tolerance is enhanced by using these loosely coupled modules. Individual components can be incrementally grown as business requirements dictate. Modular development also translates into reduced time to market for new features. New features can be added or subtracted without affecting the core system.

[0031] Figure 1The computer architecture 100 in which at least one embodiment may be used is illustrated. The computer architecture 100 includes a computer system 101. The computer system 101 may be any type of local or distributed computer system including a cloud computing system. The computer system 101 includes modules for performing a variety of different functions. For example, a communication module 104 may be configured to communicate with other computing systems. The communication module 104 may include any wired or wireless communication device that may receive and / or transmit data to or from other computing systems. The communication module 104 may be configured to interact with a database, a mobile computing device (such as a mobile phone or a tablet device), an embedded or other type of computing system.

[0032] The computer system 101 may include a checkpoint generation module 106. The checkpoint generation module 106 may be configured to generate checkpoints or snapshots. These checkpoints or snapshots are time point representations of the state of a computing system. These checkpoints may form reference points for restoring a computing system to a previous state in time. A checkpoint may include an operating system, applications installed within the operating system, data files, settings and configuration changes, media files, and other data associated with a physical or virtual machine node. In some cases, a checkpoint may be a cluster-wide checkpoint applicable to multiple different virtual machine nodes and / or shared storage resources within a virtual machine cluster.

[0033] For example, Figure 1 As shown in FIG. 1 , virtual machine cluster 116 includes two virtual machine (VM) nodes 113A and 113B. Figure 1 Although two nodes are shown in FIG, it will be understood that there may be substantially any number of VM nodes in a given VM cluster. Figure 1 Only one shared storage resource 117 is shown in FIG, but it will be appreciated that substantially any number of shared storage resources may be implemented in a given VM cluster or cluster of physical machines. Each virtual machine node may have an application such as application 114 installed thereon. Figure 1 As shown in , the VM nodes can have the same installed applications (e.g., 114), and can have other installed applications that are not shown. In fact, each VM node can have essentially any number of applications or services installed or running thereon. The virtual machine nodes can further have virtualization agents (or simply referred to as "agents" herein) installed thereon. These agents (e.g., 115) can perform multiple tasks, including preparing the VM nodes to generate cluster-wide checkpoints.

[0034] For example, indication generation module 105 may generate indication 112 that is sent to one or more nodes of virtual machine cluster 116. Figure 1In the embodiment, an indication 112 is sent to VM node 113A, which is the owner of a shared storage resource 117 shared between VM nodes 113A and 113B. The indication may indicate to the owning VM node that an application (e.g., 114) is to be quiesced on the VM nodes of the cluster and on the shared storage device 117. The term "quiesce" as used herein refers to placing an application or preparing an application so that a consistent, stable checkpoint can be created for the application. Thus, quiescing may include writing data to a shared storage device, flushing data from temporary storage, completing a transaction, or taking any other steps required to obtain a stable state for the application or set of applications. Once the application is quiesced on the shared storage device, a stable, consistent checkpoint applicable to multiple VM nodes within a VM cluster and potentially multiple shared storage resources within a VM cluster may be generated.

[0035] Virtual machines are often clustered using high availability software running within a guest operating system. These guest operating systems may use various forms of shared storage, including shared virtual hard disks. Traditional virtual machine backups only work on a single VM at a time, and do not provide a means for backing up an entire cluster of VMs in a consistent manner. Therefore, backing up a single VM at a time does not provide a consistent image of the entire cluster. In addition, backing up each virtual machine individually may result in multiple copies of the shared storage being backed up, resulting in wasted storage resources.

[0036] A VM cluster (also referred to herein as a guest cluster) 116 may include multiple VM nodes spread across multiple physical servers, which may themselves be part of a host cluster. As mentioned above, a virtualization agent may be instantiated in each VM. The virtualization agent may include an integrated component that is installed within the virtual machine. The virtualization agent may query the clustering framework in the guest operating system to determine shared storage resources and the nodes that own the shared storage resources. Typically, in a VM cluster, a shared disk or other shared storage resource is owned by a VM node (e.g., Figure 1 113A in the VM node 113A). In some embodiments, this can be achieved by using Small Computer System Interface (SCSI) reservations. Only the owning node can perform I / O to the shared disk. Assuming a failover occurs, ownership is moved to another VM node (such as Figure 4 (generally shown in ).

[0037] In the scope of the host cluster, a snapshot operation can be initiated on the VM cluster as a whole. At the host cluster layer, a message querying shared storage information is sent to a virtualization agent within a VM (which is a member of the VM cluster). The virtualization agent of each VM queries the clustering framework (e.g., high availability software) in the guest to obtain a list of shared disk resources in the cluster and the owning node of each of them. This information is then sent back to the host cluster. Communication with the virtualization agent can occur through a secure, private guest-host communication channel (e.g., through a VM bus) or through other communication means.

[0038] The host cluster can use the information obtained from the virtualization agent to ensure that only the owning VM of the shared disk is responsible for taking a snapshot of the shared virtual disk (e.g., 117). The host cluster initiates a VM snapshot operation for each VM in the guest cluster. Additionally, the host cluster provides each VM with a list of shared virtual disks that it is responsible for snapshotting. In at least some embodiments, the owning VM is also responsible for bringing applications running on the shared virtual disks to a consistent state (i.e., quiescing the applications) before performing a snapshot of the storage device. Each VM can also be responsible for taking a snapshot of its private / non-shared storage device. The result is a snapshot of the entire guest / VM cluster that includes snapshots of each VM, but a single instance of each shared virtual disk exists in the snapshot (as in Figure 5 ).

[0039] Accordingly, embodiments described herein include instantiating an agent in each VM that provides information about shared storage resources. In addition, embodiments analyze this information about shared storage resources at the host cluster level to distribute the responsibility for snapshotting shared storage devices across different VMs. Figure 2 and 3 Methods 200 and 300 further explain these concepts.

[0040] Given the system and architecture described above, refer to Figure 2 and 3 The flowchart of the disclosed subject matter will better appreciate the method that can be implemented according to the disclosed subject matter. For the purpose of simplifying the explanation, the method is shown and described as a series of square blocks. However, it should be understood and recognized that the claimed subject matter is not limited by the order of the square blocks, because some square blocks can occur in an order different from the order depicted and described in this article and / or concurrently with other square blocks. In addition, not all of the illustrated square blocks may be necessary to implement the method described below.

[0041] Figure 2 A flow chart of a method 200 for backing up a cluster of virtual machines is illustrated. The method 200 will now be described with frequent reference to the components and data of the environment 100.

[0042] Method 200 includes determining which virtual machine nodes are part of a virtual machine cluster (210). For example, determination module 110 of computer system 101 may determine that virtual machine nodes 113A and 113B are part of VM cluster 116. Determination module 110 may also determine which shared storage resources are part of the virtual machine cluster (220) and which virtual machine nodes own the shared storage resources (230). Figure 1 In the example, the determination module may query the VM nodes or agents instantiated on those nodes to determine that the shared storage resource 117 is part of the VM cluster 116, and further determine that the VM node 113A is the owner of the shared storage resource 117. Therefore, the VM node 113A has the exclusive ability to write to the shared storage resource 117 in the VM node. By allowing only one VM node in the cluster to be the owner, data consistency can be ensured between multiple different VM nodes that are accessing the shared storage resource. In some cases, multiple VM nodes can read data from the shared storage resource at the same time, while in other cases, only one node can read or write to the shared storage resource at a time. Still further, the application can run on each shared storage resource and on the resource owner node.

[0043] The method 200 further includes indicating to one or more virtual machine nodes that are storage device owners that at least one specified application will be quiesced on the nodes of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created (240). For example, the indication generation module 105 can generate the indication 112, and the communication module 104 can transmit the indication to the VM nodes that are storage device owners of various VM clusters. In the case where the computer system 101 is a host machine for one or more VM nodes, the communication can occur through the VM bus, through a simulated local network connection, or through other communication means. If the VM node is hosted on a physical computing system different from the computer system 101, the indication message 112 can be transmitted via any wired or wireless communication means. The indication indicates that data will be quiesced for the operating system, for the application, for the service, or for some combination thereof.

[0044] For example, if a cluster-wide checkpoint is to be created for application 114 running on both VM nodes 113A and 113B, indication 112 will indicate that the data for application 114 is to be quiesced so that a consistent, stable checkpoint can be generated for the application. It should be noted that in another embodiment, checkpoint generation module 106 may issue an indication that the data for application 114 is to be quiesced. Checkpoint generation module 106 may request each VM node to quiesce and generate a checkpoint. In response to the message / indication, each VM node quiesces the application and creates a checkpoint of the storage device (including the shared storage device it owns). The resulting cluster-wide checkpoint 107 will include a checkpoint 108 for VM node 113A and a checkpoint 109 for VM node 113B.

[0045] Once the data for the application has been quiesced, the checkpoint generation module 106 can generate a cluster-wide checkpoint that includes a checkpoint for each virtual machine in the virtual machine cluster (250). The cluster-wide checkpoint 107 can therefore include a single instance of each shared storage resource in the virtual machine cluster. Accordingly, if the virtual machine cluster includes multiple different shared storage resources, the cluster-wide checkpoint will include a checkpoint for each shared storage resource in the cluster.

[0046] For example, Figure 5 As illustrated in FIG. 5 , a virtual machine cluster 501 includes two virtual machine nodes 502 and 503 and three shared storage resources (e.g., virtual or physical hard disks or other types of storage media) 505, 506, and 507. When the checkpoint generation module 106 generates a cluster-wide checkpoint for the VM cluster 501, the cluster-wide checkpoint 508 includes a separate checkpoint for each shared resource, including a checkpoint for resource 505, a checkpoint for resource 506, and a checkpoint for resource 507. The VM node 502 may be the owner of one, two, or all three of the shared storage resources 505, 506, and 507. Therefore, the VM node 502 may be responsible for quiescing data on the shared storage resources before generating the cluster-wide checkpoint 508. A virtualization agent may be implemented on the VM node to help facilitate the creation of consistent, stable cluster-wide checkpoints.

[0047] Each VM node may have a virtualization agent 504A / 504B instantiated thereon that performs various functions. For example, the virtualization agent may be configured to determine the current ownership of shared storage resources within the virtual machine cluster. Figure 1The virtualization agent 115 can take steps to determine whether the node in which it is currently instantiated is the owner, and if so, which shared storage resources it "owns". The virtualization agent 115 can also communicate with other VM nodes in the cluster 116 to determine whether they are the owner and which shared storage resources they own. Alternatively, the agent can be used to broadcast messages to other VM nodes in the cluster that inform those nodes of the current ownership status of each node within the cluster. In other embodiments, a combination of push and pull techniques can be used to determine shared storage device ownership within a VM cluster.

[0048] In some embodiments, the virtualization agent 115 can communicate with the host operating system to make various determinations including VM cluster membership and ownership within the cluster. Such communications can be made using a secure, private guest-host communication channel. In some cases, the host can indicate to the agent that a checkpoint will be created, and parameters or settings for the checkpoint can be specified. For example, the host can indicate that a running process will be spun down immediately, and that all data will be paused immediately in order to obtain a snapshot as early as possible. Alternatively, the host can indicate that a running process will be slowly and gradually stopped as the process naturally ends, and that data will be paused when the application and associated processes are completely closed. Accordingly, an administrator or other user can control how a checkpoint is generated.

[0049] In a VM cluster with multiple VM nodes and multiple shared storage resources (e.g. Figure 5 ), each owning VM node can create a checkpoint for the shared storage resources it owns. Thus, if VM node 502 owns shared resources 505 and 506, it can initiate a checkpoint for those resources, while if VM node 503 owns shared resource 507, it can initiate a checkpoint for that resource. Cluster-wide checkpoint 508 in that case would include a separate checkpoint for each shared resource (505, 506, and 507), where the checkpoint for each shared storage resource is initiated by the owner of that resource. This can occur on an active-passive cluster that allows owning nodes to quiesce applications on those nodes.

[0050] To maintain a consistent state across applications and / or VM nodes, a shared storage resource owner may implement disk reservations to maintain a consistent state on a shared disk. For example, a shared storage resource owner may implement SCSI controller reservations to maintain a consistent state on a shared SCSI disk. If a non-owning VM node that does not own a specified shared storage resource wishes to quiesce data for a given application, the non-owning VM node (e.g., Figure 1The VM node 113B of the virtual machine node may communicate with the owner of the shared storage resource (VM node 113A) to quiesce a given application. The owning node may then communicate with the non-owning node upon completion to indicate that the application's data has been quiesced. In some cases, the guest operating system of the virtual machine node may be the entity that initiates the creation of a checkpoint for the virtual machine node. In these cases, the guest OS may communicate with an agent on the VM node to initiate the creation of a checkpoint.

[0051] In some cases, a virtual machine node may have its own private, non-shared storage resources. In such cases, a virtual machine node with its own private, non-shared storage resources may create a checkpoint for its private, non-shared storage. The private checkpoint may be stored with other shared resource checkpoints of the cluster-wide checkpoint 508, or may be stored separately.

[0052] The agent can be further used to analyze other virtual machine nodes in the virtual machine cluster to determine whether those virtual machine nodes have experienced a failure. And, upon determining that a virtual machine node has failed, the agent can initiate an analysis to determine whether the failure of the virtual machine node has affected the ownership of shared storage nodes within the virtual machine cluster. For example, Figure 4 As shown in FIG. 4 , virtual machine cluster 401 may include four virtual machine nodes: 402, 403, 404, and 405. Each VM node may include its own agent: 407A, 407B, 407C, and 407D, respectively. Each VM node in cluster 401 may access a single shared storage resource 406. Figure 4 As shown in , VM node 402 is the owner of shared storage resource 406, and if the node fails for some reason (e.g., due to hardware or software failure), ownership can be moved to another virtual machine node within virtual machine cluster 401. The new owner can be any other VM node in the cluster, and can be determined based on policy or simply based on a "next available" approach. By assuming the owner role, VM 403 is now the owner of shared storage resource 406 and is the sole controller of data written to the storage resource.

[0053] Now turn to Figure 3 , a flowchart of a method 300 for determining virtual machine node ownership prior to backing up a virtual machine cluster is shown. Figure 1 The components and data of the environment 100 are described in method 300.

[0054] Method 300 includes determining that ownership has changed for at least one shared storage resource within a virtual machine cluster (310). Figure 4As mentioned, ownership of shared storage resources can change over time. For example, a VM node that owns a particular resource may fail due to hardware or software failure, due to routine maintenance, due to a malicious attack, or for some other reason. However, in some cases, ownership can change based on policy or based on manual changes made by a user without being due to any type of failure on the VM node. For example, an administrator or other user may wish to Figure 4 The administrator may change ownership from VM node 402 to VM node 403 in the cluster. The administrator may have various reasons for doing so. In fact, the administrator may know that a given node will be shut down for maintenance within the next twenty-four hours. Therefore, the administrator may transfer ownership to another VM node in the cluster.

[0055] In some cases, a failover strategy can be put in place between VM nodes in a cluster. For example, Figure 4 VM cluster 401 may have a failover policy established that indicates that when a given node fails, the ownership roles and possibly the application processing of some applications may automatically fail over to a specified VM node. Thus, in VM cluster 401, the failover policy may indicate that if VM node 402 goes down, the owner role will be transferred to VM node 403. The failover policy may further indicate that if VM node 403 goes down, the owner role will be transferred to VM node 404, and so on.

[0056] The method 300 next includes identifying at least one potential new owner of the shared storage resource (320). Figure 1 The identification module 111 of the computer system 101 can identify potential new owners of shared storage resources. In the above example of transferring ownership roles according to a failover policy, the identification module 111 or any of the virtualization agents installed on the VM nodes can determine which VM nodes can be potential new owners of a given shared storage resource. Since there can be many shared storage resources within a VM cluster, there can be many owners and many potential owners. For example, a policy can indicate who the subsequent owner will be if a node fails for some reason. Therefore, the agents can communicate with each other to maintain the current state of ownership for each storage resource, which identifies who the current owner is and identifies potential new owners based on the policy.

[0057] The method 300 further includes determining which one or more virtual machine nodes own the shared storage resource (330). For example, the determination module 110 may determine Figure 1VM node 113A currently owns shared storage resource 117. Indication generation module 105 may then generate indication 112, indicating to one or more virtual machine nodes that are owners of the shared storage resource that at least one specified application will be quiesced on the nodes of the virtual machine cluster so that a consistent cluster-wide checkpoint can be created (340). Cluster-wide checkpoint generation module 106 may then generate cluster-wide virtual machine checkpoint 107 (350), which includes checkpoints for each shared storage device in the virtual machine cluster (including checkpoints for VM node 113A (checkpoint 108) and for VM node 113B (checkpoint 109)). Cluster-wide checkpoint generation module 106 may, at least in some embodiments, generate indication 112 that quiesces the specified application and creates a checkpoint in a single step.

[0058] As mentioned above, changes in ownership can result in many different scenarios, including failovers from failed VM nodes or manual changes to ownership by an administrator. Because the owner role ensures that only one VM node can write to the shared storage device, if the owner role fails and no failover occurs, no VM node will be able to write to the shared storage device. Therefore, ownership roles are transferred from node to node as needed to ensure that each shared storage resource has an owner. A shared storage resource owner has exclusive write access to a shared storage resource, or can have shared write access to a shared storage resource, where access is regulated according to an access policy. For example, if two different VM nodes are writing to different files on a shared data repository, both nodes can have ownership and write to the shared storage device at the same time.

[0059] In some embodiments, the shared storage resource is a host computing node (such as Figure 1 The shared storage resources may be part of a computer system 101) or may be accessed through a host computing node. A virtualization agent installed on a VM node may be used to access the shared storage resources. A virtualization agent may be instantiated on each virtual machine node, and the virtualization agent may be configured to determine shared storage resource ownership and ensure consistency between checkpoints. Consistency may be ensured by pausing application data to the disk before creating a checkpoint. The VM node as the owner may automatically suspend application data when instructed or when needed. Additionally, a non-owning virtual machine node may determine the current owner of a given shared storage resource and allow the current owner to suspend applications running on the non-owning virtual machine node.

[0060] Claim support: A computer system including at least one processor that executes a computer-implemented method for backing up a virtual machine cluster, the method comprising: determining which virtual machine nodes 113A are part of a virtual machine cluster 116, determining which shared storage resources 117 are part of the virtual machine cluster, determining which one or more virtual machine nodes own the shared storage resources, indicating to one or more virtual machine node owners 113A that at least one specified application 114 is to be quiesced on a node of the virtual machine cluster so that a consistent cluster-wide checkpoint 107 can be created, and creating a cluster-wide checkpoint 107 that includes a checkpoint for each virtual machine in the virtual machine cluster.

[0061] In some embodiments, the cluster-wide checkpoint includes a single instance of each shared storage resource in the virtual machine cluster. A virtualization agent is instantiated on each virtual machine, and the virtualization agent determines the current ownership of the shared storage resources within the virtual machine cluster. The virtualization agent also communicates with the host operating system using a secure, private guest-host communication channel.

[0062] A computer system including at least one processor is provided. The computer system executes a computer-implemented method for determining virtual machine node ownership before backing up a virtual machine cluster, the method comprising: determining that ownership has changed for at least one shared storage resource 406 within a virtual machine cluster 401, identifying at least one potential new owner 403 of the shared storage resource, determining which one or more virtual machine nodes 403 own the shared storage resource, indicating to the one or more virtual machine node owners that at least one specified application 114 will be quiesced on a node of the virtual machine cluster 401 so that a consistent cluster-wide checkpoint 107 can be created, and creating a cluster-wide virtual machine checkpoint 107 including a checkpoint for each shared storage device 406 in the virtual machine cluster.

[0063] In some embodiments, a shared storage resource owner has exclusive access to the shared storage resource, or has shared access to the shared storage resource, wherein access is regulated according to an access policy. In some cases, a virtualization agent is instantiated on each virtual machine, wherein the virtualization agent is configured to determine shared storage resource ownership and ensure consistency between checkpoints. A non-owning virtual machine node determines the current owner of a given shared storage resource and allows the current owner to quiesce one or more applications running on the non-owning virtual machine node.

[0064] A computer system is provided that includes: one or more processors; a determination module 110 for determining which virtual machine nodes 113A are part of a virtual machine cluster 116, determining which shared storage resources are part of the virtual machine cluster, and determining which one or more virtual machine nodes own the shared storage resources; an indication module 105 for indicating to one or more virtual machine node owners that at least one specified application 114 will be paused on a node of the virtual machine cluster 116 so that a consistent cluster-wide checkpoint 107 can be created; and a cluster-wide checkpoint creation module 106 for creating a cluster-wide checkpoint 107 that includes a checkpoint for each virtual machine in the virtual machine cluster 116.

[0065] The computer system further includes: an analysis module for analyzing one or more virtual machine nodes in the virtual machine cluster to determine whether the virtual machine node has experienced a failure, and when it is determined that at least one virtual machine node has failed, initiating an analysis for determining whether the failure of the virtual machine node has affected the ownership of a shared storage node within the virtual machine cluster. Upon failover due to a node failure, ownership of the shared storage resource is moved to another virtual machine node within the virtual machine cluster. The owner virtual machine node of the shared storage resource quiesces one or more applications running on the shared storage resource and creates a checkpoint for the shared storage resource.

[0066] In some embodiments, the owning virtual machine node owns a plurality of shared storage resources and creates a checkpoint for each of the plurality of shared storage resources it owns. In some cases, at least one of the virtual machine nodes has its own private, non-shared storage resources, and further, at least one of the virtual machine nodes with its own private, non-shared storage resources creates a checkpoint for its private, non-shared storage. The non-owning virtual machine node that does not own the specified shared storage resource communicates with the owner of the shared storage resource to quiesce a given application.

[0067] Accordingly, a method, system and computer program product for backing up a virtual machine cluster are provided. In addition, a method, system and computer program product for determining the ownership of a virtual machine node before backing up a virtual machine cluster are provided.

[0068] The concepts and features described herein may be embodied in other specific forms without departing from their spirit or descriptive properties. The described embodiments will be considered in all respects as merely illustrative and not restrictive. Therefore, the scope of the present disclosure is indicated by the appended claims rather than by the foregoing description. All changes falling within the meaning and scope of the equivalents of the claims will be included within their scope.

Claims

1. A method implemented at a virtual machine node of a virtual machine cluster, the virtual machine node comprising one or more processors, the method being used to participate in a checkpoint of the virtual machine cluster, the method comprising: Receiving, by the virtual machine agent, a request for shared storage information from the host; Based on receiving the request, the virtual machine agent queries the clustering architecture of the guest operating system of the virtual machine node to identify one or more shared disk resources, the virtual machine node being the owner of the one or more shared disk resources; The virtual machine agent sends the identity of the one or more shared disk resources to the host; Receiving, by the virtual machine agent, a request for a snapshot of the one or more shared disk resources; generating the snapshot of the one or more shared disk resources; as well as The virtual machine agent sends the snapshot of the one or more shared disk resources to the host.

2. The method of claim 1, wherein sending to and receiving from the host is performed over a guest-host communication channel. 3 . The method of claim 1 , wherein the clustered architecture includes high availability software at the virtual machine nodes.

4. The method according to claim 1, further comprising: Prior to generating the snapshot of the one or more shared disk resources, one or more applications running at the virtual machine node are placed in a consistent state.

5. The method of claim 4, wherein placing the one or more applications running at the virtual machine node into a consistent state comprises: The command suspends one or more processes.

6. The method of claim 4, wherein placing the one or more applications running at the virtual machine node into a consistent state comprises: Waiting for one or more processes to complete naturally.

7. The method of claim 1, wherein the snapshot comprises a first snapshot, and the method further comprises: Generating, by the virtual machine agent, a second snapshot of one or more private resources at the virtual machine node; as well as The second snapshot of the one or more private resources is sent by the virtual machine agent to the host. 8 . The method of claim 1 , further comprising the virtual machine agent communicating with another virtual machine node in the virtual machine cluster to identify one or more other shared disk resources of which the other virtual machine node is an owner.

9. The method of claim 8, further comprising the virtual machine agent identifying a failure of the other virtual machine node and initiating a change of ownership of the one or more other shared disk resources.

10. The method of claim 1, further comprising implementing Small Computer System Interface (SCSI) controller reservations to maintain a consistent state on a shared SCSI disk including the one or more shared disk resources.

11. The method of claim 1, wherein a guest operating system at the virtual machine node generates the snapshot of the one or more shared disk resources.

12. A computer system comprising: one or more processors; as well as One or more computer-readable media having stored thereon computer-executable instructions representing an agent, the computer-executable instructions, when instantiated at the one or more processors, causing the computer system to perform at least the following: receiving a request for shared storage information from a host; Based on receiving the request, querying a clustering architecture in an operating system of the computer system to identify one or more shared disk resources, the computer system being an owner of the one or more shared disk resources; sending the identities of the one or more shared disk resources to the host; receiving a request for a snapshot of the one or more shared disk resources; generating the snapshot of the one or more shared disk resources; as well as The snapshot of the one or more shared disk resources is sent to the host.

13. The computer system of claim 12, wherein the computer system comprises a virtual machine node, and wherein sending to and receiving from the host are performed over a guest-host communication channel.

14. The computer system of claim 12, wherein the agent further causes the computer system to place one or more applications running at the computer system into a consistent state before generating the snapshot of the one or more shared disk resources.

15. The computer system of claim 14, wherein placing the one or more applications running at the computer system into a consistent state comprises: The command suspends one or more processes.

16. The computer system of claim 14, wherein placing the one or more applications running at the computer system into a consistent state comprises: Waiting for one or more processes to complete naturally.

17. The computer system of claim 12, wherein the snapshot comprises a first snapshot, and the agent further causes the computer system to: generating a second snapshot of one or more private resources at the computer system; and The second snapshot of the one or more private resources is sent to the host.

18. The computer system of claim 12, wherein the agent further causes the computer system to communicate with another agent in the cluster to identify one or more other shared disk resources of which another computer system is an owner.

19. The computer system of claim 18, wherein the agent further causes the computer system to identify a failure of the other computer system and to initiate a change of ownership of the one or more other shared disk resources.

20. A computer program product comprising one or more hard disk storage devices having stored thereon computer executable instructions representing an agent, the computer executable instructions, when instantiated at one or more processors of a computer system, causing the computer system to perform at least the following: receiving a request for shared storage information from a host; Based on receiving the request, querying a clustering architecture in an operating system of the computer system to identify one or more shared disk resources, the computer system being an owner of the one or more shared disk resources; sending the identities of the one or more shared disk resources to the host; receiving a request for a snapshot of the one or more shared disk resources; generating the snapshot of the one or more shared disk resources; as well as The snapshot of the one or more shared disk resources is sent to the host.

Citation Information

Patent Citations

  • Solar power generation device

    US20150059819A1

  • Virtual machine cluster backup

    US20160139943A1

  • Virtual machine cluster system and implementation method thereof

    CN102110071A

  • Caching method of a virtual machine mirror image in cloud computing system

    CN102629941A

  • Method and system for efficient execution of jobs in a shared pool of resources

    CN103377091A