Shiv,
I run a script once a month that checks for it, and generates the report, but then does not defrag. (We only have OnlineJFS for our DB machines...)
#!/bin/ksh
# Filesystem fragmentation checker
# written by jjp 22 May 2003
# To defrag a fragmented filesystem, do a 'fsadm -D -d -E -e /filesystem'
# This will run a report on the fragmentation before and after the run
rm /home/ucs/jjp/fragmentreport
touch /home/ucs/jjp/fragmentreport
for i in `bdf -l |grep -v Filesystem |awk '{print $6}'`
do
if [ $i != "/stand" ]; then
uname -n
print $i
fsadm -F vxfs -D -E $i
fi
done
The report lets you know what kind of fragmentation you have. (You have to extrapolate from the report.) I run the script each month, then have one of my student employees pore over the reports to see what's starting to become fragmented. I have a little paper I can dig up for you that explains what to look for if you can't figure it out ffrom the man page. (man fsadm)
Hope it helps
John
Spoon!!!!