Specifications
Chapter 7 Working with Disks and Volumes 97
Managing RAID Volumes
In addition to standard drive management options, you can use diskutil to manage
software RAID volumes.
To create a RAID set:
$ diskutil createRAID
type
setName
volType
disks
To get a list 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
To create an unpaired mirrored RAID set from a single file system disk:
$ diskutil enableRAID
mirror
device
To repair a failed mirror:
$ diskutil repairMirror
device
slicenumber
fromDisk
toDisk
Note: Xsan RAID volumes have their own commands, described in an appendix of the
Xsan Administrators guide. For information about the
megaraid tool (used for
managing a PCI RAID card), see the appendix.
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
Parameter Description
device
Device file
Parameter Description
mirror
Name of the mirror RAID set
device
Device file
Parameter Description
device
Device file
slicenumber
The slice number to replace
fromDisk
The mirror source
toDisk
The repaired mirror destination