From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 4 15:28:02 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 A6E261065672; Wed, 4 Apr 2012 15:28:02 +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 6E0418FC18; Wed, 4 Apr 2012 15:28:02 +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 q34FS1nk070796; Wed, 4 Apr 2012 09:28:01 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id q34FS1HE070795; Wed, 4 Apr 2012 09:28:01 -0600 (MDT) (envelope-from ken) Date: Wed, 4 Apr 2012 09:28:01 -0600 From: "Kenneth D. Merry" To: "Desai, Kashyap" Message-ID: <20120404152801.GA70760@nargothrond.kdm.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i 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 15:28:02 -0000 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 ? A couple of questions: - 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. - What LUN numbers do you have configured on the array? Ken -- Kenneth Merry ken@FreeBSD.ORG