- Oracle Server CLI Tools for Oracle Solaris 11.4 User's Guide
- Using raidconfig to Configure RAID
- Creating and Deleting RAID Volumes
- Create a RAID Volume
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.
-
To create a RAID volume, type:
#
raidconfig create raid options -d disksFor 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,c1d1The
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 cachingenabled
– Enables RAID read ahead cachingenabled_adaptive
– Enables RAID read adaptive cachingNote:
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
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.
Parent topic: Creating and Deleting RAID Volumes