Surviving a failed part: fault tolerance and RAID

8 min 6 sections 5 practice questions 5 sources citedISC2 objective 7.10

Disks wear out, power supplies burn out and cables are cut. A well-built system keeps working when one part fails, because a second part is already able to do the same job. That quality is called fault tolerance, and its best-known form is RAID: several disks arranged so that losing one loses no data. No technical background is assumed, and a security professional needs the subject because availability is one of the properties security protects.

By the end of this unit you will be able to:

  • Tell apart system resilience, fault tolerance, high availability and quality of service
  • Find a single point of failure in a simple system
  • State the minimum disks and the failures survived for RAID 0, 1, 5, 6 and 10
  • Explain why RAID is not a backup
  • Explain what quality of service measures and what it protects

Two disks, and half of every drawing on each

An illustrative example

An architects' practice keeps every drawing on a storage box in the corner of the office. The box holds two disks. The partner who bought it chose the setting the salesman called the fastest.

For three years it works. Then one disk fails with a click. The partners are not worried, because there is a second disk. The technician who comes that afternoon tells them that every drawing was split across the two disks, half on each, and that neither half can be read without the other.

Two disks sounded safer than one. What should the partners have asked about how the two disks worked together?

Four words for staying in service

Redundancy means having more of something than normal running needs, so that a spare can take over. It is the idea behind three of the four terms below.

Four terms that are often confused
TermMeaningExample
System resilienceThe ability to withstand a failure or an attack, keep the most important work going and recoverA shop that takes orders on paper while its tills are down, then catches up
Fault toleranceThe ability to keep working correctly when a part fails, because a duplicate part carries on with no interruptionA server with two power supplies
High availability (HA)Design that keeps a service up for a very high share of the time, with spare parts taking over automaticallyTwo servers, one ready to take over from the other
Quality of service (QoS)Managing network traffic so that the most important kinds get the capacity they need when the network is busyTelephone calls put ahead of file downloads

concerns one system and one failed part. is a target for a whole service, usually stated as a percentage of time. An of 99.999%, called five nines, allows about five minutes of downtime in a year.

Resilience is the widest of the three. A resilient system may slow down or shed its less important work under strain, and it comes back afterwards.

Single points of failure

A single point of failure is any one part whose failure stops the whole service. Finding them is the first step in making a service fault tolerant.

A bakery's card payments

A bakery takes cards through two card readers, one router and one broadband line. If a reader breaks, the other carries on. If the router or the line fails, neither reader can take a payment.

The readers are redundant. The router and the line are single points of failure. A second line from a different supplier removes one of them and leaves the router.

The method is to trace everything the service depends on, in order: power, network link, equipment, disk, and the people who know how it works. At each step the question is whether there is one or more than one.

Removing one single point of failure moves attention to the next. Two servers plugged into the same power circuit still fail together.

RAID: several disks acting as one

A redundant array of independent disks (RAID) is a set of disks that the computer treats as a single disk. The set is arranged to gain speed, protection against a failed disk, or both. Three techniques are combined in different ways.

The front of a rack server with a row of numbered slots, each holding a black disk carrier with a white label reading SAS 600GB 10K and a yellow release handle. A further group of slots continues to the right.

Each slot in this server holds one disk, and RAID lets the computer treat several of these disks as a single disk.

  1. 1One disk. Each slot holds one disk; RAID makes the set act as a single disk.

Photograph: HuaweiRH2288HV2 (cropped) by Open Grid Scheduler / Grid Engine, CC0 1.0. Cropped and resized.

Striping
Each file is cut into pieces, and the pieces are spread across the disks. Reading and writing are faster. Nothing is stored twice.
Mirroring
Everything written to one disk is also written to a second, so that each is a complete copy of the other.
Parity
An extra piece of data calculated from the rest. If one disk is lost, its contents can be worked out from the other disks and the parity.

Parity with ordinary numbers

Three disks hold the numbers 4, 7 and 2. A fourth holds their total, 13. The disk holding 7 fails. Subtracting 4 and 2 from 13 gives the lost number back. Real parity uses a different sum on the same principle.

Five RAID levels: disks, copies and parity

