To Create a Logical Drive With the pcli Utility

  1. Use the /c0/eall/sall show command to list all the physical drives attached to the HBA.

    Drives attached directly to the HBA are assigned an Enclosure Device ID number of 252 (only eight physical drives can be attached in this way). Drives connected to the HBA through a SAS expander or an external enclosure are assigned different Enclosure Device ID values. In the following example, the physical drive listed in the output is attached directly to the HBA (Enclosure Device ID value of 252).

                      {0} ok 
                      cli 
                      /c0/eall/sall show
    
      Drive Information :
      =================
    
    -------------------------------------------------------------------------------
      EID:Slt DID State  DG       Size Intf Med SED PI SeSz       Model            Sp
      -------------------------------------------------------------------------------
      252:0    41 UGood   0 557.861 GB SAS  HDD N   N  512B       ST360057SSUN600G  U
      252:1    25 UGood   0 557.861 GB SAS  HDD N   N  512B       ST360057SSUN600G  U
  2. Use the add command to create a logical drive (MegaRAID virtual disk) from the physical disks.
                      {0} ok 
                      cli add vd r0 drives=252:0 -- for RAID 0, with Enclosure #252 and Slot 0 --
    {0} ok 
                      cli add vd r1 drives=252:0,1 -- for RAID 1, with Enclosure #252 and Slots 0 and 1 --
    
  3. Use the format(1M) utility to label the physical disks from which you created the logical drive.

    All disks used by the HBA must be labeled, or contain a volume table of contents (VTOC). If you attempt to use an unlabeled disk with the HBA, the disk might not be recognized by the OS or the OS installation itself might fail. For more information about labeling disks, see the documentation for the physical disks.

  4. Create an alias for the drive, as described in To Create an Alias for a Bootable Drive (SPARC).