1847584 Members
2734 Online
110265 Solutions
New Discussion

Re: Fragmentation

 
SOLVED
Go to solution
Trevor Meredith
Advisor

Fragmentation

Just want to know if there is any utility available for defragmenting, (or anything similar to that), drives in HP-UX.

Thank you
Trevor
'HP 9000' The best server I've worked on.
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: Fragmentation

The base OS has no tools to deal with fragmentation that I know of. You can periodically back up the filesystem and run newfs.

I don't think fragmentation is a huge problem with vxfs/JFS filesystems, but you'll get debate on that topic.

OnlineJFS comes with a defragmentation tool. Since our order has not gotten to us yet, I don't know how to use it. OnlineJFS costs bucks but its worth it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert-Jan Goossens
Honored Contributor

Re: Fragmentation

Robert-Jan Goossens
Honored Contributor

Re: Fragmentation

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062683855

Document description: Defragmenting using online JFS
Document id: JFS33KBAN00000250

Good weekend.
Brian Bergstrand
Honored Contributor

Re: Fragmentation

With HFS you don't have to really worry about fragmentation until the drive reaches 90% capacity.

With JFS, things are not quite so easy. In general, it acts the same as HFS, but it can fragment more than HFS even when not full. If you paid for Online JFS, you can use fsadm in a cron script everynight to defragment extents and directory entries (without unmounting). You can eve run reports to see what is fragmented. But this is only if you've paid for OJFS. The base JFS that comes with the system will not do these things.

HTH.
Pete Randall
Outstanding Contributor

Re: Fragmentation

Trevor,

Here's the script that I use for nightly defragging (assuming you have OnlineJFS):

for i in `bdf -l |grep -v Filesystem |awk '{ print $6 }'`
do
if [ $i != "/stand" ]; then
echo "Re-Org'ing " $i
fsadm -F vxfs -d -D -e -E $i
fi
done



Pete



Pete
Pete Randall
Outstanding Contributor

Re: Fragmentation

Trevor,

Sorry - make that weekly not nightly!



Pete



Pete
Trevor Meredith
Advisor

Re: Fragmentation

Thank you everyone, you have been a great help.

:)

Best regards
Trevor
'HP 9000' The best server I've worked on.