From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 4 17:41:35 2012 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 4371A1065672; Wed, 4 Apr 2012 17:41:35 +0000 (UTC) (envelope-from Kashyap.Desai@lsi.com) Received: from psmtp.com (na3sys009aog135.obsmtp.com [74.125.149.84]) by mx1.freebsd.org (Postfix) with ESMTP id 85C658FC14; Wed, 4 Apr 2012 17:41:34 +0000 (UTC) Received: from paledge01.lsi.com ([192.19.193.42]) (using TLSv1) by na3sys009aob135.postini.com ([74.125.148.12]) with SMTP ID DSNKT3yHyLeArp5wBt/dXJEuN5Utq2PCDrFL@postini.com; Wed, 04 Apr 2012 10:41:34 PDT Received: from PALCAS01.lsi.com (128.94.213.117) by PALEDGE01.lsi.com (192.19.193.42) with Microsoft SMTP Server (TLS) id 8.3.213.0; Wed, 4 Apr 2012 13:46:43 -0400 Received: from inbexch02.lsi.com (135.36.98.40) by PALCAS01.lsi.com (128.94.213.117) with Microsoft SMTP Server (TLS) id 8.3.213.0; Wed, 4 Apr 2012 13:41:27 -0400 Received: from inbmail01.lsi.com ([135.36.98.64]) by inbexch02.lsi.com ([135.36.98.40]) with mapi; Wed, 4 Apr 2012 23:11:23 +0530 From: "Desai, Kashyap" To: "Kenneth D. Merry" Date: Wed, 4 Apr 2012 23:11:22 +0530 Thread-Topic: FreeBSD multi Lun detection query Thread-Index: Ac0Sd4nlo1bl9ZPKTQ2n3vfK/rJvqAAEjXpg Message-ID: References: <20120404152801.GA70760@nargothrond.kdm.org> In-Reply-To: <20120404152801.GA70760@nargothrond.kdm.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "freebsd-scsi@freebsd.org" , "gibbs@freebsd.org" , "McConnell, Stephen" Subject: RE: FreeBSD multi Lun detection query 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, 04 Apr 2012 17:41:35 -0000 > -----Original Message----- > From: Kenneth D. Merry [mailto:ken@freebsd.org] > Sent: Wednesday, April 04, 2012 8:58 PM > To: Desai, Kashyap > Cc: freebsd-scsi@freebsd.org; McConnell, Stephen; gibbs@freebsd.org > Subject: Re: FreeBSD multi Lun detection query >=20 > On Wed, Apr 04, 2012 at 11:03:04 +0530, Desai, Kashyap wrote: > > Hi, > > > > Our test team has one test case, where they need to verify multi lun > detection by FreeBS8.2 OS. > > Here are the steps to reproduce. > > > > Step 1: Configured Multi-Luns in RBOD (DOTHILL) and map to controller > which is booted with FreeBSD > > Step 2: Issue the command "camcontrol rescan all" and "camcontrol dev" > > > > Expected Result: the command should display all the configured luns > > > > Actual Result: Only the first Lun is discovered > > > > Note: When we issue explicit scan using "camcontrol rescan > bus:target:lun", it detects that specific lun. > > > > Query: How does FreeBSD detect multi luns ? Driver issue > XPT_BUS_RESCAN and expect OS should detect both the luns. > > Is there any limitation associated with multi lun in FreeBSD ? >=20 > A couple of questions: >=20 > - Do you have change 231716 in your version of the driver? The max_lun > field of the path inquiry CCB was set to 0, which disabled multiple > LUN > scanning. I set it to 8, but in reality it needs to be set to the > maximum LUN supported by the chip. Hi Ken, This is very good information. I was not aware of this max_lun fiel= d. We used FreeBSD-8.2-RELEASE. I can ask test team to verify with latest upst= ream.(rev 231716) What about FreeBSD-9-RELEASE ? Is max_luns are set to non-zero. ? >=20 > - What LUN numbers do you have configured on the array? Not sure what is correct answer for this. _but_ we have created two luns. A= nd expected to see lun 0 and lun 1. ~ Kashyap >=20 > Ken > -- > Kenneth Merry > ken@FreeBSD.ORG