Re: mdadm, spin down never happens, do spare work the same?

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

 



On Fri, 20 Dec 2013 23:56:14 +0000 Wilson Jonathan
<piercing_male@xxxxxxxxxxx> 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: 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