HOME SOFTWARE CONSULTANCY TRAINING REFERENCE PARTNERS SEARCH
spacer
Latest Tips
e-business
ITIL
Linux
Management
Modeling
Oracle
SQL
UNIX
Windows
z/OS
 
 
 
spacer
 

This is for a SUN box with volume manager installed. It is often difficult to relate the output from sar where discs are known as sd** or ssd** to the discs known by volume manager i.e c0t0d0s0 and the disk groups etc associated with them.

I have used the following script to help me piece together this puzzle

The output from this script, disc_report will detail the 'ssd' or 'sd' number plus the physical device in terms
of cxtxdxsx . This can then be matched with the output from vxprint ( e.g. vxprint > vx_list). NOTE often the reference to
device in the output from vxprint is in form mcxtxdxsx. The 'm' can be ignored.

#!/bin/ksh
ls -l /dev/dsk > dsk_list
echo "Disk Translation Report" > disc_report
grep "ssd" /etc/path_to_inst |
while read MAIN SSD JUNK
do
echo ' echo "Disc is SSD'$SSD '" >> disc_report' >> discList
echo "grep " $MAIN " dsk_list| head -1 |
awk -f: '{print \$9} ' >> disc_report " >> discList
#
done
#
grep '"sd"' /etc/path_to_inst |
while read MAIN SSD JUNK
do
echo ' echo "Disc is SD'$SSD '" >> disc_report' >> discList
echo "grep " $MAIN " dsk_list| head -1 |
awk -f: '{print \$9} ' >> disc_report " >> discList
done
#
. discList dsk_list
rm discList dsk_list

Next UNIX Tip