From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 5 13:29:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4576E16A473 for ; Fri, 5 Oct 2007 13:29:13 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 9A52513C469 for ; Fri, 5 Oct 2007 13:29:12 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (obsolete.xs4all.nl [82.95.250.254]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id l95DT7Ip084270; Fri, 5 Oct 2007 15:29:07 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.8/8.13.3) with ESMTP id l95DT6Zn050095; Fri, 5 Oct 2007 15:29:06 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.8/8.13.6/Submit) id l95DT6HY050094; Fri, 5 Oct 2007 15:29:06 +0200 (CEST) (envelope-from wb) Date: Fri, 5 Oct 2007 15:29:06 +0200 From: Wilko Bulte To: Eric Anderson Message-ID: <20071005132906.GA50050@freebie.xs4all.nl> References: <200710041725.00842.sharadc@in.niksun.com> <200710051646.17618.sharadc@in.niksun.com> <4706261B.1050202@freebsd.org> <200710051828.08343.sharadc@in.niksun.com> <4706361D.9030505@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4706361D.9030505@freebsd.org> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Fri, 05 Oct 2007 14:47:36 +0000 Cc: freebsd-hackers@freebsd.org, Sharad Chandra Subject: Re: SCSI and SAN X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2007 13:29:13 -0000 Quoting Eric Anderson, who wrote on Fri, Oct 05, 2007 at 08:03:25AM -0500 .. > Sharad Chandra wrote: > >On Friday 05 October 2007 5:25 pm, Eric Anderson wrote: > >>Sharad Chandra wrote: > >> > On Thursday 04 October 2007 6:51 pm, Eric Anderson wrote: > >> >> Sharad Chandra wrote: > >> >>> Hello, > >> >>> > >> >>> How to distinguish if /dev/da* devices are internal scsi > >> drivers > >> > >>or LUNs > >> > >> >>> of external SAN? > >> >> > >> >> camcontrol devlist -v > >> >> > >> >> Might help you.. > >> >> > >> >> Eric > >>>Yes, right by analyzing camcontrol devlist it can be told, but i guess > >>>not always. > >>> > >>>[root@qa7 ~]# camcontrol devlist > >>> at scbus0 target 0 lun 0 (da0,pass0) > >>> at scbus0 target 0 lun 1 (da1,pass1) > >>> at scbus0 target 0 lun 2 (da2,pass2) > >>> at scbus0 target 0 lun 3 (da3,pass3) > >>> > >>>Here luns are increasing, so it is SAN confirmed by tool. Now my point is > >>>if i have a SAN of less than 1TB and i make only 1 LUN. what should be > >>>output? guessing: similar to > >>> at scbus0 target 0 lun 0 (da0,pass0) > >>> > >>>Then it will be difficult to tell, whether it is regular SCSI drives or > >>>SAN. Then we need a tool that can tell this da0 belongs to SAN/SCSI or > >>>not > >>Notice the -v to camcontrol. It will tell you which controller the > >>device belongs to, and the controller will help you determine whether it > >>is connected to a SAN or not. > > > >[root@qa7 ~]# camcontrol devlist -v > >scbus0 on isp0 bus 0: > > at scbus0 target 0 lun 0 (da0,pass0) > > at scbus0 target 0 lun 1 (da1,pass1) > > at scbus0 target 0 lun 2 (da2,pass2) > > at scbus0 target 0 lun 3 (da3,pass3) > >< > at scbus0 target -1 lun -1 () > >scbus-1 on xpt0 bus 0: > >< > at scbus-1 target -1 lun -1 (xpt0) > > > >Does it? > > Well, isp0 is a QLogic fiber channel card, so that's as much as you will or a parallel SCSI one, that uses same driver. -- Wilko Bulte wilko@FreeBSD.org