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 / TrueNAS 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 / TrueNAS.

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 / TrueNAS 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
13,131
Views
46,918
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest updates

  1. Successfully tested on TrueNAS-12.0 and FreeNAS-11.3-U5

    The script was successfully tested on the latest TrueNAS-12.0 and FreeNAS-11.3-U5 release :)
  2. Successfully tested on FreeNAS-11.3-U4.1

    The script was successfully tested on the latest FreeNAS-11.3-U4.1 release :)
  3. Successfully tested on FreeNAS-11.3-U3.2

    The script was successfully tested on the latest FreeNAS-11.3-U3.2 release :)
  4. Successfully tested on FreeNAS-11.3-U3.1

    The script was successfully tested on the latest FreeNAS-11.3-U3.1 release :)
  5. Deployment instructions updated with FreeNAS-11.3 changes

    The deployment instructions, provided in the README.md, now incorporate information on the new...

Latest reviews

Perfect! The missing piece in FreeNAS (for home users).
Top