Unix
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Unix

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old November 2nd, 2005, 02:32 PM
Jeff Lightner
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
fsadm defrag doesn't work as well as restoring files after newfs?

We have a couple of filesystem that had 10 x 512 MB 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
fragmentation.

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
fragmentation.

Since we have JFS 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. doing the
fsadm -ed though I saw some but not a lot of improvement in
fragmentation. 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
678-486-3516

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Unix > fsadm defrag doesn't work as well as restoring files after newfs?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT