Picking apart RAID

ANALYSIS
Anyone who has worked with RAID has heard the term "parity". While most IT pros understand the general concept of parity, many would be hard-pressed to define exactly what it is or how to fix problems associated with it. Parity is a form of error correction commonly used in certain levels of RAID and works to reconstruct data on a drive that has failed in an array. In this article, I will focus on parity problems commonly associated with RAID levels 3, 4, 5, and 6. The remaining RAID levels either do not use parity or are not as commercially viable as these levels. A lesson on RAID levels The levels of RAID make use of physical disks in diverse ways. Each RAID level that supports error correction (parity) uses the capability in different ways as well. Table A explains these differences, as well as what can happen when a drive or drives in a RAID array fail. Table A
Common name
Parity used
Description
Array's capacity
Data reliability
Minimum drives required
Failure condition

Disk striping

No

The data is broken down into blocks, and each block is written to a separate disk. Since the I/O load is spread across each disk, this RAID level performs efficiently both reading and writing data to and from the array.

Individual disk capacity multiplied by number of disks

Low

2

When one drive fails, the entire array is compromised.

Disk mirroring

No

All data is duplicated on both disks. This RAID level requires an even number of disks.

Number of disks divided by 2

Very high

2

When both drives fail, the data is lost.

Hamming Code ECC

No

There are two sets of drives: data drives and ECC drives. Each data word has its ECC data recorded on ECC disks.

Number of disks divided by 2

Very high

2

Because of its ECC encoding method, it is very inefficient and expensive. RAID 2 is not commercially accepted.

Parallel transfer disks with parity

Yes

Data sector is subdivided and distributed across all data disks. Redundant information is stored on a dedicated parity disk.

(N-1) disks

Very high

3

When more then one drive fails, the array is compromised.

Independent data disks with shared parity blocks

Yes

Each block is written onto a data disk. Parity for same rank blocks is generated on Writes, recorded on the parity disk, and checked on Reads.

(N-1) disks

Very high

3

When more then one drive fails, the array is compromised.

Independent access array without rotating parity

Yes

Data sectors are distributed as with disk striping. Redundant information is interspersed with user data.

(N-1) disks

Very high

3

When more then one drive fails, the array is compromised.

Independent Data disks with two independent distributed parity schemes

Yes

Like RAID 5, parity is striped across the disks in RAID 6. However, in RAID 6, parity is written twice.

(N-2) disks

Very high

3

Depends on implementation, although I know of no RAID 6 implementations.


In RAID 3 (Figure A), each file is broken up into blocks of identical size, which are then written to a disk in the array. The size of the block depends on the number of data disks in the array. With RAID 3, one disk is devoted to parity.

Figure A
Under RAID 4 (Figure B), an entire block of data is written to a disk before writing the next block to the next disk. This results in a file being written across multiple disks but not necessarily evenly. Like RAID 3, RAID 4 uses a separate parity disk.

Figure B
Like RAID 4, RAID 5 (Figure C) writes blocks of data to a disk before moving on, which means that one disk may store a larger chunk of data than another disk from the same file. Unlike RAID 4, however, RAID 5 stripes parity across the disks. To achieve its level of resiliency, RAID 5 requires the overhead equivalent of one of the disks in the array for parity. The more disks added to the array, the lower the percentage of overhead. For example, with three disks, one-third of the space is dedicated to parity. However, with six disks, only one-sixth is used.

Figure C
RAID 6 (Figure D) works almost identically to RAID 5. RAID 6 also stripes the parity across all of the disks in the array, but it is written twice, which allows for the failure of more than one disk. Unfortunately, it requires twice as much overhead as RAID 5.

Figure D

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

BugStalker

"Interesting thought ... If you installed Win7 as a dual boot on a machine that previously only had Linux, and it wrecked your Linux installation,...

11 minutes ago by BugStalker on Windows 7 Declares War on GRUB
whs001

This is an excellent summary of Ubuntu and Mint and the interface differences between them. Most such articles take a very partisan position for...

