Skip to main content

14.2.5 Creating a Hardware RAID Volume


14.2.5 Creating a Hardware RAID Volume
Use one of the following commands to create a hardware RAID volume, depending on the hardware RAID configuration being created.
  1. To create a RAID0 volume
{0} ok target1 target2 create-raid0-volume
  1. To create a RAID1 volume
{0} ok target1 target2 create-raid1-volume
  1. To create a RAID10 volume
{0} ok target1 target2 target3 target4 create-raid10-volume
Note - RAID10 is not supported on the SPARC M10-4/M10-4S/M10-1.
  1. To create a RAID1E volume
{0} ok target1 target2 target3 create-raid1e-volume
The following settings are common to all of these commands.
Specify a target number that can be checked with the show-children command to target 1, target 2, target 3, and target 4. A target cannot belong to multiple volumes.
These commands are interactive, so a volume capacity in MB and a volume name of up to 15 characters can be specified. When the volume capacity is not specified, then it is created with the maximum capacity.
Operation Procedure
  1. Prepare for creating a hardware RAID volume.
    For details, see "14.2.4 Preparation Before Hardware RAID Operation."
  2. From the execution results of the show-children command, determine the targets for creating a hardware RAID volume.
  3. Execute create-raid0-volume, create-raid1-volume, create-raid10-volume, or create-raid1e-volume to create a hardware RAID volume using physical disks.
    In the following example, a and b are specified as the targets and a RAID0 volume is created with the maximum capacity volume and without specifying a volume name.
{0} ok a b create-raid0-volume
Target a size is 1169920000 Blocks, 598 GB
Target b size is 1169920000 Blocks, 598 GB
The volume can be any size from 1 MB to 1142500 MB
What size do you want? [1142500] [Enter]
Volume size will be 2339840000 Blocks, 1197 GB
Enter a volume name: [0 to 15 characters] [Enter]
Volume has been created
  1. In the following example, a and b are specified as the targets and a RAID1 volume is created with the maximum capacity volume and without specifying a volume name.
{0} ok a b create-raid1-volume
Target a size is 1169920000 Blocks, 598 GB
Target b size is 1169920000 Blocks, 598 GB
The volume can be any size from 1 MB to 571250 MB
What size do you want? [571250] [Enter]
Volume size will be 1169920000 Blocks, 598 GB
Enter a volume name: [0 to 15 characters] [Enter]
Volume has been created
  1. In the following example, a, b, c, and d are specified as the targets and a RAID10 volume is created with the maximum capacity volume and without specifying a volume name.
{0} ok a b c d create-raid10-volume
Target a size is 1169920000 Blocks, 598 GB
Target b size is 1169920000 Blocks, 598 GB
Target c size is 1169920000 Blocks, 598 GB
Target d size is 1169920000 Blocks, 598 GB
The volume can be any size from 1 MB to 1142500 MB
What size do you want? [1142500 ] [Enter]
Volume size will be 2339840000 Blocks, 1197 GB
Enter a volume name: [0 to 15 characters] [Enter]
Volume has been created
  1. In the following example, a, b, and c are specified as the targets and a RAID1E volume is created with the maximum capacity volume and without specifying a volume name.
{0} ok a b c create-raid1e-volume
Target a size is 1169920000 Blocks, 598 GB
Target b size is 1169920000 Blocks, 598 GB
Target c size is 1169920000 Blocks, 598 GB
The volume can be any size from 1 MB to 856875 MB
What size do you want? [856875] [Enter]
Volume size will be 1754880000 Blocks, 898 GB
Enter a volume name: [0 to 15 characters] [Enter]
Volume has been created
  1. Execute the show-volumes command, and confirm that synchronization of the created RAID volume has completed.
    The following example checks the contents of the RAID 1 volume.
  1. Example where synchronization has completed
{0} ok show-volumes
Volume 0 Target 11e Type RAID1 (Mirroring)
WWID 0d061173730f12d5
Optimal Enabled Data Scrub In Progress
2 Members 1169920000 Blocks, 598 GB
Disk 0
Primary Optimal
Target a TOSHIBA MBF2600RC 3706 PhyNum 0
Disk 1
Secondary Optimal
Target b TOSHIBA MBF2600RC 3706 PhyNum 1
{0} ok
  1. Example where synchronization is in progress
{0} ok show-volumes
Volume 0 Target 11e Type RAID1 (Mirroring)
WWID 0d061173730f12d5
Optimal Enabled Background Init In Progress
2 Members 1169920000 Blocks, 598 GB
Disk 0
Primary Optimal
Target a TOSHIBA MBF2600RC 3706 PhyNum 0
Disk 1
Secondary Optimal
Target b TOSHIBA MBF2600RC 3706 PhyNum 1
{0} ok
Note - Confirm that the synchronization has completed, before going to step 5. If you execute the unselect-dev command while synchronization is in progress, the synchronization processing stops.
Note - When two RAID volumes are created under the same SAS controller, the RAID volume created first is numbered as "1", and the RAID volume created second is numbered as "0".
  1. Execute the unselect-dev command to unselect the controller that was selected during preparation.
{0} ok unselect-dev
{0} ok
Note - On Oracle Solaris, it is recognized as one disk drive (Vendor is "LSI", Product is "Logical Volume") per created RAID volume. In addition, incorporating the RAID volume changes the device path as follows.
Device path of disk drive not incorporated in the hardware RAID:
/device path of the sas controller/iport@f/disk@w[SAS address of the disk drive] (or, /scsi_vhci/disk@g[SAS device name of the disk drive])
is changed to:
Device path of the RAID volume:
/device path of the sas controller/iport@v0/disk@w[device name of the RAID volume]

