This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



raidutil(8)                              BSD System Manager's Manual                             raidutil(8)

NAME
     raidutil -- Manage, manipulate, and view RAID objects.

SYNOPSIS
     raidutil [global options] verb direct-object arguments ...

DESCRIPTION
     raidutil utilizes the CoreRAID framework to manipulate RAID devices.

GLOBAL OPTIONS
     There are several global options that may be used with raidutil. These options are not specific to any
     particular verb. Instead they have a global effect upon the way that raidutil performs.  These global
     options are:

     -c <ControllerType> | --controller <ControllerType>
              This option (controller) allows the user to specify a controller type.

     -h | --help
              This option (help) will print the standard "usage" text.

     -t | --terse
              This option (terse) will minimize superfluous text.

     -v | --verbose
              This option (verbose) will maximize the amount of detailed infomation the program will pro-vide. provide.
              vide.

     -V | --version
              This option (Version) will print out version information about this program.

VERBS, DIRECT OBJECTS, AND SPECIFIC ARGUMENTS
     acknowledge event -n <EventNumber>
              Marks an event as acknowledged by specifiying an identifying event number.  The -n may also be
              expressed as --number.

     create raidset -n <NewRAIDSet> -d <ListOfDriveBays> -r <RaidLevel>
              Create a RAIDSet specifiying: a RAIDSet name; a list of drive bays; the RAID level.  The -n,
              -d, and -r flags may also be expressed as --name, --drives, and --raidlevel, respectively.

     create volume -n <NewVolumeName> -r <NameOfRAIDSet> -s <SizeOfVolume>
              Create a volume specifiying: a volume name; a RAIDSet to build the volume on; the size of the
              volume.  The -n, -d, and -s flags may also be expressed as --name, --raidset, and --size,
              respectively.

     delete raidset -n <NameOfRAIDSet> [-f] [-u]
              Remove a RAIDSet.  The name of the RAIDSet is specified using the -n argument.  The -n flag
              may also be expressed as --name.  The optional -f flag may also be expressed as --force.  The
              optional -u flag may also be expressed as --unmount.

     delete volume -n <NameOfVolume> [-r <RAIDSet>] [-f] [-u]
              Remove a volume.  The name of the volume is specified using the -n argument.  The -n flag may
              also be expressed as --name.  The optional -r flag may also be expressed as --raidset.  The
              optional -f flag may also be expressed as --force.  The optional -u flag may also be expressed
              as --unmount.

     list [devices]
              List all known RAID devices.  This is the default behavior if no direct object is specified.

     list status
              Prints an overview of status information for the targeted RAID device.

     list driveinfo
              Lists relevant information about any disk drives associated with the targeted RAID device.

     list eventinfo [-c n]
              Lists the last 100 event messages.  When provided, the optional 'count' argument, will limit
              the output to the last 'n' event messages (a value of 0 will display all event messsages).

     list raidsetinfo
              Lists relevant information about any RAIDSet associated with the targeted RAID device.

     list taskinfo
              Lists relevant information about any tasks associated with the targeted RAID device.

     list volumeinfo
              Lists relevant information about any volumes associated with the targeted RAID device.

     list versioninfo
              List version information about the targeted RAID device.

     modify controller [arguments listed below]
              This will allow the user to modify specific attributes of the targeted controller.
              --writeCacheBattery
              --WriteCacheEnable

     modify drive [arguments listed below]
              This will allow the user to modify specific attributes of the targeted drive.
              --addglobalspare -d <DriveBayNumber> [-Y | -N]
              --removeglobalspare -d <DriveBayNumber>
              --addlocalspare -d <DriveBayNumber> -r <RAIDSet> [-Y | -N]
              --removelocalspare -d <DriveBayNumber>
              --adopt -d <DriveBayNumber>

     modify raidset [arguments listed below]
              This will allow the user to modify specific attributes of the targeted RAIDSet.
              --addcapacity -n <RAIDSet> -d <ListOfDrives> [-Y | -N] [-W]
              --addmirror -n <RAIDSet> -d <ListOfDrives> [-Y | -N] [-W]
              --migratetoraid5 -n <RAIDSet> -d <ListOfDrives> [-Y | -N] [-W]
              --verify -n <RAIDSet> -p <ServicePriority> [-W]

     modify volume [arguments listed below]
              This will allow the user to modify specific attributes of the targeted volume.
              --expand -n <VolumeName> [-r <RAIDSet>] -s <SizeToAdd> [-W]
              --move -n <ListOfVolumes> -r <SourceRAIDSet> -t <TargetRAIDSet> [-W]
              --rewrite -n <VolumeName>  [-r <RAIDSet>] -p <ServicePriority> [-W]
              --verify -n <VolumeName>  [-r <RAIDSet>] -p <ServicePriority> [-W]

              NOTE: Valid values for <ServicePriority> are:  low, medium, high.

