Re: about:conf->recovery_disabled and mddev->recovery_disabled

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

 



On Sat, 7 Apr 2012 17:13:22 +0800 "majianpeng" <majianpeng@xxxxxxxxx> wrote:

> Hi all:
> 	I confused the recovery_disabled.
> 	what's the mean when conf->recovery_disabled = mddev->recovery_disabled?
> 	If equal,so not to add disk and not to recovery?

Yes, exactly.

in an attempt to recover a device fails we don't want to immediately retry as
that would cause a loop.
So whenever a recovery fails, we set conf->recovery_disabled to match
mddev->recovery_disable.  And whenever something changes which might make
recovery possible, we increment mddev->recovery_disabled, so that it tries
again.

With raid10, the 'recovery_disabled' is per-disk, not per-array.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux