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.
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 :)
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.