From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 16:43:15 2011 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF235106564A for ; Wed, 7 Sep 2011 16:43:14 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id AE90D8FC0C for ; Wed, 7 Sep 2011 16:43:14 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p87GhDiX023535; Wed, 7 Sep 2011 10:43:13 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p87GhDfw023534; Wed, 7 Sep 2011 10:43:13 -0600 (MDT) (envelope-from ken) Date: Wed, 7 Sep 2011 10:43:13 -0600 From: "Kenneth D. Merry" To: Douglas Gilbert Message-ID: <20110907164313.GA20036@nargothrond.kdm.org> References: <4E60FD85.4070708@interlog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E60FD85.4070708@interlog.com> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:43:15 -0000 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@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@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@FreeBSD.ORG