On 11/10/16 17:23, Wols Lists wrote:
It strikes me this would be a good addition too - I could probably
manage something of the sort, but do you or anyone have the code to
detect a green, and do that "disable parking and spindown"? It's a pain,
but having a script that deals with all known and common issues with
drives is probably a good thing.
The command to disable head parking is a vendor specific command, is
non-volatile and requires a drive power cycle. So it's a one off set and
forget when you get the drive.
Excerpt from hdparm man page :
-J Get/set the Western Digital (WD) Green Drive's "idle3"
timeout value. This timeout controls how often the drive parks its
heads and enters a low power consumption state. The factory default is
eight (8) seconds, which is a very poor choice for use with Linux.
Leaving it at the default will
result in hundreds of thousands of head load/unload
cycles in a very short period of time. The drive mechanism is only
rated for 300,000 to 1,000,000 cycles, so leaving it at the default
could result in premature failure, not to mention the performance impact
of the drive often having to wake-
up before doing routine I/O.
I just set them to J 0. This applies to the WD Red drives also.
I forget how to tackle the spindown command. I think I used hdparm -S
every boot, same as the setting scterc timeout.
None of the machines I use with RAID arrays are idle long enough to spin
down the disks.
--
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