We use sas2ircu to get this information. The mapping goes:
 - iostat -En to map device name c0* -> drive serial number
 - sas2ircu to find them in an enclosure, light the leds, etc

I've hacked up some scripts to perform inventories, and do a few other
things here:
 - https://github.com/narayandesai/diy-lsi/

We run this with IT crossflashed controllers
-nld


On Sat, Apr 12, 2014 at 12:59 AM, Greg Zartman <
[email protected]> wrote:

> On Fri, Apr 11, 2014 at 10:22 PM, Joshua M. Clulow <
> [email protected]> wrote:
>
>> Is this a rebadged LSI card that uses the "mpt_sas" driver?  If so,
>> you can likely find some details about the port numbers by running:
>>
>>    mdb -k -e "::mptsas -t"
>>
>
> That did the trick:
>
>   The SCSI target information
>
>                  devhdl 9, sasaddress 50014ee0abec1063, phymask 10,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 7
>
>                  devhdl a, sasaddress 50014ee0ac22159f, phymask 20,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 6
>
>                  devhdl b, sasaddress 5000c5001172fc5d, phymask 40,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 5
>
>                  devhdl c, sasaddress 5000c5000e323437, phymask 80,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 4
>
>                  devhdl d, sasaddress 5000c5000dde3d5a, phymask 4,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 4, enclosure 1,
> slot_num 1
>
>                  devhdl e, sasaddress 5000c5001ec0600f, phymask 1,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 3
>
>                  devhdl f, sasaddress 5000c5000dde814b, phymask 2,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 2
>
>                  devhdl 10, sasaddress 5000c50011f082e2, phymask 8,devinfo
> 881
>                  throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 1,
> slot_num 0
>
>
> This actually makes sense now based upon what I was seeing from the format
> command.  I have the cabling all screwed up, which is why I was getting
> confused about which disks I was working with in my pool.
>
> Thanks.
>
> Greg
> *smartos-discuss* | 
> Archives<https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/22559750-d844ff39> |
> Modify<https://www.listbox.com/member/?&;>Your Subscription
> <http://www.listbox.com>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to