Thursday, April 5, 2012

sar reports different device than the actual storage lun

How do we know, how is the storage devices are mapped to local devices?

bash-3.00# sar -d 2
SunOS mdc4ps001 5.10 Generic_144488-14 sun4v 04/05/2012 17:36:49
device %busy avque r+w/s blks/s avwait avserv
ssd19 0 0.0 1 178 0.0 4.8
ssd19,a 0 0.0 1 178 0.0 4.8
ssd19,h 0 0.0 0 0 0.0 0.0


devices export from SAN
output of QFS mcf
/dev/dsk/c6t600A0B800047157000001D0E4EBACAD5d0s0
/dev/dsk/c6t600A0B800047157000001D124EBACF17d0s0
/dev/dsk/c6t600A0B800047157000001D164EBACFECd0s0

output of format
1. c6t600A0B800047157000001D0E4EBACAD5d0
/scsi_vhci/ssd@g600a0b800047157000001d0e4ebacad5
2. c6t600A0B800047157000001D124EBACF17d0
/scsi_vhci/ssd@g600a0b800047157000001d124ebacf17
3. c6t600A0B800047157000001D164EBACFECd0
/scsi_vhci/ssd@g600a0b800047157000001d164ebacfec

Steps:
#1. Look at /etc/path_to_install for device "19"
bash-3.00# cat /etc/path_to_inst | grep 19
"/scsi_vhci/ssd@g600a0b800047157000001d124ebacf17" 19 "ssd"

#2. Here we are looking for device ending with f17 to be ssd19