VERITAS Storage Foundation 4.1 Oracle Administrator's Guide
Understanding Fragmentation Prerelease 8 September 2005, 8:54am
78 VERITAS Storage Foundation for Oracle Administrator’s Guide
Usage Notes
◆ If you specify -d and -e, directory reorganization is always completed first.
◆ If you use both -D and -E with the -d and -e options, the fragmentation reports are produced
both before and after reorganization.
◆ The -t and -p options control the amount of work performed by fsadm, either in a specified
time or by a number of passes. By default, fsadm runs five passes. If both -t and -p are
specified, fsadm exits if either of the terminating conditions are reached.
Note You must have superuser (root) privileges to reorganize a file system using the fsadm
command.
▼ To defragment a file system using the command line
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 -F vxfs [-d] [-D] [-e] [-E] [-s] [-v] \
[-l largesize] [-a days] [-t time] [-p pass_number] \
[-r rawdev_path] mount_point
Refer to the File System Administrator’s Guide for instructions and information on scheduling
defragmentation.
Example
To defragment a file system:
# /opt/VRTS/bin/fsadm -F vxfs -d -D /oradata_qiovm
Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 5 1 4 0 00
Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 5 1 4 0 00
-r Specifies the pathname of the raw device to read to determine file layout and
fragmentation. This option is used when fsadm cannot determine the raw device.