- Community Home
- >
- Storage
- >
- Entry Storage Systems
- >
- Disk Enclosures
- >
- RAID parity
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 08:25 AM
тАО07-24-2001 08:25 AM
RAID parity
Thanks in advance,
Matthew Kirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 09:38 AM
тАО07-24-2001 09:38 AM
Re: RAID parity
-Assign numbers to every letter of the alphabet, with A=1 through Z=26
A piece of data striped across your N+1 raidset might look something like this:
D1 D2 D3 D4 Parity
D A ?? A 26
One disk (D3) is bad but the calculation is simple to do:
(4) + (1) + ?? + (1) = 26 so the missing number must be 20 which is letter T.
The idea is that any ONE disk can go bad but enough information exists to recreate the missing data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 10:01 AM
тАО07-24-2001 10:01 AM
Re: RAID parity
That's why performance will degrade when a disk goes down. If the parity disk would have a copy of the user data, performance would not be influenced (but then indeed it would not fit on one disk...)
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 10:07 AM
тАО07-24-2001 10:07 AM
Re: RAID parity
1 0 1 1
If one disk is lost, then only one of the four boxes
will be lost. How can you recover its contents?
The parity disk (in this case the fifth disk) keeps track
of the "parity" of this set of four bits. So, for the
above set, the parity is 1 because 1 + 0 + 1 + 1 is odd.
Should the contents of the boxes change to, say,
1 0 0 1
then the parity bit is updated to 0, since 1 + 0 + 0 + 1
is even.
Let's say that this parity bit is kept in "box #1" on the
parity disk. Now the contents of box #1 on all five disks
will be:
1 0 1 1 1
in the first case, and
1 0 0 1 0
in the second case. So, no matter what happens to
the data on the first four disks, when you add the bits
in box #1 on all 5 disks, the result is always even.
Now, if any of the four disks is lost, you can recover the contents of its box #1 simply by making sure that
the sum of the bits in box #1 on all 5 disks is even.
For example, if you lose the first disk and you see
the following in box #1 on 5 disks:
x 1 0 1 1
where x is the missing bit, then you know x had to be 1 because 1 + 1 + 0 + 1 + 1 is even (if x was 0, then 0 + 1 + 0 + 1 + 1 would be odd).
The same concept can be applied to box #2, box #3, etc.
To summarize:
The fifth disk, or the parity disk, does not contain any data from any of the four disks. It contains a (parity) bit of information for every 4 bits of information from the four disk (1 bit from each disk).
If one of the five disks is lost, then ALL FOUR remaining disks are used in the recovery process. The parity disk alone cannot recover anything. In fact if any 2 disks should fail, the recovery is impossible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2001 11:31 AM
тАО07-24-2001 11:31 AM
Re: RAID parity
The data is bytewise XORed in stripes to produce the parity. So, the first byte of parity is the XOR sum of the first byte of each data disk in the array:
d1 XOR d2 XOR d3 XOR d4 = P
One interesting property of XOR parity is that if you lose one of the data items, you can use the parity to reproduce it, as long as you have all the others... like this:
d3 = P XOR d1 XOR d2 XOR d4
d2 = P XOR d1 XOR d3 XOR d4
d1 = P XOR d2 XOR d3 XOR d4
d4 = P XOR d1 XOR d2 XOR d3
So, you can reproduce any piece of data from the remaining data and the parity.
This is also why yoy're in trouble if you lose two disks - you're missing a critical piece of data.
I hope this helps.