how to read serial number from drives connected to PERC 4e/Di

Harald_Jensas at Dell.com Harald_Jensas at Dell.com
Thu Jul 20 01:42:17 CDT 2006


Hi,

LsiLogics "MegaRC" tool will give you this information as well. (It is available in the download section on www.lsilogic.com.

To get information about al drives connected to all channels on your controller:
./megarc -phys -chAll -idAll -a0 


Example output:
	Finding Devices On Each MegaRAID Adapter...


	Adapter 0, Channel 2, Target ID 0	----------------------------------------
	Type: DISK                 Vendor      : SAMSUNG
	Product: SP2014N           Revision    : VC10
	Synchronous   : No         Wide-32     : No    Wide-16: No
	LinkCmdSupport: No         TagQ support: No    RelAddr: No
	Removable     : No         SoftReset   : No    AENC   : No


	Adapter 0, Channel 3, Target ID 0	----------------------------------------
	Type: DISK                 Vendor      : Maxtor 6
	Product: Y160P0            Revision    : YAR4
	Synchronous   : No         Wide-32     : No    Wide-16: No
	LinkCmdSupport: No         TagQ support: No    RelAddr: No
	Removable     : No         SoftReset   : No    AENC   : No


Another option is to use the linttylog ( linttylog-1.00-0.i386.rpm ) tool and read the information directly from the RAID Controller tty log file. In the Controller log you would see something like:

T13: Physical device info:
T13: ID  NVRState  Vendor    Product           Rev    6   7  56
T13: --  --------  --------  ----------------  ----  --  --  --
T13: 00  Online    SEAGATE   ST3300007LW       D703  01  3e  0f
T13: 01  Online    SEAGATE   ST3300007LW       D703  01  3e  0f



//
Harald Jensås

> -----Original Message-----
> From: linux-poweredge-bounces at dell.com 
> [mailto:linux-poweredge-bounces at dell.com] On Behalf Of 
> slif at bellsouth.net
> Sent: 20 July 2006 01:57
> To: linux-poweredge-Lists
> Subject: Re: how to read serial number from drives connected 
> to PERC 4e/Di
> 
> Thank you Patrick and Aaron for your quick replies.  I'll 
> give that a try.
> I would prefer adding something with a smaller footprint than OMSA.
> Do you have other suggestions for obtaining the serial 
> numbers for SCSI drives that are connected to PERC 4e/Di controller?
> 
> 
> > From: <Patrick_Boyd at dell.com>
> > Date: 2006/07/19 Wed PM 06:06:21 EDT
> > 
> > OMSA can give you this information. 
> 
> > 
> > From: Aaron McKinnon
> > Date: 2006/07/19 Wed PM 06:34:13 EDT
> > 
> > If memory serves it's:
> > 
> > omreport storage adisk controller=0 (or whatever controller number)
> > 
> > -Aaron
> > 
> > slif at bellsouth.net wrote:
> > > Running RHEL4, Update 3 on two machines:
> > >
> > > dell 2850, perc 4e/di, RAID0+1, HDU=Seagate Cheetah 
> ST3146707LC dell 
> > > 1850, perc 4e/si, RAID0+1, HDU=Maxtor Atlas 10K V All drives are 
> > > 146GB, 10k RPM, Ultra320 SCSI
> > >
> > > How can I read the serial number of the SCSI drives ?
> > > Witness that smartctl and sginfo do not work with /dev/sda or 
> > > /dev/sg0
> > > --
> > >
> > >
> > > # smartctl -a -d scsi -T permissive /dev/sda
> > > Device: MegaRAID LD 0 RAID1  139G Version: 521X
> > > scsiModePageOffset: response length too short, resp_len=1 
> offset=4 
> > > bd_len=0
> > >   
> > >>> Terminate command early due to bad response to IEC mode page
> > >>>       
> > > Request Sense failed, [Input/output error]
> > >
> > > Error Counter logging not supported
> > >
> > > Error Events logging not supported
> > > scsiModePageOffset: response length too short, resp_len=1 
> offset=4 
> > > bd_len=0 Device does not support Self Test logging
> > >
> > > [root at identity ~]# sginfo -a /dev/sg0 INQUIRY reponse (cmd: 0x12)
> > > ---------------------------
> > > Device Type                        3
> > > Vendor:                    PE/PV   
> > > Product:                   1x2 SCSI BP     
> > > Revision level:            1.0 
> > >
> > > doesn't understand request for serial number
> > >
> > >   
> > >>>> Unable to read List supported pages mode page (0x3f) 
> > >>>> [mode_sense_10]
> > >>>>         
> > >
> > > # sginfo -a /dev/sda
> > > INQUIRY reponse (cmd: 0x12)
> > > ---------------------------
> > > Device Type                        0
> > > Vendor:                    MegaRAID
> > > Product:                   LD 0 RAID1  139G
> > > Revision level:            521X
> > >
> > > doesn't understand request for serial number
> > >
> > >   
> > >>>> Unable to read List supported pages mode page (0x3f) 
> > >>>> [mode_sense_10]
> > >>>>         
> > >
> > > _______________________________________________
> > > Linux-PowerEdge mailing list
> > > Linux-PowerEdge at dell.com
> > > http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> > > Please read the FAQ at http://lists.us.dell.com/faq
> > >
> > >   
> > 
> > _______________________________________________
> > Linux-PowerEdge mailing list
> > Linux-PowerEdge at dell.com
> > http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> > Please read the FAQ at http://lists.us.dell.com/faq
> > 
> 
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq
> 



More information about the Linux-PowerEdge mailing list