NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
glem
May 22, 2013Aspirant
Easy fix fan/temp OS6 issues on x86 legacy #no support
>> EDIT - 2014-04-12 <<
Before to hack your system, update first to 6.1.7. Built-in fancontrol support is there!
6.1.7 has been released: http://www.readynas.com/forum/viewtopic.php?f=1&t=76000
>> EDIT <<
Here is how to fix fan and temperature issues on legacy x86 systems running OS 6.x, until built-in support is there.
I'd previously created this post http://www.readynas.com/forum/viewtopic.php?f=51&t=70133&start=255#p393886 but it will be easier for community to have fancontrol file examples for all models in a dedicated post.
It's a very easy and reliable method to monitor fan and temperature with lm-sensors and fancontrol standard packages.
No change on GUI reports.
NO WARRANTY / NO SUPPORT !!!
with root access, execute the following commands:
edit /etc/fancontrol file and copy the following file example corresponding to your model http://www.readynas.com/forum/viewtopic.php?f=51&t=71155#p395324
or create your own /etc/fancontrol file using pwmconfig command http://www.readynas.com/forum/viewtopic.php?f=51&t=71155&p=395324#p395318
fancontrol daemon start automaticaly when you install it.
restart fancontrol daemon for changes in file /etc/fancontrol take effect
to interact with fancontrol daemon, use
You can display sensors values with sensors command
Before to hack your system, update first to 6.1.7. Built-in fancontrol support is there!
6.1.7 has been released: http://www.readynas.com/forum/viewtopic.php?f=1&t=76000
>> EDIT <<
Here is how to fix fan and temperature issues on legacy x86 systems running OS 6.x, until built-in support is there.
I'd previously created this post http://www.readynas.com/forum/viewtopic.php?f=51&t=70133&start=255#p393886 but it will be easier for community to have fancontrol file examples for all models in a dedicated post.
It's a very easy and reliable method to monitor fan and temperature with lm-sensors and fancontrol standard packages.
No change on GUI reports.
NO WARRANTY / NO SUPPORT !!!
with root access, execute the following commands:
apt-get update && apt-get upgrade
apt-get install lm-sensors fancontrol
echo "#fancontrol" > /etc/fancontrol
edit /etc/fancontrol file and copy the following file example corresponding to your model http://www.readynas.com/forum/viewtopic.php?f=51&t=71155#p395324
or create your own /etc/fancontrol file using pwmconfig command http://www.readynas.com/forum/viewtopic.php?f=51&t=71155&p=395324#p395318
fancontrol daemon start automaticaly when you install it.
restart fancontrol daemon for changes in file /etc/fancontrol take effect
/etc/init.d/fancontrol restart
to interact with fancontrol daemon, use
/etc/init.d/fancontrol stop
/etc/init.d/fancontrol start
/etc/init.d/fancontrol restart
You can display sensors values with sensors command
root@nas-xx-xx-xx:~# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +43.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +49.0°C (high = +80.0°C, crit = +100.0°C)
it8721-isa-0a10
Adapter: ISA adapter
in0: +12.19 V (min = +8.06 V, max = +10.66 V) ALARM
in1: +4.98 V (min = +2.20 V, max = +3.51 V) ALARM
in2: +3.28 V (min = +0.02 V, max = +0.18 V) ALARM
in3: +0.00 V (min = +0.00 V, max = +0.00 V) ALARM
in4: +1.02 V (min = +1.42 V, max = +2.21 V) ALARM
in5: +1.80 V (min = +1.66 V, max = +0.54 V) ALARM
in6: -12.10 V (min = -25.78 V, max = -0.01 V)
in7: +3.24 V (min = +0.00 V, max = +2.86 V) ALARM
in8: +3.34 V
fan1: 0 RPM (min = 10 RPM) ALARM
fan2: 0 RPM (min = 44 RPM) ALARM
fan3: 851 RPM (min = 11 RPM)
temp1: +0.0°C (low = +57.0°C, high = -25.0°C) ALARM sensor = thermistor
temp2: +0.1°C (low = -16.0°C, high = -123.0°C) ALARM sensor = thermal diode
temp3: +0.1°C (low = +37.0°C, high = -44.0°C) ALARM sensor = thermal diode
cpu0_vid: +2.050 V
173 Replies
Replies have been turned off for this discussion
- fastfwdVirtuoso
ATCIS wrote: find / -name syslog --> Yields nothing :( It would appear that syslog is M.I.A.
Check the process list:ps -A | grep syslogd
That should return something like "1234 ? 00:00:01 syslogd". If it returns nothing at all, syslogd isn't even running.
Tracking down WHY it isn't running might be an interesting exercise. Could be something as simple as an old lockfile preventing it from starting (to check, look in /var/run for a file called "syslogd.pid"; if you see it there even though syslogd isn't running, delete it and restart). - ATCISTutor
fastfwd wrote: ATCIS wrote: find / -name syslog --> Yields nothing :( It would appear that syslog is M.I.A.
Check the process list:ps -A | grep syslogd
That should return something like "1234 ? 00:00:01 syslogd". If it returns nothing at all, syslogd isn't even running.
Tracking down WHY it isn't running might be an interesting exercise. Could be something as simple as an old lockfile preventing it from starting (to check, look in /var/run for a file called "syslogd.pid"; if you see it there even though syslogd isn't running, delete it and restart).
I edited the crap out of my original post above. . . Check it out :)
I have to go to bed now. I have to get back up in less than 5 hours. A special THANK YOU" to fastfwd for all your guidance.
I'll catch up with you guys later. . . - fastfwdVirtuoso
ATCIS wrote: When I did the - /sys/devices/platform/it87.2576# cat temp1_input
I got 57
When I -sys/devices/platform/it87.2576# cat temp2_input
I got 31
and when I -/sys/devices/platform/it87.2576# cat temp3_input
I got -128 (so I assumed that was erroneous)
I wound up using the temp1_input as the ambient room temperature is a about 85 degrees F and 87.8 degrees F for temp2_input seemed too low to me.
The -128 is certainly erroneous. The temp3 input is clearly not being used.
The 57-degree SYS temperature is probably right; is that how hot your Ultra4 ran when you were using RAIDiator 4.2.23?ATCIS wrote: My resulting script looks like this: #!/bin/sh
#######################################################
Coretemp="/sys/devices/platform/coretemp.0/temp2_input"
Systemp="/sys/devices/platform/it87.2576/temp1_input"
Ct=`cat $Coretemp`
C=`expr $Ct / 1000`
St=`cat $Systemp`
S=`expr $St / 1`
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:$C:$S
So do I need to do anything to make it GO? My temperature graph is still quite empty. . .
You stil need to modify your crontab, as described by Iridabike, in order to make the script automatically execute every minute.ATCIS wrote: Any chance that the file in there named "systemd" is important?
Not to the syslog mystery, no. Unfortunately, I don't run OS6 so I can't suggest anything further. With luck, someone who does run OS6 will be able to tell you how to get syslogd running again. - ATCISTutor
fastfwd wrote: The -128 is certainly erroneous. The temp3 input is clearly not being used.
The 57-degree SYS temperature is probably right; is that how hot your Ultra4 ran when you were using RAIDiator 4.2.23?
Probably not, but I honestly don't remember without a shadow of a doubt. I may switch it to temp2_input even though 31 degrees C seems too low. On the GUI I have three thermometers: AUX = 40 C / 104 F, CPU = 43 C / 109 F, and System = 40 C / 104 F. Which leads me to believe that those graphical indications are also erroneous or I'm CAT'ing the wrong files. Wouldn't you agree that for a device residing in an 80 to 85 degree ambient environment that a System temperature of 134.6 F seems kind of high when the CPU temperature is only 109.4 F?
I've changed the script accordingly. It now looks like this:#!/bin/sh
#######################################################
Coretemp="/sys/devices/platform/coretemp.0/temp2_input"
Systemp="/sys/devices/platform/it87.2576/temp2_input"
Ct=`cat $Coretemp`
C=`expr $Ct / 1000`
St=`cat $Systemp`
S=`expr $St / 1`
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:$C:$S
Additionally, my /etc/crontab file now looks like this (perhaps my script file is okay, I just dorked up the crontab):# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
# Delete the lines below if things get wacky. They are supposed to enable
# temperature graphing in the Frontview GUI. Good luck!
*/1 * * * * root /usr/local/etc/scripts/UpdateTempGraph.cron
You thoughts?
Thanks again!- Anton_TutorNeed some help!
Running ReadyNAS 4 Ultra with OS6.
In the performance tab, the fan profiles silent, balanced and cool are ignored when i switch between them.
This worked with OS4 though.
I replaced the loud and noisy fan with a Noctua NF-A9 FLX.
The GUI reports correct RPM and temperatures for CPU and System.
But there are just no control of the fan it seems.
Included liblmsensors are using ULTRA4.conf as the configuration file.
system.conf -> /etc/frontview/sensors/ULTRA4.conf- Anton_Tutor
Any updates to this? Any solutions?
- IridabikeAspirantAre you running 6.0.8? Netgear changed some stuff around and you need to patch readynasd to make it work correctly.
To start with is this file present on your machine:
/run/readynasd/stats/temperature_int_deg.rrd ?
If it is then try entering this command about 10-15 times over a couple of minutes and see what happens in the graph:
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:25:50 - ATCISTutor
Iridabike wrote: Are you running 6.0.8? Netgear changed some stuff around and you need to patch readynasd to make it work correctly.
YES. EDIT: When you say "patch readynasd" could you be more specific? Details please, THANK YOU!Iridabike wrote: To start with is this file present on your machine:
/run/readynasd/stats/temperature_int_deg.rrd ?
YESIridabike wrote: If it is then try entering this command about 10-15 times over a couple of minutes and see what happens in the graph:
rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:25:50
Trying that now. I will report back in 30 minutes. . .
EDIT: YES! I'm seeing stuff on the graph now. So what must I do to automate this process? I assume the crontab entry is supposed to do that. . . - IridabikeAspirantYou should see some data in the graph although I suspect it will not be a two straight lines at 25 and 50 as readynasd is also writing to the file every minute with some false temperatures.
If you are now seeing some data in the graph then the problem may be your script. Try running your script from the command line a few times and check that it logs something.
When you have it logging something by itself you will need to fix the problem readynasd corrupting your data. I have patched the readynasd elf to update a copy of the file rather than corrupt the data. To do this you need a hex editor to mod readynasd. Look for this text in the file:
/usr/bin/rrdtool update /run/readynasd/stats/temperature_int_deg.rrd N:%lld:%lld
.
and change it to something like:
/usr/bin/rrdtool update /run/readynasd/stats/temperature_int_deg.bak N:%lld:%lld
Note there are similar lines in the file but only one matches exactly
At startup I use another script to copy the .rrd to .bak just to give readynasd something to write to. It needs to be done at every startup as the files in this folder are deleted.
You may want to backup your readynasd first just incase something goes wrong. Also please be aware this could mess things up if you get things wrong so please only do this if you are confident and are happy to take the risk. - ATCISTutor
Iridabike wrote: You should see some data in the graph although I suspect it will not be a two straight lines at 25 and 50 as readynasd is also writing to the file every minute with some false temperatures.
You are correct sir.Iridabike wrote: If you are now seeing some data in the graph then the problem may be your script
I have no doubt. . . :cry:Iridabike wrote: To do this you need a hex editor to mod readynasd. Look for this text in the file:
Yeah, see my post above RE: "Linux Idiot" I think I should abandon this effort right here. I've done the hex editing thing in the past, sometimes it goes okay, sometimes not so much.Iridabike wrote: Also please be aware this could mess things up if you get things wrong so please only do this if you are confident and are happy to take the risk.
Yeah, not so much. . . Even though I would love to get the temperature graph working, it's not important enough to risk screwing things up entirely. I appreciate your and fastfwd's help on this, but I have to be realistic about my limitations in this area. I'm primarily a WinDoze guy, I just tinker with Linux stuff from time to time for fun and education.
Perhaps one day down the road, some ambitious person will compile a preconfigured patch or binary package that fixes some of these non-functional aspects of running OS6 on legacy ReadyNAS devices. . . :naskiller:
Thanks again for trying to lend a hand!
P.S: When you said "Try running your script from the command line a few times and check that it logs something." For educational purposes could you give me an example of what the proper syntax for such a command would be? - IridabikeAspirantTo run your script:
1) cd to the directory where your script lives
2) enter the name of your script preceded by ./
Eg.
./myscript
This can be handy when debugging a script as errors are returned on screen. - ATCISTutor
Iridabike wrote: To run your script:
1) cd to the directory where your script lives
2) enter the name of your script preceded by ./
Eg.
./myscript
This can be handy when debugging a script as errors are returned on screen.
Excellent! Thank you so much for holding the hand of this Linux neophyte. . . :oops:
One more question: What do you know about this?fastfwd wrote: ATCIS wrote: find / -name syslog --> Yields nothing :( It would appear that syslog is M.I.A.
Check the process list:ps -A | grep syslogd
That should return something like "1234 ? 00:00:01 syslogd". If it returns nothing at all, syslogd isn't even running.
Tracking down WHY it isn't running might be an interesting exercise. Could be something as simple as an old lockfile preventing it from starting (to check, look in /var/run for a file called "syslogd.pid"; if you see it there even though syslogd isn't running, delete it and restart).
Any chance you could shed some light on how to watch the ReadyNAS OS6 syslog?
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!