Thread (3 messages) 3 messages, 2 authors, 2012-04-10

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

From: NeilBrown <hidden>
Date: 2012-04-09 00:03:29

On Sat, 7 Apr 2012 17:13:22 +0800 "majianpeng" [off-list ref] 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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help