From owner-freebsd-scsi@FreeBSD.ORG Wed Aug 3 19:35:01 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 08DDB1065673; Wed, 3 Aug 2011 19:35:01 +0000 (UTC) (envelope-from gwright@antiope.com) Received: from mho-02-ewr.mailhop.org (mho-04-ewr.mailhop.org [204.13.248.74]) by mx1.freebsd.org (Postfix) with ESMTP id CF5278FC16; Wed, 3 Aug 2011 19:35:00 +0000 (UTC) Received: from pool-96-242-166-137.nwrknj.fios.verizon.net ([96.242.166.137] helo=plumbbob-franklin.18clay.com) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72) (envelope-from ) id 1QohDX-00072P-Uj; Wed, 03 Aug 2011 19:35:00 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 96.242.166.137 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/ZN5qxgXp2IpYD37d26xF481ZGY2w7GJc= Message-ID: <4E39A2E1.4010000@antiope.com> Date: Wed, 03 Aug 2011 15:34:57 -0400 From: Gregory Wright Organization: Antiope Associates User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4E396DDD.9030602@antiope.com> <20110803170210.GA46958@nargothrond.kdm.org> <4E39978A.7070401@antiope.com> In-Reply-To: <4E39978A.7070401@antiope.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "Kenneth D. Merry" 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: Wed, 03 Aug 2011 19:35:01 -0000 On 8/3/11 2:46 PM, 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! > > Best, > Greg > As a further test I installed mtx and verified that the changer works under software control: greenhouse-george# mtx -f /dev/pass3 status Storage Changer /dev/pass3:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Empty Storage Element 6:Empty Storage Element 7:Empty Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty greenhouse-george# mtx -f /dev/pass3 load 1 Loading media from Storage Element 1 into drive 0...done greenhouse-george# mtx -f /dev/pass3 status Storage Changer /dev/pass3:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Full (Storage Element 1 Loaded) Storage Element 1:Empty Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Empty Storage Element 6:Empty Storage Element 7:Empty Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty greenhouse-george# mtx -f /dev/pass3 unload Unloading drive 0 into Storage Element 1...done greenhouse-george# mtx -f /dev/pass3 status Storage Changer /dev/pass3:1 Drives, 16 Slots ( 0 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full Storage Element 2:Full Storage Element 3:Full Storage Element 4:Full Storage Element 5:Empty Storage Element 6:Empty Storage Element 7:Empty Storage Element 8:Empty Storage Element 9:Empty Storage Element 10:Empty Storage Element 11:Empty Storage Element 12:Empty Storage Element 13:Empty Storage Element 14:Empty Storage Element 15:Empty Storage Element 16:Empty greenhouse-george# Looks like this issue is resolved. Cheers, Greg -- Gregory Wright Antiope Associates LLC 18 Clay Street Fair Haven, New Jersey 07733 USA +1 732 924-4549 [office] +1 732 345-8378 [fax] gwright@antiope.com