1834512 Members
1955 Online
110068 Solutions
New Discussion

JFS Defragmentation

 
Sebastien Masson
Valued Contributor

JFS Defragmentation

How good is it to run fsadm -D and fsadm -E to defragment directory and extents ?! This is need to run each day in a cron or just when I believe my file system is too busy ? and in this last case, that will increas the speed of it ?! Some discussion about that... thanks
5 REPLIES 5
Paula J Frazer-Campbell
Honored Contributor

Re: JFS Defragmentation

Hi

The old answer is "It Depends".

What are your file systems doing?
Is data being moved around.
Etc.

On a busy file system where there is lots of file movement then defragmentation will be higher than other quieter systems.

So do a defrag report - defrag - and then say a week later do another defrag report.

This will enable you to make your decision for your file systems.

HTH

Paula
If you can spell SysAdmin then you is one - anon
Vincent Farrugia
Honored Contributor

Re: JFS Defragmentation

Hello,

Defragmentation is performed definitely before a file system reduction. I have never seen a large performance gain after defragmentation. Nowadays hardisks are so fast it's not noticable. But it's good practice to do it about once a month/2 months. It depends on the frequency of creation of new files.

HTH,
Vince
Tape Drives RULE!!!
Darrell Allen
Honored Contributor

Re: JFS Defragmentation

Hi Sebastien,

I agree, definitely before trying to reduce the size of a filesystem (use both options). Otherwise I generally don't defrag. If I had filesystems with a lot of file creation, deletion, or modifications then I'd expect to defrag. It would be wise to gather stats on performance before and after to see what you actually gain then adjust your interval between defrags accordingly.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
harry d brown jr
Honored Contributor

Re: JFS Defragmentation

Because "It Depends", what are the type of files, typical file sizes, growth, deletion, etc on this filesystem?

live free or die
harry
Live Free or Die
Craig Rants
Honored Contributor

Re: JFS Defragmentation

Sebastien,
I think if HP thought it was important to defragment you system all on a constant basis they would probably give you that ability without having to buy software, then again...

If you are worried about disk I/O I would look at the way your disks are layed out, proper design would go much farther to improve disk I/O than defragmenting ever would.

Just my thoughts,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut