# US 2021/0286536 A1 · Providing coordination between mapper circuitry and redundant array of independent disks (raid) circuitry to manage raid storage space

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

- Number: US 2021/0286536 A1
- Document ID: US20210286536A1
- Status: Published application
- Kind: A1
- Application number: 16/815,348
- Filed: 2020-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: EMC IP Holding Company LLC
- Applicants: EMC IP Holding Company LLC
- Inventors: Geng Han; Vamsi K. Vankamamidi; Shuyu Lee; Jian Gao; Xiaobo Zhang; Rongrong Shang; Ajay Karri
- Web page: https://patentgrep.com/patent/US20210286536A1

## CPC

- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 11/2069: {Management of state, configuration or failover}
- G06F 2201/82: Solving problems relating to consistency
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are directed to managing Redundant Array of Independent Disks (RAID) storage space. One technique involves providing, by RAID circuitry, a storage space request to mapper circuitry; receiving, by the RAID circuitry, a storage space reply from the mapper circuitry in response to the storage space request; and performing, by the RAID circuitry, a follow-up operation based on the storage space reply from the mapper circuitry. Another technique involves, receiving, by mapper circuitry, a storage space request from RAID circuitry; performing, by the mapper circuitry, a storage space management operation in response to the storage space request; and providing, by the mapper circuitry, a storage space reply to the RAID circuitry, the storage space reply identifying a result of the storage space management operation.

## Claims

### Claim 1

A method of managing Redundant Array of Independent Disks (RAID) storage space, the method comprising:
providing, by RAID circuitry, a storage space request to mapper circuitry;
receiving, by the RAID circuitry, a storage space reply from the mapper circuitry in response to the storage space request; and
performing, by the RAID circuitry, a follow-up operation based on the storage space reply from the mapper circuitry.

### Claim 2 (depends on 1)

A method as in claim 1 wherein providing the storage space request to the mapper circuitry includes:
sending, as the storage space request, an unmap call to the mapper circuitry through an application programming interface (API), the unmap call identifying a requested amount of space.

### Claim 3 (depends on 2)

A method as in claim 2 wherein receiving the storage space reply from the mapper circuitry in response to the storage space request includes:
obtaining, as the storage space reply, an unmap status from the mapper circuitry through the API, the unmap status identifying an answered amount of space.

### Claim 4 (depends on 3)

A method as in claim 3 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the answered amount of space identified by the unmap status equals the requested amount of space; and
wherein performing the follow-up operation based on the storage space reply from the mapper circuitry includes:
decreasing the mapper capacity value by the requested amount of space, and
increasing the spare capacity value by the requested amount of space to support rebuilding an entire storage device in response to a storage device failure.

### Claim 5 (depends on 3)

A method as in claim 3 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the answered amount of space identified by the unmap status is more than zero and is less than the requested amount of space; and
wherein performing the follow-up operation based on the storage space reply from the mapper circuitry includes:
decreasing the mapper capacity value by the answered amount of space,
increasing the spare capacity value by the answered amount of space, and
sending additional unmap calls to the mapper circuitry through the API to request additional storage space to reach a level that supports rebuilding an entire storage device in response to a storage device failure.

### Claim 6 (depends on 3)

A method as in claim 3 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the answered amount of space identified by the unmap status is zero; and
wherein performing the follow-up operation based on the storage space reply from the mapper circuitry includes:
sending additional unmap calls to the mapper circuitry through the API to request storage space.

### Claim 7 (depends on 1)

A method as in claim 1 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the method further comprises:
receiving, by the RAID circuitry, an unmap opcode from the mapper circuitry, the unmap opcode indicating whether the mapper circuitry has released reservable space available for use by the RAID circuitry in response to a storage device failure or whether the mapper circuitry has released unreservable space for use by the mapper circuitry.

### Claim 8 (depends on 1)

A method as in claim 1 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the method further comprises:
identifying, by the RAID circuitry, added space from a newly added storage device,
apportioning, by the RAID circuitry, a first amount of the added space to the spare capacity value to increase the spare capacity value to a level that supports rebuilding an entire storage device in response to a storage device failure, and
apportioning, by the RAID circuitry, a remaining amount of the added space to the mapper capacity value.

### Claim 9

Data storage equipment, comprising:
a storage device interface;
mapper circuitry; and
Redundant Array of Independent Disks (RAID) circuitry coupled to the storage device interface and the mapper circuitry, the RAID circuitry being constructed and arranged to manage RAID storage space through the storage device interface by:
providing a storage space request to the mapper circuitry,
receiving a storage space reply from the mapper circuitry in response to the storage space request, and
performing a follow-up operation based on the storage space reply from the mapper circuitry.

