94

Controlling Spotlight Indexing

By default, indexing of volumes in Mac OS X Server is disabled. However, you can use the mdutil tool to enable or disable indexing on any volume.

To enable indexing on a volume:

Run the mdutil tool as root and set the indexing status to on.

$ sudo mdutil -i on volume

To disable indexing on a volume:

Run the mdutil tool as root and set the indexing status to off.

$ sudo mdutil -i off volume

See the mdutil man page for more information.

Managing RAID Volumes

In addition to standard drive management options, diskutil has the ability to manage software RAID volumes.

To create a RAID set:

$ diskutil createRAID type setName volType disks

Parameter

Description

type

Mirror or stripe.

 

 

setName

Name of the new RAID volume.

 

 

volType

HFS, HFS+, UFS, or BootableHFS.

 

 

disks

List of device names for members of the RAID set.

 

 

To get a list of of disks available to add to a RAID set:

$ diskutil list

Similarly, you can remove a RAID set with the diskutil destroyRAID command.

To view a list of available RAID sets:

$ diskutil checkRAID device

ParameterDescription

device

Device file.

To create an unpaired mirrored RAID from a single file system disk:

$ diskutil enableRAID mirror device

Parameter

Description

mirror

Name of the mirror RAID set.

 

 

device

Device file.

 

 

Chapter 7 Working with Disks and Volumes

Page 94
Image 94
Apple Mac OS X Server manual Managing RAID Volumes, Controlling Spotlight Indexing