Operating System - HP-UX
1834838 Members
3436 Online
110070 Solutions
New Discussion

Re: 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