smp_utils: command line utilities for SAS expanders
Kenneth D. Merry
ken at freebsd.org
Wed Sep 7 16:43:15 UTC 2011
On Fri, Sep 02, 2011 at 12:00:05 -0400, Douglas Gilbert wrote:
> smp_utils is a package of command line utilities for
> accessing and controlling SAS expanders via the Serial
> Management Protocol (SMP). See this page:
> http://sg.danny.cz/sg/smp_utils.html
> for more information.
>
> This package was written for Linux and has been ported
> to FreeBSD (starting at smp_utils version 0.97b1). It
> uses the extensions to CAM added in late 2010 and only
> found in the yet to be released FreeBSD 9.0 .
Very cool! Thank you for porting it!
> A quirk of
> the CAM extensions is that SAS expanders (more precisely
> SMP targets) are not visible in the user space. CAM
> assumes there will be a "twin" SES device (true for the
> SAS-2 expanders I have) on the same silicon as the
> expander. Hence invocations look like this:
> smp_discover /dev/ses2
Yes, that is a shortcoming. We have plans to put the expanders in the
topology, but at the moment, CAM doesn't have any SMP probe code. So that
was the quickest way to make things work.
You can also send SMP commands to any device attached to an expander (e.g.
/dev/da5), and you should also get the information from the expander:
[root at storage-domain ~/smp_utils-0.97b1/src]# ./smp_discover /dev/da5
phy 0:S:attached:[50090a502ff80200:26 exp i(SMP) t(SMP)] 3 Gbps
phy 1:S:attached:[50090a502ff80200:27 exp i(SMP) t(SMP)] 3 Gbps
phy 2: inaccessible (phy vacant)
phy 3: inaccessible (phy vacant)
phy 4:T:attached:[5000c50026360ecd:00 t(SSP)] 3 Gbps
phy 5:T:attached:[5000c50026360ece:01 t(SSP)] 3 Gbps
phy 6:T:attached:[5000c50026360d5d:00 t(SSP)] 3 Gbps
phy 7:T:attached:[5000c50026360d5e:01 t(SSP)] 3 Gbps
phy 8:T:attached:[5000c500263cd829:00 t(SSP)] 3 Gbps
phy 9:T:attached:[5000c500263cd82a:01 t(SSP)] 3 Gbps
phy 10:T:attached:[5000c500263476b1:00 t(SSP)] 3 Gbps
phy 11:T:attached:[5000c500263476b2:01 t(SSP)] 3 Gbps
phy 12:T:attached:[5000c5002635fcd1:00 t(SSP)] 3 Gbps
phy 13:T:attached:[5000c5002635fcd2:01 t(SSP)] 3 Gbps
phy 14:T:attached:[5000c500263c532d:00 t(SSP)] 3 Gbps
phy 15:T:attached:[5000c500263c532e:01 t(SSP)] 3 Gbps
phy 16:T:attached:[5000c500263d603d:00 t(SSP)] 3 Gbps
phy 17:T:attached:[5000c500263d603e:01 t(SSP)] 3 Gbps
phy 18:T:attached:[5000c500261d1099:00 t(SSP)] 3 Gbps
phy 19:T:attached:[5000c500261d109a:01 t(SSP)] 3 Gbps
phy 20:T:attached:[5000c500263cd089:00 t(SSP)] 3 Gbps
phy 21:T:attached:[5000c500263cd08a:01 t(SSP)] 3 Gbps
phy 22:T:attached:[5000c50026360329:00 t(SSP)] 3 Gbps
phy 23:T:attached:[5000c5002636032a:01 t(SSP)] 3 Gbps
phy 24:D:attached:[50090a502ff80619:00 V i(SSP) t(SSP)] 3 Gbps
> camcontrol has been extended in FreeBSD 9.0 to access
> some SMP functions. smp_utils version 0.97b1 supports
> all functions defined in SAS-2 (up until the lastest
> draft: spl2r02.pdf) and that includes zoning support.
Excellent! That will come in handy especially when we get around to doing
the multipathing work in CAM and adding SMP devices to the topology.
Thanks again for doing the work.
> Doug Gilbert
>
>
> P.S. For at least the last 3 years I have been unable to
> post to this list. The postmaster at freebsd.org informed
> me that my email domain was blacklisted. Not bad for a
> grand-fathered email domain that probably hasn't added
> a new email account in 10 years! FreeBSD's blacklisting
> probably dates from a period when some crazy service in
> the US identified every major and minor Canadian email
> domain as full of spammers. So anyone else who feels
> they have been blacklisted, contact the postmaster.
Not good, but I'm glad things are cleared up now.
Ken
--
Kenneth Merry
ken at FreeBSD.ORG
More information about the freebsd-scsi
mailing list