Re: Spare disk could not sleep / standby

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

 



On Tuesday March 8, molle.bestefich@xxxxxxxxx wrote:
> Neil Brown wrote:
> > It is writes, but don't be scared.  It is just super-block updates.
> > 
> > In 2.6, the superblock is marked 'clean' whenever there is a period of
> > about 20ms of no write activity.  This increases the chance on a
> > resync won't be needed after a crash.
> > (unfortunately) the superblocks on the spares need to be updated too.
> 
> Ack, one of the cool things that a linux md array can do that others
> can't is imho that the disks can spin down when inactive.  Granted,
> it's mostly for home users who want their desktop RAID to be quiet
> when it's not in use, and their basement multi-terabyte facility to
> use a minimum of power when idling, but anyway.
> 
> Is there any particular reason to update the superblocks every 20
> msecs when they're already marked clean?


It doesn't (well, shouldn't and I don't think it does).
Before the first write, they are all marked 'active'.
Then after 20ms with no write, they are all marked 'clean'.
Then before the next write they are all marked 'active'.

As the event count needs to be updated every time the superblock is
modified, the event count will be updated forever active->clean or
clean->active transition.  All the drives in an array must have the
same value for the event count, so the spares need to be updated even
though they, themselves, aren't exactly 'active' or 'clean'.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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