Date: Fri, 5 Oct 2007 17:26:41 +0530 From: Sharad Chandra <sharadc@in.niksun.com> To: Eric Anderson <anderson@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: SCSI and SAN Message-ID: <200710051726.41982.sharadc@in.niksun.com> 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
Wether it is SCSI or SANs LUNS, "sysctl kern.disks" always shows da<no>. it= =20 don't distinguish b/w them. and similarly "/usr/local/sbin/smartctl -i da0"= =20 also gives results that is acceptable. Although i don't know what is that=20 Serial no in SANs LUN case. ex: [root@qa7 ~]# /usr/local/sbin/smartctl -i da0 smartctl version 5.37 [amd64-portbld-freebsd6.2] Copyright (C) 2002-6 Bruce= =20 Allen Home page is http://smartmontools.sourceforge.net/ Device: IFT A16F-G2422 Version: 348C Serial number: 0D7A8A6DC19F3500 Device type: disk (pass0:isp0:0:0:0): MODE SENSE(06). CDB: 1a 0 19 0 40 0 (pass0:isp0:0:0:0): CAM Status: SCSI Status Error (pass0:isp0:0:0:0): SCSI Status: Check Condition (pass0:isp0:0:0:0): ILLEGAL REQUEST asc:24,0 (pass0:isp0:0:0:0): Invalid field in CDB Local Time is: Fri Oct 5 03:37:54 2007 EDT Device supports SMART and is Enabled Temperature Warning Disabled or Not Supported on SCSI device pass0 errors don't come. Thanks Sharad Chandra On Friday 05 October 2007 4:46 pm, 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> =A0 =A0 =A0 =A0 =A0 =A0 =A0at scbus0 target 0 lun 0= (da0,pass0) > <IFT A16F-G2422 348C> =A0 =A0 =A0 =A0 =A0 =A0 =A0at scbus0 target 0 lun 1= (da1,pass1) > <IFT A16F-G2422 348C> =A0 =A0 =A0 =A0 =A0 =A0 =A0at scbus0 target 0 lun 2= (da2,pass2) > <IFT A16F-G2422 348C> =A0 =A0 =A0 =A0 =A0 =A0 =A0at 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> =A0 =A0 =A0 =A0 =A0 =A0 =A0at 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710051726.41982.sharadc>