From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 5 12:09:08 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 805AC16A418 for ; Fri, 5 Oct 2007 12:09:08 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 0104013C467 for ; Fri, 5 Oct 2007 12:09:07 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by nf-out-0910.google.com with SMTP id b2so427084nfb for ; Fri, 05 Oct 2007 05:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=g3WvF5dzem4oHQ5cuUu/bSoSqtV/eILD+ZO27hMeIfk=; b=Abe/icI/rqqzRMOZIS2tQdaz+ehFAdUDyfobemL1RmqFEvRcsI0R52UXl3eRre+WR+lxkGDBB4R6EQ59l2y5w6aBx5bJyRO0zRfAj3vyLoMhuqD34ZyvGhm60eGmu8ezTnfLtGSH88ic+fhZ69tmWBoUKz54fllRSwOEJCWfo+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=MFoTkkDpFmqWR3bT/nPbHxEu/tpdTq69xGY5yQxpU7r6+vSluowY4hPY75x/s4SVSo9Peip6OK/l6gBL3Dfsh0ewQ9at5dRdQ8kDM23b3Xli+KIsWV3uFU0f00NQezoYpeE+VLnC6pahl8wy67L9MYcJyiKVSBd0uEawYuZlCBk= Received: by 10.78.149.15 with SMTP id w15mr300135hud.1191584626198; Fri, 05 Oct 2007 04:43:46 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id d24sm2250429nfh.2007.10.05.04.43.44 (version=SSLv3 cipher=RC4-MD5); Fri, 05 Oct 2007 04:43:44 -0700 (PDT) From: Tom Evans To: Sharad Chandra In-Reply-To: <200710051646.17618.sharadc@in.niksun.com> References: <200710041725.00842.sharadc@in.niksun.com> <4704E8F1.8070000@freebsd.org> <200710051646.17618.sharadc@in.niksun.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-J6TNgEX639D+Y46OWQL+" Date: Fri, 05 Oct 2007 12:43:42 +0100 Message-Id: <1191584622.1475.86.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: 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:09:08 -0000 --=-J6TNgEX639D+Y46OWQL+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-10-05 at 16:46 +0530, Sharad Chandra wrote: > Yes, right by analyzing camcontrol devlist it can be told, but i guess no= t=20 > always. >=20 > [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) >=20 > Here luns are increasing, so it is SAN confirmed by tool. Now my point is= if i=20 > 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) >=20 > Then it will be difficult to tell, whether it is regular SCSI drives or S= AN.=20 > Then we need a tool that can tell this da0 belongs to SAN/SCSI or not >=20 > Thanks for any suggestion. > Sharad Chandra >=20 > 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 Hi As previously suggested, glabel(8) your da devices so you can distinguish between them. Example: glabel label -v usr /dev/da2 newfs /dev/label/usr mount /dev/label/usr /usr [...] umount /glabel stop usr glabel unload --=-J6TNgEX639D+Y46OWQL+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHBiNulcRvFfyds/cRAlB0AKCdtyU9ZPPVoC0S2YLiSXrGobF30QCeL/m9 Baln11HNVXB1IHT5N0C797k= =USRL -----END PGP SIGNATURE----- --=-J6TNgEX639D+Y46OWQL+--