15 minutes ago by whs001 on A tale of two distros: Ubuntu and Linux Mint
Moley

@ewallace. Not so clear. Anyone can obtain the text, for example from here http://www.ustr.gov/webfm_send/2379. I support ACTA so long as it and...

33 minutes ago by Moley on ACTA: Facts, misconceptions and questions
45283

I think WinRT is fantastic. I just wish it was an option for people that didn't want to go through Microsoft's App Store with its attendant...

4 hours ago by 45283 on Why Windows 8 needs architectural hygiene for WOA
Burn-IT

Nine people? £30m? Who's back pocket is that lot going in? And IF they say it is for new buildings, what about all the ones the government has...

5 hours ago by Burn-IT on Police set to launch three £30m e-crime hubs
ewallace

Just to be clear, nobody knows what is in the text of ACTA, here is a photograph of the text of ACTA http://twitpic.com/8h9iju as submitted to the...

5 hours ago by ewallace on ACTA: Facts, misconceptions and questions
fgvrg56

Unfortunately main issue is that ASUS is refusing to accept that they make some mistake on this version of asus Transformer prime. 1 - GPS sensor...

6 hours ago by fgvrg56 on Asus Eee Pad Transformer Prime Wi-Fi & GPS problems?
Ben Woods

@Marcus A fair question. Just talked with Archos which said it was working on an announcement for next week....

7 hours ago by Ben Woods on Archos confirms G9 Ice Cream Sandwich update schedule
Marcus Karlsson

Any update on this, considering the claimed "first week of February"?

8 hours ago by Marcus Karlsson via Facebook on Archos confirms G9 Ice Cream Sandwich update schedule
apexwm

Bill Goodrich : Just as al_langevin pointed out, with Windows Server 2008 there is no Services for Macintosh anymore. It's gone, not available....

17 hours ago by apexwm on Windows Server 2008 drops the ball for Mac compatibility
txtrainguy

Replying to an old topic that I'm currently facing with my CEO (who is on a Mac). Our servers are primarily Windows Servers, office is about...

23 hours ago by txtrainguy on Windows Server 2008 drops the ball for Mac compatibility
k0tcs3

Sure, that makes perfect sense. Pay wrong-doers money and thank them for breaching your security and pointing out your flaws, that would surely...

24 hours ago by k0tcs3 on US indicts Romanian over NASA climate change hack
Random_Error

I think he's referring specifically to Android apps, as Apple do regulate their App Store, but Google seem to let any old crap onto the Android store!

24 hours ago by Random_Error on RIM: BlackBerry will keep 'garbage' apps out of store
Paul Fezziwig

Keep the crap apps out?! How will they compete with Android and Apple's claim to fame of having so many life changing apps? I wonder if the media...

1 day ago by Paul Fezziwig via Facebook on RIM: BlackBerry will keep 'garbage' apps out of store
Aigars Mahinovs

It has been shown time after time that if there is an author store that sells the songs at even 1$ per song and gives you a high-quality digital...

1 day ago by Aigars Mahinovs via Facebook on Copyright isn't working, says European Commission
awbMaven

""As a result of Butyka's alleged conduct, researchers were unable to use the computers for more than two months while NASA removed the malicious...

1 day ago by awbMaven on US indicts Romanian over NASA climate change hack
subhorup

It simultaneously worries me and uplifts me that a self-proclaimed group of internet activists name themselves after Indian mythical figures....

2 days ago by subhorup on Anonymous activists release PCAnywhere source code
naviathan

It's actually far easier to work anonymously on the internet than you think. With tools like Tor bouncing your traffic around the world before...

2 days ago by naviathan on Anonymous activists release PCAnywhere source code
Agnostic_OS

1000272134 and bluedalmatian with you both there but then I'm still in 10.04 land (and happy with it)

2 days ago by Agnostic_OS on Ten factors that make Ubuntu 11.10 a hit
apexwm

Interesting article and definitely see your points on the products mentioned. One of the top products for our Help Desk (approximately 20% of all...

2 days ago by apexwm on Ten flawed products that derail productivity