From owner-freebsd-scsi@FreeBSD.ORG Thu Aug 18 19:42:24 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 9AC0D106566B for ; Thu, 18 Aug 2011 19:42:24 +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 4B6328FC0C for ; Thu, 18 Aug 2011 19:42:24 +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 p7IJgLu5097946; Thu, 18 Aug 2011 13:42:21 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p7IJgKFb097945; Thu, 18 Aug 2011 13:42:20 -0600 (MDT) (envelope-from ken) Date: Thu, 18 Aug 2011 13:42:20 -0600 From: "Kenneth D. Merry" To: Gregory Wright Message-ID: <20110818194220.GA97929@nargothrond.kdm.org> References: <4E396DDD.9030602@antiope.com> <20110803170210.GA46958@nargothrond.kdm.org> <4E39978A.7070401@antiope.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E39978A.7070401@antiope.com> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: an mps probelm 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: Thu, 18 Aug 2011 19:42:24 -0000 On Wed, Aug 03, 2011 at 14:46:34 -0400, Gregory Wright wrote: > Hi Ken, > > On 8/3/11 1:02 PM, Kenneth D. Merry wrote: > >On Wed, Aug 03, 2011 at 11:48:45 -0400, Gregory Wright wrote: > >>Hi, > >> > >>I have an LSI SAS 9200-8e hba card. It's connected to a Dell > >>PowerVault 124T autoloader with an LTO4 drive. > >> > >>I installed 9.0-BETA1 yesterday and was able to successfully > >>detect the tape drive (mps driver), but the hba doesn't find the changer. > >>I used camcontrol to force rescanning all luns but that > >>didn't help either. > >Try rescanning the particular LUN for the changer device, like this: > > > >camcontrol rescan 6:4:1 > The changer was found when I used that command. > >(That is assuming the tape drive is at 6:4:0.) > > > >>Since I have just acquired this hardware I installed an OS > >>reported to work with this autoloader/hba combination, > >>ubuntu 11.04 server. On ubuntu, the changer is found: > >> > >>gwright@greenhouse-george:~$ lsscsi -g > >>[0:0:0:0] disk AMCC 9650SE-12M DISK 3.06 /dev/sdb /dev/sg1 > >>[0:0:0:1] disk AMCC 9650SE-12M DISK 3.06 /dev/sdc /dev/sg2 > >>[0:0:1:0] disk AMCC 9650SE-12M DISK 3.06 /dev/sdd /dev/sg3 > >>[1:0:0:0] tape IBM ULTRIUM-TD4 97F0 /dev/st0 /dev/sg5 > >>[1:0:0:1] mediumx DELL PV-124T 0080 /dev/sch0 /dev/sg6 > >>[2:0:0:0] disk ATA ST3160811AS 3.AA /dev/sda /dev/sg0 > >>[6:0:0:0] cd/dvd MITSUMI CD-ROM SR244W T01A /dev/sr0 /dev/sg4 > >> > >>(On ubuntu the driver is mpt2sas.) > >> > >>It seems as if the mps driver is not seeing the additional lun > >>hanging off the bus. > >Yeah, it looks like the path inquiry CCB in the driver is telling CAM not > >to scan LUNs. > > > >>This server is not in production yet so I can re-install 9.0-BETA1 > >>and run more tests, if that would help. > >Try the attached patch, and let me know whether it works. > > > > > The patch works. Now I get > > greenhouse-george# camcontrol devlist > at scbus0 target 0 lun 0 (ada0,pass0) > at scbus4 target 0 lun 0 (cd0,pass1) > at scbus6 target 4 lun 0 (sa0,pass2) > at scbus6 target 4 lun 1 (ch0,pass3) > at scbus7 target 0 lun 0 (da0,pass4) > at scbus7 target 0 lun 1 (da1,pass5) > at scbus7 target 1 lun 0 (da2,pass6) > greenhouse-george# > > I hope the change makes it into BETA2/RC1. Thanks! I checked it into FreeBSD/head today, so it will be in the next release/beta. Thanks, Ken -- Kenneth Merry ken@FreeBSD.ORG