> On 21 Sep 2019, at 02:36, Garrett Wollman <woll...@hergotha.csail.mit.edu> 
> wrote:
> 
> In article <20190920155304.gn3...@zxy.spb.ru>, s...@zxy.spb.ru writes:
> 
>> Location of device in multi-chassis storage system is different story.
>> I am don't know how to field engineer insert disks in chassis.
>> For me simple is find in /var/run/dmesg.boot S/N <=> daXY mapping and
>> turn ON led by sas2ircu.
> 
> sesutil does this for you!
> 
> # sesutil locate daXY on
> # sesutil locate daXY off
> 
> So long as your enclosure supports SES (all the modern ones I've seen
> do) and is enumerable by ses(4).

FWIW I find it doesn't work on the Supermicro chassis (SYS-5019S-MR) we use 
with SATA disks.
[chumphon 2:42] ~> sudo sesutil locate ada0 on
sesutil: Count not find the SES id of device 'ada0'

(Also I just noticed a spelling error in the above, "Count" should be "Could")

[chumphon 2:42] ~> sudo sesutil map
ses0:
        Enclosure Name: AHCI SGPIO Enclosure
        Enclosure ID:                0
        Element 0, Type: Array Device Slot
                Status: Unsupported (0x00 0x00 0x00 0x00)
        Element 1, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 000
        Element 2, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 001
        Element 3, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 002
        Element 4, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 003
        Element 5, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 004
        Element 6, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 005
        Element 7, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 006
        Element 8, Type: Array Device Slot
                Status: Unknown (0x06 0x00 0x00 0x00)
                Description: SLOT 007

Using led(4) works:
echo 1 | sudo tee /dev/led/ahci0.X.fault 
(The X lines up with the "ahcich4" part of dmesg for adaX)
although I find you can only turn the LED on and not off which limits it's 
usefulness somewhat..

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum


_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to