Veritas™ File System 5.0.1 Administrator's Guide

The after result is an indication of how well the reorganizer has performed. The
degree of fragmentation should be close to the characteristics of an unfragmented
file system. If not, it may be a good idea to resize the file system; full file systems
tend to fragment and are difficult to defragment. It is also possible that the
reorganization is not being performed at a time during which the file system in
question is relatively idle.
Directory reorganization is not nearly as critical as extent reorganization, but
regular directory reorganization improves performance. It is advisable to schedule
directory reorganization for file systems when the extent reorganization is
scheduled. The following is a sample script that is run periodically at 3:00 A.M.
from cron for a number of file systems:
outfile=/usr/spool/fsadm/out.‘/bin/date +'%m%d'‘
for i in /home /home2 /project /db
do
/bin/echo "Reorganizing $i"
/bin/timex fsadm -F vxfs -e -E -s $i
/bin/timex fsadm -F vxfs -s -d -D $i
done > $outfile 2>&1
Thin Reclamation
Veritas File System (VxFS) supports reclamation of free storage on a Thin Storage
LUN. Free storage is reclaimed using the fsadm command or the vxfs_ts_reclaim
API. You can perform the default reclamation or aggressive reclamation. If you
used a file system for a long time and must perform reclamation on the file system,
Symantec recommends that you run aggressive reclamation. Aggressive
reclamation compacts the allocated blocks, which creates larger free blocks that
can potentially be reclaimed.
See the fsadm_vxfs(1M) and vxfs_ts_reclaim(3) manual pages.
Thin Reclamation is only supported on file systems mounted on a VxVM volume.
The following example performs reclamation of free storage to the Thin Storage
LUN on a VxFS file system mounted at /mnt1:
# fsadm -R /mnt1
Veritas File System also supports reclamation of a portion of the file system using
the vxfs_ts_reclaim() API.
See the Veritas File System Programmer's Reference Guide.
VxFS performance: creating, mounting, and tuning file systems
Monitoring free space
50