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:
Perform the steps in this section to help simplify the process of booting a drive on a SPARC 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:
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.
In the following example, the alias name is mydev.
{0} ok nvalias mydev /pci@1e,600000/pci@0/pci@3/LSI,sas@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,sas@2/disk.