<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>No questions...just information for how to translate a Target ID to a SAS WWN on LSI MPT2 SAS2 controllers under Illumos/Solaris.  My apologies for cross posting or if this is old hat, but I've been running an LSI SAS2 controller with SATA disks and had my logs fill up with repeated cryptic entries, but never found a troubleshooting strategy until tonight. Under load (scrub) the following will repeatedly show up: </div><div><br></div><div><div>scsi: [ID 365881 kern.info] /pci@0,0/pci15ad,7a0@15/pci1000,3030@0 (mpt_sas0):</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>Log info 0x31120311 received for target 20.</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>scsi_status=0x0, ioc_status=0x804b, scsi_state=0xc</div><div>scsi: [ID 243001 kern.warning] WARNING: /pci@0,0/pci15ad,7a0@15/pci1000,3030@0 (mpt_sas0):</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>mptsas_handle_event_sync: IOCStatus=0x8000, IOCLogInfo=0x31120303</div></div><div><br></div><div><div>I assumed this was due to a disk failing or a cabling problem (my LSI SAS 9200-16e SAS_2116 has directly cabled WD RE4 SATA disks) but which disk is Target 20? I took the time to label my drive caddies with their WWN to ease trouble shooting, but was never able to figure out how to translate Target ID into a SAS WWN so I narrow down my troubleshooting to a single device....until now.</div></div><div><br></div><div>Run lsituil.i386 as root</div><div>(LSIUtil Kit 1.63.zip\Solaris\lsiutil.i386 from <a href="http://www.juhonkoti.net/media/LSIUTIL-1.63.zip">http://www.juhonkoti.net/media/LSIUTIL-1.63.zip</a> )</div><div>* Select your MPT device</div><div>* e (Enable expert mode in menus)</div><div>* 20 (Diagnostics)</div><div>* 1 (Inquiry Test)</div><div>* 0 (Bus 0)</div><div>* XX (Target number from above, Target 20 for me)</div><div>* 0 (Lun 0)</div><div>* 83 or 80 (SAS WWN and Disk Serial Number respectively)</div><div>Output:</div><div><span style="font-family: 'Courier New'; "><br></span></div><div><span style="font-family: 'Courier New'; ">VPD Page:  [00-FF or RETURN for normal Inquiry] 83</span></div><div><div><font face="Courier New"> B___T___L  Page</font></div><div><font face="Courier New"> 0  20   0   83</font></div><div><font face="Courier New">16 bytes of Inquiry Data returned</font></div><div><font face="Courier New">0000 : 00 83 00 0c 01 03 00 08 50 01 4e e2 b1 65 f5 d7            P N  e  </font></div></div><div><br></div><div><div><font face="Courier New">VPD Page:  [00-FF or RETURN for normal Inquiry] 80</font></div><div><font face="Courier New"> B___T___L  Page</font></div><div><font face="Courier New"> 0  20   0   80</font></div><div><font face="Courier New">24 bytes of Inquiry Data returned</font></div><div><font face="Courier New">0000 : 00 80 00 14 20 20 20 20 20 57 44 2d 57 4d 41 59             WD-WMAY</font></div><div><font face="Courier New">0010 : 30 34 33 32 38 34 38 39                            04328489</font></div></div><div><br></div><div>The second half of the hex string from 83h is your WWN (50014ee2b165f5d7 above), and ASCII from 80h (WMAY04328489 above) the serial number.  With that info one can check the cabling path or replace the disk or whatever.  This should work with other LSI SAS2 2008/2118 controllers like the 9200-8e, 9211-8i, etc. Might even work with older SAS1 cards (1068, etc) since lsiutil should also support them. </div><div><br></div><div>Just thought others might find it useful! Have a great night!</div><div><br></div><div>-Pete</div><div><br></div><div>Source:</div><div><a href="https://www.meteo.unican.es/trac/meteo/blog/SolarisSATADeviceName">https://www.meteo.unican.es/trac/meteo/blog/SolarisSATADeviceName</a></div><div><br></div><div>References:</div><div><a href="http://www.juhonkoti.net/2012/01/02/supermicro-jbod-sc847e16-rjbo-enclosure-with-solaris-openindiana">http://www.juhonkoti.net/2012/01/02/supermicro-jbod-sc847e16-rjbo-enclosure-with-solaris-openindiana</a></div><a href="http://openindiana.org/pipermail/openindiana-discuss/2012-June/008363.html">http://openindiana.org/pipermail/openindiana-discuss/2012-June/008363.html</a></body></html>