# US 2003/0229820 A1 · Method, apparatus, and program for data mirroring with striped hotspare

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

- Number: US 2003/0229820 A1
- Document ID: US20030229820A1
- Status: Published application
- Kind: A1
- Application number: 10/166,417
- Filed: 2002-06-10
- Published: 2003-12-11
- Earliest claimed: 2002-06-10
- Assignees: LSI Logic Corporation
- Inventors: Paresh Chatterjee; Parag Ranjan Maharana
- Web page: https://patentgrep.com/patent/US20030229820A1

## CPC

- G06F 11/2061: {combined with de-clustering of data}
- G06F 11/2087: {with a common controller}
- G06F 2211/1028: Distributed, i.e. distributed RAID systems with parity
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage controller is provided that allows data mirroring with hotspare where all drives take part in data storage. For each stripe written, a drive is designated as the hotspare. The hotspare is not a dedicated drive. Rather, the hotspare rotates as stripes are written to the drives. Thus, every drive is involved in data storage and load may be balanced among more drives. Furthermore, since each drive takes part in data storage, reconstruction after a drive failure takes less time.

## Claims

### Claim 1

A method for storing data in a plurality of storage devices, comprising:
receiving a plurality of data blocks to be stored;
for each data block in the plurality of data blocks:
identifying a data drive, at least one mirror drive, and at least one hotspare drive within the plurality of storage devices;
storing the data block in the data drive; and
mirroring the data block on the at least one mirror drive,
wherein all storage devices in the plurality of storage devices store at least one of the plurality of data blocks.

### Claim 2 (depends on 1)

The method of claim 1, wherein the step of storing the data block in the data drive and the step of mirroring the data block on the at least one mirror drive are performed concurrently.

### Claim 3 (depends on 1)

The method of claim 1, wherein each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 4 (depends on 1)

The method of claim 1, wherein, upon failure of a storage device in the plurality of storage devices, all of the plurality of data blocks can be read from remaining storage devices in the plurality of storage devices.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
in response to a failed storage device, reconstructing the remaining storage devices to form a mirrored configuration.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
replacing the failed storage device; and
reconstructing the plurality of storage devices to form a configuration in which all storage devices in the plurality of storage devices store at least one of the plurality of data blocks and each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
replacing a failed storage device within the plurality of storage devices; and
reconstructing the plurality of storage devices to form a configuration in which all storage devices in the plurality of storage devices store at least one of the plurality of data blocks and each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 8 (depends on 1)

The method of claim 1, wherein the plurality of storage devices form a volume.

### Claim 9 (depends on 1)

The method of claim 1, wherein the method is performed by a storage controller.

### Claim 10

A method of adding a striped hotspare to a mirrored configuration comprising a first plurality of storage devices, wherein each storage device in the first plurality of storage devices stores a copy of each data block stored in a first plurality of storage devices, the method comprising:
adding a hotspare drive to the first plurality of storage devices to form a second plurality of storage devices;
rebuilding the second plurality of storage devices to form a configuration in which all storage devices in the second plurality of storage devices store at least one of the plurality of data blocks and each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 11

A method for storing data, comprising:
receiving a request to store a first data block;
storing a first data block on a first storage device;
mirroring the first data block on a second storage device;
receiving a request to store a second data block;
storing the second data block on the first storage device; and
mirroring the second data block on the third storage device.

### Claim 12

An apparatus for storing data in a plurality of storage devices, comprising:
a processor; and
a plurality of storage devices, coupled to the processor,
wherein the processor is configured to receive a plurality of data blocks to be stored;
wherein, for each data block in the plurality of data blocks, the processor is configured to identify a data drive, at least one mirror drive, and at least one hotspare drive within the plurality of storage devices, store the data block in the data drive, and mirror the data block on the at least one mirror drive; and
wherein all storage devices in the plurality of storage devices store at least one of the plurality of data blocks.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processor stores the data block in the data drive and mirrors the data block on the at least one mirror drive concurrently.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein, upon failure of a storage device in the plurality of storage devices, all of the plurality of data blocks can be read from remaining storage devices in the plurality of storage devices.

### Claim 16 (depends on 12)

The apparatus of claim 12, wherein the plurality of storage devices form a volume.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein the processor is embodied in a storage controller.

### Claim 18

A storage module comprising:
a storage controller including a processor; and
a plurality of storage devices coupled to the storage controller,
wherein the storage controller has a plurality of modes of operation including:
a first mode of operation in which the storage controller receives a plurality of data blocks to be stored; and
a second mode of operation in which, for each data block in the plurality of data blocks, the storage controller identifies a data drive, at least one mirror drive, and at least one hotspare drive within the plurality of storage devices, stores the data block in the data drive, and mirrors the data block on the at least one mirror drive,
wherein all storage devices in the plurality of storage devices store at least one of the plurality of data blocks.

### Claim 19 (depends on 18)

The storage module of claim 18, wherein the storage controller stores the data block in the data drive and mirrors the data block on the at least one mirror drive concurrently.

### Claim 20 (depends on 18)

The storage module of claim 18, wherein each storage device in the plurality of storage devices is a hotspare for at least one data block.

### Claim 21

A computer program product, in a computer readable medium, for storing data in a plurality of storage devices, comprising:
instructions for receiving a plurality of data blocks to be stored;
for each data block in the plurality of data blocks:
instructions for identifying a data drive, at least one mirror drive, and at least one hotspare drive within the plurality of storage devices;
instructions for storing the data block in the data drive; and
instructions for mirroring the data block on the at least one mirror drive,
wherein all storage devices in the plurality of storage devices store at least one of the plurality of data blocks.
