SUMMARY: Check disk size

2007-12-25 5:59:00

Hi All,

Thanks to those that replied to my problem, specialy Reggie Beavers, Shyam
Hazari and Pascal Grostabussiat.

I am waiting for HDS Support to see if there is a tool for Solaris like
xpinfo to dig out information from TagmaStore.

Meanwhile, I made the script below, using prtvtoc - tested on E20K running
Solaris 9:

CTLR=$(cfgadm -la | grep fc-fabric|awk '{print $1}')
for DISK in `ls /dev/rdsk/${CTLR}*s2`
do
echo $DISK | tr -d "\n"
prtvtoc $DISK | sed -n '/Partition/{n;p;}' | awk '{print " -",
$5/1024/1024"Gb"}'
done

The output should be:

/dev/rdsk/c2t50060E8004295120d0s2 - 0.0732422Gb
/dev/rdsk/c2t50060E8004295120d10s2 - 144.163Gb
/dev/rdsk/c2t50060E8004295120d11s2 - 144.163Gb
/dev/rdsk/c2t50060E8004295120d12s2 - 144.163Gb
/dev/rdsk/c2t50060E8004295120d13s2 - 36.0278Gb
...

Best Regards,

Frederico B. Caldeira
Unix Administrator
Embraer - SJK

Comments

Got something to say?

You must be logged in to post a comment.