linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm, spin down never happens, do spare work the same?
@ 2013-12-20 23:56 Wilson Jonathan
  2013-12-21  0:10 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Wilson Jonathan @ 2013-12-20 23:56 UTC (permalink / raw)
  To: linux-raid

I've noticed that with an active mdadm raid that there seems to be a
periodic polling of the devices in the array which prevents the drives
ever going into various slumber modes... and it also doesnt seem to make
a difference if the file system on the array is mounted or not (slightly
subjective as its more an observation than an in-depth testing).

I'm guessing its to make sure the array is "ok" and is also used to
update things such as /proc/mdstat and maybe other things related, so
every now and then it goes "hi, are you there disks, whats your current
state" for want of a better idea of the process.

What I'm wondering is how mdadm treats the "spare" drives, does it also
poll them periodically to the same time constraints as the active drives
or does it just check at re-boot and maybe some other periodic time
scales...

The reason for enquiring is if a "spare" drive is kept alive to the same
extent as a "live/active" drive then it means that a spare could have
been powered up and accessed for the exact same time as a running
"active" set of drives... which means that even though its never been
used it could have had the same amount of time "live/spinning" as the
existing arrays drives which would mean it is just as likely to fail due
to [running] age as any other drive within the array, if however its
only polled very sporadically (boot, maybe once a month, some other
amount) then its "active life" is drastically shortened, which would
mean its (to some degree) less likely to fail when its updated as a
"live disk" when another member has failed... obviously baring spin up
counts and other "power up=old=pre-fail" issues.

Thanks in advance.

Jon

 

 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mdadm, spin down never happens, do spare work the same?
  2013-12-20 23:56 mdadm, spin down never happens, do spare work the same? Wilson Jonathan
@ 2013-12-21  0:10 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2013-12-21  0:10 UTC (permalink / raw)
  To: Wilson Jonathan; +Cc: linux-raid

[-- Attachment #1: Type: text/plain, Size: 2295 bytes --]

On Fri, 20 Dec 2013 23:56:14 +0000 Wilson Jonathan
<piercing_male@hotmail.com> wrote:

> I've noticed that with an active mdadm raid that there seems to be a
> periodic polling of the devices in the array which prevents the drives
> ever going into various slumber modes... and it also doesnt seem to make
> a difference if the file system on the array is mounted or not (slightly
> subjective as its more an observation than an in-depth testing).
> 
> I'm guessing its to make sure the array is "ok" and is also used to
> update things such as /proc/mdstat and maybe other things related, so
> every now and then it goes "hi, are you there disks, whats your current
> state" for want of a better idea of the process.
> 
> What I'm wondering is how mdadm treats the "spare" drives, does it also
> poll them periodically to the same time constraints as the active drives
> or does it just check at re-boot and maybe some other periodic time
> scales...
> 
> The reason for enquiring is if a "spare" drive is kept alive to the same
> extent as a "live/active" drive then it means that a spare could have
> been powered up and accessed for the exact same time as a running
> "active" set of drives... which means that even though its never been
> used it could have had the same amount of time "live/spinning" as the
> existing arrays drives which would mean it is just as likely to fail due
> to [running] age as any other drive within the array, if however its
> only polled very sporadically (boot, maybe once a month, some other
> amount) then its "active life" is drastically shortened, which would
> mean its (to some degree) less likely to fail when its updated as a
> "live disk" when another member has failed... obviously baring spin up
> counts and other "power up=old=pre-fail" issues.
> 
> Thanks in advance.
> 
> Jon
> 
>

Nope.  md doesn't 'poll' devices at all.
if you ask to read from the array, it reads from devices.
If you ask to write to the array, it writes to devices (and maybe reads)
if you ask it to 'check' the array, it does.
IF it notices a spare and a missing device, it performs recovery.
If there is nothing to do, it does nothing.

What evidence do you have which led you to suspect some polling activity.

NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-21  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20 23:56 mdadm, spin down never happens, do spare work the same? Wilson Jonathan
2013-12-21  0:10 ` NeilBrown

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).