Hallo zusammen,
ich wollte hier nur mal meine Lösung posten, die ich nach 2 Tagen mit dem AUTOSTART-Plugin gesucht habe um meine Lüfterdrehzahl in den Griff zu bekommen.
Wenn das Autostart-Plugin den Server in den HIBERNATE Zustand versetzt, werden nach dem Aufwecken meine Lüfter nicht mehr geregelt und laufen mit 25.000 U/Min.
Es handelt sich hier um ein SUPERMICRO 19" Server. (Fals jemand die Drehzahl wundert)
Ich habe hier zwei Tage an dem AUTOSHUDOWN.log alles mögliche versucht zu analysieren.
Haben im /etc/pm/sleep.de/ eine fancontrol script nach Vorgaben eingerichtet, nichts tat sich.
Dann ein Workaround über die OMV GUI CRON alle 15 Min fancontrol starten, damit ich zumindest nach 15 Min die Drehzahl runter bekam, fand ich im UBUNTU WIKI die zündende Lösung.
Ich habe die Datei fancontrol im Verzeichnis /usr/sbin/fancontrol editiet und einfach die Äderungen aus dem UBUNTU WIKI eingefügt und siehe da, die Lüftersteuerung funktioniert, egal aus welchen Zustand der Server hochfährt.
Datei folgt.
##### English version ###
Hello, everybody,
I just wanted to post here my solution, which I have searched after 2 days with the AUTOSTART-Plugin to get my fan speed under control.
When the autostart plugin sets the server to HIBERNATE state, my fans are no longer controlled after waking up and run at 25,000 rpm.
This is a SUPERMICRO 19" server. (If anyone is wondering about the speed)
I have tried here two days at the AUTOSHUDOWN.log to analyze everything possible.
I set up a fancontrol script in /etc/pm/sleep.de/, nothing happened.
Then I started a workaround via the OMV GUI CRON every 15 min fancontrol, so that I got at least after 15 min the speed down, I found in the UBUNTU WIKI the igniting solution.
I edited the file fancontrol in the directory /usr/sbin/fancontrol and simply inserted the changes from the UBUNTU WIKI and see there, the fan control works, no matter from which state the server starts up.
The File is following.
Hier die Dateiergänzungen in der datei /usr/sbin/fancontrol so ziemlich am ende der Datei.
Da ich den Link hier nicht posten darf, kann man auch im U_BUNTU WIKI nach Lüftersteuerung suchen und gelangt zur Erklärung.
echo 'Starting automatic fan control...'
TICK_LAST=$(date +%s)
# main loop calling the main function at specified intervals
while true
do
TICK_NOW=$(date +%s)
if [ $(($TICK_NOW - $TICK_LAST)) -ge $(($INTERVAL * 5)) ];then
echo 'fancontrol was paused for about '$(($TICK_NOW - $TICK_LAST))' seconds! (Hibernation, suspend or freeze?)'
echo 'Re-enabling PWM on fans to be on the safe side...'
let fcvcount=0
while (( $fcvcount < ${#AFCPWM[@]} )) # go through all pwm outputs
do
pwmo=${AFCPWM[$fcvcount]}
pwmenable $pwmo
if [ $? -ne 0 ]
then
echo "Error enabling PWM on $DIR/$pwmo" >&2
restorefans 1
fi
let fcvcount=$fcvcount+1
done
fi
TICK_LAST=$TICK_NOW
UpdateFanSpeeds
# Sleep while still handling signals
sleep $INTERVAL &
wait
done
Alles anzeigen