Method, device and computer program product for detecting incomplete write of data

US11093331B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11093331-B2
Application numberUS-201816223843-A
CountryUS
Kind codeB2
Filing dateDec 18, 2018
Priority dateApr 28, 2018
Publication dateAug 17, 2021
Grant dateAug 17, 2021

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Techniques detect incomplete write of data. The techniques involve obtaining metadata associated with a sector in a parity disk of a Redundancy Array of Independent Disks (RAID), wherein the metadata includes a sequence stamp and a partial write flag, the sequence stamp changing with a write operation on a stripe to which the sector belongs, and the partial write flag indicating whether the stripe is partially written. The techniques further involve determining whether incomplete write of data is present in the RAID based on the metadata, and the techniques further involve in response to determining the incomplete write of the data being present in the RAID, rebuilding at least one disk in the RAID. By adding a sequence stamp and a partial write flag in the metadata of the sector of the RAID, incomplete write of data can be detected more accurately, thereby improving the reliability of RAID.

First claim

Opening claim text (preview).

We claim: 1. A method for detecting incomplete write of data, comprising: obtaining metadata associated with a sector in a parity disk of a Redundancy Array of Independent Disks (RAID), the metadata at least including a sequence stamp and a partial write flag, the sequence stamp changing with a write operation on a stripe to which the sector belongs, the partial write flag indicating whether the stripe is partially written; determining, based on the metadata, whether incomplete write of data is present in the RAID; and in response to determining the incomplete write of the data being present in the RAID, rebuilding at least one disk in the RAID; wherein the metadata further includes a write stamp indicating data write in the sector; wherein determining whether incomplete write of data is present in the RAID comprises: in response to a relationship between the write stamp and other write stamps of other disks in the RAID failing to meet a predetermined condition, determining a disk in the RAID involving the incomplete write; and wherein determining the disk in the RAID involving the incomplete write comprises: in response to the partial write flag being a first value, determining a first disk in the RAID involving the incomplete write based on the write stamp; or in response to the partial write flag being a second value, determining a second disk in the RAID involving the incomplete write based on the write stamp, the sequence stamp and the partial write flag. 2. The method of claim 1 , wherein determining whether incomplete write of data is present in the RAID further comprises: determining, by comparing the sequence stamp of the parity disk and sequence stamps of the other disks in the RAID, whether the incomplete write of the data is present in the RAID. 3. The method of claim 1 , wherein the metadata further includes a checksum of data in the sector, and a Logical Block Address (LBA) stamp associated with a LBA of the sector. 4. The method of claim 3 , wherein determining whether incomplete write of data is present in the RAID further comprises: determining, based on the relationship between the write stamp of the parity disk and the other write stamps of other disks in the RAID, whether the incomplete write of the data is present in the RAID. 5. The method of claim 1 , wherein rebuilding at least one disk in the RAID comprises: in response to the number of disks involving the incomplete write being above the number of parity disks in the RAID, rebuilding the parity disk; and in response to the number of disks involving the incomplete write being below the number of parity disks in the RAID, rebuilding the disk involving the incomplete write. 6. The method of claim 1 , further comprising: in response to data being written into the sector, obtaining the sequence stamp; in response to the sequence stamp reaching a predetermined threshold, resetting the sequence stamp; and in response to the sequence stamp failing to reach the predetermined threshold, increasing the sequence stamp. 7. The method of claim 6 , further comprising: in response to the data being written into the sector, determining whether the write of the data involves all sectors in the stripe; in response to determining the write of the data failing to involve all sectors in the stripe, setting the partial write flag to the first value; and in response to determining the write of the data involving all sectors in the stripe, setting the partial write flag to the second value. 8. The method of claim 1 , wherein rebuilding the at least one disk in the RAID includes: rebuilding a user disk of the RAID, the user disk being different from the parity disk of the RAID. 9. A device for detecting incomplete write of data, comprising: a processing unit; and a memory coupled to the processing unit and storing instructions thereon, the instructions, when executed by the processing unit, performing actions of: obtaining metadata associated with a sector in a parity disk of a Redundancy Array of Independent Disks (RAID), the metadata at least including a sequence stamp and a partial write flag, the sequence stamp changing with a write operation on a stripe to which the sector belongs, the partial write flag indicating whether the stripe is partially written; determining, based on the metadata, whether incomplete write of data is present in the RAID; and in response to determining the incomplete write of the data being present in the RAID, rebuilding at least one disk in the RAID; wherein the metadata further includes a write stamp indicating data write in the sector; wherein determining whether incomplete write of data is present in the RAID further comprises: in response to a relationship between the write stamp and other write stamps of other disks in the RAID failing to meet a predetermined condition, determining a disk in the RAID involving the incomplete write; wherein the determining the disk in the RAID involving the incomplete write comprises: in response to the partial write flag being a first value, determining a first disk in the RAID involving the incomplete write based on the write stamp; or in response to the partial write flag being a second value, determining a second disk in the RAID involving the incomplete write based on the write stamp, the sequence stamp and the partial write flag. 10. The device of claim 9 , wherein determining whether incomplete write of data is present in the RAID further comprises: determining, by comparing the sequence stamp of the parity disk and sequence stamps of the other disks in the RAID, whether the incomplete write of the data is present in the RAID. 11. The device of claim 9 , wherein the metadata further includes a checksum of data in the sector, and a Logical Block Address (LBA) stamp associated with a LBA of the sector. 12. The device of claim 11 , wherein determining whether incomplete write of data is present in the RAID further comprises: determining, based on the relationship between the write stamp of the parity disk and the other write stamps of other disks in the RAID, whether the incomplete write of the data is present in the RAID. 13. The device of claim 9 , wherein rebuilding at least one disk in the RAID comprises: in response to the number of disks involving the incomplete write being above the number of parity disks in the RAID, rebuilding the parity disk; and in response to the number of disks involving the incomplete write being below the number of parity disks in the RAID, rebuilding the disk involving the incomplete write. 14. The device of claim 9 , further comprising: in response to data being written into the sector, obtaining the sequence stamp; in response to the sequence stamp reaching a predetermined threshold, resetting the sequence stamp; and in response to the sequence stamp failing to reach the predetermined threshold, increasing the sequence stamp. 15. The device of claim 14 , further comprising: in response to the data being written into the sector, determining whether the write of the data involves all sectors in the stripe; in response to determining the write of the data failing to involve all sectors in the stripe, setting the partial write flag to the first value; and in response to determining the write of the data involving all sectors in the stripe, setting the partial write flag to the second value. 16. The device of claim 9 , wherein rebuilding the at least one disk in the RAID includes: rebuilding a user disk of the RAID, the user disk being different from the parity disk of the RAID

Assignees

Inventors

Classifications

  • 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) · CPC title

  • Parity data used in redundant arrays of independent storages, e.g. in RAID systems · CPC title

  • Rebuilding, e.g. when physically replacing a failing disk · CPC title

  • Improving I/O performance · CPC title

  • by checking the correct order of processing (G06F11/08 - G06F11/26 take precedence; monitoring patterns of pulse trains H03K5/19) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11093331B2 cover?
Techniques detect incomplete write of data. The techniques involve obtaining metadata associated with a sector in a parity disk of a Redundancy Array of Independent Disks (RAID), wherein the metadata includes a sequence stamp and a partial write flag, the sequence stamp changing with a write operation on a stripe to which the sector belongs, and the partial write flag indicating whether the str…
Who is the assignee on this patent?
Emc Ip Holding Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F11/1076. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 17 2021 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).