Five RAID levels: disks, copies and parityTwo families side by side. Striping and mirroring: RAID 0 and RAID 1 combine into RAID 10. Striping with parity: RAID 5, and RAID 6 with a second set of parity. Each level gives its minimum disks and what it survives.Striping and mirroringRAID 0striping onlyat least 2 diskssurvives noneRAID 1mirroringat least 2 diskssurvives 1RAID 10at least 4 diskssurvives 1 ineach mirrored pairStriping with parityRAID 5striping, oneset of parityspread over allat least 3 diskssurvives any 1RAID 6striping, twosets of parityat least 4 diskssurvives any 2Five RAID levels: disks, copies and parityTwo families side by side. Striping and mirroring: RAID 0 and RAID 1 combine into RAID 10. Striping with parity: RAID 5, and RAID 6 with a second set of parity. Each level gives its minimum disks and what it survives.Striping and mirroringRAID 0striping onlyat least 2 diskssurvives noneRAID 1mirroringat least 2 diskssurvives 1RAID 10at least 4 diskssurvives 1 ineach mirrored pairStriping with parityRAID 5striping, oneset of parityspread over allat least 3 diskssurvives any 1RAID 6striping, twosets of parityat least 4 diskssurvives any 2
Read this figure as text

RAID is a set of disks that the computer treats as one. Striping spreads the pieces of each file across the disks, mirroring writes everything twice, and parity is extra data from which a lost disk can be worked out. RAID protects against a failed disk and nothing else, so it is not a backup.

  1. RAID 0 is striping only, on at least 2 disks. Nothing is stored twice and no space is given up, so one failed disk loses everything.
  2. RAID 1 is mirroring, on at least 2 disks, each a full copy of the other. It survives 1 failed disk and gives up half the space.
  3. RAID 10 is RAID 1 and RAID 0 together: striping across mirrored pairs, on at least 4 disks. It survives 1 failure in each mirrored pair and gives up half the space.
  4. RAID 5 is striping with one set of parity spread over all the disks, on at least 3. It survives any 1 failed disk and gives up one disk's worth of space.
  5. RAID 6 is striping with two sets of parity, on at least 4 disks. It survives any 2 failed disks and gives up two disks' worth of space.

The five RAID levels to know

RAID levels by technique, minimum disks and failures survived
LevelHow data is storedMinimum disksDisk failures survivedSpace given up
RAID 0 only2None. One failed disk loses everythingNone
RAID 1Mirroring21Half
RAID 5Striping, with one set of parity spread over all the disks3Any 1One disk's worth
RAID 6Striping, with two sets of parity4Any 2Two disks' worth
RAID 10Striping across mirrored pairs41 in each mirrored pairHalf

RAID 0 gives zero protection. RAID 1 is one disk copied to another. RAID 5 survives one failure and RAID 6 survives two. RAID 10 is 1 and 0 together.

A hot spare is an extra disk already fitted and powered. When a disk fails, the array rebuilds the lost contents on to the spare at once, without waiting for a person. Until the rebuild finishes the array is slower and has less protection than usual.

RAID can be run by a dedicated controller card, called hardware RAID, or by the operating system, called software RAID. The levels mean the same in both.

Common misconception

“Data on a RAID array is backed up, because it is stored on more than one disk.”

RAID protects against a failed disk and nothing else. A mistaken deletion, a corrupted file or ransomware's scrambling is written to every disk at once, and a fire takes all the disks together. A backup kept elsewhere answers those.

Power and network paths in pairs

The same idea, more than one of everything the service cannot do without, applies beyond disks.

  • Dual power supplies: two in one server, used together, so that either can carry the load when the other fails.
  • An (UPS): a battery that takes over the instant mains power fails and lasts long enough for a generator to start or for an orderly shutdown.
  • A generator: makes electricity from fuel for as long as the fuel lasts.
  • Redundant network paths: two links from different suppliers that enter the building at different points, so that one cut cable does not isolate the site.
  • Spare equipment: a replacement server or network device kept ready to be swapped in.

A second power supply protects against the failure of a power supply. It does nothing when the mains supply itself fails, which is the job of the UPS and the generator. Each duplicate answers one kind of failure.

None of these protects against the loss of the whole building. That is the job of a .

Quality of service keeps urgent traffic moving

A network link can carry only so much traffic. When more arrives than fits, some of it waits or is thrown away. settings on the network equipment decide which traffic goes first. Four measures describe how well a link is serving its traffic.

Bandwidth
How much data the link can carry each second.
Latency
How long a piece of data takes to arrive. Also called delay.
Jitter
How much that delay varies from one moment to the next.
Packet loss
The share of the data sent that never arrives.

Kinds of traffic differ in what they can bear. A telephone call needs very low delay, jitter and loss, and little bandwidth. An overnight file transfer needs bandwidth and can bear delay.