The following shows output examples when the format command is executed in an environment where both [Disk drives not incorporated in the hardware RAID] and [Hardware RAID volume] exist.
  1. Example of output message 1
    At Oracle Solaris installation and right after Oracle Solaris installation
root# format
Searching for disks... done

AVAILABLE DISK SELECTIONS:
[Disk drives not incorporated in the hardware RAID]
0. c2t50000394882899F6d0 <TOSHIBA-AL13SEB600-3702 cyl 64986 alt 2 hd 27 sec 668>
/pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@f/disk@w50000394882899f6,0
/dev/chassis/FUJITSU-BBEXP.500000e0e06d257f/013P_HDD00/disk
[RAID volume]
1. c3t3DF694DFC21FFDA9d0 <LSI-Logical Volume-3000 cyl 65533 alt 2 hd 32 sec 557>
/pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3df694dfc21ffda9,0
  1. Example of output message 2
    Environment where setting to make the built-in disk drive an MPxIO was executed (or Enhanced Support Facility 5.0 or later is applied)
root# format
Searching for disks... done

AVAILABLE DISK SELECTIONS:
[Disk drives not incorporated in the hardware RAID]
0. c0t50000394882899F4d0 <TOSHIBA-AL13SEB600-3702 cyl 64986 alt 2 hd 27 sec 668>
/scsi_vhci/disk@g50000394882899f4
/dev/chassis/FUJITSU-BBEXP.500000e0e06d257f/013P_HDD00/disk
[RAID volume]
1. c3t3DF694DFC21FFDA9d0 <LSI-Logical Volume-3000 cyl 65533 alt 2 hd 32 sec 557>
/pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3df694dfc21ffda9,0
Note - The following messages may be displayed when Oracle Solaris is started. This indicates that there is no label information on the RAID volume. A RAID volume in this state cannot be used on Oracle Solaris. It is usable on Oracle Solaris after executing the format command, selecting the appropriate RAID volume, and then labeling it.
  1. Example of output message
Jan 16 02:46:48 solaris cmlb: WARNING: /pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0 (sd2):
Jan 16 02:46:48 solaris Corrupt label; wrong magic number
  1. Example of executing the format command
root@solaris:/root# format
Searching for disks...
Jan 16 02:46:35 solaris cmlb: WARNING: /pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0 (sd2):
Jan 16 02:46:35 solaris Corrupt label; wrong magic number
Jan 16 02:46:35 solaris cmlb: WARNING: /pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0 (sd2):
Jan 16 02:46:35 solaris Corrupt label; wrong magic number
done
c2t3AA6D102F1BF517Ad0: configured with capacity of 556.97GB
AVAILABLE DISK SELECTIONS:
0. c2t3AA6D102F1BF517Ad0 <LSI-Logical Volume-3000 cyl 65533 alt 2 hd 32 sec 557>
/pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0
Specify disk (enter its number): 0
selecting c2t3AA6D102F1BF517Ad0
[disk formatted]
Jan 16 02:46:48 solaris cmlb: WARNING: /pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0 (sd2):
Jan 16 02:46:48 solaris Corrupt label; wrong magic number
Jan 16 02:46:54 solaris cmlb: WARNING: /pci@8000/pci@4/pci@0/pci@0/scsi@0/iport@v0/disk@w3aa6d102f1bf517a,0 (sd2):
Jan 16 02:46:54 solaris Corrupt label; wrong magic number
Disk not labeled. Label it now? yes