Open System Services Management and Operations Guide (G06.25+, H06.03+)

Managing With the Shell
Open System Services Management and Operations Guide527191-002
9-9
Defragmenting Disks
This command closes stdin, directs stdout to the file specified as errlog, directs
stderr to the file specified as outlog, then runs the specified command.
Here are some examples of using the find command to locate and delete files:
Delete all files in /var/tmp whose names begin with TMP that have not been
accessed in thirty days:
find /var/tmp -name 'TMP*' -atime -30 | xargs rm
Delete all files that are named a.out or whose names end in .o that have not
been accessed in sixty days:
find / -W NOG -W NOE \( -name a.out -o -name '*.o' \) \
-atime -60 | xargs rm
Defragmenting Disks
OSS development environments might be similar to UNIX environments in that users
can create a large number of small files. Such files fragment your disks and slow down
disk access considerably. To restore optimum disk access speed, run the Guardian
Disk Space Analysis Program/Disk Compression Program (DSAP/DCOM) utility
periodically to defragment the disks.
You can do this:
Automatically with either the OSS shell cron command or the optional Guardian
NetBatch product
While the OSS environment is running
Without stopping any filesets before you run DCOM
The syntax for the DCOM command to defragment a disk volume is:
volume
is the name of the disk volume you want to defragment.
Compressing Files
You can compress files to create more space on a disk. You can use:
The pack utility, which is a POSIX.2 utility
The compress utility, which provides more compression than pack
Both utilities compress a file and store the specified file in a compressed form. The
compressed (packed) file replaces the input file and has a name derived from the
original filename (filename.z in the case of the pack utility, filename.Z in the case
of the compress utility).
DCOM volume