Reorganizing a file system
This section provides steps for reorganizing a file system.
In the following example, a system has a separate logical volume and file system hd11 (mount point: /home/op). Because we decide that file system hd11 needs to be reorganized, we do the following:
File: big1 Size: 3554273 bytes Vol: /dev/hd11
Blk Size: 4096 Frag Size: 4096 Nfrags: 868 Compress: no
Inode: 8290 Mode: -rwxr-xr-x Owner: hoetzel Group: system
INDIRECT BLOCK: 60307
Physical Addresses (mirror copy 1) Logical Fragment
---------------------------------- ----------------
0060299-0060306 hdisk1 8 frags 32768 Bytes, 0.9% 0008555-0008562
0060308-0061167 hdisk1 860 frags 3522560 Bytes, 99.1% 0008564-0009423
868 frags over space of 869 frags: space efficiency = 99.9%
2 fragments out of 868 possible: sequentiality = 99.9%
The -i option that we added to the fileplace command indicates that the one-block gap between the first eight blocks of the file and the remainder contains the indirect block, which is required to supplement the i-node information when the length of the file exceeds eight blocks.
Some file systems or logical volumes should not be reorganized because the data is either transitory (for example, /tmp) or not in a file system format (log). The root file system is normally not very volatile and seldom needs reorganizing. It can only be done in install/maintenance mode. The same is true for /usr because many of these files are required for normal system operation.