Diskutil – Apple Mac OS X Server (Administrator’s Guide) User Manual

Page 557

Advertising
background image

Tools for Advanced Users

557

m By default, two predefined action scripts are executed when the thresholds are reached.

The default alert script is /etc/diskspacemonitor/action/alert. It runs in accord with
instructions in configuration file /etc/diskspacemonitor/alert.conf. It sends email to
recipients you specify.

The default recovery script is /etc/diskspacemonitor/action/recover. It runs in accord with
instructions in configuration file /etc/diskspacemonitor/recover.conf.

See the comments in the script and configuration files for more information about these
files.

m If you want to provide your own alert and recovery scripts, you can. Put your alert

script in /etc/diskspacemonitor/action/alert.local and your recovery script in
/etc/diskspacemonitor/action/recovery.local. Your scripts will be executed before
the default scripts when the thresholds are reached.

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.

diskutil

This Mac OS X tool is especially useful in a server environment, because it offers a wide
variety of commands for managing and repairing disks. For example:

m To list the disks and partitions on the Mac OS X computer you are logged into, type

“diskutil list” in a Terminal window.

m To create a Redundant Array of Independent Disks (RAID) set on multiple disks, type

“sudo diskutil createRAID mirror MirrorDisk BootableHFS+ disk1 disk2”. Root access
is required.

m To verify the disk structure of a volume, type “sudo diskutil verifyDisk /Volumes/

SomeDisk”. To repair the disk structure, type “sudo diskutil repairDisk /Volumes/
SomeDisk”. Root access is required.

m To verify permissions of a Mac OS X boot volume, type “sudo diskutil verifyPermissions / ”.

Root access is required.

Type “man diskutil” in a Terminal window for complete information about this command.

To run diskutil on a Mac OS X computer from a remote Mac OS X computer, open a Terminal
window and log in to the remote computer using SSH.

Advertising
This manual is related to the following products: