[OpenIndiana-discuss] OI and WWN names?

Dan Swartzendruber dswartz at druber.com
Mon Oct 3 15:39:41 UTC 2011


So I was reading the earlier thread about this.  I have an IBM m1015 
(rebadged LSI card) flashed to IT firmware.  It presents the devices as 
WWN.  Here's the problem: I have some shell scripts that want to do 
smartctl to get temperature, health, etc...  Looking at zpool status, I 
see this:

         NAME                        STATE     READ WRITE CKSUM
         tank                        ONLINE       0     0     0
           mirror-0                  ONLINE       0     0     0
             c9t50014EE2AEDF73CEd0   ONLINE       0     0     0
             c6t50014EE2AF872299d0   ONLINE       0     0     0
           mirror-1                  ONLINE       0     0     0
             c8t50014EE2AEDF7498d0   ONLINE       0     0     0
             c4t50014EE0AC01D8EDd0   ONLINE       0     0     0
           mirror-2                  ONLINE       0     0     0
             c10t50014EE204411A53d0  ONLINE       0     0     0
             c7t50014EE0ABCEE0A9d0   ONLINE       0     0     0

Based on my reading, the OUI for a WWN is 8 bytes - the 0014EE is 
Western Digital (this is correct), followed by 5 bytes (10 hex chars) of 
individual drive ID.  The leading cXt5 is OI specific, and the trailing 
0 seems to be too.  Here's my confusion.  I had moved drives around and 
somehow that caused OI to change the 'full' names.  I listed 
/dev/rdsk/c9t5????????????????0 to see the first guy in the list, but 
what was output was:

lrwxrwxrwx 1 root root 92 2011-07-23 15:59 
/dev/rdsk/c9t50014EE0ABCEE0A9d0 -> 
../../devices/pci at 0,0/pci15ad,7a0 at 15/pci1000,3040 at 0/iport at 40/disk at w50014ee0abcee0a9,0:wd,raw
lrwxrwxrwx 1 root root 92 2011-10-01 03:02 
/dev/rdsk/c9t50014EE0AC01D8EDd0 -> 
../../devices/pci at 0,0/pci15ad,7a0 at 15/pci1000,3040 at 0/iport at 40/disk at w50014ee0ac01d8ed,0:wd,raw
lrwxrwxrwx 1 root root 92 2011-10-01 04:21 
/dev/rdsk/c9t50014EE2AEDF73CEd0 -> 
../../devices/pci at 0,0/pci15ad,7a0 at 15/pci1000,3040 at 0/iport at 40/disk at w50014ee2aedf73ce,0:wd,raw

Note that only the last one seems to be a real device.  The first two 
seem to be stale from previous changes.  I am also not sure I believe 
the 2nd to last char ('d') is part of the WWN, since it is lower case 
and everything else is upper case - if it isn't, a character is 
missing?  And why does OI have the old info?  If I run the format 
command, it shows me the names of the devices actually present.  How do 
I find that out?  Thanks...



More information about the OpenIndiana-discuss mailing list