EXAMPLES
     raidutil create raidset -n set2 -d 1,2 -r J+
              This creates a RAIDSet named "set2", using the drives in bays one and two, with a raid level
              of "Enhanced JBOD."

     raidutil create volume -n volume1 -r set1 -s 1.5T
              This creates a volume named "volume1", on the RAIDSet named "set1".  The size of the volume
              will be 1.5 tebibytes.

     raidutil modify volume -n volume1 --move -r set1 -t set2 --waitfortask
              This moves the volume named "volume1", from the RAIDSet named "set1".  to the  RAIDSet named
              "set2".  The program will wait for the verification task to complete before proceeding.

     raidutil delete raidset -n setX
              This deletes a RAIDSet named "setX." Any volumes associated with this RAIDSet will also be
              destroyed.

     raidutil delete raidset -n setX --force
              Regardless of whether there are any mounted file systems associated with this group, this com-mand command
              mand deletes a RAIDSet named "setX." Any volumes associated with this group will also be
              destroyed.

     raidutil delete volume -n myVolume
              This deletes a volume named "myVolume."

     raidutil delete volume -n myVolume -r BigRAIDSet
              This specifically deletes a volume named "myVolume," that exists on the RAIDSet named BigRAID-Set. BigRAIDSet.
              Set.

     raidutil delete volume -n myVolume:BigRAIDSet
              This specifically deletes a volume named "myVolume," that exists on the group named BigRAID-Set. BigRAIDSet.
              Set.  Make note that this example uses a method of overloading the volume name with the group
              name in order to specify the group.

     raidutil list devices
              This will print out a list of all known RAID devices.

     raidutil list version
              This will print out version information for the RAID device.

COMPATIBILITY
   Specifying volumes
     When performing certain actions, it may be desirable to explicitly specify the group that a volume is
     built upon.  For example, when removing a volume, one might want to specify the associated group for
     clarity.  In these cases, an optional argument is generally available for this purpose.  An example of
     this is:

           # raidutil delete volume -n myVolume -r theBigRAIDSet

     A shortcut exists whereby the RAIDSet may be specified as a suffix to the volume name.  For example,
     this is equivelent to the previous command:

           # raidutil delete volume -n myVolume:theBigRAIDSet

     The RAIDSet name is simply added to the volume name using the colon character as a separator.  This
     shortcut is supported by all of the "modify volume" actions.

   Specifying Sizes
     When specifying data that indicates a numeric size, the value will be assumed to be expressed in
     megabytes (MB) unless otherwise indicated.

     For our purposes, we will treat all size units as 1000 based numbers.

     Values may be expressed in bytes by ending the value with the letter "B".

     Other units for measure storage space follow suit, as shown by the following table:

           kilobyte (KB) 2^10 = 1000 bytes
           megabyte (MB) 2^20 = 1000 * 1000 bytes
           gigabyte (GB) 2^30 = 1000 * 1000 * 1000 bytes
           terabyte (TB) 2^40 = 1000 * 1000 * 1000 * 1000 bytes
           petabyte (PB) 2^50 = 1000 * 1000 * 1000 * 1000 * 1000 bytes

     For the purposes of entering size information to this program, the default units are mebibytes (MiB).
     This program will support values expressed in the following units.  Acceptable abbreviations are listed
     after the name:

           one byte = 1B         ---  B
           kilobyte = 1000B      ---  K, KB
           megabyte = 1000K      ---  M, MB
           gigabyte = 1000M      ---  G, GB
           terabyte = 1000G      ---  T, TB
           petabyte = 1000T      ---  P, PB

     For example, each of the following commands will all create a volume named "theVolume" with a size of
     600 megabytes, on the RAIDSet named "RAIDSet":

           # raidutil create volume -n theVolume -s 600000K -r RAIDSet-A

           # raidutil create volume -n theVolume -s 600 -r RAIDSet

           # raidutil create volume -n theVolume -s 600M -r RAIDSet

           # raidutil create volume -n theVolume -s 0.6GB -r RAIDSet

           # raidutil create volume -n theVolume -s 0.0006TB -r RAIDSet

           # raidutil create volume -n theVolume -s 0.0000006P -r RAIDSet

   Special Size Values For Creating Volumes
     In place of a numeric value, the user may provide the word all.  When this is done the program will
     attempt to use the maximum valid value.  For example, the following command would create a  volume
     named "BigVolume", on the RAIDSet named "BigRAIDSet", using all available space on that RAIDSet:

           # raidutil create volume -n BigVolume -s all -r BigRAIDSet

     Similarly, the user may provide a value that indicates a percentage of available space.  This is done
     by providing a numeric value between 1 and 100 that is followed by the `%' character.  For example, the
     following command would create a  volume named "BigVolume", on the RAIDSet named "BigRAIDSet", using
     all available space on that RAIDSet:

           # raidutil create volume -n BigVolume -s 100% -r BigRAIDSet

     The following command would create a  volume named "MyVolume", on the RAIDSet named "MyRAIDSet", using
     one fifth of all available space on that RAIDSet:

           # raidutil create volume -n MyVolume -s 20% -r MyRAIDSet

     It should be noted that, all percentage values are rounded down to the nearest whole number.  Thus,
     33.333% becomes 33%, and 17.9321% becomes 17%.  Computed values are based on the RAIDSet available
     capacity attribute.

     NOTE:  The use of mebibyte and related units is strongly endorsed by IEC, IEEE and CIPM.  The mebibyte
     and related units are defined in the IEC document IEC 6__27-1.

EXIT STATUS
     The raidutil utility exits 0 on success, and >0 if an error occurs.

SEE ALSO
     diskutil(8), hdid(8), hdiutil(1), ufs.util(8), msdos.util(8), hfs.util(8), drutil(1),
     diskarbitrationd(8)

Mac OS                                         March 16, 2007                                         Mac OS

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...