Add thermal protection options: temp_limit and temp_sleep
Some checks failed
Build / build-mac (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Build / build-win (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

Introduce two new configuration directives to protect disks from overheating:

- temp_limit <TEMPERATURE_CELSIUS>
  Sets the maximum allowed disk temperature. When any disk exceeds this limit,
  SnapRAID stops all operations and spins down the disks.

- temp_sleep <TIME_IN_MINUTES>
  Specifies how long disks remain in standby after a temperature event.
  Defaults to 15 minutes.

These options allow SnapRAID to automatically pause activity and cool down
disks when a temperature threshold is reached, improving data safety and
hardware longevity.
This commit is contained in:
Andrea Mazzoleni 2025-09-21 19:54:10 +02:00
parent b5bbece95e
commit 906d215bf5
23 changed files with 1144 additions and 81 deletions

10
HISTORY
View file

@ -3,6 +3,16 @@ SnapRAID HISTORY
13.0 2025/XX
============
* Add new thermal protection configuration options:
- temp_limit TEMPERATURE_CELSIUS
Sets the maximum allowed disk temperature. When any disk exceeds this
limit, SnapRAID stops all operations and spins down the disks to prevent
overheating.
- temp_sleep TIME_IN_MINUTES
Defines how long the disks remain in standby after a temperature limit
event. Defaults to 15 minutes.
These options allow SnapRAID to automatically pause activity and cool down
disks when a temperature threshold is reached.
* Add a new "probe" command that shows the spinning status of all disks.
* Add a new -s, --spin-down-on-error option that spins down all disks
when a command ends with an error.