Register for the iXsystems Community to get an ad-free experience

Fan script for X9 motherboards?

Byggare

Dabbler
Joined
Jul 14, 2018
Messages
10
Hey guys,

my build is awfully loud and i tried to get a few of the fan scripts working, seen tons of them on the forum but kept getting errors. I stumbled on that apparently x9scm-f cant take raw commands which kinda sucks. Does anyone of you have a script/workaround for this?

Thanks in advance!
 

charlie89

Explorer
Joined
Dec 26, 2013
Messages
55
Hi,

your X9SCM-F board uses the same Nuvoton WPCM450 BMC controller as my X9DRi-F board.
I can confirm that they take raw commands, they are just a little bit different than on the X10 and X11 boards.

I'll post my script in the next few days, which is a modified version of the Supermicro PID logic fan script from the ressources section.
 

charlie89

Explorer
Joined
Dec 26, 2013
Messages
55
Hey,

As requested, here is a fan script for Supermicro X9 Boards using an Nuvoton WPCM450 BMC chip.
The script is a modified version of the Supermicro PID Logic Fan Script spinpid2.sh.

IPMI raw commands are gathered from https://www.supermicro.com/support/faqs/faq.cfm?faq=15634 and https://www.reddit.com/r/homelab/comments/8fhomj/getting_those_supermicro_x9_motherboard_fans.

ipmitool raw 0x30 0x91 0x5A 0x3 0x11 0x7f sets FANA-B to half speed.
ipmitool raw 0x30 0x91 0x5A 0x3 0x10 0x7f sets FAN1-4 to half speed.
ipmitool raw 0x30 0x91 0x5A 0x3 0x10 0xff sets FAN1-4 to full speed.

Please note: When i modified this script, i had already configured full fan mode via ipmi web interface.
Therefore this script may not enable full fan mode. Please enable it manually, otherwise the ipmi fancontrol will interfere with this script.
This script is designed to run in a virtual machine and therefore accesses ipmi over the network.
Please add your ipmi login credentials in the line beginning with "IPMITOOL=" or change it to the standard hardware access mode. And don't forget to remove '.txt' from the filename, because this forum doesn't allow .sh files :rolleyes:

I hope this makes all your servers quiet ;)
 

Attachments

  • spinpid2.sh.txt
    21.6 KB · Views: 831

esamett

Patron
Joined
May 28, 2011
Messages
345
This command works for my X9DRi-F. I tried the "half speed command and stress tested my system with a scrub. IPMI reported a system fan speeds of around 5000 rpm. I cycled through my array until I found the hottest drive;
smartctl -a /dev/da13 | grep -i temperature.

Once temp hig 34'C I increased the fan speed factor by one until temps started to drop. I settled upon:
ipmitool raw 0x30 0x91 0x5A 0x3 0x10 0xaf
for around 5700 rpm and disk temp around 33'C.

I presume I would have to enter this command each time the sytem boots. I need to learn more.

Regarding the above script, I found a couple of related downloads on this forum with similar names. There are two scripts on this forum with same name. This script says it is for the x9. I have not yet tested. I need to learn more.


----------------------------------------------------------------------------------------------------
hex dec fan speed ratio
8f 143 5000/143=35
9f 159 5175/159=32.5
af 175 5700/175=5700/175=32.6 overnight disk temp 32-33'C
bf 191
cf 207
df 223
ef 239
ff 255 7000/255=27.5
 

Knogle

Dabbler
Joined
Jan 25, 2014
Messages
28
I have created some script written in C, especially for this board. In my case it's working fine on FreeNAS.
You can adjust the settings in your case if you want a different style of fan control.
 
Top