[illumos-Developer] Review for #429 iostat -E does not report serial number

Garrett D'Amore garrett at nexenta.com
Wed Jan 26 02:50:54 PST 2011


Right, page 80, and 83, can be used to obtain a globally unique id for
most drives (all SAS and FC drives at least).  Whether this is precisely
the device's "serial number" is not guaranteed.  But its the best we can
do with the nebulous state of the SCSI specs for this.

	- Garrett

On Wed, 2011-01-26 at 13:49 +0300, Alexander Eremin wrote:
> On Jan 26, 2011, at 1:24 PM, Joerg Schilling wrote:
> 
> > Albert Lee <trisk at opensolaris.org> wrote:
> >
> >> Approved to push, could you attach the mail_msg, etc. you gave me  
> >> here?
> >
> > BTW: does the kstat data really include usesful bits for a serial  
> > number in
> > case of a non-Sun SCSI disk?
> >
> > IIRC, Sun labelled disks include the serial number at the end of the  
> > Inquiry
> > product code which is definitely non standard.
> >
> > Is there an attempt to fill kstat from the SCSI standard location  
> > for serial
> > numbes in a non-Sun disk case?
> >
> > Jörg
> >
> > -- 
> > EMail:joerg at schily.isdn.cs.tu-berlin.de (home) Jörg Schilling  
> > D-13353 Berlin
> >       js at cs.tu-berlin.de                (uni)
> >       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
> > URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
> >
> 
> Solaris uses 3 ways to obtain serial number, they described here:
> http://wikis.sun.com/display/StorageDev/Solaris+OS+Disk+Driver+Device+Identifier+Generation
> 
> Standard scsi_inquiry procedure can't obtain serial number for non-Sun  
> disks,
> sd driver gets it from page 80h and creates property  "inquiry-serial- 
> no".
> 
> 
> Thanks,
> Alexander
> 
> 
> _______________________________________________
> Developer mailing list
> Developer at lists.illumos.org
> http://lists.illumos.org/m/listinfo/developer





More information about the Developer mailing list