[HPADM] fsadm defrag doesn't work as well as restoring files after newfs?
From: Jeff Lightner (jlightner_at_water.com)
Date: Wed, 2 Nov 2005 14:25:00 -0500 To: <hpux-admin@DutchWorks.nl>
We have a couple of filesystem that had 10 x 512 MB Oracle redo logs on
each. We added space to the filesystems and the DBAs then expanded the
10 redo logs from 512 MB to 1 GB each. They are now complaining about
performance of the redo logs and claim it has to do with filesystem
They claim the last time they did something similar (256 MB to 512 MB)
that they had the admin copy the files out (with the DB down of course)
then newfs the filesystem and copy the files back in to get rid of the
Since we have OnlineJFS this seemed unnecessary to me and sure enough on
reading and perusing forums found info on doing fsadm -ed for defrag.
(-e for extent level and -d for directory level).
As a test I used a separate filesystem and did prealloc to create 10 x
512 MB files. I then did a remove of the first file and did prealloc to
1 GB then a remove of the second file and a prealloc to 1 GB etc...
until all 10 had been done. This all to simulate the fragmentation.
Running ncheck and sorting/grepping for different information I was able
to see the different extent ranges in use for each of the files. I also
ran fsadm -ED to see the extent/directory fragmentation. On doing the
fsadm -ed though I saw some but not a lot of improvement in
fragmentation. On read of the man page I saw comments about maximum
extent size allowed for move being modified with -l. Since default was
64 and max was 2048 I tried the fsadm -ed -l 2048 to see if it helped
but it didn't.
However when I did the copy out to another filesystem then did a newfs
on the original and copied back in sure enough ncheck showed a much
better defragmentation. It appears therefore the fsadm defrag isn't of
much use (at least for my 1 GB files).
So am I missing something or is it just that the fsadm defrag really has
no value for this purpose?
Note: Please don't suggest "-F vxfs" as vxfs is in /etc/default/fs and
per the man page that is the fstype it assume if -F isn't specified.
Jeffrey C. Lightner
Unix Systems Administrator
DS Waters of North America
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact firstname.lastname@example.org Name: email@example.com Owner: firstname.lastname@example.org Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)