Fan control?

Re: Fan control?

Postby fvdw » Tue Aug 04, 2020 8:11 pm

yes, I already discoverd it, I just want to be sure what device name is stored in your case
I will post a patch asap
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Fan control?

Postby fvdw » Tue Aug 04, 2020 8:31 pm

attached another patch

you will need to reboot the nwspmax after installing it
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Fan control?

Postby jaker » Wed Aug 05, 2020 5:13 pm

I installed the patch and rebooted. One thing I noticed was "Current System Status: No Alert" is shown, but I couldn't find anything more about the fan control from browser UI.

I'll check how the fan operates with standby.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: Fan control?

Postby Jocko » Thu Aug 06, 2020 7:50 am

Hi

jaker wrote:e thing I noticed was "Current System Status: No Alert" is shown, but I couldn't find anything more about the fan control from browser UI.
It is the expected behaviour.
The firmware displays a critical alert only if the fan daemon is not running and it is this one which controls the fan.

You can see if the daemon is running with the command
Code: Select all
ps axf
(you should have a line with /usr/sbin/fan-d)
jaker wrote:Clicking on "Enable/Disable Boot Jobs" does not do anything. It shows briefly "Saving Changes" but status does not change from disabled to enabled.
It is also the expected behaviour as the firmware does not find any script in /fvdw/cron- boot. (=> nothing to do at the nas booting and then the firmware disables the feature)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fan control?

Postby jaker » Thu Aug 06, 2020 8:52 pm

Code: Select all
root@ZENfvdwsl-base:/ # ps axf
...
  830 ?        Ss     0:00 /bin_cab/fannwsp2max


Excellent.

Seems like temp limit is 47C. It didn't run that hot yet.

Code: Select all
root@ZENfvdwsl-base:/bin_cab # /bin_cab/fannwsp2max
fannwsp2max daemon version 1 26-may-2020 started
fannwsp2max: temperature limit = 47 oC
fannwsp2: disks installed: sda=1 sdb=1
fannwsp2max: an driver path is /sys/devices/platform/gpio-fan/hwmon/hwmon0/
root@ZENfvdwsl-base:/bin_cab # fannwsp2max: disk temperatures sda 37 sdb 35
fannwsp2max: temperature below limit(47) fan off, temp = 37

I gave following command to get it running, but I probably started another one.
Code: Select all
root@ZENfvdwsl-base:/bin_cab # /bin_cab/fannwsp2max 36
fannwsp2max daemon version 1 26-may-2020 started
fannwsp2max: temperature limit = 36 oC
fannwsp2: disks installed: sda=1 sdb=1
fannwsp2max: an driver path is /sys/devices/platform/gpio-fan/hwmon/hwmon0/
root@ZENfvdwsl-base:/bin_cab # fannwsp2max: disk temperatures sda 38 sdb 35
fannwsp2max: temperature above limit(36) fan on, temp = 38


Anyway as I set it to standby with WOL the FAN stopped. After waking it up with WOL command the fan briefly rotated and stopped again.

Where can I change the set temperature? I'd like to set it lower.

Excellent service. Thank you for your patience and continuous efforts.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: Fan control?

Postby Jocko » Fri Aug 07, 2020 6:54 am

jaker wrote:
Code: Select all
root@ZENfvdwsl-base:/ # ps axf
...
  830 ?        Ss     0:00 /bin_cab/fannwsp2max
This is not the expected output unless you started manually the daemon.
You should have a line
Code: Select all
 1157 ?        Ss     0:08 /usr/sbin/fan-d
and should be just after the button daemon (/usr/sbin/buttonsd)

Post also
Code: Select all
 ls -l /usr/sbin/fan-d

jaker wrote:Where can I change the set temperature? I'd like to set it lower.
Currently you can not do it, the firmware uses the default threshold of the daemon.

But we can change that easily
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fan control?

Postby Jocko » Fri Aug 07, 2020 7:42 am

So now on nas booting, the firmware may use a user temp threshold on the fan daemon.

Install it by the same way as strace
Code: Select all
cp -p /etc/init.d/rcS /etc/init.d/rcS.org
plugout download 6472
unzip -d /etc/init.d /tmp/rcS.zip
chmod 755 /etc/init.d/rcS


! before any rebooting check if rcS has its run permissions:
Code: Select all
ls -l /etc/init.d/rcS
the output has to be:
Code: Select all
root@Acrab:/ # ls -l /etc/init.d/rcS
-rwxr-xr-x  1 root root 35852 2020-08-07 09:19 /etc/init.d/rcS
if it is not the case post a message here and DO NOT REBOOT the nas


