×

Method and system for managing metadata for a virtualization environment

  • US 9,747,287 B1
  • Filed: 08/01/2012
  • Issued: 08/29/2017
  • Est. Priority Date: 08/10/2011
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for managing metadata in a virtualization system, comprising:

  • identifying metadata to track data within storage devices for the virtualization system, the virtualization system comprising a plurality of nodes that includes at least a first node having a first local storage device and a first service virtual machine and a second node having a second local storage device and a second service virtual machine, the first local storage device and the second local storage device forming part of a global storage pool such that any of the first node and the second node can access virtual disks on both the first local storage device and the second local storage device, with the first node and the second node concurrently accessing the metadata through their respective service virtual machines to manage the virtual disks within the global storage pool the virtual disks being virtual structures implemented by the metadata managed by the first and second service virtual machines;

    performing a compare and swap operation to manage an update to the metadata maintained by service virtual machines on each of the plurality of nodes in the virtualization system, the compare and swap operation addressing possible data inconsistencies caused by multiple update operations generated by the plurality of nodes when concurrently updating the metadata for the data in the global storage pool having the first local storage device and the second local storage device that are accessible by both the first node and the second node through their respective service virtual machines, wherein validation information for the metadata is processed by the first or second service virtual machines to perform the update;

    receiving, from a node from among the plurality of nodes, an instruction to perform a read operation;

    before performing the read operation, determining whether the plurality of nodes comprises a downed node;

    if the plurality of nodes comprises the downed node, then incrementing a current consensus instance to a new instance count and choosing a value for a prior instance to be associated with the new instance count; and

    invalidating a write operation for the downed node if the downed node comes back up, wherein the write operation for the downed node is invalidated as a result of a consensus instance corresponding to the write operation being different than the new instance count.

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×