Skip to content

Releases: ngandrass/truenas-spindown-timer

Version 2.3.0 (2024-08-26)

26 Aug 12:23
9cc859c
Compare
Choose a tag to compare

Changelog

  • Introduce syslog mode (-l). If set, all output is logged to syslog instead of stdout/stderr.
  • Introduce one shot mode (-o). If set, the script performs exactly one I/O poll interval, then immediately spins down drives that were idle for the last POLL_TIME seconds, and exits.
  • Skip NVMe drives during drive detection.
  • Exit with an error, if no drives were found during drive detection.

Version 2.2.0 (2023-02-20)

20 Feb 10:50
ec8aa8e
Compare
Choose a tag to compare

Changelog

  • Introduce the check mode (-c) to display the current power mode of all monitored drives every POLL_TIME seconds. See README.md > Using the check mode for more details.

Version 2.1.0 (2023-02-19)

19 Feb 15:36
69ffd7b
Compare
Choose a tag to compare

This version introduces a new ZFS pool based operation mode. The script is now able to work on both per-disk or on a ZFS pool basis. It was tested to work on TrueNAS CORE and SCALE :)

Check the updated README.md for more details.

Changelog​

  • A new CLI argument was introduced to switch between disk and zpool operation mode: -u <MODE>
  • When no operation mode is explicitly given, the script works in disk mode. This completely ignores zfs pools and works as before.
  • When operation mode is set to zpool by supplying -u zpool, the script now operates on a per-zpool basis. I/O is monitored for the pool as a whole and disks are only spun down if the complete pool was idle for a given number of seconds. ZFS pools are either detected automatically or can be supplied manually (see help text for -i and -m).
  • Drives are referenced by GPTID (CORE) or partuuid (SCALE) in ZFS pool mode.

Acknowledgements​

Thanks to @jojolll and @gpatkinson for helping with testing this release! 😄

Version 2.0.1 (2022-09-17)

17 Sep 15:42
c6cecee
Compare
Choose a tag to compare

Changelog

  • Added support for TrueNAS SCALE using hdparm instead of camcontrol. The script automatically detects the environment it is run in.

Acknowledgements

Thanks to @derWalter, @Hafnernuss and everyone from the following thread that contributed information: https://www.truenas.com/community/threads/prevent-frequent-reads-from-waking-up-hdds.93176/

Further thanks to @Nex-Carter for providing access to a TrueNAS SCALE system for testing 👍

v1.3.2

10 Jan 06:10
5a15c88
Compare
Choose a tag to compare

Version 1.3.2 (2022-01-10)

  • Include an option to shutdown the system after all monitored drives are idle for a specified number of seconds. Thanks to @hschwane 👍

v1.3.1

24 Oct 07:32
Compare
Choose a tag to compare

Version 1.3.1 (2019-10-24)

  • Do drive detection at script start to fix erorrs on specific SAS controllers (LSI 9305)

v1.3

09 Oct 14:53
Compare
Choose a tag to compare

Version 1.3 (2019-10-09)

  • Introduce manual mode [-m] to disable automatic drive detection
  • Improve script description in print_usage() block
  • Documentation of advanced features and usage

v1.2.1

30 Sep 18:31
Compare
Choose a tag to compare

Version 1.2.1 (2019-09-30)

  • Add info about how to ignore multiple drives to the scripts usage description

v1.2

12 Jul 10:22
Compare
Choose a tag to compare

Version 1.2 (2019-07-12)

  • Add experimental support for SCSI drives
  • Use camcontrol epc instead of sending raw disk commands during spincheck (Thanks to @bilditup1)

v1.1

09 Jul 07:05
Compare
Choose a tag to compare

Version 1.1 (2019-07-09)

  • Add detection of "da" prefixed devices (Thanks to @bilditup1)