# US 2001/0025360 A1 · Disk array system and its control method

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

- Number: US 2001/0025360 A1
- Document ID: US20010025360A1
- Status: Published application
- Kind: A1
- Application number: 09/862,608
- Filed: 2001-05-23
- Published: 2001-09-27
- Earliest claimed: 1992-12-28
- Assignees: Hitachi, Ltd.
- Inventors: Hitoshi Kakuta; Yoshifumi Takamoto
- Web page: https://patentgrep.com/patent/US20010025360A1

## CPC

- G11C 29/74: {using duplex memories, i.e. using dual copies}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F 2211/1019: Fast writes, i.e. signaling the host that a write is done before data is written to disk
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a disk array system of RAID (level 5) improving the system performance by distributing data, duplicated fields are allocated in a parity group in order to reduce an overhead of data write. In the data write process, write data is tentatively and duplicately written in the duplicate fields. At this time, a write completion is reported to CPU. The parity is generated later at a proper timing and written in a SCSI drive. Generating a parity and writing data can be efficiently scheduled.

## Claims

### Claim 1

A method of writing data in a storage unit having a plurality of drives, in a form of combination of a plurality of write data and an error correcting code, comprising:
(a) generating at least one error correcting code from (m−1) write data supplied from an upper unit;
(b) writing, as one data group, said (m−1) write data and said error correcting code in m space fields each belonging to one of m drives within said plurality of drives;
(c) responsive to an update request issued by said upper unit for one (old write data) of said (m−1) write data, writing new write data designated by said update request into two space fields belonging to two drives within said plurality of drives other than said m drives as a pair of duplicated write data belonging to said data group;
(d) reading out three data including one of said pair of duplicated write data, said old write data, and said error correcting data (old error correcting data) from three of the plurality of drives, holding said three data, at a proper timing after execution of said writing step (c);
(e) generating a new error correcting code by using said read out three data for said one data group after updating of said old write data by said new write data;
(f) updating said old error correcting code written at said step (b) by said generated new error correcting code; and
(g) after the updating of said old error correcting code by said new error correcting code, releasing a first field holding said old write data and a second field storing one of said pair of duplicated write data to make the first and second fields be space fields.

### Claim 2 (depends on 1)

A method according to claim 1, further comprising the step of:
(d) informing said upper unit of completion of updating requested by said update request, after said step (c) and before said reading step (d).

### Claim 3 (depends on 1)

A method according to claim 1, further comprising the steps of:
monitoring a frequency of occurrence of read/write requests from said upper unit to said storage unit; and
controlling the timing at which said step (d) is executed in accordance with said monitored frequency.

### Claim 4 (depends on 3)

A method according to claim 3, wherein said controlling step includes a step of starting said step (d) when said monitored frequency is not greater than a predetermined value.

### Claim 5 (depends on 1)

A method according to claim 1, further comprising the steps of:
when a failure occurs at one of said m drives after said writing of said pair of duplicated write data at step (c) and before said updating of said old error correcting code by said new error correcting code at step (f), reconstructing one of said (m−1) write data or said old error correcting code held in said failed drive, by using (m−1) data each being one of said (m−1) write data or said old error correcting code, held in (m−1) drives other than said failed drive;
writing said reconstructed one of said (m−1) write data or said reconstructed old error correcting code in a normal drive to be used in place of said failed drive, as data to be used in place of said one of said (m−1) write data or said old error correcting code held in said failed drive; and
when a failure occurs at one of said two drives holding said pair of duplicated write data after said writing of said pair of duplicated write data at step (c) and before said updating of said old error correcting code by said new error correcting code at step (f), copying one of said pair of duplicated write data held in another of said two drives to a normal drive to be used in place of said failed drive, as duplicated write data to be used in place of another of said part of duplicated write data held in said failed one of said two drives.

### Claim 6 (depends on 1)

A method according to claim 1, further comprising the steps of:
responsive to a new update request issued by said upper unit for said one data group after execution of said releasing step (g), executing said steps (c) to (g) for new write data designated by said new update request; and
responsive to a new update request issued by said upper unit after said writing of said pair of duplicated write data at step (c) and before said releasing step (g), executing said steps (c) to (g) for new write data designated by said new update request after completion of execution of said step (g) for an update request preceding to said new update request.

### Claim 7 (depends on 1)

A method according to claim 1, wherein said m fields and said two space fields are fields having a same physical address of (m+2) drives.

### Claim 8 (depends on 1)

