Specifications

Chapter 7 Working with Disks and Volumes 89
These scripts reclaim space used by log files generated by the following services:
 Apple file service
 Windows service
 Web service
 Web performance cache
 Mail service
 Print service
As configured, the scripts specify actions that complement the log file management
performed by the services listed above, so don’t modify them. Log in as an
administrator and use a text editor to define thresholds in the configuration files that
determine when actions are taken. Thresholds include:
 The number of megabytes a log file must contain before its space is reclaimed.
 The number of days since a log files last modification that need to pass before its
space is reclaimed.
Specify one or both thresholds. The actions are taken when either threshold is
exceeded.
You can specify several additional parameters. For information about the parameters
and how to set them, see comments in the configuration files.
The scripts ignore log files except those for which at least one threshold is present
in the configuration file.
To configure the scripts on a server from a remote Mac OS X computer, open a Terminal
window and log in to the remote server using SSH. Then, open a text editor and edit
the scripts.
You can also use the diskspacemonitor tool to reclaim disk space.
Using the diskutil Tool
You can use diskutil to erase, modify, verify, and repair disks. This command provides
functionality that overlaps the functionality of pdisk, newfs_hfs, and disktool.
For example, you can use diskutil and pdisk to partition a disk. However, unlike
pdisk, which lets you partition tables at their most basic level by setting the base
address and partition length in blocks, diskutil lets you partition a disk automatically
by calculating the base address and the partition length in blocks based on the
partition size you specify.
The
diskutil tool allows you to perform the following actions on a disk: