solaris script for root device -
echo "determine solaris boot disk in cxtxdx format." bootpath=`prtconf -pv | grep bootpath | tr -d "'" | awk '{ print $2 }'` if [ -n "`echo $bootpath | grep "/disk"`" ] ; # bootpath contains "disk," /devices block device contains # either "sd" or "ssd" bootpath=`echo $bootpath | sed 's/disk@//'` boot_disk=`ls -l /dev/dsk | sed -e 's/ssd@//' -e 's/sd@//' \ | grep "$bootpath" 2>/dev/null | awk '{ print $9 }' | sed 's/s[0-7]//'` else boot_disk=`ls -l /dev/dsk | grep "$bootpath" 2>/dev/null | \ awk '{ print $9 }' | sed 's/s[0-7]//'` fi if [ -n "$boot_disk" ] ; echo "your boot disk ${boot_disk}." else echo "unable determine logical boot disk." fi the above script running need run below command can 1 me on this
metastat -c --> output comes
d0
d10 c0t0d0
d20 c0t1d0
ls -al /dev/dsk/disk 1 & disk 2
Comments
Post a Comment