Operating System - HP-UX
1753770 Members
5124 Online
108799 Solutions
New Discussion

Defragmentation of all mount points?

 
SOLVED
Go to solution
Peter A. Berger Jr.
Regular Advisor

Defragmentation of all mount points?

Is it possible to cron a job that will defragement "all" mountpoints/filesystems on a given machine?
I know this doesn't work but something like this:

# fsadm -F vxfs -e -d *

Any help would be great. Thanks.:)
1 REPLY 1
Pete Randall
Outstanding Contributor
Solution

Re: Defragmentation of all mount points?

I cron the following script to run weekly:


#!/bin/ksh
for i in `bdf -l |grep -v Filesystem |awk '{ print $6 }'`
do
if [ $i != "/stand" ]; then
fsadm -F vxfs -d -D -e -E $i
fi
done


Pete

Pete