- 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 lastPOLL_TIME
seconds, and exits. - Skip NVMe drives during drive detection.
- Exit with an error, if no drives were found during drive detection.
- Introduce the check mode (
-c
) to display the current power mode of all monitored drives everyPOLL_TIME
seconds. See README.md > Using the check mode for more details.
- New CLI argument to switch between
disk
andzpool
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.
- When no operation mode is explicitly given, the script works in
- Added support for TrueNAS SCALE using
hdparm
instead ofcamcontrol
. The script automatically detects the environment it is run in.
- Include an option to shutdown the system after all monitored drives are idle for a specified number of seconds
- Do drive detection at script start to fix erorrs on specific SAS controllers (LSI 9305)
- Introduce manual mode [-m] to disable automatic drive detection
- Improve script description in print_usage() block
- Documentation of advanced features and usage
- Add info about how to ignore multiple drives to the scripts usage description
- Add experimental support for SCSI drives
- Use
camcontrol epc
instead of sending raw disk commands during spincheck (Thanks to @bilditup1)
- Add detection of "da" prefixed devices (Thanks to @bilditup1)
- Initial release