Thread (12 messages) 12 messages, 7 authors, 2009-06-09

Re: RAID5 reconstruction ?

flat view

From: Nifty Fedora Mitch <hidden>
Date: 2009-06-09 04:13:46

On Sat, May 30, 2009 at 06:22:40PM +0530, Sujit Karataparambil wrote:
Are you talking about hardware raid or software raid.

I donot think hardware raid can by itself do much of the
book keeping.

Software Raid I think is different from having raid 0 to raid 1
to raid 2 to raid 3 to raid 4 to raid 5.

hope this is correct information.

Thanks,


On Sat, May 30, 2009 at 11:14 AM, SandeepKsinha [off-list ref] wrote:
quoted
Hi all,

Say If I have a RAID 5 array of 50GB of five disks of 10GB each.

I have data of 5GB. When a disk fails and replaced with a spare disk.
Will the reconstruction happen only for the 5GB allocated disk blocks
or it will happen for the whole disk size.

Is it possible to make  reconstruction intelligent enough to keep it optimized ?

Sandeep.
Sandeep,

It might help if you think of your 50GB raid as a single disk with
special properties of redundancy and management.   A single disk has no
"knowledge" about the file system it contains.   As such it will not
know anything about the file system data allocation and will be "dumb"
in terms of what blocks/ stripes/ whatever  it needs to reconstruct/
repair itself with relation to the file system.

It is possible that unallocated file system regions will still be zeroed
blocks and recovery is quick.  It is also possible that the RAID data
structures will remember if it has been read or written to and needs to
be recovered/ initialized.

To the best of my knowledge RAID-N from vendor to vendor; hardware .vs. software
only defines the type and general patterns of redundancy.   I.E. I do
not expect that I can pull a disk set from one raid vendor and expect
another vendor to understand  and present the logical blocks in the 
same identical way.

To set expectations the recovery of a 50GB RAID with 0.1 GB of data 
in its file system or with 45GB of data in its filesystem will
be the same unless the specific RAID implementation keeps a score card.
More apropos the RAID does not know anything special except at initialization --
and an old RAID incontrast to a new filesystem will want to recover the
entire RAID (itself) knowing nothing about the history of the filesystems
it contains.

Others may be able to add more details for your specific RAID.

-- 
	T o m  M i t c h e l l 
	Found me a new hat, now what?

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help