# US 9,354,912 B1 · Method and system for implementing a maintenance service for managing I/O and storage for a virtualization environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,912 B1
- Document ID: US9354912B1
- Status: Granted
- Kind: B1
- Application number: 13/947,668
- Filed: 2013-07-22
- Granted: 2016-05-31
- Earliest claimed: 2011-08-10
- Assignees: Nutanix, Inc.
- Applicants: Nutanix, Inc.
- Inventors: Mohit Aron; Brent Chun; Chaitanya Venkata Krishna Bayapuneni
- Web page: https://patentgrep.com/patent/US9354912B1

## CPC

- G06F 9/4555: {Para-virtualisation, i.e. guest operating system has to be modified}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is an approach for overseeing the overall state of a virtual storage system, and for taking actions as necessary to manage the health and efficient performance of that system. A curator entity is provided on a distributed basis to manage and perform these functions. A master curator manages this workload that is performed by multiple slave curators. MapReduce operations are performed to implement the curator workload. Periodically, the master curator coordinates a full scan of all the metadata in the system using three MapReduce operations. Partial scans may also be run using a single MapReduce operation.

## Claims

### Claim 1

A method for managing a virtual storage system implemented with a processor, comprising:
receiving information regarding metadata maintained by a plurality of nodes in the virtual storage system, wherein the plurality of nodes comprise respective distributed maintenance components;
using the distributed maintenance components to manage the metadata for the virtual storage system, in which the metadata relate to storage of data within the virtual storage system;
checking a state of the virtual storage system to identify inconsistencies within the metadata, wherein the checking is performed in parallel by the distributed maintenance components to scan the metadata; and
maintaining the state of the virtual storage system based at least in part in results of checking the state of the virtual storage system, wherein maintaining the state of the virtual storage system is performed in parallel by the distributed maintenance components to fix the inconsistencies within the metadata distributed in the plurality of nodes.

### Claim 2 (depends on 1)

The method of claim 1, wherein checking the state of the virtual storage system comprises performing a full scan of the metadata.

### Claim 3 (depends on 2)

The method of claim 2 in which the full scan comprises a scan of all metadata tables.

### Claim 4 (depends on 1)

The method of claim 1 in which a mapreduce operation is performed to check the state of the virtual storage system.

### Claim 5 (depends on 4)

The method of claim 4 in which the mapreduce operation distributes work among the distributed maintenance components.

### Claim 6 (depends on 4)

The method of claim 4 in which the mapreduce operation comprises a single mapreduce directed to an extent group ID map.

### Claim 7 (depends on 1)

The method of claim 1 in which the distributed maintenance components comprise a master and multiple slaves, in which the master coordinates maintenance workloads to be run by the slaves.

### Claim 8 (depends on 1)

The method of claim 1 in which certain tasks are scheduled to run as background tasks.

### Claim 9 (depends on 8)

The method of claim 8 in which the background tasks are resource-intensive tasks.

### Claim 10 (depends on 1)

The method of claim 1 in which a distributed maintenance component from the distributed maintenance components checks a logical timestamp for an entry in the metadata before processing the entry, wherein the entry is not processed if the logical timestamp indicates a possibility that the entry is currently being operated upon by another of a distributed maintenance component from the distributed maintenance components.

### Claim 11 (depends on 10)

The method of claim 10 in which the logical timestamp is a vector clock that is capable of being associated with multiple logical timestamps for plurality of nodes.

### Claim 12 (depends on 10)

The method of claim 10 in which the logical timestamp comprises an incarnation value and a component identifier.

### Claim 13 (depends on 10)

The method of claim 10 in which the logical timestamp comprises an operation identifier.

### Claim 14

A computer program product embodied on a non-transitory computer-usable medium, the non-transitory computer-usable medium having stored thereon a sequence of instructions which, when executed by a processor causes the processor to execute a method for managing a virtual storage system, the method comprising:
receiving information regarding metadata maintained by a plurality of nodes in the virtual storage system, wherein the plurality of nodes comprise respective distributed maintenance components;
using the distributed maintenance components to manage the metadata for the virtual storage system, in which the metadata relate to storage of data within the virtual storage system;
checking a state of the virtual storage system to identify inconsistencies within the metadata, wherein the checking is performed in parallel by the distributed maintenance components to scan the metadata; and
maintaining the state of the virtual storage system based at least in part in results of checking the state of the virtual storage system, wherein maintaining the state of the virtual storage system is performed in parallel by the distributed maintenance components to fix the inconsistencies within the metadata distributed in the plurality of nodes.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein checking the state of the virtual storage system comprises performing a full scan of the metadata.

### Claim 16 (depends on 15)

The computer program product of claim 15 in which the full scan comprises a scan of all metadata tables.

### Claim 17 (depends on 14)

