# US 11,119,680 B2 · Data writing method of flask disk array based on residual lives of flash drives thereof

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

- Number: US 11,119,680 B2
- Document ID: US11119680B2
- Status: Granted
- Kind: B2
- Application number: 16/850,894
- Filed: 2020-04-16
- Published: 2020-10-22
- Granted: 2021-09-14
- Earliest claimed: 2019-04-17
- Assignees: Qnap Systems, Inc.
- Applicants: Qnap Systems, Inc.
- Inventors: Chin-Hsing Hsu
- Web page: https://patentgrep.com/patent/US11119680B2

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0688: {Non-volatile semiconductor memory arrays}
- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1036: Life time enhancement
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A data writing method of a flash disk array is provided. The data writing method includes steps of: obtaining a first data quantity; receiving intermediate data to be written into the flash disk array; comparing a second data quantity of the intermediate data with the first data quantity; and writing the intermediate data into the flash disk array when the second data quantity is not less than the first data quantity. At most one data block is allocated from each of flash drives. Some of the allocated data blocks are written with the intermediate data, while others of the allocated data blocks are not written with the intermediate data and provided as reserved blocks. The number of the reserved blocks has at least two selectable values dependent on residual lives of the flash drives.

## Claims

### Claim 1

A data writing method of a flash disk array comprising a plurality of flash drives, the data writing method comprising steps of:
obtaining a first data quantity;
receiving intermediate data to be written into the flash disk array;
comparing a second data quantity of the intermediate data with the first data quantity; and
writing the intermediate data into the flash disk array when the second data quantity is not less than the first data quantity,
wherein the step of writing the intermediate data into the flash disk array further comprises step of:
allocating at most one data block of each of N flash drives of the plurality of the flash drives to provide M allocated data blocks constructing a stripe, wherein N and M are positive integers and M is not greater than N;
determining a number Q of actually-used data blocks and selecting Q actually-used data blocks from the M allocated data blocks of the stripe according to a predetermined rule based on adjusting residual lives of the N flash drives, wherein (M-Q) data blocks of the M allocated data blocks other than the Q actually-used data blocks are reserved blocks, Q is a positive integer and Q is not greater than M; and
writing the intermediate data into the Q actually-used data blocks of the stripe collectively wherein the reserved blocks in the stripe are not written with the intermediate data,
wherein Q has at least two selectable values.

### Claim 2 (depends on 1)

The data writing method according to claim 1, wherein M is determined according to a RAID level of the flash disk array.

### Claim 3 (depends on 1)

The data writing method according to claim 1, wherein the intermediate data comprises application data and a check code of the application data.

### Claim 4 (depends on 1)

The data writing method according to claim 1, wherein the intermediate data comprises application data and mirror data of the application data.

### Claim 5 (depends on 1)

The data writing method according to claim 1, wherein the M allocated data blocks is selected from the N flash drives to adjust differences between the residual lives of the plurality of the flash drives.

### Claim 6 (depends on 1)

The data writing method according to claim 1, further comprising a step of recording information related to the Q actually-used data blocks, the reserved blocks and a data storage sequence of the intermediate data after the step of writing the intermediate data into the flash disk array.

### Claim 7 (depends on 1)

The data writing method according to claim 1, further comprising a step of receiving more intermediate data when the second data quantity of the intermediate data is less than the first data quantity.

### Claim 8 (depends on 1)

The data writing method according to claim 1, wherein the predetermined rule based on adjusting residual lives of the N flash drives to introduce differences between the residual lives of the N flash drives is in a form of a formula, a program, firmware linked to hardware or a set of data.

### Claim 9 (depends on 1)

The data writing method according to claim 1, further comprising a step of tracking the residual lives of the plurality of the flash drives wherein the Q actually-used data blocks are selected from the M allocated data blocks according to the tracked residual lives.

### Claim 10 (depends on 1)

The data writing method according to claim 1, further comprising a step of obtaining parameters related to the residual lives of the plurality of the flash drives at an initialization procedure wherein the Q actually-used data blocks are selected from the M allocated data blocks according to the parameters.
