RAID, Record Representation




CS157b

Chris Pollett

Feb 1, 2023

Outline

Disk Scheduling

Prefetching (aka double buffering)

Disk Failures

Let's now consider why disks drives might not work (before considering how to deal with disk failures).

Intermittent Failures

Checksums

Stable Storage

Implementing Stable Storage

Failure Model for Disks

Mirroring as a Redundancy Technique

In-Class Exercise

For large disks (full 16TB hard drive) with many files, it can take two days to do a complete copy of the redundant disk.

In this scenario, what would be the mean time to data loss?

Please post your solution to the Feb 1 In-Class Exercise.

Parity Blocks

RAID 4 and Failures

RAID 5

RAID 6

Representing Data in Secondary Storage

How do we store relations and objects to disk?

Example

Consider trying to implement a record format for the table created by the following SQL statement:

CREATE TABLE MovieStar(
   name CHAR(30) PRIMARY KEY, 
   address VARCHAR(255),
   gender CHAR(1),
   birthdate DATE
);

Representing Data Elements I

We now discuss how to represent various kinds of data elements:

Representing Data Elements II

Representing Data Elements III