From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 5 12:55:35 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 9B57716A46E for ; Fri, 5 Oct 2007 12:55:35 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.ltdomains.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id 5F56F13C461 for ; Fri, 5 Oct 2007 12:55:35 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.storspeed.com (209-163-168-124.static.twtelecom.net [209.163.168.124]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id l95CtWrK054770; Fri, 5 Oct 2007 07:55:34 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <47063441.4080002@freebsd.org> Date: Fri, 05 Oct 2007 07:55:29 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Sharad Chandra References: <200710041725.00842.sharadc@in.niksun.com> <1191584622.1475.86.camel@localhost> <1191584942.1475.92.camel@localhost> <200710051820.17587.sharadc@in.niksun.com> In-Reply-To: <200710051820.17587.sharadc@in.niksun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: Tom Evans , freebsd-hackers@freebsd.org 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 12:55:35 -0000 Sharad Chandra wrote: > That's very right, but it needs a manual setup. Whereas I need to work on > storage disks attached to system, to accomplish that i have to write a script > and know in itself whether it is attached to SAN or not. I know mainly there > are "sysctl kern.disks" storage attached to system, nothing else. You must be blocking my mails. camcontrol devlist -v ^^^^^^ It will tell you which controllers the devices are on. You can even show devices on a particular controller, say, an isp device. Eric > On Friday 05 October 2007 5:19 pm, Tom Evans wrote: >> On Fri, 2007-10-05 at 12:43 +0100, Tom Evans wrote: >> .... >> >> Excuse the formatting, my keyboard went nuts and decided I was done >> editing :o >> >> In addition to the example I showed, I was just going to say that the >> purpose of glabel is to stop referring to /dev/da[0-9]* and instead be >> able to refer to /dev/label/san_0_lun_0 (or whatever you like). I don't >> know of a way to automagically determine if a disk is in fact a SAN, but >> it cannot be too hard to figure out from dmesg + information about the >> disk. >> >> Once you have identified it LABEL IT! Then there is no more ambiguity. >> >> Regards >> >> Tom