The computer program product of claim 14 in which a mapreduce operation is performed to check the state of the virtual storage system.

### Claim 18 (depends on 17)

The computer program product of claim 17 in which the mapreduce operation distributes work among the distributed maintenance components.

### Claim 19 (depends on 17)

The computer program product of claim 17 in which the mapreduce operation comprises a single mapreduce directed to an extent group ID map.

### Claim 20 (depends on 14)

The computer program product of claim 14 in which the distributed maintenance components comprise a master and multiple slaves, in which the master coordinates maintenance workloads to be run by the slaves.

### Claim 21 (depends on 14)

The computer program product of claim 14 in which certain tasks are scheduled to run as background tasks.

### Claim 22 (depends on 21)

The computer program product of claim 21 in which the background tasks are resource-intensive tasks.

### Claim 23 (depends on 14)

The computer program product of claim 14 in which a distributed maintenance component from the distributed maintenance components checks a logical timestamp for an entry in the metadata before processing the entry, wherein the entry is not processed if the logical timestamp indicates a possibility that the entry is currently being operated upon by another of a distributed maintenance component from the distributed maintenance components.

### Claim 24 (depends on 23)

The computer program product of claim 23 in which the logical timestamp is a vector clock that is capable of being associated with multiple logical timestamps for plurality of nodes.

### Claim 25 (depends on 23)

The computer program product of claim 23 in which the logical timestamp comprises an incarnation value and a component identifier.

### Claim 26 (depends on 23)

The computer program product of claim 23 in which the logical timestamp comprises an operation identifier.

### Claim 27

A system for managing a virtual storage system, comprising:
a processor;
a memory for holding programmable code; and
wherein the programmable code includes instructions for
receiving information regarding metadata maintained by a plurality of nodes in the virtual storage system, wherein the plurality of nodes comprise respective distributed maintenance components, using the distributed maintenance components to manage the metadata for the virtual storage system, in which the metadata relate to storage of data within the virtual storage system, checking a state of the virtual storage system to identify inconsistencies within the metadata, wherein the checking is performed in parallel by the distributed maintenance components to scan the metadata; and maintaining the state of the virtual storage system based at least in part in results of checking the state of the virtual storage system, wherein maintaining the state of the virtual storage system is performed in parallel by the distributed maintenance components to fix the inconsistencies within the metadata distributed in the plurality of nodes.

### Claim 28 (depends on 27)

The system of claim 27 in which the state of the virtual storage system is checked by performing a full scan of the metadata.

### Claim 29 (depends on 28)

The system of claim 28 in which the full scan comprises a scan of all metadata tables.

### Claim 30 (depends on 27)

The system of claim 27 in which a mapreduce operation is performed to check the state of the virtual storage system.

### Claim 31 (depends on 30)

The system of claim 30 in which the mapreduce operation distributes work among the distributed maintenance components.

### Claim 32 (depends on 30)

The system of claim 30 in which the mapreduce operation comprises a single mapreduce directed to an extent group ID map.

### Claim 33 (depends on 27)

The system of claim 27 in which the distributed maintenance components comprise a master and multiple slaves, in which the master coordinates maintenance workloads to be run by the slaves.

### Claim 34 (depends on 27)

The system of claim 27 in which certain tasks are scheduled to run as background tasks.

### Claim 35 (depends on 34)

The system of claim 34 in which the background tasks are resource-intensive tasks.

### Claim 36 (depends on 27)

The system of claim 27 in which a distributed maintenance component from the distributed maintenance components checks a logical timestamp for an entry in the metadata before processing the entry, wherein the entry is not processed if the logical timestamp indicates a possibility that the entry is currently being operated upon by another of a distributed maintenance components from the distributed maintenance components.

### Claim 37 (depends on 36)

The system of claim 36 in which the logical timestamp is a vector clock that is capable of being associated with multiple logical timestamps for plurality of nodes.

### Claim 38 (depends on 36)

The system of claim 36 in which the logical timestamp comprises an incarnation value and a component identifier.

### Claim 39 (depends on 36)

The system of claim 36 in which the logical timestamp comprises an operation identifier.

### Claim 40 (depends on 27)

The system of claim 27 in which a master maintenance component comprises a master job scheduler for assigning workloads to performed on a scheduled or ad hoc basis.

### Claim 41 (depends on 40)

The system of claim 40 in which the master maintenance component further comprises a map reduce job tracker for coordinating map reduce workloads across multiple slave maintenance components.

### Claim 42 (depends on 27)

The system of claim 27 in which the distributed maintenance components comprise a map reduce job tracker for performing map reduce workloads.

### Claim 43 (depends on 27)

The system of claim 27 in which one or more remote procedure calls are performed to communicate workloads between the distributed maintenance components.
