* Raid 6 rebuild
@ 2012-04-06 7:01 Bryan Bush
2012-04-06 8:28 ` NeilBrown
0 siblings, 1 reply; 4+ messages in thread
From: Bryan Bush @ 2012-04-06 7:01 UTC (permalink / raw)
To: linux-raid
If you have 2 failed drives in a raid 6 array, will it rebuild them
both at the same time or in serial?
Thanks
-Bryan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Raid 6 rebuild
2012-04-06 7:01 Raid 6 rebuild Bryan Bush
@ 2012-04-06 8:28 ` NeilBrown
0 siblings, 0 replies; 4+ messages in thread
From: NeilBrown @ 2012-04-06 8:28 UTC (permalink / raw)
To: Bryan Bush; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 972 bytes --]
On Fri, 6 Apr 2012 03:01:26 -0400 Bryan Bush <bbushvt@gmail.com> wrote:
> If you have 2 failed drives in a raid 6 array, will it rebuild them
> both at the same time or in serial?
Maybe.
Probably not, but it can be coaxed to.
The next release of mdadm will contain
http://neil.brown.name/git?p=mdadm;a=commitdiff;h=9f58469128c99c0d7f434d28657f86789334f253
which will ensure that if you:
mdadm /dev/md0 --add /dev/foo /dev/bar
then both will be added before the recovery starts, so both will be recovered
at the same time.
Alternately you could:
echo freeze > /sys/block/md0/md/sync_action
mdadm /dev/md0 --add /dev/foo /dev/bar
echo idle > /sys/blcok/md0/md/sync_action
you might even be able to leave of the first step.
The "add" will cause a recovery to start on just one device, but then when
you write 'idle', it will abort the recovery, automatically restart, but
this time will use all available spares.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Raid 6 rebuild
@ 2014-02-11 18:11 Gallas, William N
2014-02-11 18:46 ` Chris Murphy
0 siblings, 1 reply; 4+ messages in thread
From: Gallas, William N @ 2014-02-11 18:11 UTC (permalink / raw)
To: linux-raid@vger.kernel.org
Hi,
I have a raid 6 unit that takes over 40 hours to rebuild from an HDD fail condition. I have ample CPU cycles available and was wondering
if MDRAID throttles the rebuild speed.
Regards,
Bill Gallas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Raid 6 rebuild
2014-02-11 18:11 Gallas, William N
@ 2014-02-11 18:46 ` Chris Murphy
0 siblings, 0 replies; 4+ messages in thread
From: Chris Murphy @ 2014-02-11 18:46 UTC (permalink / raw)
To: Gallas, William N; +Cc: linux-raid@vger.kernel.org
On Feb 11, 2014, at 11:11 AM, "Gallas, William N" <william.n.gallas@intel.com> wrote:
>
> Hi,
>
> I have a raid 6 unit that takes over 40 hours to rebuild from an HDD fail condition. I have ample CPU cycles available and was wondering
> if MDRAID throttles the rebuild speed.
Yes. It's probably a combination of too small md/stripe_cache_size, and /proc/sys/dev/raid/speed_limit_max and maybe /proc/sys/dev/raid/speed_limit_min. Another possibility is misalignment due to incorrect partitioning of a disk with 4KB physical sector sizes.
Chris Murphy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-11 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-06 7:01 Raid 6 rebuild Bryan Bush
2012-04-06 8:28 ` NeilBrown
-- strict thread matches above, loose matches on Subject: below --
2014-02-11 18:11 Gallas, William N
2014-02-11 18:46 ` Chris Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).