HDD Spindown Timer

HDD Spindown Timer 2.2.0

Disk spindown has always been an issue for various TrueNAS / FreeNAS users. This script utilizes iostat to detect I/O operations (reads, writes) on each disk. If a disk was neither read nor written for a given period of time, it is considered idle and is spun down.

Periodic reads of S.M.A.R.T. data performed by the smartctl service are excluded. This allows users to have S.M.A.R.T. reporting enabled while still being able to automatically spin down disks. The script moreover is immune to the periodic disk temperature reads in newer versions of TrueNAS.

Key Features​

  • Periodic S.M.A.R.T. reads do not reset the disk idle timers
  • Configurable idle timeout and poll interval
  • Support for ATA and SCSI devices
  • Works with both TrueNAS Core and TrueNAS SCALE
  • Per-disk idle timer / Independent spindown
  • Automatic detection or explicit listing of drives to monitor
  • Ignoring of specific drives (e.g. SSD with system dataset)
  • Executable via Tasks as Post-Init Script, configurable via TrueNAS GUI
  • Allows script placement on encrypted pool
  • Optional shutdown after configurable idle time

For more information, installation and usage instructions as well as the most recent release, checkout the repository on GitHub: https://github.com/ngandrass/truenas-spindown-timer
  • Like
Reactions: Davvo
Author
ngandrass
Downloads
88,316
Views
332,753
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest updates

  1. Successfully tested on TrueNAS-13.0-U5.1 (CORE)

    The script was successfully tested on the latest TrueNAS-13.0-U5.1 (CORE) release :)
  2. Successfully tested on TrueNAS-13.0-U4 (CORE)

    The script was successfully tested on the latest TrueNAS-13.0-U4 (CORE) release :)
  3. Version 2.2.0 (2023-02-20) released

    Changelog Introduce the check mode (-c) to display the current power mode of all monitored...
  4. Version 2.1.0 (2023-02-19) released - ZFS Pool operation mode

    This version introduces a new ZFS pool based operation mode. The script is now able to work on...
  5. Successfully tested on TrueNAS-13.0-U3.1

    The script was successfully tested on the latest TrueNAS-13.0-U3.1 release :) Additionally the...

Latest reviews

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