truenas-spindown-timer
truenas-spindown-timer copied to clipboard
Monitors drive I/O and forces HDD spindown after a given idle period. Resistant to S.M.A.R.T. reads.
Hello, I tried to use the script on the latest version of TrueNAS Scale, but without success. The disks do not react and I get errors when running:  Do...
https://github.com/ngandrass/truenas-spindown-timer/blob/9cc859c399f0a7e9e4b07898a50b4ecaf5e42a77/spindown_timer.sh#L224 I came up with this idea to fix part-cropping for both "normal hda, sda, ..." and nvme: [`local dev=$(basename -- "$(readlink -f "${row}")" | sed -e "s/[0-9]\+$//" -e "s/\(nvme[0-9n]\+\)p/\1/")`](https://github.com/handfrog/truenas-spindown-timer/commit/9b0245faf0e7c9e772194e60b1a400fda12d773b)...