Closed akrea closed 2 years ago
The third temperature query for one of your drives fails with hddtemp
, it may be due to some power saving feature.
You can try running with --smartctl
and or/paste the log with -v debug
to get more info about what is going on.
Indeed this may be.
noname@skippy:~$ sudo hddtemp /dev/sd[abcdefg]
/dev/sda: Samsung SSD 883 DCT 480G B �: 39°C
/dev/sdb: Samsung SSD 883 DCT 480G B �: 42°C
/dev/sdc: ST10000NE0008-2JM101: drive is sleeping
/dev/sdd: ST10000NE0008-2JM101: drive is sleeping
/dev/sde: ST10000NE0008-2JM101: drive is sleeping
/dev/sdf: ST10000NE0008-2JM101: drive is sleeping
/dev/sdg: ST20000NM007D-3DJ103: 36°C
The ones going to sleep are HDDs for storage. So in order to avoid the errors I assigned the SSDs (one in each cage) to the fans. They do not go to sleep as they are OS-disks in RAID 1. Moreover, those are the "hottest" drives most of the time and do not differ much from the others (5°C max.).
Suggestion: How about returning a WARNING instead of an error if the conversion is not possible.
Question about inner workings: Am I correct that -d /dev/sda /dev/sdc -p /sys/class/hwmon/hwmon1/pwm4 ....
will assign sda and sdc to pwm4 an the "hotter" drive determines fan speed?
The drive is sleeping
output is correctly handled in hddfancontrol
, this is not the cause of the error you are having.
If you restart the daemon with -v debug
, that would allow narrowing down the device that cause the error.
Suggestion: How about returning a WARNING instead of an error if the conversion is not possible.
In a system where cooling is controlled by the output of a sensor, ignoring a sensor error is possibly the worst thing you can do. I think it is much better to throw an explicit error, and set the fan at 100% for safety.
Question about inner workings: Am I correct that
-d /dev/sda /dev/sdc -p /sys/class/hwmon/hwmon1/pwm4 ....
will assign sda and sdc to pwm4 an the "hotter" drive determines fan speed?
Yes
Hi
First thank you for your great work! I would like to use hddfancontrol for my test-bench-like server setup, where I have 2 drive cages with 4 drives each and a fan for each cage. I managed to set everything up and the system is working in terms of keeping my drives cool. Yet not quite in an intended way:
OS: Ubuntu 20.04 Installation method: pip3
Problem: I use
sudo hddfancontrol -d /dev/sda /dev/sdc /dev/sde -p /sys/class/hwmon/hwmon1/pwm4 --pwm-start-value 200 --pwm-stop-value 45 --min-fan-speed-prct 10 -i 60 --spin-down-time 7200 -b -l /var/log/hddfancontrol.log
to start fancontrol. The log looks like thisYou can see the error message and the fans being thereafter set to a 100% (which is confirmed by my system monitoring).
Somewhere in the code seems to be a conversion error according to this thread.
Would you be able to fix this one or am I doing something wrong?
Thank you!