Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

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.
See Thin Reclamation of a file system on page 27.
See the Veritas Storage Foundation Advanced Features Administrator's Guide.
You reclaim free storage 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.
You can specify the following thin reclamation options with the fsadm command:
Initiates Thin Storage aggressive reclamation.aggressive
Initiates the analyze reclaim option.analyse|analyze
Initiates the auto reclaim option.auto
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.
51VxFS performance: creating, mounting, and tuning file systems
Monitoring free space