Solved: Lenovo SA120 fan control issues (sg3_utils via python) with Xpenology/Synology DSM

Alfa147x

Member
Feb 7, 2014
136
21
18
I have a Lenovo SA120 and I'm trying to use this fan control script to manually set the fan speed for the disk array.


The requirement is to use sg3_utils. Which I've installed by using oPKG. I get to this point the script does not respond to ctrl-c.

1607493337523.png

I have the disk array connected via sas card in vmware:
1607493360859.png




Looking for suggestions on how to troubleshoot




---
Edit: It responded to ctrl-c with this:
Code:
Enclosure found on /dev/sg14
Enclosure not found on /dev/sg13
Enclosure not found on /dev/sg12
Enclosure not found on /dev/sg11
Enclosure not found on /dev/sg10
Enclosure not found on /dev/sg9
Enclosure not found on /dev/sg8
Enclosure not found on /dev/sg7
Enclosure not found on /dev/sg6
Enclosure not found on /dev/sg5
Enclosure not found on /dev/sg4
Enclosure not found on /dev/sg3
Enclosure not found on /dev/sg2
Enclosure not found on /dev/sg1
Enclosure not found on /dev/sg0
Enclosure found on /dev/bsg/34:0:11:0
Enclosure not found on /dev/bsg/end_device-34:0:11
Enclosure not found on /dev/bsg/34:0:10:0
^CTraceback (most recent call last):
  File "fancontrol.py", line 136, in <module>
    main()
  File "fancontrol.py", line 126, in main
    devices = find_sa120_devices()
  File "fancontrol.py", line 64, in find_sa120_devices
    output = check_output([sg_ses_binary, '--maxlen=32768', device], stderr=STDOUT)
  File "/usr/lib/python2.7/subprocess.py", line 568, in check_output
    output, unused_err = process.communicate()
  File "/usr/lib/python2.7/subprocess.py", line 792, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt
 

Attachments

Last edited: