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