You can use the online administration utility fsadm to defragment or reorganize file system directories and extents.
The following options are for use with the fsadm utility:
Note: |
You must have superuser (root) privileges to reorganize a file system using the fsadm command. |
To defragment a file system
Run the fsadm command followed by the options specifying the type and amount of defragmentation. Complete the command by specifying the mount point or raw device to identify the file system.
# /opt/VRTS/bin/fsadm [-d] [-D] [-e] [-E] [-s] [-v] \
[-l largesize] [-a days] [-t time] [-p pass_number] \ [-r rawdev_path] mount_point
Refer to theVeritas File System Administrator's Guide for instructions and information on scheduling defragmentation. Veritas File System Administrator's Guide for instructions and information on scheduling defragmentation.
For example, to defragment a file system:
# /opt/VRTS/bin/fsadm -d -D /db2data_qiovm
Directory Fragmentation Report Dirs Total Immed Immeds Dirs to Blocks to Searched Blocks Dirs to Add Reduce Reduce total 5 1 4 0 0 0 Directory Fragmentation Report Dirs Total Immed Immeds Dirs to Blocks to Searched Blocks Dirs to Add Reduce Reduce total 5 1 4 0 0 0