# US 8,578,094 B2 · Full-stripe-write protocol for maintaining parity coherency in a write-back distributed redundancy data storage system

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

- Number: US 8,578,094 B2
- Document ID: US8578094B2
- Status: Granted
- Kind: B2
- Application number: 13/585,198
- Filed: 2012-08-14
- Published: 2012-12-06
- Granted: 2013-11-05
- Earliest claimed: 2010-02-22
- Assignees: International Business Machines Corporation
- Applicants: David D. Chambliss; James L. Hafner; Tarun Thakur
- Inventors: David D. Chambliss; James L. Hafner; Tarun Thakur
- Web page: https://patentgrep.com/patent/US8578094B2

## CPC

- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 2211/1028: Distributed, i.e. distributed RAID systems with parity
- G06F 2211/1057: Parity-multiple bits-RAID6, i.e. RAID 6 implementations
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data storage reliability is maintained in a write-back distributed data storage system including multiple nodes. Information is stored as a stripe including a collection of a data strips and associated parity strips, the stripe distributed across data and parity nodes. Each data node maintains the data strip holding a first copy of data, and each parity node maintains a parity strip holding a parity for the collection of data strips. A driver node initiates a full-stripe-write parity update protocol for maintaining parity coherency in conjunction with other nodes, to keep the relevant parity strips coherent. Parity is determined directly by computing parity strips for all data strips of a stripe. Any node may function as a driver node.

## Claims

### Claim 1

A method of maintaining data storage reliability in a write-back distributed data storage system including multiple nodes, each node comprising an array of failure independent data storage devices, the method comprising:
storing information as a stripe including a collection of data strips and associated parity strips, the stripe distributed across data and parity nodes;
each data node maintaining an associated data strip holding a first copy of data, and each parity node maintaining a parity strip holding a parity for the collection of data strips;
a driver node initiating a full-stripe-write parity update protocol for maintaining parity coherency in conjunction with other nodes comprising data and parity nodes, by determining parity directly by computing new parity values for all data strips of a stripe from fast write data in order to keep the relevant parity strips coherent, wherein any node may function as a driver node; and
upon detecting new data:
writing new data to one or more strips in a stripe;
the driver node computing new parity if the driver node is a parity node, and sending a commit message to another node in a predefined message order sequence; and
each respective node receiving a commit message computing new parity if that respective node is a parity node, and sending a commit message to a next node in the predefined message order sequence unless that respective node is a last node in the predetermined message order sequence,
wherein each parity held by a parity strip is calculated based on a different parity calculation formula for each parity.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
starting from the last node in the predefined message order sequence, on receiving a commit message each respective node computing new parity if that respective node is a parity node, and sending an acknowledgement message to an immediately prior node in the predefined message order sequence unless that respective node is a first node in the predetermined message order sequence, wherein each respective node upon receiving an acknowledgement message commits one of: new data and newly computed parity, new data, or newly computed parity.

### Claim 3 (depends on 2)

The method of claim 2 further comprising:
the driver node initiating the full-stripe-write parity update protocol upon determining that the new data comprises a full stripe of new data.

### Claim 4 (depends on 2)

The method of claim 2 further comprising:
each data node locking its new data then sending a commit message, and upon committing, unlocking its new data; and
each parity node locking its parity data then computing new parity and sending a commit message, and upon committing, unlocking its new parity.

### Claim 5 (depends on 3)

The method of claim 3 further comprising:
each data node maintaining at least two versions of the data for a strip, a fast write version and a parity-integrated version, wherein the fast write copy has been written into a storage system by a host or client and not integrated into a parity strip, and wherein the parity-integrated version has been incorporated into a process for defining a parity value; and
transitioning the fast write version to the parity-integrated version at completion of a parity update protocol at all relevant data and parity nodes, whereby the prior parity-integrated version is discarded.

### Claim 6 (depends on 5)

The method of claim 5 further comprising, in each parity node:
maintaining a working version of its parity strip value containing a current parity-integrated value for each of the data strips computed into that parity strip; and
at the end of the parity update as viewed by each parity node, the parity node transitioning the working version to the parity-integrated value and discarding a previous parity-integrated value.

### Claim 7 (depends on 3)

The method of claim 3 further comprising:
upon a node failure, performing a roll-forward full-stripe-write protocol restarted by a successor driver node in the messaging order.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining parity directly is based on computing new parity values for all data strips of a stripe from a full stripe's worth of fast write data.

### Claim 9 (depends on 1)

The method of claim 1, wherein parity is determined directly from the data strips.

### Claim 10 (depends on 1)

The method of claim 1, wherein the driver node comprises any node in a stripe.

### Claim 11 (depends on 10)

The method of claim 10, wherein the driver node is one of a data node and a parity node.

### Claim 12 (depends on 11)

The method of claim 11, wherein the driver node is one of predetermined and self-elected.

### Claim 13 (depends on 12)

The method of claim 12, wherein the driver node is assigned.
