Saturday, April 12, 2008

VERITAS to check volume size

root # more volume.txt
db_bkup
usrvol
root # more c.sh
#! /bin/sh
for i in `cat volume.txt`
do
vxprint -ht $i | grep -i fsgen | nawk '{print "volume ",$2,"Total size: " $6/2/1024 " Mb"}'
done
root # sh c.sh
volume db_bkup Total size: 138620 Mb
volume usrvol Total size: 2048 Mb