InfoDoc ID   Synopsis   Date
17913   How to match an sd number to a lun   21 Jun 2002

Status Issued

Description
When using commands such as 'sar -d' or 'iostat', the naming of the
devices is based on sd numbers which must be translated into
cxtxdx numbers to be useful.  When LUNs are involved, the translation
process differs.

For this example, we will translate an sd number of 97 into it's
cxtxdx number.

# grep 97 /etc/path_to_inst 
"/sbus@3,0/SUNW,fas@3,8800000/sd@5,5" 197 "sd"
"/sbus@7,0/SUNW,fas@3,8800000/rdriver@3,5" 197 "rdriver"
"/sbus@7,0/QLGC,isp@2,10000/rdriver@5,1" 97 "rdriver"
"/sbus@b,0/SUNW,fas@3,8800000/sd@3,6" 297 "sd"
"/sbus@2,0/QLGC,isp@2,10000/sd@5,3" 97 "sd" <--- USE THE STRING FROM THIS ENTRY

# cd /dev/osa/dev/dsk 
# ls -l | grep /sbus@2,0/QLGC,isp@2,10000/sd@5,3
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s0 ->
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:a 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s1 -> 
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:b 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s2 ->
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:c 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s3 -> 
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:d 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s4 ->
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:e 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s5 -> 
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:f 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s6 ->
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:g 
lrwxrwxrwx 1 root root 48 Aug 18 11:32 c1t5d3s7 -> 
../../devices/sbus@2,0/QLGC,isp@2,10000/sd@5,3:h

This shows that sd97 corresponds to LUN c1t5d3.
APPLIES TO: Hardware ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.