Increases a file system's contiguous free space.
defragfs [ -q | -r ] { Device | FileSystem }
The defragfs command increases a file system's contiguous free space by reorganizing a file's allocations to be contiguous rather than scattered across the disk. You can specify the file system to be defragmented with the Device variable, the path name of the logical volume (for example, /dev/hd4). You can also specify it with the FileSystem variable, which is the mount point in the /etc/filesystems file.
The defragfs command is intended for fragmented and compressed file systems. However, you can use the defragfs command to increase contiguous free space in nonfragmented file systems.
You must mount the file system read-write for this command to run successfully. Using the -q flag or the -r flag generates a fragmentation report. These flags do not alter the file system.
-q | Reports the current state of the file system. |
-r | Reports the current state of the file system and the state that would result if the defragfs command is run without either -q or -r flag. |
defragfs /data1
defragfs /data1
defragfs -r /data1
/etc/filesystems | Lists the known file systems and defines their characteristics. |
The crfs command, the lsfs command, the mkfs command.
Understanding Data Compression, in the AIX Version 4.3 System Management Guide: Operating System and Devices book.
Understanding Fragments and a Variable Number of i-nodes, in the AIX Version 4.3 System Management Guide: Operating System and Devices book.