- Oracle Hardware Management Pack 2.4 Server CLI Tools 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 raidsubcommand must take the-doption in addition to one or more of the options shown in the following table.Short Option Long Option Description -d--disksSpecifies a list of disks with a comma separating the disk ID numbers.
N/A
--levelSpecifies 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
--nameAssigns the user-defined name that identifies the RAID volume. This name can be set to an empty string ("").
N/A
--read-cacheRead 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-sizeSpecifies 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
--subarraysFor nested RAID levels (10, 50), specifies the size of the RAID components in number of physical disks.
N/A
--subdisk-sizeN/A
--write-cacheWrite 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