Hi,

Thanks everyone for your help.

I'm still quite the novice at linux, but now understand  this /sys folder and 
sysfs  a bit better (cheers Eliot and Stephen). I actually hadn't fully grasped 
that some of the stuff sitting under '/' wasn't all sitting on the disk, in 
retrospect I should have.

Also, thanks Eliot for pointing out that last page of forum thread - I had 
missed that.
I modified my files to match and have got the three hottest hard drives 
sandwiched in middle of array down to 44 degrees (as reported by gui app) with 
some tweaking of the settings.

Pushing it a bit more, there is one more tweak I would like to do with regard 
to reading a temperature, but I can't find where that might be, hopefully 
someone can point me in the right direction.

The script works off the 'core' temperature, which I'm not sure if it matches 
the CPU or System temperatures reported in the ReadyNAS gui (seems to sit about 
half way in between).  Anyway, the CPU and System temperatures never really 
budge much compared to the hard drives. What I'd really like to base the 
temperature to fanspeed calculations on is the third hard disks temperature 
(are 6 disks in the array) as that seems to be that one that runs hottest 
inside this case, but I can't find what file this temperature is reported to 
within the /sys structure so that I can work with it.

The 'coretemp' reading is in:
/sys/devices/virtual/thermal/thermal_zone0/temp
but I see nothing else in 'thermal_zone0' that corresponds to hard drive temps, 
the 'trip_point*' files looked like a maybe being as there is six of them but 
alas no, seem to hold thresholds for something.

/sys/devices/virtual/thermal/thermal_zone0   listing...

lrwxrwxrwx  1 root root    0 Oct 14 10:25 cdev0 -> ../cooling_device4
-r--r--r--  1 root root 4096 Oct 14 10:27 cdev0_trip_point
lrwxrwxrwx  1 root root    0 Oct 14 10:27 cdev1 -> ../cooling_device3
-r--r--r--  1 root root 4096 Oct 14 10:25 cdev1_trip_point
lrwxrwxrwx  1 root root    0 Oct 14 10:27 cdev2 -> ../cooling_device2
-r--r--r--  1 root root 4096 Oct 14 10:27 cdev2_trip_point
lrwxrwxrwx  1 root root    0 Oct 14 10:27 cdev3 -> ../cooling_device1
-r--r--r--  1 root root 4096 Oct 14 10:27 cdev3_trip_point
lrwxrwxrwx  1 root root    0 Oct 14 09:58 cdev4 -> ../cooling_device0
-r--r--r--  1 root root 4096 Oct 14 10:27 cdev4_trip_point
lrwxrwxrwx  1 root root    0 Oct 14 10:27 device -> 
../../../LNXSYSTM:00/LNXSYBUS:01/LNXTHERM:00
-rw-r--r--  1 root root 4096 Oct 14 10:27 mode                            ( 
enabled )
-rw-r--r--  1 root root 4096 Oct 14 10:27 passive                         ( 0 )
-rw-r--r--  1 root root 4096 Oct 14 10:27 policy                            ( 
step_wise )
drwxr-xr-x  2 root root    0 Oct 14 09:05 power
lrwxrwxrwx  1 root root    0 Oct 14 10:27 subsystem -> ../../../../class/thermal
-r--r--r--  1 root root 4096 Oct 14 09:22 temp
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_0_temp           ( 106000 )
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_0_type            ( 
critical   )
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_1_temp           (   85000 
)
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_1_type            ( active 
) 
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_2_temp           (   55000 
)
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_2_type            ( active 
)
-r--r--r--  1 root root 4096 Oct 14 10:26 trip_point_3_temp           (   0 )
-r--r--r--  1 root root 4096 Oct 14 10:26 trip_point_3_type            ( active 
)
-r--r--r--  1 root root 4096 Oct 14 10:26 trip_point_4_temp           (   0 )
-r--r--r--  1 root root 4096 Oct 14 10:27 trip_point_4_type            ( active 
)
-r--r--r--  1 root root 4096 Oct 14 10:26 trip_point_5_temp           (   0 )
-r--r--r--  1 root root 4096 Oct 14 10:26 trip_point_5_type            ( active 
)
-r--r--r--  1 root root 4096 Oct 14 10:27 type
-rw-r--r--  1 root root 4096 Oct 14 10:27 uevent


Up one level it has:

drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device0
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device1
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device2
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device3
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device4
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device5
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device6
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device7
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device8
drwxr-xr-x  3 root root 0 Oct 13 11:22 cooling_device9
drwxr-xr-x  3 root root 0 Oct 14 10:27 thermal_zone0
drwxr-xr-x  3 root root 0 Oct 13 11:22 thermal_zone1

searching for what device these point to: 

# ls -alR /sys/devices/virtual/thermal/ | grep device

/sys/devices/virtual/thermal/cooling_device0:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> ../../../platform/PNP0C0B:00
/sys/devices/virtual/thermal/cooling_device1:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> ../../../platform/PNP0C0B:01
/sys/devices/virtual/thermal/cooling_device2:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> ../../../platform/PNP0C0B:02
/sys/devices/virtual/thermal/cooling_device3:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> ../../../platform/PNP0C0B:03
/sys/devices/virtual/thermal/cooling_device4:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> ../../../platform/PNP0C0B:04
/sys/devices/virtual/thermal/cooling_device5:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> 
../../../LNXSYSTM:00/LNXCPU:00
/sys/devices/virtual/thermal/cooling_device6:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> 
../../../LNXSYSTM:00/LNXCPU:01
/sys/devices/virtual/thermal/cooling_device7:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> 
../../../LNXSYSTM:00/LNXCPU:02
/sys/devices/virtual/thermal/cooling_device8:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> 
../../../LNXSYSTM:00/LNXCPU:03
/sys/devices/virtual/thermal/cooling_device9:
lrwxrwxrwx  1 root root    0 Oct 14 10:43 device -> 
../../../LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/device:3e
lrwxrwxrwx  1 root root    0 Oct 14 10:27 device -> 
../../../LNXSYSTM:00/LNXSYBUS:01/LNXTHERM:00
/sys/devices/virtual/thermal/thermal_zone1:
lrwxrwxrwx  1 root root    0 Oct 14 10:41 device -> 
../../../LNXSYSTM:00/LNXSYBUS:01/LNXTHERM:01

Doesn't seem to be anything that would match up to 6 devices (hard drives) in 
the list.

Any idea where I should look for the hard drive temperatures?

Regards,
  Bryce Stenberg.


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Eliot 
Blennerhassett

On 13/10/15 16:26, Bryce Stenberg wrote:
> all based on a discussion at
> https://community.netgear.com/t5/New-to-ReadyNAS/How-to-control-fanspeed-on-a-RN104/td-p/911970

Did you see the 3rd to last (newest) post here:

https://community.netgear.com/t5/New-to-ReadyNAS/How-to-control-fanspeed-on-a-RN104/td-p/911970/page/7#

"I have just reworked the original script to work on FW Version 6.4
(they seem to have changed how things work)

Main changes I have found:

- PWM control didnt seem to be in the device list - not needed with
respect to the next point!"
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
_______________________________________________
Linux-users mailing list
[email protected]
http://lists.canterbury.ac.nz/mailman/listinfo/linux-users

Reply via email to