Quality of service counts as a resilience measure because it protects availability under strain. During an incident, or while a smaller backup link is in use, the traffic that matters most still gets through.

A question, worked through

A hospital laboratory stores test results on a server that has room for exactly four disks. The laboratory manager states one requirement: the server must go on working, with no loss of data, if any two of its disks fail at the same time. The storage administrator must choose how to arrange the four disks.

Which arrangement BEST meets the requirement?

  1. RAID 0, striping across all four disks
  2. RAID 5, striping with one set of parity
  3. RAID 6, striping with two sets of parity
  4. RAID 10, striping across two mirrored pairs
Decide on your answer, then open the reasoning
  1. The decisive words are any two disks. The answer must survive every possible pair of failures, not only some of them.
  2. Rule out a: RAID 0 has no protection. One failed disk loses everything.
  3. Rule out b: RAID 5 survives any one failure. A second failure before the rebuild finishes loses the array.
  4. Between c and d: RAID 10 on four disks survives two failures when they fall in different mirrored pairs. If both disks of one pair fail, that half of the data is gone.
  5. RAID 6 keeps two sets of parity and survives any two failures. Four disks is its minimum, so option c fits the server.

Answer: C. RAID 6, striping with two sets of parity

Choosing between good answers

A question asks which RAID level improves speed and gives no fault tolerance
choose RAID 0. It is the only level here that survives no failures.
A requirement says any two disks may fail
choose RAID 6. RAID 10 survives two failures only when they are in different mirrored pairs.
RAID, mirroring or a second server is offered as protection against deletion, corruption or ransomware
reject it and look for a backup. Redundancy copies the damage along with the data.
A question asks what to improve first to keep a service available
look for the single point of failure: the one part with no duplicate.
Calls or video break up on a busy network while other traffic is fine
choose quality of service settings that put the delay-sensitive traffic first.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

A server keeps running with no interruption when one of its two power supplies fails. Which term describes this property?

What to remember

  • Fault tolerance keeps one system working through the failure of a part. High availability is a target for a whole service. Resilience also covers coping and recovering.
  • A single point of failure is any one part whose failure stops the service.
  • RAID 0: striping, 2 disks, survives none. RAID 1: mirroring, 2 disks, survives 1.
  • RAID 5: one parity, 3 disks, survives 1. RAID 6: two parities, 4 disks, survives 2. RAID 10: striped mirrors, 4 disks, survives 1 per pair.
  • RAID is not a backup. It protects against a failed disk, not against deletion, corruption, ransomware or fire.
  • Quality of service puts the most important network traffic first, and is measured by bandwidth, latency, jitter and packet loss.

Say it from memory

  1. Tell apart system resilience, high availability, quality of service and fault tolerance, and give one example of fault tolerance.

    Resilience is the ability to withstand a failure or attack, keep the most important work going and recover. High availability is design that keeps a service up for a very high share of the time. Quality of service gives the most important network traffic the capacity it needs when the network is busy. Fault tolerance keeps a system working when a part fails, because a duplicate carries on: for example RAID 1, 5, 6 or 10, or dual power supplies.

    Read this part again

  2. What is a single point of failure, and how are single points found?

    Any one part whose failure stops the whole service. Trace everything the service depends on, in order: power, network link, equipment, disk, and the people who know how it works. At each step ask whether there is one or more than one.

    Read this part again

  3. What do striping, mirroring and parity each do in RAID?

    Striping cuts each file into pieces spread across the disks, making reading and writing faster but storing nothing twice. Mirroring writes everything to a second disk, so each is a complete copy. Parity is extra data calculated from the rest, from which a lost disk's contents can be worked out.

    Read this part again

  4. Give the minimum disks and the failures survived for RAID 0, 1, 5, 6 and 10.

    RAID 0: 2 disks, survives none. RAID 1: 2 disks, survives 1. RAID 5: 3 disks, survives any 1. RAID 6: 4 disks, survives any 2. RAID 10: 4 disks, survives 1 in each mirrored pair.

    Read this part again

  5. What does a second power supply protect against, and what answers mains failure and loss of the building?

    A second power supply protects only against the failure of a power supply. Mains failure is the job of the UPS and the generator. Loss of the whole building is the job of a recovery site. Each duplicate answers one kind of failure.

    Read this part again

  6. Name the four measures of how well a link serves its traffic, and say what a telephone call needs.

    Bandwidth, latency (also called delay), jitter and packet loss. A telephone call needs very low delay, jitter and loss, and little bandwidth.

    Read this part again

Sources