UPDATE: doesn't seem like it's possible... truenas/sg_ses doesn't see the enclosure at all when the card is in IT mode. :(
I installed it via the deb file so that I don't have to mess with restricted apt
permissions truenas comes with.
To download: wget http://ftp.de.debian.org/debian/pool/main/s/sg3-utils/sg3-utils_1.45-1_amd64.deb
To install: dpkg -i sg3-utils_1.45-1_amd64.deb
To test that it works, run: sg_map
Example sg_map
output:
/dev/sg0 /dev/sdb
/dev/sg1 /dev/sda
/dev/sg2 /dev/sdc
/dev/sg3 /dev/sdf
/dev/sg4 /dev/sdd
/dev/sg5 /dev/sde
/dev/sg6 /dev/sdg
/dev/sg7 /dev/sdh
/dev/sg8 /dev/sdi
/dev/sg9 /dev/sdk
/dev/sg10 /dev/sdj
/dev/sg11 /dev/sdl
/dev/sg12 /dev/sdm
/dev/sg13 /dev/sdn
make sure diskfailLED.sh
is executable: chmod +x diskfailLED.sh