# US 2021/0173748 A1 · Operation-Level Consistency Points And Rollback

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

- Number: US 2021/0173748 A1
- Document ID: US20210173748A1
- Status: Published application
- Kind: A1
- Application number: 16/703,079
- Filed: 2019-12-04
- Published: 2021-06-10
- Earliest claimed: 2019-12-04
- Assignees: Robin Systems, Inc.
- Applicants: Robin Systems, Inc.
- Inventors: Jagadish Kumar Mukku
- Web page: https://patentgrep.com/patent/US20210173748A1

## CPC

- G06F 11/1469: {Backup restoration techniques}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 2201/81: Threshold
- G06F 2201/82: Solving problems relating to consistency
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A new snapshot of a storage volume is created by instructing computing nodes to suppress write requests. Storage nodes create a new snapshot for the storage volume by allocating a new segment to the new snapshot and finalizes and performs garbage collection with respect to segments allocated to the previous snapshot. Subsequent write requests to the storage volume are then performed on the segments allocated to the new snapshot. A segment maps segments to a particular snapshot and metadata stored in the segment indicates storage volume addresses of data written to the segment. The snapshots may be represented by a storage manager in a hierarchy that identifies an ordering of snapshots and branches to clone snapshots. Consistency points may be created by storage nodes transmitting sequence numbers assigned to write IOPs to the storage manager. Segments store the sequence numbers in metadata enabling rolling back to specific sequence numbers.

## Claims

### Claim 1

A method comprising:
receiving, by a storage node including a storage device, a plurality of write requests addressed to a storage unit;
for each write request of the plurality of write requests performing, by the storage node:
assigning a sequence number to the each write request;
(a) transmitting the sequence number to a storage manager; and
(b) executing the each write request on the storage device.

### Claim 2 (depends on 1)

The method of claim 1, further comprising performing (a) without waiting for acknowledgment of completion of (b) and performing (b) without waiting for acknowledgment of completion of (a).

### Claim 3 (depends on 1)

The method of claim 1, further comprising, for each write request of the plurality of write requests, performing, by the storage node:
detecting acknowledgment completion of the each write request;
(c) transmitting a message to the storage manager indicating that the sequence number of the each request has been acknowledged.

### Claim 4 (depends on 3)

The method of claim 3, wherein (a) and (c) are performed without transmitting payload data from the each write request to the storage manager.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
storing, by the storage manager, a consistency point for the sequence number of the each write request in response to receiving the message from (c) for the each write request.

### Claim 6 (depends on 5)

The method of claim 5, wherein the consistency point further includes a time.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
receiving, by the storage manager, a rollback time;
identifying, by the storage manager, a specified sequence number of a consistency point corresponding to the rollback time; and
restoring, by the storage node, a state of the storage unit to a state following completion of the write request assigned the specified sequence number.

### Claim 8 (depends on 7)

The method of claim 7, further comprising performing, by the storage node, for each write request of the plurality of write requests:
writing payload data from the each write request to a segment of the storage device allocated to the storage unit; and
creating a metadata entry in the segment including the sequence number assigned to the each write request.

### Claim 9 (depends on 8)

The method of claim 8, wherein the metadata entry for the each write request includes an offset within the segment at which the payload data from the each write request is written.

### Claim 10 (depends on 8)

The method of claim 8, wherein restoring the state of the storage unit to the state following completion of the write request assigned the specified sequence number comprises:
identifying a first segment assigned to the storage unit and including a metadata entry including the specified sequence number; and
restoring a state of the first segment to a state after writing of the payload data and the metadata entry of the write request assigned the specified sequence number.

### Claim 11

A method comprising:
receiving, by a storage node including a storage device, a plurality of write requests addressed to a storage unit, the plurality of write requests including first write requests and second write requests, the first requests received after creating a first snapshot of the storage unit and the second requests received after creating of a second snapshot of the storage unit;
for each write request of the plurality of write requests performing, by the storage node:
assigning a sequence number to the each write request;
(a) transmitting the sequence number to a storage manager; and
(b) executing the each write request on the storage device such that:
when the each write request is a first request, payload data of the each write request and the sequence number assigned to the each write request is written to one of one or more first segments mapped to the first snapshot; and
when the each write request is a second request, payload data of the each write request and the sequence number assigned to the each write request is written to one of one or more second segments mapped to the second snapshot.

### Claim 12 (depends on 11)

The method of claim 11, further comprising receiving, by the storage manager, an instruction to rollback the storage unit to a specified time and, in response to the instruction:
determining, by the storage manager, that the specified time is after creation of the second snapshot;
determining, by the storage manager, a specified sequence number received by the storage manager at approximately the specified time;
identifying, by the storage node, a specified segment of the one or more second segments;
copying, by the storage node, the specified segment and any of the one or more segments allocated to the storage unit prior to the specified segment to a third snapshot; and
restoring, by the storage node, a state of the specified segment to a state after writing of the payload data of the write request assigned the specified sequence number and the specified sequence number to the specified segment.

### Claim 13

A system comprising:
a storage node including one or more processing devices, one or more memory devices operably coupled to the one or more processing devices, and a storage device operably coupled to the one or more processing devices, the one or more memory devices storing executable code that, when executed by the one or more processing devices, causes the one or more processing devices to:
receive a plurality of write requests addressed to a storage unit;
for each write request of the plurality of write requests:
assign a sequence number to the each write request;
(a) transmit the sequence number to a storage manager; and
(b) execute the each write request on the storage device.

### Claim 14 (depends on 13)

The system of claim 13, wherein the executable code, when executed by the one or more processing devices, further causes the one or more processing devices to perform (a) without waiting for acknowledgment of completion of (b) and perform (b) without waiting for acknowledgment of completion of (a).

### Claim 15 (depends on 13)

The system of claim 13, wherein the executable code, when executed by the one or more processing devices, further causes the one or more processing devices to, for each write request of the plurality of write requests:
detect acknowledgment completion of the each write request;
(c) transmit a message to the storage manager indicating that the sequence number of the each request has been acknowledged.

### Claim 16 (depends on 15)

The system of claim 15, wherein the executable code, when executed by the one or more processing devices, further causes the one or more processing devices to perform (a) and (c) without transmitting payload data from the each write request to the storage manager.

### Claim 17 (depends on 15)

The system of claim 15, further comprising the storage manager, wherein the storage manager is programmed to store a consistency point for the sequence number of the each write request in response to receiving the message from (c) for the each write request, wherein the consistency point further includes a time.

### Claim 18 (depends on 17)

The system of claim 17, wherein the storage manager is further programmed to:
receive a rollback time;
identify a specified sequence number of a consistency point corresponding to the rollback time; and
instruct the storage node to restore a state of the storage unit to a state following completion of the write request assigned the specified sequence number.

### Claim 19 (depends on 18)

The system of claim 18, wherein the executable code, when executed by the one or more processing devices, further causes the one or more processing devices to, for each write request of the plurality of write requests:
write payload data from the each write request to a segment of the storage device allocated to the storage unit; and
create a metadata entry in the segment including the sequence number assigned to the each write request, wherein the metadata entry for the each write request includes an offset within the segment at which the payload data from the each write request is written.

### Claim 20 (depends on 19)

The system of claim 19, wherein the executable code, when executed by the one or more processing devices, further causes the one or more processing devices to restore the state of the storage unit to the state following completion of the write request assigned the specified sequence number by:
identifying a first segment assigned to the storage unit and including a metadata entry including the specified sequence number; and
restoring a state of the first segment to a state after writing of the payload data and the metadata entry of the write request assigned the specified sequence number.
