beautypg.com

Diskutil, Installer, Diskutil 596 – Apple Mac OS X Server (version 10.2.3 or later) User Manual

Page 596: Installer 596

background image

596

Chapter 17

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 in to, 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 “diskutil” in a Terminal window for usage information for 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.

installer

You can use the installer tool to install software packages from a CD-ROM on a mounted
remote server volume. This tool doesn’t perform any authentication, so if a package needs
authentication (set in the package’s .info file), you must log in as root or use the sudo
command.

Remember that copyright laws may prevent certain programs from being shared. Before
putting programs inside shared folders, check the applicable licensing agreements and follow
their requirements.

LL0395.Book Page 596 Wednesday, November 20, 2002 11:44 AM