To Create an Alias for a Bootable Drive (SPARC)

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.

  1. Issue the show-disks command to list the disks on the system.

    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:
    
  2. Select the bootable drive for which you want to create an alias.
    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.
    
  3. Use the nvalias alias-name HBA-drive-path command to create an alias for the bootable drive that you selected in the previous step (you can press Ctrl+Y to paste the device path).

    In the following example, the alias name is mydev.

    {0} ok nvalias mydev /pci@1e,600000/pci@0/pci@3/LSI,mrsas@2/disk
                   
  4. You can now boot from the bootable drive by using the boot alias-name command.
    {0} ok boot mydev
                   
  5. To optionally add the bootable drive to the boot-device list and then automatically boot from the drive by controlling the boot device order, issue the following commands, as shown.
    {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.

  6. Validate the label of the bootable drive that you created (see Validating the Label of the HBA Logical Drive).