### Claim 10

A computer program product having a non-transitory computer readable medium which stores a set of instructions to manage Redundant Array of Independent Disks (RAID) storage space, the set of instructions, when carried out by RAID circuitry, causing the RAID circuitry to perform a method of:
providing a storage space request to mapper circuitry;
receiving a storage space reply from the mapper circuitry in response to the storage space request; and
performing a follow-up operation based on the storage space reply from the mapper circuitry.

### Claim 11

A method of managing Redundant Array of Independent Disks (RAID) storage space, the method comprising:
receiving, by mapper circuitry, a storage space request from RAID circuitry;
performing, by the mapper circuitry, a storage space management operation in response to the storage space request; and
providing, by the mapper circuitry, a storage space reply to the RAID circuitry, the storage space reply identifying a result of the storage space management operation.

### Claim 12 (depends on 11)

A method as in claim 11 wherein receiving the storage space request from the RAID circuitry includes:
obtaining, as the storage space request, an unmap call from the RAID circuitry through an application programming interface (API), the unmap call identifying a requested amount of space.

### Claim 13 (depends on 12)

A method as in claim 12 wherein providing the storage space reply to the RAID circuitry includes:
sending, as the storage space reply, an unmap status to the RAID circuitry through the API, the unmap status identifying an answered amount of space as at least a portion of the result of the storage space management operation.

### Claim 14 (depends on 13)

A method as in claim 13 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein performing the storage space management operation in response to the storage space request includes:
determining that enough free capacity currently exists within the mapper capacity value to grant the requested amount of space, and
identifying, as the answered amount of space in the unmap status, the requested amount of space to enable the RAID circuitry to decrease the mapper capacity value by the requested amount of space and increase the spare capacity value by the requested amount of space to support rebuilding an entire storage device in response to a storage device failure.

### Claim 15 (depends on 13)

A method as in claim 13 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein performing the storage space management operation in response to the storage space request includes:
determining that some free capacity currently exists within the mapper capacity value but less than the requested amount of space currently exists within the mapper capacity value,
initiating a background garbage collection service to reclaim storage space, and
identifying, as the answered amount of space in the unmap status, more than zero and less than the requested amount of space to enable the RAID circuitry to decrease the mapper capacity value by the answered amount of space, increase the spare capacity value by the answered amount of space, and send additional unmap calls to the mapper circuitry through the API to request additional storage space to reach a level that supports rebuilding an entire storage device in response to a storage device failure.

### Claim 16 (depends on 13)

A method as in claim 13 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein performing the storage space management operation in response to the storage space request includes:
determining that no space capacity is currently exists for the RAID circuitry based on the mapper capacity value, and
identifying, as the answered amount of space in the unmap status, zero to cause the RAID circuitry to send additional unmap calls to the mapper circuitry through the API to request storage space.

### Claim 17 (depends on 11)

A method as in claim 11 wherein the RAID circuitry is constructed and arranged to persistently maintain a mapper capacity value and a spare capacity value, the mapper capacity value identifying a maximum amount of storage space that is consumable by the mapper circuitry, and the spare capacity value identifying an amount of storage space that is reserved as spare space for use in response to a storage device failure; and
wherein the method further comprises:
providing, by the mapper circuitry, an unmap opcode to the RAID circuitry, the unmap opcode indicating whether the mapper circuitry has released reservable space available for use by the RAID circuitry in response to a storage device failure or whether the mapper circuitry has released unreservable space for use by the mapper circuitry.

### Claim 18

Data storage equipment, comprising:
a storage device interface;
Redundant Array of Independent Disks (RAID) circuitry; and
mapper circuitry coupled to the storage device interface and the RAID circuitry, the mapper circuitry being constructed and arranged to manage RAID storage space through the storage device interface by:
receiving a storage space request from the RAID circuitry;
performing a storage space management operation in response to the storage space request; and
providing a storage space reply to the RAID circuitry, the storage space reply identifying a result of the storage space management operation.

### Claim 19

A computer program product having a non-transitory computer readable medium which stores a set of instructions to manage Redundant Array of Independent Disks (RAID) storage space, the set of instructions, when carried out by mapper circuitry, causing the mapper circuitry to perform a method of:
receiving a storage space request from RAID circuitry;
performing a storage space management operation in response to the storage space request; and
providing a storage space reply to the RAID circuitry, the storage space reply identifying a result of the storage space management operation.
