Relating devices reported by the Solaris sar utility to VxVM disks
Created: 17 Aug 2011 | Updated: 06 Sep 2011 | 1 comment
It is difficult to map the devices shown in Solaris "sar -d" to VM devices as described in http://www.symantec.com/docs/TECH22381
This shows from line:
sd24 20 0.2 8 12273 0.0 25.3d
in "sar -d" you have to first look up "sd24" in /etc/path_to_inst to find:
"/pci@1f,0/pci@1/scsi@3,1/sd@a,0" 24 "sd"
Then you have to look up the device above in sym links in /dev/rdsk:
# ls -l /dev/rdsk/*s2|grep "/pci@1f,0/pci@1/scsi@3,1/sd@a,0"
lrwxrwxrwx 1 root root 50 Sep 9 11:49 /dev/rdsk/c1t10d0s2 -> ../../devices/pci@1f,0/pci@1/scsi@3,1/sd@a,0:c,raw
This gives you Solaris disk name which you would then need to use "vxdisk -e list" to show you VM disk and then you could see what volumes are on that disk. The script I have attached produces output with the following columns to show mapping:
Solaris cXtXdXs2 disk
VxVM Disk Media record
Diskgroup
Device tree path
Instance number
Example
c1t10d0s2 vmdisk1 dg1 "pci@1f,0/pci@1/scsi@3,1/sd@a,0:c,raw" sd24
Mike
Download Filed Under:
Comments 1 Comment • Jump to latest comment
Mike,
It is nice script
Thank you
-Girish
Would you like to reply?
Login or Register to post your comment.