# US 2019/0251996 A1 · Wandering write protection for shingled magnetic recording storage devices

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

- Number: US 2019/0251996 A1
- Document ID: US20190251996A1
- Status: Published application
- Kind: A1
- Application number: 16/394,212
- Filed: 2019-04-25
- Published: 2019-08-15
- Earliest claimed: 2015-12-22
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: John William Haskins, JR.; David Anthony Slik; Keith Arnold Smith; Maxim Gerald Smith
- Web page: https://patentgrep.com/patent/US20190251996A1

## CPC

- G11B 20/1217: {on discs}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0676: {Magnetic disk device}
- G11B 20/1889: {with discs}
- G11B 2020/1893: {using linear replacement to relocate data from a defective block to a non-contiguous spare area, e.g. with a secondary defect list [SDL]}
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes receiving a write request to write a current data block to a Shingled Magnetic Recording (SMR) storage device. In response, the current data block is written to a current physical block in an open zone of the SMR storage device. A corresponding copy of the current data block is written to a nonvolatile memory. A determination is made of whether a wandering write error occurred during the writing of the data to the open zone. In response to the wandering write error occurring, for each of the number of written physical blocks in the open zone that have the corresponding copy in the nonvolatile memory, the data in the physical block is validated using the corresponding copy. In response to validation, the data in the corresponding copy is written as corrected data for the physical block to a new zone in the SMR storage device.

## Claims

### Claim 1

A method comprising:
writing a first set of data blocks of data of a write request to first physical blocks in a first open zone of a shingled magnetic recording (SMR) storage device of a storage system;
writing the first set of data blocks to a structure in a nonvolatile memory of the storage system, wherein the structure includes a second set of data blocks already written to second physical blocks in the first open zone, wherein the second physical blocks precede the first physical blocks;
detecting a write error associated with the first set of data blocks to the first open zone;
validating data in the first open zone, based on data in the structure, from the beginning of the first open zone; and
writing data that correspond to the corrupted data from the structure to the second open zone for data in the first open zone that are determined to be corrupted based on the validating.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
for data in the first open zone that are validated, writing the validated data from the first open zone to a second open zone in the SMR storage device; and

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
for data in the first open zone that do not have corresponding data in the structure in the nonvolatile memory, writing the data that does not have corresponding data in the structure from the first open zone to the second open zone.

### Claim 4 (depends on 1)

The method of claim 1, wherein validating the data in the first open zone comprises:
for each physical block in the first open zone from the beginning of the first open zone, generating a first checksum with the data of the physical block and a second checksum with a corresponding data block in the structure, and determining that the first checksum does not equal the second checksum.

### Claim 5 (depends on 1)

The method of claim 1, wherein the structure comprises a First In First Out (FIFO) data structure.

### Claim 6 (depends on 1)

The method of claim 1, wherein the write error comprises a vibration error of the SMR storage device.

### Claim 7 (depends on 1)

The method of claim 1, wherein writing the first set of data blocks to the first physical blocks in the first open zone comprises writing the first set of data blocks from the structure to the first physical blocks in the first open zone.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
buffering in the structure data blocks of an object to write to the SMR device until the buffered data blocks satisfy a size threshold of a physical block of the SMR device

### Claim 9 (depends on 1)

The method of claim 1, wherein the structure is one of a plurality of structures in the nonvolatile memory and each of the plurality of structures corresponds to a different one of a plurality of open zones of the SMR device.

### Claim 10

A non-transitory machine-readable medium having stored thereon instructions for performing a method comprising machine executable code which when executed by at least one machine, causes the machine to:
write data blocks of an object to a first open zone of a shingled magnetic recording (SMR) device and to an in-memory structure;
detect a write error associated with writing to the first open zone, read physical blocks of the first open zone from the beginning of the first open zone; and
write a set of one or more corresponding data blocks from the in-memory structure to a second open zone for a first physical block that is read, based on a determination that the data of the first physical block is corrupt.

### Claim 11 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the machine-executable code further causes the machine to write the data blocks of the object from the in-memory structure to the first open zone after the data blocks have been written into the in-memory structure.

### Claim 12 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the machine-executable code further causes the machine to:
buffer in the in-memory structure the data blocks of the object until the buffered data blocks satisfy a size threshold of a physical block of the SMR device.

### Claim 13 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the in-memory structure is one of a plurality of in-memory structures in a nonvolatile memory and each of the plurality of in-memory structures corresponds to a different one of a plurality of open zones of the SMR device.

### Claim 14 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the machine-executable code further causes the machine to determine corruption of the first physical block by comparing to the corresponding one or more data blocks in the in-memory structure.

### Claim 15 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the machine-executable code further causes the machine to compute a checksum from the data of the first physical block and a checksum from the corresponding one or more data blocks and to compare the checksums.

### Claim 16 (depends on 10)

The non-transitory machine-readable medium of claim 10, wherein the machine-executable code further causes the machine to write the data of a second physical block to the second open zone based on a determination that the data of the second physical block does not have a corresponding one or more data blocks in the in-memory structure.

### Claim 17

A computing device comprising:
a memory containing machine readable medium comprising machine executable code having stored thereon instructions for performing a method of write error recovery;
a processor coupled to the memory, the processor configured to execute the machine executable code to cause the processor to:
write data blocks of an object to a first open zone of a shingled magnetic recording (SMR) and to a structure in the memory;
read physical blocks of the first open zone from the beginning of the first open zone; and
write a set of one or more corresponding data blocks from the structure to a second open zone based on a determination that data of a first physical block is corrupt.

### Claim 18 (depends on 17)

The computing device of claim 17, further comprising:
based on a determination that data of a second physical block is not corrupt, write the data of the second physical block to the second open zone.

### Claim 19 (depends on 17)

The computing device of claim 17, wherein the machine-executable code further causes the processor to write the data blocks of the object from the structure to the first open zone after the data blocks have been written into the in-memory structure.

### Claim 20 (depends on 17)

The computing device of claim 17, wherein the machine-executable code further causes the processor to determine corruption of the first physical block based on the corresponding one or more data blocks in the structure.
