Create a RAID Volume

Before using raidconfig to create volumes (which will overwrite any existing data on selected disks), use operating system tools to take an inventory of attached disks, their enumeration, and whether they contain data that you want to preserve. Be careful not to overwrite your OS boot disk or other logical disks used by applications.

  1. To create a RAID volume, type:

    # raidconfig create raid options -d disks

    For example, to create a RAID 0 volume with a stripe size of 128 Kb and read-ahead caching enabled on controller 1, type the following command:

    # raidconfig create raid --stripe-size=128 --read-cache=enabled -d c1d0,c1d1

    The create raid subcommand must take the -d option in addition to one or more of the options shown in the following table.

    Short Option Long Option Description

    -d

    --disks

    Specifies a list of disks with a comma separating the disk ID numbers.

    N/A

    --level

    Specifies the RAID level of the volume e.g. 0, 1, 1E, 5, 10, 50, 60 etc. The levels supported for a particular controller can be seen in the controller 'Supported RAID Levels' field from the list command. If this option is not supplied, a level of '0' is used.

    N/A

    --name

    Assigns the user-defined name that identifies the RAID volume. This name can be set to an empty string ("").

    N/A

    --read-cache

    Read cache can be one of the following:

    disabled – Disables RAID read caching

    enabled – Enables RAID read ahead caching

    enabled_adaptive – Enables RAID read adaptive caching

    Note:

    Only supported with SAS2 HBAs starting with the Sun Storage 6 Gb SAS RAID PCIe HBA, Internal (SGX-SAS6-R-INT-Z, SG-SAS6-R-INT-Z) and SAS3 HBAs starting with the Oracle Storage 12 Gb SAS RAID PCIe HBA, Internal (7110116, 7110117).

    N/A

    --stripe-size

    Specifies the stripe size, in kilobytes, of the RAID volume to be created. If this option is not supplied, the controller uses a default size.

    N/A

    --subarrays

    For nested RAID levels (10, 50), specifies the size of the RAID components in number of physical disks.

    N/A

    --subdisk-size

    See Creating RAID Volumes With Partial Disks.

    N/A

    --write-cache

    Write cache can be one of the following:

    disabled – Disables RAID write caching.

    enabled – Enables RAID write caching.

    enabled_protect – Enables caching only if the battery is available.

    Note:

    Only supported with SAS2 HBAs starting with the Sun Storage 6 Gb SAS RAID PCIe HBA, Internal (SGX-SAS6-R-INT-Z, SG-SAS6-R-INT-Z) and SAS3 HBAs starting with the Oracle Storage 12 Gb SAS RAID PCIe HBA, Internal (7110116, 7110117).

    The maximum capacity of the RAID volume is not configurable. You can create RAID from partial disks if the HBA or controller support it, and all the disks are of the same size.