Additional FAN speeds

Got a feature request? Great! Post your ideas here!

Moderator: Lillian.W@AST

j-rune
Posts: 6
youtube meble na wymiar Warszawa
Joined: Fri Apr 10, 2020 8:50 pm

Additional FAN speeds

Post by j-rune »

Hi,

I have a AS6508T. A great NAS. Very powerful and all is working fine.

I am using 4 x Seagate Ironwolf Pro disks (16TB) and these run quite hot. When the fan speed is set to Audo the temperatures can reach 50 degrees celcius when the disks are used a little. I guess the fan speed is kept to Low at that time. I know that Seagate lists the operating temps to be 60 degrees, but I personally would like the drives to be a little cooler.
When putting the fan speed to Medium and the NAS is idle, the temps are around 37 degrees. The disadvantage is that the NAS is producing more noise.
So adding a FAN speed between Low and Medium can help. Is this possible?

Or.. can I use a command line to adjust the fan speed?


Thanks,
Jeroen
User avatar
orion
Posts: 3482
Joined: Wed May 29, 2013 11:09 am

Re: Additional FAN speeds

Post by orion »

I think you can try the solution that provided by sksbir. viewtopic.php?f=97&t=8948
j-rune
Posts: 6
Joined: Fri Apr 10, 2020 8:50 pm

Re: Additional FAN speeds

Post by j-rune »

orion wrote:I think you can try the solution that provided by sksbir. viewtopic.php?f=97&t=8948
Awesome! This works great.

I did made some small adjustments to the script, because it is built for systems with only one fan.

Thanks again!
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: Additional FAN speeds

Post by VladK »

delete
Last edited by VladK on Tue Jan 25, 2022 12:15 am, edited 1 time in total.
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: Additional FAN speeds

Post by VladK »

j-rune wrote:
orion wrote:I think you can try the solution that provided by sksbir. https://forum.asustor.com/viewtopic.php?f=97&t=8948
Awesome! This works great.

I did made some small adjustments to the script, because it is built for systems with only one fan.

Thanks again!
Can you write in more detail what changes you made to the script for the two-FAN server?
j-rune
Posts: 6
Joined: Fri Apr 10, 2020 8:50 pm

Re: Additional FAN speeds

Post by j-rune »

VladK wrote:
j-rune wrote:
orion wrote:I think you can try the solution that provided by sksbir. https://forum.asustor.com/viewtopic.php?f=97&t=8948
Awesome! This works great.

I did made some small adjustments to the script, because it is built for systems with only one fan.

Thanks again!
Can you write in more detail what changes you made to the script for the two-FAN server?
Apologies for the delay in responding.

If I remember correctly, at the point where the fanspeed is set, only one fan was 'set'. Since I have two fans, I simply added a line below that and 'set' the second fan (fan 1). It now looks like this:
fanctrl -setfanpwm 0 $DESIREDPOWER # fan 0
fanctrl -setfanpwm 1 $DESIREDPOWER # fan 1

I also changed the 'GRID' settings a little. You will find that part in the beginning of the script. This is mentioned just below: "GRIDxx=yy : we want power of yy if temp is xx"
I have an AS6508T and the grid from the script was made for another model. I played around with the temp vs. fanpower settings to get the most optimal settings for me (noise vs cooling).
Fyi: here are the fan speeds when using ADM of Asustor low/medium/high:
# low=45
# medium=104
# high=164

Instead of playing around with script, I really wish Asustor would make it possible to have a more customizable fan control settings within ADM. I asked for that, but apparently it is still not a priority.


Thanks,
Jeroen
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: Additional FAN speeds

Post by VladK »

j-rune wrote: If I remember correctly, at the point where the fanspeed is set, only one fan was 'set'. Since I have two fans, I simply added a line below that and 'set' the second fan (fan 1). It now looks like this:
fanctrl -setfanpwm 0 $DESIREDPOWER # fan 0
fanctrl -setfanpwm 1 $DESIREDPOWER # fan 1

Thanks,
Jeroen
Hello!
Thank you very much for your answer!
Unfortunately, I'm not a scripting expert, could you answer a few questions?
The original script on line 8 contained:
FANID=0
This variable was then used on line 100:
fanctrl -setfanpwm $FANID $DESIREDPOWER
If I understood your advice correctly, I deleted line 8, changed line 100 to:
fanctrl -setfanpwm 0 $DESIREDPOWER # fan 0
and added line 101:
fanctrl -setfanpwm 1 $DESIREDPOWER # fan 1
On line 31 added the disks: /dev/sdh /dev/sdi /dev/sdj
When I run the script manually, I get the following:

Code: Select all

./smart_fanspeed.sh -v
/dev/sda added to list with recognized temp of 38
/dev/sdb added to list with recognized temp of 38
/dev/sdc added to list with recognized temp of 38
/dev/sdd added to list with recognized temp of 40
/dev/sde added to list with recognized temp of 41
/dev/sdf added to list with recognized temp of 40
/dev/sdg added to list with recognized temp of 38
/dev/sdh added to list with recognized temp of 41
Retained devices for temperature check : /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh
sh: 36: unknown operand
20220126_12:57:27 hottest disk changed from 15 to 41,fanpower leaved unchanged at 36 36
sh: 36: unknown operand
sh: 36: unknown operand
sh: 36: unknown operand...
expression "sh: 36: unknown operand" repeats indefinitely
Could you suggest a solution to this problem?
Thanks in advance
P.S. If you have been using this script so far, could you provide your option?
AS7010T, ADM 4.0.1.ROG1
Last edited by VladK on Wed Jan 26, 2022 6:40 pm, edited 1 time in total.
j-rune
Posts: 6
Joined: Fri Apr 10, 2020 8:50 pm

Re: Additional FAN speeds

Post by j-rune »

You are running the script as admin (root)?
VladK
Posts: 8
Joined: Tue Jan 25, 2022 12:06 am

Re: Additional FAN speeds

Post by VladK »

As root
j-rune
Posts: 6
Joined: Fri Apr 10, 2020 8:50 pm

Re: Additional FAN speeds

Post by j-rune »

Ah yes, I see that you changed the FANID on line 8.

The changes I did are not using that set FANID at all. Instead I simply put the real FANID in the command: (I know, this is not the way it should but I got it working)
This is what it was:
fanctrl -setfanpwm $FANID $DESIREDPOWER

And I changed that to these two lines (since I have two fans):
fanctrl -setfanpwm 0 $DESIREDPOWER # fan 0
fanctrl -setfanpwm 1 $DESIREDPOWER # fan 1

Also I also remembered that after the upgrade to ADM4.0 I had to add the full path to the smartctrl command.
This is called on line 36 and 68 (in the original script)

This used to be:
TSTTEMP=`smartctl --all $DSKDEV|awk '/^194/ { print $10 } '`

I changed that to:
TSTTEMP=`/usr/builtin/sbin/smartctl --all $DSKDEV|awk '/^194/ { print $10 } '`


Thanks,
Jeroen
Post Reply

Return to “Feature Requests”