MESSAGE
DATE | 2014-12-06 |
FROM | Ruben Safir
|
SUBJECT | Subject: [LIU Comp Sci] Parity Bit Algebra
|
From owner-learn-outgoing-at-mrbrklyn.com Sat Dec 6 17:49:47 2014 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id E4A8416007B; Sat, 6 Dec 2014 17:49:46 -0500 (EST) Delivered-To: learn-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id CD94916112F; Sat, 6 Dec 2014 17:49:46 -0500 (EST) Delivered-To: learn-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by mrbrklyn.com (Postfix) with ESMTP id E733B16007B for ; Sat, 6 Dec 2014 17:49:45 -0500 (EST) Received: from [10.0.0.42] (unknown [96.57.23.82]) by mailbackend.panix.com (Postfix) with ESMTPSA id 62BAA13B47; Sat, 6 Dec 2014 17:49:44 -0500 (EST) Message-ID: <54838832.6010205-at-panix.com> Date: Sat, 06 Dec 2014 22:50:26 +0000 From: Ruben Safir User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: learn-at-nylxs.com, Samir Iabbassen Subject: [LIU Comp Sci] Parity Bit Algebra Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: owner-learn-at-mrbrklyn.com Precedence: bulk Reply-To: learn-at-mrbrklyn.com
This is from theidiscussion of Raid 3 Stallings Text which the slide come from. It is related to the problem you asked about the parity bit calculation for the Hamming Code
Not the methodology for logical calculation, it is straight math
Note that X is XOR for whatever UFT reason
REDUNDANCY In the event of a drive failure, the parity drive is accessed and data is reconstructed from the remaining devices. Once the failed drive is replaced, the missing data can be restored on the new drive and operation resumed.
Data reconstruction is simple. Consider an array of five drives in which X0 through X3 contain data and X4 is the parity disk.The parity for the ith bit is calculated as follows:
X4(i) = X3(i) { X2(i) { X1(i) { X0(i)
where { is exclusive-OR function.
Suppose that drive X1 has failed. If we add X4(i) { X1(i) to both sides of the preceding equation, we get
X1(i) = X4(i) { X3(i) { X2(i) { X0(i)
file:///home/ruben/william stallings - computer organization and architecture designing for performance (8th edition).pdf
Page 202
http://www.nylxs.com/images/raid3_parity_math.png
Ruben
|
|