Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Wearing-in" hard disks for RAID5 array?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Havin_it
l33t
l33t


Joined: 17 Jul 2005
Posts: 942
Location: Edinburgh, UK

PostPosted: Thu Feb 02, 2012 8:02 pm    Post subject: "Wearing-in" hard disks for RAID5 array? Reply with quote

Hi all,

I just bought an HP N40L Microserver and three extra HDDs with the intention of using them in software RAID5 for a data store. I bought all the drives from the same supplier and they are all the same model (WD Caviar Blue 500GB SATA2), so it's likely they'll be from the same manufactured batch. I've heard it said that this significantly increases the odds that two (or all three!) will fail in quick succession.

How big a concern is this? If major, it occurs that I could mitigate the risk by "wearing-in" two of the drives by writing to them (one twice as much as the other, natch) so that in theory the most-written-to drive would be likely fail first.

Do you think this is worth doing? If so, how much writing would it probably take to make a difference? Any particular strategy for what type of writing to perform (plain ol' dd, random writes around the disk, etc)?

Thanks in advance, storage gurus :D
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 4849
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Feb 02, 2012 8:13 pm    Post subject: Reply with quote

With RAID 5, there isn't any "most written" drive as data and parity are striped across all drives. It's also worth noting that RAID is not backup: you still need a good backup strategy if you're going to be storing mission critical data. In the event of a bad drive, RAID will probably protect you long enough to update your incremental backup before you take the array down for repair (or rebuild to a hot spare).

Considering all of that, I'd vote "no" on the burn-in.

Edit: I think I misunderstood you at first. You're saying, wear out one drive some, the second a little, and the third not at all to create some gradient in the possible infant mortality failure of the drives. I'd still vote "no". The reason is that, even if you've received drives from a batch that's going to experience severe infant mortality, there will still be variation in the batch. You never know whether you're wearing the weakest or the most robust drive of the set.

- John
_________________
Yoda: "Intentionally left blank, this space is."
Back to top
View user's profile Send private message
Havin_it
l33t
l33t


Joined: 17 Jul 2005
Posts: 942
Location: Edinburgh, UK

PostPosted: Thu Feb 02, 2012 8:49 pm    Post subject: Reply with quote

Hi John, thanks for the reply. Indeed, I've had the speech about RAID vs backups: the really valuable content will be live-replicated to other machines, the rest will be ripped media which, while losing it would be a pain, wouldn't be the end of the world. Anyway, my last RAID5 set of SCSI drives outlasted their host machine (>7 years), so the point may be a bit moot anyway...
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3204

PostPosted: Fri Feb 03, 2012 3:23 pm    Post subject: Reply with quote

but you could be sure you won't make 7 years with it, sata class disk vs scsi is not the same when speaking about mtbf (but the cheap prize for sata disk should balance that)
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2194
Location: Germany

PostPosted: Fri Feb 03, 2012 5:34 pm    Post subject: Re: "Wearing-in" hard disks for RAID5 array? Reply with quote

Havin_it wrote:
I've heard it said that this significantly increases the odds that two (or all three!) will fail in quick succession.


There are so many variables in a drive's life (different access patterns, different temperature, and other outer influences) that it's virtually impossible to make two drives fail at the same time. If it actually happens it's either due to someone drumming the Radetzky march on your computer case or, more likely, pure random chance.

However, most cases of "simultaneous" failure is actually an old failure that went undiscovered for a LONG time until a full resync became necessary due to another drive failure - or you being lazy and waiting 8 weeks for a replacement drive from the manufacturer instead of replacing the drive within the hour.

Don't just blindly trust your RAID; configure smartmontools to monitor and test your drives regularly, check data integrity. Anything to detect drive failures, even if it's just a single bad block, as early as possible.
Back to top
View user's profile Send private message
alextz
n00b
n00b


Joined: 04 Jan 2006
Posts: 62
Location: Romania

PostPosted: Fri Feb 03, 2012 9:31 pm    Post subject: Reply with quote

When i built my RAID 6 i just did a badblocks sweep of all the harddrives.
Now from time to time I just scrub the data on them to ensure that there is no badblock.
Back to top
View user's profile Send private message
Havin_it
l33t
l33t


Joined: 17 Jul 2005
Posts: 942
Location: Edinburgh, UK

PostPosted: Sun Feb 05, 2012 2:31 am    Post subject: Reply with quote

alextz wrote:
When i built my RAID 6 i just did a badblocks sweep of all the harddrives.
Now from time to time I just scrub the data on them to ensure that there is no badblock.


You mean I ought to run badblocks on the drives, even though they're brand new? What options would be recommended?

Can you expand on what you mean by "scrub the data"? Is this something that can be done with the data in-place? I won't have the space anywhere else to back up all the contents. Also, I'll be making the array a LUKS partition (about to post a separate question about this): will this present additional problems?
Back to top
View user's profile Send private message
alextz
n00b
n00b


Joined: 04 Jan 2006
Posts: 62
Location: Romania

PostPosted: Sun Feb 05, 2012 11:34 am    Post subject: Reply with quote

You can try:

Code:
badblocks -wvsb 4096 /dev/sdX


To scrub the data on the raid array just do :
Code:
echo check >> /sys/block/md0/sync_action
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum