Wednesday, January 25, 2012

Creating RAID1 Using the FCODE Facility (from OBP) in Oracle SPARC T3-2 Server


1. List the device paths on the server
ok show-devs
Look for lines ending with scsi@0. We had only one controller.
/pci@400/pci@2/pci@0/pci@e/scsi@0

2. Select the controller:
ok select /pci@400/pci@2/pci@0/pci@e/scsi@0

ok show-volumes
No volumes to show

If volumes are present then can be removed by selecting the appropriate controller and using delete-volume. In case there are two controllers you need to delete volumes on both.

3. To create a RAID1 volume to mirror the boot disks, show-children command was used to list the physical drives on the selected controller:
ok show-children
FCode Version 1.00.54, MPT Version 2.00, Firmware Version 5.00.17.00

Target 9
  Unit 0   Disk   HITACHI  H106030SDSUN300G A2B0    585937500 Blocks, 300 GB
  SASDeviceName 5000cca012c84f98  SASAddress 5000cca012c84f99  PhyNum 0
Target a
  Unit 0   Removable Read Only device   ###TEAC    DV-W28SS-R      1.0C                    ########################################
  SATA device  PhyNum 7
Target b
  Unit 0   Disk   HITACHI  H106030SDSUN300G A2B0    585937500 Blocks, 300 GB
  SASDeviceName 5000cca01298f514  SASAddress 5000cca01298f515  PhyNum 1

4. Create a RAID 1 volume with (in our case) targets 9 & b:
ok 9 b create-raid1-volume
Target 9 size is 583983104 Blocks, 298 GB
Target b size is 583983104 Blocks, 298 GB
The volume can be any size from 1 MB to 285148 MB
What size do you want?  [285148 #]
Volume size will be 583983104 Blocks, 298 GB
Enter a volume name:  [0 to 15 characters] RAID1
Volume has been created

5. Verify creation of the volume:
ok show volumes
Volume 0 Target 389  Type RAID1 (Mirroring)
  Name RAID1  WWID 0d794abefd76899a
  Optimal  Enabled  Background Init In Progress
  2 Members                                         583983104 Blocks, 298 GB
  Disk 0
    Primary  Optimal
    Target 9      HITACHI  H106030SDSUN300G A2B0
  Disk 1
    Secondary  Optimal
    Target b      HITACHI  H106030SDSUN300G A2B0

ok show-children

FCode Version 1.00.54, MPT Version 2.00, Firmware Version 5.00.17.00

Target a
  Unit 0   Removable Read Only device   TEAC    DV-W28SS-R      1.0C
  SATA device  PhyNum 7
Target 389 Volume 0
  Unit 0   Disk   LSI      Logical Volume   3000    583983104 Blocks, 298 GB
  VolumeDeviceName 3efd2bb69ef55490  VolumeWWID 0efd2bb69ef55490
{0} ok

The hardware RAID1 volume was successfully created. Notice that show-volumes still displays (Mirroring) with both disks as 'Optimal'. Now we can go ahead with the OS installation on the created RAID1 volume.

1 comment:

  1. Hi...

    Thanks for this information. I 'inherited' a couple off-maintenance T5120s at my new job and am in the process of re-purposing them. Couldn't get the tools to work in Solaris, but this worked great... now on to installing Debian!

    ...brig

    ReplyDelete