Veritas™ File System 5.0.1 Administrator's Guide
Specifies the path name of the raw device if there is no entry in
/etc/fstab and fsadm cannot determine the raw device.
-r rawdev
Example of shrinking a file system
The following example shrinks a VxFS file system mounted at /ext to 20480
sectors.
To shrink a VxFS file system
◆
Shrink a VxFS file system mounted at /ext to 20480 sectors:
# fsadm -F vxfs -b 20480 /ext
Warning: After this operation, there is unused space at the end of the device.
You can then resize the device, but be careful not to make the device smaller
than the new size of the file system.
Reorganizing a file system
You can reorganize or compact a fragmented file system using fsadm, even while
the file system is mounted. This may help shrink a file system that could not
previously be decreased.
Note: If a file system is full or busy, the reorg operation may fail.
To reorganize a VxFS file system
◆
Use the fsadm command to reorganize a VxFS file system:
fsadm [-F vxfs] [-e] [-d] [-E] [-D] [-r rawdev] mount_point
The file system type.vxfs
Reorders directory entries to put subdirectory entries first, then
all other entries in decreasing order of time of last access. Also
compacts directories to remove free space.
-d
Reports on directory fragmentation.-D
Minimizes file system fragmentation. Files are reorganized to
have the minimum number of extents.
-e
Quick Reference
Resizing a file system
200