So I have some updates on the LED light/SES-2/SPGIO stuff. As mentioned activity LED's work out of the box. I will admit that I'm not deep into understanding all of the enclosure management stuff, I never really bothered in the past or if it was that important I'd have a vendor solution. HOWEVER, I think what I have here is very useful and promising. I threw some spart 1TB disks I had laying around to do some testing.
Using the Norco reverse breakout cables (sold on newegg, everyone has seen them), no SGPIO connection or anything, I'm able to blink the red lights on the case and the backplane shows up in FreeNAS/BSD.
So clearly the motherboard and FreeBSD are aware of the LSI backplane/expander, somehow. :)
So next I went digging into FreeBSD options for SES-2 Enclosure Management. I came across a port of sg3_utils, found
. VERY simple to install. Had to look into the commands, and they have a pretty nice manual
. The command we are looking to use is "sg_ses" and that info is
. So once I had that in place I ran some commands to see what I could make work. :)
To blink disk0 red LED and than to clear it.
This is shorthand. The part "-x 0" stands for '--dev-slot-num=0' and identifies the disk you want to perform operations on. The -S is shorthand for set and -C is for clear.
Code:
[root@freenas] ~# sg_ses -j -ff /dev/ses0
LSI CORP SAS2X28 0717
Primary enclosure logical identifier (hex): 50030480019578ff
Slot 01 [0,0] Element type: Array device slot
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Additional Element Status:
Transport protocol: SAS
number of phys: 1, not all phys: 0, device slot number: 0
phy index: 0
device type: no SAS device attached
target port for: SATA_device
attached SAS address: 0x50030480019578ff
SAS address: 0x50030480019578ec
phy identifier: 0x0
Slot 02 [0,1] Element type: Array device slot
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Additional Element Status:
Transport protocol: SAS
number of phys: 1, not all phys: 0, device slot number: 1
phy index: 0
device type: no SAS device attached
target port for: SATA_device
attached SAS address: 0x50030480019578ff
SAS address: 0x50030480019578ed
phy identifier: 0x0
Slot 03 [0,2] Element type: Array device slot
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Additional Element Status:
Transport protocol: SAS
number of phys: 1, not all phys: 0, device slot number: 2
phy index: 0
device type: no SAS device attached
target port for: SATA_device
attached SAS address: 0x50030480019578ff
SAS address: 0x50030480019578ee
phy identifier: 0x0
Slot 04 [0,3] Element type: Array device slot
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Additional Element Status:
Transport protocol: SAS
number of phys: 1, not all phys: 0, device slot number: 3
phy index: 0
device type: no SAS device attached
target port for: SATA_device
attached SAS address: 0x50030480019578ff
SAS address: 0x50030480019578ef
phy identifier: 0x0
Temperature [1,0] Element type: Temperature sensor
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Temperature=19 C
Buzzer [3,0] Element type: Audible alarm
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Tone indicator: Info=1, Non-crit=1, Crit=1, Unrecov=1
5V [4,0] Element type: Voltage sensor
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Voltage: 5.08 volts
12V [4,1] Element type: Voltage sensor
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Voltage: 11.98 volts
5V Line Current Sensor [5,0] Element type: Current sensor
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Current: 0.76 amps
12V Line Current Sensor [5,1] Element type: Current sensor
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Current: 0.36 amps
Enclosure [7,0] Element type: Enclosure
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Primary Expander [8,0] Element type: SAS expander
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, Fail=0
Additional Element Status:
Transport protocol: SAS
number of phys: 24
SAS address: 0x80040350ff789501
[0] connector element index: 0
[1] connector element index: 0
[2] connector element index: 0
[3] connector element index: 0
[4] connector element index: 1
[5] connector element index: 1
[6] connector element index: 1
[7] connector element index: 1
[8] no attached connector
[9] no attached connector
[10] no attached connector
[11] no attached connector
[12] connector element index: 4
[13] connector element index: 5
[14] connector element index: 6
[15] connector element index: 7
[16] connector element index: 8
[17] connector element index: 9
[18] connector element index: 10
[19] connector element index: 11
[20] connector element index: 12
[21] connector element index: 13
[22] connector element index: 14
[23] connector element index: 15
Upstream Connector (Primary) [9,0] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, Mini SAS 4i receptacle (SFF-8087) [max 4 phys]
Connector physical link=0xff, Fail=0
Downstream Connector (Primary) [9,1] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, Mini SAS 4i receptacle (SFF-8087) [max 4 phys]
Connector physical link=0xff, Fail=0
Upstream Connector (Secondary) [9,2] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, Mini SAS 4i receptacle (SFF-8087) [max 4 phys]
Connector physical link=0xff, Fail=0
Downstream Connector (Secondary) [9,3] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, Mini SAS 4i receptacle (SFF-8087) [max 4 phys]
Connector physical link=0xff, Fail=0
Drive Connector 00 [9,4] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 01 [9,5] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 02 [9,6] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 03 [9,7] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 04 [9,8] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 05 [9,9] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 06 [9,10] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 07 [9,11] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 08 [9,12] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 09 [9,13] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 10 [9,14] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
Drive Connector 11 [9,15] Element type: SAS connector
Enclosure Status:
Predicted failure=0, Disabled=0, Swap=0, status: OK
Ident=0, SAS Drive backplane receptacle (SFF-8482) [max 2 phys]
Connector physical link=0x0, Fail=0
So, from this info I feel like I can conclude that SES-2 works in this setup. It seems to see everything and provide status information and controls them. I haven't tested everything though, like buzzers. To Ericloewe point however, this would lack FreeNAS integration I believe. Basically you can run this stuff via command line but FreeNAS I don't believe will trigger any of this (or ZFS). That is most likely what TrueNAS does, it builts that layer into the software (not sure what they use instead of sg3_util).
This is good enough for me though, because it would seem to me that the setup supports it IF that functionality is ever added into FreeNAS or it is used with a software that does.