getencstat and SGPIO/I2C

Status
Not open for further replies.

leonroy

Explorer
Joined
Jun 15, 2012
Messages
77
I've compiled getencstat from source on a FreeBSD 9.3 box and dropped it onto my FreeNAS system.

The intention is to monitor the enclosure or at least see what I can pull from it.

However when executing the command:
# ./getencstat -v /dev/mps0

I get:
ENCIOC_GETNELM: Inappropriate ioctl for device

Anyone here played around with this command or any sort of enclosure management?

Also as an aside on my backplane there are options for SGPIO and I2C.

SGPIO seems very targeted on offering HBA to backplane reporting using LEDs. I2C however seems a more comprehensive and general purpose spec. Anyone know which is 'better'?

From what I gather TrueNAS implements some enclosure management but it seems that FreeNAS does not? Does that mean I2C and SGPIO without software integration on the OS side offer no benefit or is there some HBA to backplane communication which doesn't require the OS (ie. failed drive light etc.)?
 

mav@

iXsystems
iXsystems
Joined
Sep 29, 2011
Messages
1,428
getencstat tool is supposed to work with kernel driver, supporting SCSI SES devices. There is no known tools now to control SGPIO/I2C outputs of LSI adapters. AHCI kernel driver emulates SES device for SGPIO pins, when supported by hardware, but LSI driver does not do it now. TrueNAS uses supported SAS expander backplanes.
 

leonroy

Explorer
Joined
Jun 15, 2012
Messages
77
I see. Just out of curiosity would you know out of SGPIO and I2C which is the 'better' option for backplane interrogation and support?

For instance what does TrueNAS use?
 

lumaforge

Cadet
Joined
Jun 3, 2015
Messages
4
Know this is a year later, but with a supported backplane that takes the SAS sideband, you can use the sas3ircu command to flash locations directly. I've created scripts for my business (sorry, unavailable for sharing, but doable!) to associate information between camcontrol, sas3ircu and other locations to be able to tag a drive, light an LED, and use the tags to light the proper location based on the drive being targeted. This is using an LSI 9300-8i hba with an Intel expander.

-E
 
Status
Not open for further replies.
Top