Re: Raid 6 rebuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Fri, 6 Apr 2012 03:01:26 -0400 Bryan Bush <bbushvt@xxxxxxxxx> wrote:

> If you have 2 failed drives in a raid 6 array, will it rebuild them
> both at the same time or in serial?


Probably not, but it can be coaxed to.

The next release of mdadm will contain;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.


Attachment: signature.asc
Description: PGP signature

[ATA RAID]     [Linux SCSI Target Infrastructure]     [Managing RAID on Linux]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device-Mapper]     [Kernel]     [Linux Books]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Photos]     [Yosemite Photos]     [Yosemite News]     [AMD 64]     [Linux Networking]

Add to Google Powered by Linux