Operating System - HP-UX
1751858 Members
5991 Online
108782 Solutions
New Discussion юеВ

Re: how do you de-frag an HPUX 11.11 filesystem ?

 
Mark A. Smith
Occasional Advisor

how do you de-frag an HPUX 11.11 filesystem ?

I want to defrag some HPUX 11.11 filesystems,
I THINK to command would be:

fsadm -d -D -e -E /mountpoint

is this correct ?
if now, what would you use ?
5 REPLIES 5
Bill Hassell
Honored Contributor

Re: how do you de-frag an HPUX 11.11 filesystem ?

It's better to see if the filesystems need defragging. Unlike PCs, the design of the VxFS filesystem makes defragmentation virtually unnecessary. Use fsadm to show the directory and extent fragmentation (fsadm -E -D)


Bill Hassell, sysadmin
Rajeev Tyagi
Valued Contributor

Re: how do you de-frag an HPUX 11.11 filesystem ?

Mark,

This will do. It will report both Directory and extent report both after and before Defragmentation. Also confirm that you have online JFS installed to use this feature.
Deoncia Grayson_1
Honored Contributor

Re: how do you de-frag an HPUX 11.11 filesystem ?

for defragmentation you can use:

fsadm -F vxfs -d -D -d -E /mountpout

or you can use

fsadm -d /mountpoint
fsadm -D /mountpoint

All depends on why u're doing a defragmentation...

check this link for each option explanation:

http://docs.hp.com/en/B2355-90672/ch04s12.html
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Henk Geurts
Esteemed Contributor

Re: how do you de-frag an HPUX 11.11 filesystem ?

hi Mark
here are some useful threads about the subject:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=42944
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=133764
fsadm -D -> report on directory fragmentation
fsamd -d -> directory defrag
fsadm -E -> report on extend fragmentation
fsadm -e -> extend defrag
not sure if you can use all flags at once..just try and see.
You'll need OnlineJFS ....
hope it helps.
regards.
John Payne_2
Honored Contributor

Re: how do you de-frag an HPUX 11.11 filesystem ?

Mark,

You don't need OnlineJFS to run the reports on fragmentation. I have been running reports once a month for 3 years on our many machines (60 servers, many filesystems per server) looking for fragmentation. To date, nothing has gotten to the point that a filesystem needs defragging. (So I have not needed onlineJFS for this function, although I have it on a couple of machines for other reasons.)

Hope it helps

John
Spoon!!!!