1833007 Members
3000 Online
110048 Solutions
New Discussion

Defrag Filesystem

 
Mohd Syafid Abdullah
Regular Advisor

Defrag Filesystem

Hi Guru,

Anybody can guide me the step to
defrag UX 11 filesystem.


Thanks.
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Defrag Filesystem

Hi:

VxFS filesystem defragmentation is done with 'fsadm' and is discussed and described in the manpages for 'fsadm(1M)':

http://www.docs.hp.com/en/B2355-60127/fsadm_vxfs.1M.html

Regards!

...JRF...
Mohd Syafid Abdullah
Regular Advisor

Re: Defrag Filesystem

The man pages too short and im really don't understand it.

How to check my filesystem type?
Bill Hassell
Honored Contributor

Re: Defrag Filesystem

The filesystem type is listed in /etc/fstab for each mountpoint. However, the VxFS design makes it quite difficult for fragmentation to take place. Use fsadm -D for each filesystem to see whether there is any need. I think you'll find that unlike PCs, the VxFS filesystems (and also any HFS filesystems) never need defrag.


Bill Hassell, sysadmin
Mohd Syafid Abdullah
Regular Advisor

Re: Defrag Filesystem

when i run fsadm -D /home , the system return something that u can refer to attaachment file.
please guide

thanks
Roberto Arias
Valued Contributor

Re: Defrag Filesystem

Hi all

You need HP-OnlineJFS product of HP for this.

For defrag filesystem i use fsadm -DEde , this command defrag the FS and give me a report for this.

For known the type of filesystem you can use fstyp -v

best regards

Roberto Arias
The man is your friend
Mridul Shrivastava
Honored Contributor

Re: Defrag Filesystem

If you try the following command there will be lots of information
#man fsadm_vxfs

anyway u can use following options:
-D Report on directory fragmentation. If specified in
conjunction with the -d option, the fragmentation
report is produced both before and after the
directory reorganization.


-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 Report on extent fragmentation. If specified in
conjunction with the -e option, the fragmentation
report is produced both before and after the extent
reorganization.
-e Reorganize extents. Minimize file system
fragmentation. Files are reorganized to have the
minimum number of extents.
Time has a wonderful way of weeding out the trivial
Roberto Arias
Valued Contributor

Re: Defrag Filesystem

hi all:

please try this:

fsadm -F -DEde

Ex:

fsadm -F vxfs -DEde /var

Best regards
Roberto Arias
The man is your friend
Bill Hassell
Honored Contributor

Re: Defrag Filesystem

From the fsadm defrag report, you can see that there is no fragmentation and you'll no improvement whatsover by defragging the /home directory. If thousands (not dozens) of directories and tens of thousands of files are in a single directory, and hundreds files are constantly being created and removed all day, then defrag mught report a larger number. But as mentioned, VxFS cannot be compared to a PC filesystem, so defrag almost never needed.


Bill Hassell, sysadmin