Now set your custom threshold
Code: Select all
echo "xx" > /rw_fs/etc/fand
if xx is in the range 40-59, the firmware will use it on next nas booting.
To remove your custom threshold just do
Code: Select all
unlink /rw_fs/etc/fand

You have to reboot the nas so that the fan daemon uses your change

After rebooting you should have a line
Code: Select all
/usr/sbin/fan-d XX
where XX is the value stored in /rw_fs/etc/fand
You do not have the required permissions to view the files attached to this post.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fan control?

Postby jaker » Fri Aug 07, 2020 7:53 pm

Hi

Superb job. Thank you.

It looks like it works allright now. Atleast set value exists and daemon/script seems to be running.
820 ? Ss 0:00 /usr/sbin/buttonsd
986 ? Ss 0:00 /usr/sbin/fan-d 40


Setting would be great on the web page GUI, but I can manage with this allright.

I need to wait longer to get the fan running. These are the termperatures after one hour.
Code: Select all
Disk   Status   Current temperature   Max temperature   Max temperature ever reached
sda   active   35 °C   35 °C   52 °C
sdb   active   34 °C   34 °C   52 °C


Code: Select all
root@ZENfvdwsl-base:/ # ls -l /usr/sbin/fan-d
lrwxrwxrwx  1 root root 20 2020-08-07 22:17 /usr/sbin/fan-d -> /bin_cab/fannwsp2max
root@ZENfvdwsl-base:/ #


Code: Select all
root@ZENfvdwsl-base:/ # ps axf
  PID TTY      STAT   TIME COMMAND
    2 ?        S      0:00 [kthreadd]
    3 ?        I      0:00  \_ [kworker/0:0]
    4 ?        I<     0:00  \_ [kworker/0:0H]
    6 ?        I<     0:00  \_ [mm_percpu_wq]
    7 ?        S      0:00  \_ [ksoftirqd/0]
    8 ?        I      0:00  \_ [rcu_preempt]
    9 ?        I      0:00  \_ [rcu_sched]
   10 ?        I      0:00  \_ [rcu_bh]
   11 ?        I<     0:00  \_ [netns]
   12 ?        I      0:00  \_ [kworker/u2:1]
  280 ?        S      0:00  \_ [oom_reaper]
  281 ?        I<     0:00  \_ [writeback]
  283 ?        I<     0:00  \_ [crypto]
  284 ?        I<     0:00  \_ [kintegrityd]
  286 ?        I<     0:00  \_ [kblockd]
  292 ?        I<     0:00  \_ [ata_sff]
  310 ?        I<     0:00  \_ [md]
  402 ?        I<     0:00  \_ [rpciod]
  403 ?        I<     0:00  \_ [xprtiod]
  404 ?        S      0:00  \_ [kswapd0]
  416 ?        I<     0:00  \_ [nfsiod]
  417 ?        I<     0:00  \_ [cifsiod]
  418 ?        I<     0:00  \_ [cifsoplockd]
  419 ?        S      0:00  \_ [jfsIO]
  423 ?        S      0:00  \_ [jfsCommit]
  424 ?        S      0:00  \_ [jfsSync]
  425 ?        I<     0:00  \_ [xfsalloc]
  426 ?        I<     0:00  \_ [xfs_mru_cache]
  570 ?        S      0:00  \_ [scsi_eh_0]
  571 ?        I<     0:00  \_ [scsi_tmf_0]
  574 ?        S      0:00  \_ [scsi_eh_1]
  575 ?        I<     0:00  \_ [scsi_tmf_1]
  579 ?        I<     0:00  \_ [smflush]
  580 ?        S      0:00  \_ [spi0]
  581 ?        I      0:00  \_ [kworker/u2:3]
  672 ?        S<     0:00  \_ [aoe_tx0]
  673 ?        S<     0:00  \_ [aoe_ktio0]
  699 ?        I<     0:00  \_ [raid5wq]
  702 ?        I<     0:00  \_ [dm_bufio_cache]
  703 ?        I<     0:00  \_ [kmpathd]
  704 ?        I<     0:00  \_ [kmpath_handlerd]
  721 ?        I<     0:00  \_ [ipv6_addrconf]
  725 ?        I<     0:00  \_ [dsa_ordered]
  752 ?        I<     0:00  \_ [kworker/0:1H]
  753 ?        S      0:00  \_ [jbd2/sda7-8]
  754 ?        I<     0:00  \_ [ext4-rsv-conver]
  773 ?        S      0:00  \_ [jbd2/sda1-8]
  774 ?        I<     0:00  \_ [ext4-rsv-conver]
  811 ?        I<     0:00  \_ [iscsi_eh]
  834 ?        S      0:00  \_ [jbd2/sda5-8]
  835 ?        I<     0:00  \_ [ext4-rsv-conver]
 1473 ?        S      0:00  \_ [jbd2/md0-8]
 1474 ?        I<     0:00  \_ [ext4-rsv-conver]
 1493 ?        I      0:00  \_ [kworker/0:3]
 1906 ?        I      0:00  \_ [kworker/0:1]
    1 ?        Ss     0:03 init
  820 ?        Ss     0:00 /usr/sbin/buttonsd
  986 ?        Ss     0:00 /usr/sbin/fan-d 40
 1018 ?        S<s    0:00 /sbin/udevd --daemon
 1339 ?        Ss     0:00 /sbin/mdadm --monitor --daemonise --scan --delay=600
 1520 ?        Ss     0:00 /sbin/udhcpc -b -i eth0 -s /etc/api/api_dhcpc.php dhc
 1547 ?        Ss     0:00 /usr/bin/httpd -f httpd.conf -d /etc
 1548 ?        S      0:01  \_ /usr/bin/httpd -f httpd.conf -d /etc
 1859 ?        S      0:00  \_ /usr/bin/httpd -f httpd.conf -d /etc
 1551 ?        Ss     0:00 /usr/sbin/noflushd -n 15 /dev/sda /dev/sdb
 1580 ?        Ss     0:00 /usr/bin/discoverd
 1587 ?        Ss     0:00 /usr/bin/rpcbind
 1608 ?        Ss     0:00 dropbear -p 22 -r /rw_fs/etc/dropbear/dropbear_rsa_ho
 1834 ?        Ss     0:00  \_ dropbear -p 22 -r /rw_fs/etc/dropbear/dropbear_rs
 1835 pts/0    Ss     0:00      \_ -sh
 1915 pts/0    R+     0:00          \_ ps axf
 1627 ?        Ss     0:00 /usr/sbin/hostd 7200
 1650 ?        Ss     0:00 /usr/sbin/temp-guard 55
 1679 ?        Ss     0:00 /usr/sbin/crond -c /share/1100/cronjobs -L /share/110
 1720 ?        Ss     0:00 /usr/sbin/nmbd -D -l /var/log/samba
 1722 ?        Ss     0:00 /usr/sbin/smbd -D -l /var/log/samba
 1733 ?        S      0:00  \_ /usr/sbin/smbd -D -l /var/log/samba
 1734 ?        S      0:00  \_ /usr/sbin/smbd -D -l /var/log/samba
 1846 ?        Ss     0:00 /bin/ntpd -p 0.fi.pool.ntp.org -p 2.fi.pool.ntp.org
