# US 2015/0178164 A1 · Reconstructing an indirection table from logged media addresses

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

- Number: US 2015/0178164 A1
- Document ID: US20150178164A1
- Status: Published application
- Kind: A1
- Application number: 14/135,105
- Filed: 2013-12-19
- Published: 2015-06-25
- Earliest claimed: 2013-12-19
- Assignees: Violin Memory, Inc.
- Applicants: Violin Memory Inc.
- Inventors: Silei Zhang
- Web page: https://patentgrep.com/patent/US20150178164A1

## CPC

- G06F 11/1435: {using file system or storage system metadata}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The storage system uses a combination of checkpoint data and journal data to reconstruct an indirection table. The checkpoint data comprises compacted media addresses from the indirection table that are then stored in a relatively few number of media blocks. This allows the media controller to quickly read the compacted checkpoint data from the solid state media. The media controller generates the journal data from logical addresses and associated media addresses for additional write operations received while creating the checkpoint data. The media controller uses metadata when errors are identified in the checkpoint data or journal data.

## Claims

### Claim 1

An apparatus, comprising:
checkpoint data for an indirection table, wherein the checkpoint data is stored in a solid state media and comprises media addresses for sequential logical addresses of the indirection table;
journal data stored in the solid state media, wherein the journal data identifies changes in the indirection table after creation of the checkpoint data;
metadata summaries stored in the solid state media, wherein the metadata summaries contain error correction data for the checkpoint data and journal data; and
logic circuitry configured to:
read the checkpoint data from the solid state media;
read the journal data from the solid state media;
reconstruct the indirection table by overwriting at least some of the media addresses from the checkpoint data with media addresses from the journal data;
check for errors in the checkpoint data or the journal data; and
use the metadata summaries to recover from the errors in the checkpoint data and/or the errors in the journal data.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the indirection table comprises a linear association of the logical addresses of the indirection table with the media addresses of the solid state media.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the journal data comprises the logical addresses and associated media addresses for write operations performed after creation of the checkpoint data.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the metadata summaries contain the error correction data for blocks of sequential media address locations in the solid state memory.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the logic circuitry is further configured to:
identify locations in the solid state media associated with the errors in the checkpoint data or the errors in the journal data;
identify locations in the metadata summaries associated with the locations in the solid state media associated with the errors; and
use the error correction data at the identified locations in the metadata summaries to reconstruct the indirection table.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the checkpoint data is stored in sequential address locations in the solid state media and the error correction data is stored in locations of the metadata summaries corresponding to the sequential address locations of the checkpoint data.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the journal data is stored in sequential address locations in the solid state memory corresponding to sequential changes to the indirection table and the error correction data for the journal data is stored in locations of the metadata summaries corresponding to the sequential address locations of the journal data.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the logic circuitry is configured to overwrite the media addresses from the checkpoint data with the media addresses from the journal data in an order based on time stamps associated with the journal data.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein:
the indirection table is stored in volatile memory;
the checkpoint data is stored in non-volatile solid state memory; and
the logic circuitry is configured to reconstruct in the indirection table in the volatile memory from the checkpoint data and the journal stored in the non-volatile memory in response to a power-up or reset condition.

### Claim 10

A method, comprising:
identifying a reconstruction condition for an indirection table;
reading checkpoint data for the indirection table from a memory, wherein the checkpoint data comprises media addresses for sequential logical addresses of the indirection table;
reading journal data from the memory, wherein the journal data identifies changes between different stored versions of the checkpoint data;
reconstructing the indirection table by overwriting at least some of the media addresses from the checkpoint data with media addresses from the journal data;
checking for errors in the checkpoint data or the journal data;
identifying metadata summaries in the memory containing error correction data for the checkpoint data and/or journal data; and
using the error correction data in the metadata summaries to recover from the errors in the checkpoint data and/or the errors in the journal data.

### Claim 11 (depends on 10)

The method of claim 10, wherein the different versions of the checkpoint data are periodically generated from different states of the indirection table and the journal data comprises the logical addresses and associated media addresses for write operations received between the different versions of the checkpoint data.

### Claim 12 (depends on 10)

The method of claim 10, wherein the metadata summaries contain the error correction data for blocks of data stored in sequential address locations of the memory.

### Claim 13 (depends on 10)

The method of claim 10, further comprising:
identifying address locations in the memory associated with the errors in the checkpoint data and/or the errors in the journal data;
identifying locations in the metadata summaries associated with the address locations in the memory associated with the errors; and
using the error correction data at the identified locations in the metadata summaries to reconstruct the indirection table.

### Claim 14 (depends on 10)

The method of claim 10, wherein the checkpoint data is stored in sequential address locations in the memory and some of the error correction data is stored in locations of the metadata summaries corresponding to the sequential address locations of the checkpoint data.

### Claim 15 (depends on 10)

The method of claim 10, wherein the journal data is stored in sequential address locations in the memory corresponding to sequential changes to the media addresses in the indirection table and the error correction data for the journal data are stored in locations of the metadata summaries corresponding to the sequential address locations of the of the journal data.

### Claim 16 (depends on 10)

The method of claim 10, further comprising reconstructing the indirection table by overwriting the media addresses from the checkpoint data with the media addresses from the journal data in an order based on time stamps associated with the journal data.

### Claim 17 (depends on 10)

The method of claim 10, wherein the checkpoint data and journal data are stored in non-volatile memory, and further comprising reconstructing the indirection table in volatile memory from the checkpoint data and the journal stored in the non-volatile memory in response to a power-up or reset condition.

### Claim 18

An apparatus, comprising:
non-volatile memory configured to store checkpoint data for an indirection table, journal data containing changes in the checkpoint data, and metadata summaries containing error correction data for the checkpoint data and journal data; and
a media controller configured to:
read the checkpoint data and the journal data from the non-volatile memory into a volatile memory;
reconstruct the indirection table by updating at least some of the checkpoint data with the journal data; and
use the metadata summaries to recover from errors in the checkpoint data and/or errors in the journal data.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the indirection table comprises a linear association of logical addresses with media addresses in the non-volatile memory.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the metadata summaries contain error correction data for blocks of data stored in sequential address locations of the non-volatile memory.

### Claim 21 (depends on 18)

The apparatus of claim 18, wherein the media controller is further configured to:
identify locations in the non-volatile memory associated with the errors in the checkpoint data and/or the errors in the journal data;
identify locations of the error correction data in the metadata summaries associated with the locations in the non-volatile memory associated with the errors; and
use the error correction data at the identified positions in the metadata summaries to reconstruct the indirection table.

### Claim 22 (depends on 18)

The apparatus of claim 18, wherein the checkpoint data is stored in sequential address locations of the non-volatile memory and some of the error correction data is stored in locations of the metadata summaries corresponding to the sequential address locations of the checkpoint data.

### Claim 23 (depends on 18)

The apparatus of claim 18, wherein the journal data is stored in sequential address locations of the non-volatile memory corresponding to sequential changes to the media addresses in the indirection table and the error correction data is stored in positions of the metadata summaries corresponding to the sequential address locations of the journal data.
