1822101 Members
3403 Online
109640 Solutions
New Discussion юеВ

Re: System defragment

 
SOLVED
Go to solution
O'lnes
Regular Advisor

System defragment

If our system often delete files, should I run the UNIX defragment, how to run it? Thanks.

Andy
11 REPLIES 11
Michael Tully
Honored Contributor
Solution

Re: System defragment

This will only work if you have on-line JFS.

e.g.
Degragmentation Report
# fsadm -F vxfs -E /home

Does the de-frag and produces a report
# fsadm -F vxfs -e -s -E /home

If you don't have it, then you will need to backup the data/remove all files/restore.
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: System defragment

OUCH.

I'm not sure I would run such a utility, unless I had a perfect backup of vg00 and my other vg's.

When you say "often" does that include "a lot of files" (like thousands and thousands a day)?


live free or die
harry
Live Free or Die
Michael Tully
Honored Contributor

Re: System defragment

This will only work if you have on-line JFS.

e.g.
Degragmentation Report
# fsadm -F vxfs -E /home

Does the de-frag and produces a report
# fsadm -F vxfs -e -s -E /home

Have a look at the man page for 'fsadm_vxfs'

If you don't have it, then you will need to backup the data/remove all files/restore.

Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: System defragment

Michael,

Be careful where you place that beer :-) - and why are you drinking so early in the morning?

live free or die
harry
Live Free or Die
Bill Hassell
Honored Contributor

Re: System defragment

Almost never needed with HP-UX. Unlike a DOS/Windows filesystem, files and directories are added and deleted in a much more effective manner. For HFS filesystems, it's not possible to fragment the system because it is designed to be fragmented.

For VxFS, you would have to add and delete thousands of small and large files before it would any noticeable effect. And you'll need the optional product called Online JFS to display the fragmentation and reorganize the filesystem.


Bill Hassell, sysadmin
Michael Tully
Honored Contributor

Re: System defragment

Hi Harry,

It's actually Lunch time..... might head across the street for a quick schooner....

Cheers
Michael
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: System defragment

Bill,

I agree. In the old days, say the late 80's and early 90's I could restore a system (full restore) and see an improvement in processing, but today, it costs more to be down, and to tie people up restoring systems.

live free or die
harry
Live Free or Die
O'lnes
Regular Advisor

Re: System defragment

How can i get "on-line JFS" , is it free? Thanks.
Andy
Michael Tully
Honored Contributor

Re: System defragment

No, you have to pay for it if you don't already have it. Heres how to find it, if you have it.

# swlist -l product | grep -i JFS
JFS B.11.11 The Base VxFS File System
OnlineJFS B.11.11 Online features of the VxFS File System
PHKL_24026 1.0 JFS Filesystem swap corruption
PHKL_24073 1.0 Fix For Deadlock Between VM and JFS
Anyone for a Mutiny ?
O'lnes
Regular Advisor

Re: System defragment

What can i get the trial version? Thanks
Andy
Michael Tully
Honored Contributor

Re: System defragment

There is no trial version for online JFS. You have to buy it. Below is a link that I've included, that shows this information. The free JFS product does not include the options for defragmentation or on-line filesystem extention.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProducts.pl?group_type=search&group_name=online+jfs&search_free=1&search_trial=1&search_buy=1

From my last response:
# swlist -l product | grep -i JFS
JFS B.11.11 The Base VxFS File System (Free product)
OnlineJFS B.11.11 Online features of the VxFS File System (NOT FREE)
Anyone for a Mutiny ?