Operating System - HP-UX
1825805 Members
2021 Online
109687 Solutions
New Discussion

Re: file system defragmentation

 
SOLVED
Go to solution
gany59
Regular Advisor

file system defragmentation

hi how to do the file system defragmentation before reducing the file system .Is the defragmentation is applicable to both online JFS and Vxfs or not..please let me know the mount point is /apps. I need to know the syntax..
7 REPLIES 7
OldSchool
Honored Contributor

Re: file system defragmentation

see this post:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1327897


and

"man fsadm"

Not sure, but in some circumstances, OnlineJFS may be required
Michael Steele_2
Honored Contributor

Re: file system defragmentation

Hi

JFS is the marketing name for Veritas File System, or, vxfs, aka the tech. name. Base JFS / vxfs comes installed by default with the HP-UX O/S. For you to you defragmentation option and dynamic file system extend option you need a license to activate the Online JFS features.

Easiest way to test:

fsadm -F vxfs -D -E /apps

This is the reporting featuring or preview feature of the -d and -e or defrag options of Online JFS. You get a report, then you have Online and you can run:

fsadm -F vxfs -D -d -E -s /apps.

Note: Once started don't interrupt, and run during off business hours, like in a cron at midnight.

Note: Run before or after backup to reduce contention, probably before is best.
Support Fatherhood - Stop Family Law
Vivek Bhatia
Trusted Contributor

Re: file system defragmentation

Hi Gany,

You have a mount point /apps and you need to know the process for defragmentation.

1. fsadm -F vxfs -d -v -e /apps

Then you can reduce the file system online with the below command.

2. fsadm -F vxfs -b 15744M /apps

Regards
Vivek
gany59
Regular Advisor

Re: file system defragmentation

Hi Vivek

Could u able to tell the expansions of the arguments -d,-v,-e
Aneesh Mohan
Honored Contributor

Re: file system defragmentation

Hi,

#man fsadm_vxfs

Regards,
Aneesh
OldSchool
Honored Contributor

Re: file system defragmentation

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1349185

"see actually this was the question asked to me in interview. so i am very eager to know those things.. could u help me.. "

the purpose of the forums is not to teach hpux, but to assist w/ problems.
Vivek Bhatia
Trusted Contributor
Solution

Re: file system defragmentation

Hi Gany,

This is the output meaning of the options.

-d
Reorganize directories. Directory entries are reordered to place subdirectory entries first, then all other entries in decreasing order of time of last access. The directory is also compacted to remove free space.
-e
Extent reorganization. Attempt to minimize fragmentation. Files are reorganized to have the minimum number of extents possible.
-v
Verbose. Report reorganization activity.

It will be great if you assign points to everyone who has replied to your questions.

Regards
Vivek