NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
RangeMethod
Jun 17, 2013Aspirant
ReadyNAS RN 104 Automatic FAN-Control
Hi All,
I have a Big Problem with my New (2 Weeks old) ReadyNAS 104.
When i have a look at the WEB-UI under the Performance TAB i see the FAN is always running at only ~875 rpm.
After a fresh start, the FAN is about 11200-1400 rpm, that looks normal i think. But then after 10 Minutes, its again down at 875 rpm.
My Disk are permanently at 44C degrees, and my CPU ist all the Time at about 60-65C degrees.
It looks like that pwm is not working correctly, or not configured correctly.
PWM is working fine, i tried it with pwmconfig at Console Level.
Do you have any Ideas whre i can Check that?
Greetz Sebastian
I have a Big Problem with my New (2 Weeks old) ReadyNAS 104.
When i have a look at the WEB-UI under the Performance TAB i see the FAN is always running at only ~875 rpm.
After a fresh start, the FAN is about 11200-1400 rpm, that looks normal i think. But then after 10 Minutes, its again down at 875 rpm.
My Disk are permanently at 44C degrees, and my CPU ist all the Time at about 60-65C degrees.
It looks like that pwm is not working correctly, or not configured correctly.
PWM is working fine, i tried it with pwmconfig at Console Level.
Do you have any Ideas whre i can Check that?
Greetz Sebastian
36 Replies
Replies have been turned off for this discussion
- Thnx, didn't know that. I'll change it back and put the script in /root
What temperature settings are you using in the script? Overhere i'm using the default one. 45 min and 65 max - moseleypjAspirantNo problem, let me know if you need any more help with that script :)
Here's the settings I've currently got running on both my RN102 devicesMAXFAN=100 # Maximum operable speed
MINFAN=0 # Minimum operable speed
MINPWM=75 # PWM Limit
MAXPWM=255 # PWM Limit
MINTEMP=42 # Min temp -> Fan slowest
MAXTEMP=58 # Max temp -> Fan fastest
NEWSPEED=50 # Initial fan speed (%)
Here's the fan and temperature over the last 4 hours from my first RN102 with a 3TB WD Red. It's been used to play HD videos over the network to our Raspberry Pi for the last 5 hours or so.

This is the other NAS which is just idling at the moment with 2x 1TB WD Green HDDs:

On a different note do you know how to integrate those graphs in to the frontview/dashboard control panel as seen in Easy fix fan/temp OS6 issues on x86 legacy #no support thread? - moseleypjAspirantI forgot to add that if you want cooler operation or minimum noise you can do so by editing mainly the MINTEMP and MAXTEMP variables. The graph below shows two calibrations for both scenarios. Reducing both temperatures for a more conservative temperature results in the fan working faster across the range to move the operating temperature lower down the graph. Similarly for a quieter operation move the temperatures higher. Or if you're fancy, move just one of them :wink:

- aksVirtuosoThese temps do not seem too high, but compared to my NV+ v2 they are!
I have 3 WD RED 2TB installed: Disk1=22C, Disk2=23C, Disk3=22C. Fan always runs at 1365rpm. Under extended heavy load (many hours) the temps crept up to 28-30C, I've never seen anything higher. (Room temp ~22C). - StephenBGuru - Experienced UserWDC has the precisely the same power specs for the 2 TB and 3 TB red drives. (http://www.wdc.com/wdproducts/library/S ... 771442.pdf)
4 TB is a bit higher, 1 TB is a bit less. Watts/TB are lowest for the 4 TB, and highest for the 1 TB.
Personally I think your temps are fine, I wouldn't put any effort in getting making them run 2 degrees cooler under that load. For what it's worth, the lowest failure rate in the Google study was 38 degrees C (see figures 4, 5 here: http://static.googleusercontent.com/med ... ilures.pdf). Though that data is getting pretty old now. - townsmcpAspirantHi all
Sorry to sound dense, I have been trying to get this script going but to no joy :(
When I do start I get the following:
root@JTS104:/# service fanoveride start
env: /etc/init.d/fanoveride: No such file or directory
so to confirm I have a file called fanoveride at /root/ with the following:#!/bin/bash
## Variables ##
FANPWMPATH=/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-003e/pwm1
FANSPEEDPATH=/sys/devices/platform/mv64xxx_i2c.0/i2c-0/0-003e/fan1_input
CORETEMPPATH=/sys/devices/platform/axp-temp.0/temp1_input
MAXFAN=100 # Maximum operable speed
MINFAN=0 # Minimum operable speed
MINPWM=75 # PWM Limit
MAXPWM=255 # PWM Limit
MINTEMP=42 # Min temp -> Fan slowest
MAXTEMP=58 # 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/mv64xxx_i2c.0/i2c-0/0-003e/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
###################################################################
and I also have a file called fanoveride at /etc/init.d/ with the following in it:#!/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
I have made sure both files are set to 755 permissions and also ran update-rc.d fanoveride defaults. Still no joy though
thanks in advance
Townsmcp
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!