Go to main content
Sun Storage 6 Gb SAS PCIe HBA, Internal Installation Guide For HBA Models SGX-SAS6-INT-Z and SG-SAS6-INT-Z

Exit Print View

Updated: May 2017
 
 

Creating an Alias for a Bootable Drive (SPARC)

This section describes how to create an alias for a bootable drive in order to help simplify the process of booting the drive. This section contains the following topic:

To Create an Alias for a Bootable Drive (SPARC)

Perform the steps in this section to help simplify the process of booting a drive on a SPARC system.

  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,sas@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,sas@0/disk
    b) /pci@1e,600000/pci@0/pci@3/LSI,sas@1/disk
    c) /pci@1e,600000/pci@0/pci@3/LSI,sas@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,sas@0/disk
    b) /pci@1e,600000/pci@0/pci@3/LSI,sas@1/disk
    c) /pci@1e,600000/pci@0/pci@3/LSI,sas@2/disk
    <...>
    q) NO SELECTION
    Enter Selection, q to quit: c
    /pci@1e,600000/pci@0/pci@3/LSI,sas@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 Step 2 (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,sas@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,sas@2/disk.

  6. Validate the label of the bootable drive by following the steps in Validating the Label of the HBA Drive.