On Sat, Apr 12, 2014 at 12:37:55AM -0700, Greg Zartman wrote:
>    On Fri, Apr 11, 2014 at 10:22 PM, Joshua M. Clulow
>    <[1][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"
> 
>      Hopefully you'll see a bunch of records for the disks attached to each
>      controller, like this:
>           devhdl 11, sasaddress 5000cca01c46f829, phymask f,devinfo 401
>           throttle 20, dr_flag 0, m_t_ncmds 0, enclosure 2, slot_num 7
> 
>    Unfortunately, the enclosure and slot number on my RAID card seem to be
>    somewhat dynamic. I tried matching up the slot number reported to a 
> physical
>    drive slot by pulling a drive and then looking at the drive ID, but 
> couldn't
>    get the two to line up.   Could also be that I've caught a short term case
>    of dyslexia. :)
>    I ended up reverting to more of Ian's method.  I pulled one half of my
>    mirrors, one at a time, and then wrote the slot number down next to the
>    drive ID.   Now I can label the drive slots and I'll be a happy camper.

At least on S11 (but I guess on Illuos it is the same) LSI HBAs are enumerated 
based on the PCI address aka Seg:Bus:Dev:Fn (e.g. mpt_sas0 .. 00:02:00:00,
mpt_sas1 .. 00:04:00:00, mpt_sas2 .. 00:81:00:00, ...) and thus are
obviously related to the PCI slot they are attached to. On the HBA phy
0..3 correspond to wide port 0, phy 4..7 to wide port 1, and so on
(IIRC, LSI SAS-HBA wide ports get enumerated clockwise, starting @rear:bottom).
At least on SuperMicro BPN-SAS-213A Backplane, wide port 0 corresponds to
HDD0..3 starting at the left (front view), wide port 1 to HDD4..7, and so on.

E.g. have a look at
http://iws.cs.uni-magdeburg.de/~elkner/s11/location/F216A-DE5,bay_labels
Feel free to play around with diskutil.sh from
http://iws.cs.uni-magdeburg.de/~elkner/s11/location/ to get more infos
for your system ;-)

Have fun,
jel.
-- 
Otto-von-Guericke University     http://www.cs.uni-magdeburg.de/
Department of Computer Science   Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany         Tel: +49 391 67 52768


-------------------------------------------
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