Add fan speed override for Mover and Parity Check - #55
Open
Pross wants to merge 1 commit into
Open
Conversation
Adds a per-fan "Override on Mover/Parity Check" option so a fan can be forced to a fixed speed whenever the array is busy, instead of following the normal disk/CPU curve. Useful for drive bays that need full airflow during a parity check or mover run but can otherwise idle quietly. The loop script detects mover via pgrep and parity/sync/rebuild via mdcmd status (mdResync), takes priority over the disk/CPU calculation, and reports back as "(Mover)" or "(Parity)" in the dashboard/log so it's clear why the fan ramped up. Off by default, so existing configs are unaffected until a fan opts in. Tested locally against a mocked mdcmd/PWM setup and on a live server during an active parity check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional per-fan override so a fan can be forced to a fixed speed whenever the array is busy with Mover or a parity check/sync/rebuild, instead of following its normal disk/CPU curve. Handy for drive bays that need full airflow during those windows but can idle the rest of the time.
How it works
(Mover)or(Parity)as the source so it's clear why the fan ramped up.Testing