# US 2022/0283718 A1 · Block allocation for persistent memory during aggregate transition

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

- Number: US 2022/0283718 A1
- Document ID: US20220283718A1
- Status: Published application
- Kind: A1
- Application number: 17/750,793
- Filed: 2022-05-23
- Published: 2022-09-08
- Earliest claimed: 2020-06-25
- Assignees: NetApp, Inc.
- Applicants: NetApp Inc.
- Inventors: Abdul Basit; Ananthan Subramanian; Ram Kesavan; Matthew Fontaine Curtis-Maury
- Web page: https://patentgrep.com/patent/US20220283718A1

## CPC

- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0614: {Improving the reliability of storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/1435: {using file system or storage system metadata}
- G06F 11/2094: {Redundant storage or storage space (G06F11/2056 takes precedence)}
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for block allocation for persistent memory during aggregate transition. In a high availability pair including first and second nodes, the first node makes a determination that control of a first aggregate is to transition from the first node to the second node. A portion of available free storage space is allocated from a first persistent memory of the first node as allocated pages within the first persistent memory. Metadata information for the allocated pages is updated with an identifier of the first aggregate to create updated metadata information reserving the allocated pages for the first aggregate. The updated metadata information is mirrored to the second node, so that the second node also reserves those pages. Control of the first aggregate is transitioned to the second node. As a result, the nodes do not attempt allocating the same free pages to different aggregates during a transition.

## Claims

### Claim 1

A system comprising:
a first node comprising a first persistent memory, wherein the first persistent memory includes a first local partition and a first remote partition, wherein the first node utilizes the first local partition to service client I/O, and wherein the first node is configured to:
mirror data from pages within the first local partition to a second remote partition of a second persistent memory of a second node;
recover from a failure where the second node took over control for the first node during the failure of the first node, wherein the second node services subsequent client I/O on behalf of the first node using the data mirrored from the first node to the second remote partition of the second persistent memory of the second node; and
execute a resynchronization process to synchronize changes made to the second remote partition by the subsequent client I/O to the first local partition of the first persistent memory of the first node.

### Claim 2 (depends on 1)

The system of claim 1, wherein the first node:
in response to the resynchronization process completing, performs a giveback procedure for the second node to give back control to the first node.

### Claim 3 (depends on 1)

The system of claim 1, wherein the first node:
stores mirrored data received from the second node into pages of the first remote partition of the first persistent memory.

### Claim 4 (depends on 1)

The system of claim 1, wherein the first node:
executes a byte by byte resynchronization to synchronize the changes to the first local partition.

### Claim 5 (depends on 1)

The system of claim 1, wherein control of an aggregate is transitioned to the second node in response to the first node failing, and wherein the first node:
performs the resynchronization process to synchronize changes made to the aggregate while controlled by the second node.

### Claim 6 (depends on 1)

The system of claim 1, wherein the first node:
executes a scavenger to reclaim pages as available pages based upon the pages no longer being referenced by an active file system.

### Claim 7 (depends on 1)

The system of claim 1, wherein the first node:
executes a scavenger to reclaim pages as available pages based upon the pages no longer being referenced by snapshots of an active file system.

### Claim 8 (depends on 1)

The system of claim 1, wherein page block numbers and data of pages within the second remote partition mirrors page block numbers and data of pages within the first local partition.

### Claim 9 (depends on 1)

The system of claim 1, wherein the first node:
implements a soft partition for the first persistent memory to partition the first persistent memory into a number of partitions for an arbitrary number of aggregates.

### Claim 10 (depends on 1)

The system of claim 1, wherein the first node:
implements a soft partition for the first persistent memory to partition the first persistent memory into the first local partition and the first remote partition having arbitrary sizes.

### Claim 11 (depends on 1)

The system of claim 1, wherein the first node:
limits new allocations, of pages from the first remote partition for an aggregate, to allocated pages having page block numbers tagged with an aggregate identifier.

### Claim 12 (depends on 1)

The system of claim 1, wherein allocated pages within the first remote partition maintained by the first node for an aggregate have same page block numbers as pages within a second local partition allocated to the aggregate by the second node, and wherein data within the pages within the second local partition are mirrored to the allocated pages having the same page block numbers.

### Claim 13

A method comprising:
maintaining pages of data within a first persistent memory of a first node, wherein the first persistent memory includes a first local partition and a first remote partition, wherein the first node utilizes the first local partition to service client I/O;
mirroring data from pages within the first local partition to a second remote partition of a second persistent memory of a second node;
recovering from a failure where the second node took over control for the first node during the failure of the first node, wherein the second node services subsequent client I/O on behalf of the first node using the data mirrored from the first node to the second remote partition of the second persistent memory of the second node; and
executing a resynchronization process to synchronize changes made to the second remote partition by the subsequent client I/O to the first local partition of the first persistent memory of the first node.

### Claim 14 (depends on 13)

The method of claim 13, comprising:
in response to the resynchronization process completing, performing a giveback procedure for the second node to give back control to the first node.

### Claim 15 (depends on 13)

The method of claim 13, comprising:
storing mirrored data received from the second node into pages of the first remote partition of the first persistent memory.

### Claim 16 (depends on 13)

The method of claim 13, comprising:
executing a byte by byte resynchronization to synchronize the changes to the first local partition.

### Claim 17 (depends on 13)

The method of claim 13, wherein control of an aggregate is transitioned to the second node in response to the first node failing, and wherein the method comprises:
performing the resynchronization process to synchronize changes made to the aggregate while controlled by the second node.

### Claim 18 (depends on 13)

The method of claim 13, comprising:
executing a scavenger to reclaim pages as available pages based upon the pages no longer being referenced by an active file system.

### Claim 19 (depends on 13)

The method of claim 13, comprising:
executing a scavenger to reclaim pages as available pages based upon the pages no longer being referenced by snapshots of an active file system.

### Claim 20

A non-transitory machine readable medium comprising instructions for performing a method, which when executed by a machine, causes the machine to:
maintain pages of data within a first persistent memory of a first node, wherein the first persistent memory includes a first local partition and a first remote partition, wherein the first node utilizes the first local partition to service client I/O;
mirror data from pages within the first local partition to a second remote partition of a second persistent memory of a second node;
recover from a failure where the second node took over control for the first node during the failure of the first node, wherein the second node services subsequent client I/O on behalf of the first node using the data mirrored from the first node to the second remote partition of the second persistent memory of the second node; and
execute a resynchronization process to synchronize changes made to the second remote partition by the subsequent client I/O to the first local partition of the first persistent memory of the first node.
