• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

RAID5 - childish understanding

I'm told that we have a RAID5 diskset. I am told that its capacity is equivalent to the capacity of the disks in the set minus one disk, which we can consider to be the capacity used for parity (and we ought to have minus another disk, which is reserved for hot swap, but let's ignore that).

I am told that the storage required for 1GB of data is a bit more than 1GB, but not as much as 2GB (1GB plus the parity bits - we can ignore all of the file system stuff, because my files are very large compressed data).

I am also told that if a catastrophe hit one of those disks, my 1G of data would not be lost.

Have I been misled?
  • 3
  • 2
1 Solution
Richard QuadlingSenior Software DeveloperCommented:
Hi rstaveley,

No matter what is said, make sure you have adequate backups. The big issue with buying potentially terabytes of diskspace is that it takes 2 weeks to back it up. And the backup is always out of date. At least with raid you are getting SOME protection.

For a good tutorial on RAID, take a look at http://www.acnc.com/04_00.html


Richard Quadling.
rstaveleyAuthor Commented:
I found that with Google, but I was too stupid to get what I needed from it.

If I have 1GB of data, does it occupy 1GB plus the parity or does it take ~2GB to store?

Richard QuadlingSenior Software DeveloperCommented:
At least 2GB + parity for 1GB of data.

I think.

"Difficult to rebuild in the event of a disk failure (as compared to RAID level 1)" worries me though.

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

rstaveleyAuthor Commented:
Oh my word... I get it now.

Here's where I found a good explanation cicuitously going via wikipedia:


That means that you can store 1G across (say) 5 disks (4 data and 1 parity) as 1.2G and your data would be safe in the event of a loss of one disk drive. The penny drops! How very neat.
Ditto the comment on adequate backups, otherwise the answer is that you are mostly correct.  However, it still just takes 1 GB of storage to store 1 GB of data.  The "loss" of storage space is factored in to your other statement about minus one drive for parity.  And a key part of your statement is that the RAID 5 only protects you against the most common failure of a single disk going bad.
rstaveleyAuthor Commented:
Sorry masto, but I didn't get your response before accepting. Browser lag. It was the PC guide explanation I needed. I couldn't see how you could store data for free, but of course you are XOR-ing data bytes from all disks in the set to get the parity byte. Obvious when you know how.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now