This section describes how to use the pcli utility to create a logical drive on a SPARC system prior to installing the Oracle Solaris operating system (OS). This section contains the following topics:
pcli commands can produce large amounts of detailed output. The xterm and gnome terminal windows provide scroll bar functionality, which helps when viewing such output.
{0} ok show-devs <...> /pci@1e,600000/pci@0/pci@3/LSI,mrsas@0 /pci@1e,600000/pci@0/pci@3/LSI,mrsas@0/disk /pci@1e,600000/pci@0/pci@3/LSI,mrsas@1 <...>
{0} ok “ /pci@1e,600000/pci@0/pci@3/LSI,mrsas@0” select-dev
You have now selected the HBA upon which all pcli commands will operate. This means you do not need to specify the HBA in any pcli command that you issue, unlike with the storcli utility. For example, if you issue the pcli command, show, the command automatically applies to the selected HBA. However, the equivalent command through the storcli utility would apply only to the card that you specify (the 0 card, as shown here):
SPARC pcli: {0} ok cli show
storcli: storcli /c0 show
|
You are now ready to use the pcli commands to create a logical drive, or MegaRAID virtual drive, on 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
{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 --
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.
After you have created a bootable drive, as described in To Create a Logical Drive With the pcli Utility , you can create an alias for that drive. The alias helps to simplify the process of booting the drive.
Note that, as shown in the following example, you can determine the HBA drives by looking for the LSI,mrsas@number label, where number is 0 for the first HBA detected, and increments for each additional HBA detected.
{0} ok show-disks <...> a) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@0/disk b) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@1/disk c) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk <...> q) NO SELECTION Enter Selection, q to quit:
a) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@0/disk b) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@1/disk c) /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk <...> q) NO SELECTION Enter Selection, q to quit: c /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk has been selected.
In the following example, the alias name is mydev.
{0} ok nvalias mydev /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk
{0} ok boot mydev
{0} ok printenv boot-device boot-device = disk0 disk1 {0} ok setenv boot-device mydev disk0 boot-device = mydev disk0
In this example, the mydev alias is set as disk0, the first disk in the boot device list. This results in the automatic booting of the bootable drive, /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk.