NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
FenterSpooner
Apr 29, 2013Aspirant
RN314 Fan Speed
Is there anyway to bump up the fan speed on v6.0? It's nice that its quiet and all but sitting at ~800rpm it's definitely keeping my drives at a higher temperature. I for one would welcome a little e...
townsmcp
Dec 16, 2014Aspirant
I know this thread is a bit old, however I thought I would update it.
I originally had a ReadyNAS 104 and got fan control working (based on the thread by moseleypj (Sat Dec 28, 2013 3:51 pm) http://www.readynas.com/forum/viewtopic.php?f=7&t=71587&start=15). On the weekend I bought a ReadyNAS 314 and tried applying the scripts to the 314. Unfortunately it didnt work. However after some tweaking I have been successful getting control of the fans :D
The problem from the 104 script was the location of the sensors and fan control files.Slight tweak to this and we are in business with a script that is adjustable to your needs. The code is as follows:
Create a file called fanoveride at /root/ with the following content:
Create a file called fanoveride at /etc/init.d with the following content:
Set permissions for these files to 755 and install the service:
The service will then start at next reboot of the NAS however you can use the following manual controls:
Within 10 minutes I managed to drop my CPU temp from 54c to 44c and hard drives from 44c to 35c.
Remember if copy and pasting the above code you will need to remove the carriage returns that will be shown in Linux. The easiest way to add these scripts (my personal preference) is to enable SSH on the NAS, use NotePad ++ to paste the text in to a new file without the carriage returns at end of line, and use Bitvise SSH to copy the files over to the NAS
Hope that helps others
I originally had a ReadyNAS 104 and got fan control working (based on the thread by moseleypj (Sat Dec 28, 2013 3:51 pm) http://www.readynas.com/forum/viewtopic.php?f=7&t=71587&start=15). On the weekend I bought a ReadyNAS 314 and tried applying the scripts to the 314. Unfortunately it didnt work. However after some tweaking I have been successful getting control of the fans :D
The problem from the 104 script was the location of the sensors and fan control files.Slight tweak to this and we are in business with a script that is adjustable to your needs. The code is as follows:
Create a file called fanoveride at /root/ with the following content:
#!/bin/bash
## Variables ##
FANPWMPATH=/sys/devices/platform/it87.2560/pwm1
FANSPEEDPATH=/sys/devices/platform/it87.2560/fan1_input
CORETEMPPATH=/sys/devices/platform/it87.2560/temp1_input
MAXFAN=100 # Maximum operable speed
MINFAN=0 # Minimum operable speed
MINPWM=75 # PWM Limit
MAXPWM=255 # PWM Limit
MINTEMP=35 # Min temp -> Fan slowest
MAXTEMP=70 # Max temp -> Fan fastest
NEWSPEED=50 # Initial fan speed (%)
## Functions ##
function getReadings {
FANPWM=$(cat $FANPWMPATH)
FANSPEED=$(cat $FANSPEEDPATH)
CORETEMP=$(cat $CORETEMPPATH)
}
function setFanSpeed {
if [ $NEWSPEED -lt $MINFAN ]; then
NEWSPEED=$MINFAN
fi
if [ $NEWSPEED -gt $MAXFAN ]; then
NEWSPEED=$MAXFAN
fi
NEWPWM=$(expr $MAXPWM - $MINPWM)
NEWPWM=$(expr $NEWPWM \* $NEWSPEED)
NEWPWM=$(expr $NEWPWM / 100)
NEWPWM=$(expr $NEWPWM + $MINPWM)
echo $NEWPWM > /sys/devices/platform/it87.2560/pwm1
}
function calcFanPercent {
TEMPRAN=$(expr $MAXTEMP - $MINTEMP)
TEMPREL=$(expr $CORETEMP - $MINTEMP)
TEMPREL=$(expr $TEMPREL \* 100)
TEMPPER=$(expr $TEMPREL / $TEMPRAN)
NEWSPEED=$TEMPPER
}
###################################################################
echo "Automatically controlling fan speed..."
while true
do
getReadings
echo "Temp: $CORETEMP C FAN: $NEWSPEED% [$FANSPEED RPM] [$FANPWM]"
calcFanPercent
setFanSpeed
sleep 10
done
###################################################################
Create a file called fanoveride at /etc/init.d with the following content:
#!/bin/sh
### BEGIN INIT INFO
# Provides: FanOveride
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: FanOveride overides the default ReadyNAS fan control
### END INIT INFO
SCRIPT=~/fanoveride
RUNAS=root
PIDFILE=/var/run/fanoveride.pid
LOGFILE=/var/log/fanoveride.log
start() {
if [ -f /var/run/$PIDNAME ] && kill -0 $(cat /var/run/$PIDNAME); then
echo 'Service already running' >&2
return 1
fi
echo 'Starting service.' >&2
local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!"
su -c "$CMD" $RUNAS > "$PIDFILE"
echo 'Service started' >&2
}
stop() {
if [ ! -f "$PIDFILE" ] || ! kill -0 $(cat "$PIDFILE"); then
echo 'Service not running' >&2
return 1
fi
echo 'Stopping service.' >&2
kill -15 $(cat "$PIDFILE") && rm -f "$PIDFILE"
echo 'Service stopped' >&2
}
uninstall() {
echo -n "Are you really sure you want to uninstall this service? That cannot be undone. [yes|No] "
local SURE
read SURE
if [ "$SURE" = "yes" ]; then
stop
rm -f "$PIDFILE"
echo "Notice: log file is not be removed: '$LOGFILE'" >&2
update-rc.d -f <NAME> remove
rm -fv "$0"
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
uninstall)
uninstall
;;
retart)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart|uninstall}"
esac
Set permissions for these files to 755 and install the service:
chmod +x /root/fanoveride
chmod +x /etc/init.d/fanoveride
update-rc.d fanoveride defaults
The service will then start at next reboot of the NAS however you can use the following manual controls:
service fanoveride start
service fanoveride stop
Within 10 minutes I managed to drop my CPU temp from 54c to 44c and hard drives from 44c to 35c.
Remember if copy and pasting the above code you will need to remove the carriage returns that will be shown in Linux. The easiest way to add these scripts (my personal preference) is to enable SSH on the NAS, use NotePad ++ to paste the text in to a new file without the carriage returns at end of line, and use Bitvise SSH to copy the files over to the NAS
Hope that helps others
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!