root@ZENfvdwsl-base:/ #
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

Re: Fan control?

Postby Jocko » Sat Aug 08, 2020 7:15 am

Nice !

jaker wrote:Setting would be great on the web page GUI, but I can manage with this allright.
I need to have a talking with fvdw. Either we keep this feature for advanced user or we implement it on the fs web-interface. Playing with this feature may occur bad behaviour: for example if you set a fan threshold greater than the HD temperature where the nas will be shutdown (standby wol)...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Fan control?

Postby jaker » Wed Aug 12, 2020 1:18 pm

Now I noticed that harddrives does not seem to stop spinning in Standby with WOL. Or then it starts later on again. Device was on this state overnight and device was very hot, HD temperatures were 46&48C and maximums were 48&50C. It might be possible that default thermostat functionality (47C?) started the fan when 47C was reached.

I can't recall did I manually set the device to "NAS Standby WOL" or did it go to it automatically

I tried this again second time, and after left "NAS Standby WOL" state overnight and sending WOL command to wake it up, it shows quite high temperatures.
Disk Status Current temperature Max temperature Max temperature ever reached
sda active 45 °C 48 °C 52 °C
sdb active 46 °C 47 °C 52 °C

After it has been running a while it seems to work correctly and temperatures decrease to 40C which is the set temperature.
Disk Status Current temperature Max temperature Max temperature ever reached
sda active 40 °C 48 °C 52 °C
sdb standby 39 °C 47 °C 52 °C

I think this is because disks are spinning in "NAS Standby WOL" state.
jaker
Donator VIP
Donator VIP
 
Posts: 59
Joined: Sun Oct 27, 2019 7:55 pm

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 1 guest