Date: Fri, 05 Oct 2007 12:43:42 +0100 From: Tom Evans <tevans.uk@googlemail.com> To: Sharad Chandra <sharadc@in.niksun.com> Cc: freebsd-hackers@freebsd.org Subject: Re: SCSI and SAN Message-ID: <1191584622.1475.86.camel@localhost> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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 not
> always.
>
> [root@qa7 ~]# camcontrol devlist
> <IFT A16F-G2422 348C> at scbus0 target 0 lun 0 (da0,pass0)
> <IFT A16F-G2422 348C> at scbus0 target 0 lun 1 (da1,pass1)
> <IFT A16F-G2422 348C> at scbus0 target 0 lun 2 (da2,pass2)
> <IFT A16F-G2422 348C> 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
> <IFT A16F-G2422 348C> 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
>
> Thanks for any suggestion.
> Sharad Chandra
>
> 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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQBHBiNulcRvFfyds/cRAlB0AKCdtyU9ZPPVoC0S2YLiSXrGobF30QCeL/m9
Baln11HNVXB1IHT5N0C797k=
=USRL
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1191584622.1475.86.camel>
