Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.
HDD Spindown Timer

HDD Spindown Timer 1.3.1

Disk spindown has always been an issue for various FreeNAS users. This script utilizes iostat to detect I/O operations (reads, writes) on each disk. If a disk didn't receive reads or writes for a given period of time it is considered idle and gets spun down.

This excludes periodic reads of S.M.A.R.T. data performed by the smartctl service which therefore enables users to have S.M.A.R.T. reporting turned on while still being able to automatically spin down disks. The script also is immune to the periodic disk temperature reads in newer versions of FreeNAS.

Key Features
  • Periodic S.M.A.R.T. reads don't reset the idle timers
  • Configurable idle timeout and poll interval
  • Support for ATA and SCSI devices
  • Per-disk idle timer / Independent spindown
  • Ignoring of specific drives (e.g. SSD with system dataset)
  • Runnable via Tasks as Post-Init Script, configurable trough FreeNAS GUI
  • Allows script placement on encrypted pool
Please note that this work was heavily inspired by: https://serverfault.com/a/969252

For more detailed information, installation and usage instructions as well as the most recent release checkout the repository on GitHub: https://github.com/ngandrass/freenas-spindown-timer
Author
ngandrass
Downloads
337
Views
337
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. Version 1.3.1 (2019-10-24) released

    Version 1.3.1 (2019-10-24) Do drive detection at script start to fix erorrs on specific SAS...
  2. Version 1.3 (2019-10-09) released

    Version 1.3 (2019-10-09) Introduce manual mode [-m] to disable automatic drive detection...
  3. Version 1.2.1 (2019-09-30) released

    Version 1.2.1 (2019-09-30) Add info about how to ignore multiple drives to the scripts usage...
  4. Version 1.2 (2019-07-12) released

    Version 1.2 (2019-07-12) Add experimental support for SCSI drives Use camcontrol epc instead of...
  5. Version 1.1 (2019-07-09) released

    Version 1.1 (2019-07-09) Add detection of "da" prefixed devices (Thanks to @bilditup1) For...
Top