A method according to claim 1, further comprising the steps of:
executing said steps (a) to (g) for each of a plurality of data groups each inclusive of (m−1) write data requested by said upper unit; and
wherein space fields distributed in said (m+2) drives are used each as a space field for holding an error correcting codes for one of data groups, and pairs of space fields distributed in said (m+2) drives are used each as a pair of two space fields for holding a pair of duplicated write data for one of said plurality of data groups.

### Claim 9

A disk drive having a plurality of drives for holding data in a form of a combination of a plurality of write data and an error correcting code, comprising:
(a) first error correcting code generating means for generating at least one error correcting code from (m−1) write data supplied from an upper unit;
(b) first writing means for writing one data group constituted by said (m−1) write data and said error correcting code in m space fields each belonging to each of m drives;
(c) second writing means responsive to an update request issued by said upper unit for one (old write data) of said (m−1) write data by said upper unit, for writing new write data designated by said update request in two space fields belonging to two drives other than said m drives as a pair of duplicated write data belonging to said data group,
(d) means for reading out three data including one of said pair of duplicated write data, said old write data, and said error correcting data (old error correcting data) from drives holding said three data, at a proper timing after writing of said pair of duplicated write data;
(e) second error correcting code generating means for generating by using said read out three data, a new error correcting code for said data group after updating of said old write data by said new write data;
(f) means for updating said old error correcting code written by said first writing means by said new error correcting code; and
(g) means for releasing, after updating said old error correcting code by said new error correcting code, a first field holding said old write data and a second field holding one of said pair of duplicated write data, so as to make the first and second fields be space fields.

### Claim 10 (depends on 9)

A disk drive according to claim 9, further comprising:
means for informing said upper unit of completion of updating requested by said update request, after said pair of duplicated write data is written and before said three data are read out.

### Claim 11 (depends on 9)

A disk array system according to claim 9, further comprising;
means for monitoring a frequency of occurrence of read/write requests from said upper unit to said disk array system; and
means for controlling start of an operation of said reading means in accordance with said monitored frequency.

### Claim 12 (depends on 11)

A disk array system according to claim 11, wherein said controlling means includes means for starting the operation of said reading means when said monitored occurrence frequency is not greater than a predetermined value.

### Claim 13 (depends on 9)

A disk array system according to claim 9, further comprising:
means responsive to occurrence of a failure at one of said m drives after writing of said pair of duplicated write data and before updating of said old error correcting code by said new error correcting code, for reconstructing one of said (m−1) write data or said old error correcting code held in said failed drive, by using (m—1) data each being one of said (m−1) write data or said old error correcting code held in (m−1) drives other than said failed drive;
third writing means for writing said reconstructed one of said (m−1) write data or said reconstructed old error correcting code in a normal drive to be used in place of said failed drive, as the data to be used in place of said one of said (m—1) write data or said old error correcting code held in said failed drive; and
means responsive to occurrence of a failure at one of said two drives holding said pair of duplicated write data after writing said pair of duplicated write data and before updating said old error correcting code by said new error correcting code, for copying one of said pair of duplicated write data held in another of said two drives, a normal drive to be used in place of said failed drive, as duplicated write data to be used in place of another of said pair of duplicated write data held in said failed one of said two drives.

### Claim 14 (depends on 9)

A disk array system according to claim 9, further comprising:
means responsive to a new update request issued by said upper unit for said data group after releasing said space fields, for causing said second writing means, said reading means, said second error correcting means, said updating means, and said releasing means to operate for new write data designated by said new update request; and
means responsive to a new update request issued by said upper unit after writing of said pair of duplicated write data and before releasing of said space fields, for causing said second writing means to start writing of said new data designated by said new update request after releasing by said releasing means is over for an update request preceding to said new update request.

### Claim 15 (depends on 9)

A disk array system according to claim 9, wherein said m fields and said two space fields are fields of a same physical address of (m+2) drives.

### Claim 16 (depends on 9)

A disk array system according to claim 9, further comprising:
means for causing said first error correcting code generating means, said first writing means, said second writing means, said reading means, said second error correcting means, said updating means, and said releasing means to operate for each of a plurality of data groups each inclusive of (m−1) write data requested by said upper unit; and
wherein space fields distributed in said (m+2) drives are used each as a space field for holding an error correcting codes for one of data groups, and pairs of space fields distributed in said (m+2) drives are used each as a pair of two space fields for holding a pair of duplicated write data for one of said plurality of data groups.
