Switching the boot environment for Solaris SPARC

You do not have to perform the following procedures to switch the boot environment when you use the vxlufinish scripts to process Live Upgrade. You must perform the following procedures when you perform a manual Live Upgrade.

Two different procedures exist to switch the boot environment, choose one of the following procedures based on the encapsulation of the root disk:

The switching procedures for Solaris SPARC vary, depending on whether VxVM encapsulates the root disk.

To switch the boot environment if the root disk is not encapsulated

  1. Display the status of Live Upgrade boot environments.
    # lustatus
    
    Boot Environment  Is       Active Active    Can    Copy
    Name              Complete Now    On Reboot Delete Status
    ----------------  -------- ------ --------- ------ ------
    source.2657       yes      yes    yes       no     -   
    dest.2657         yes      no     no        yes    -     

    In this example, the primary boot disk is currently (source.2657). You want to activate the alternate boot disk (dest.2657)

  2. Unmount any file systems that are mounted on the alternate root disk (dest.2657).
    # lufslist dest.2657 
    
                   boot environment name: dest.2657
    
    Filesystem        fstype device size  Mounted on Mount Options
    ----------------- ------ ------------ ---------- -------------
    /dev/dsk/c0t0d0s1 swap     4298342400 -          -
    /dev/dsk/c0t0d0s0 ufs     15729328128 /          -
    /dev/dsk/c0t0d0s5 ufs      8591474688 /var       -
    /dev/dsk/c0t0d0s3 ufs      5371625472 /vxfs      -
    # luumount dest.2657
  3. Activate the Live Upgrade boot environment.
    # luactivate dest.2657
  4. Reboot the system.
    # shutdown -g0 -i6 -y

    The system automatically selects the boot environment entry that was activated.

To switch the boot environment if the root disk is encapsulated

  1. Display the current boot disk device and device aliases
    # eeprom
    boot-device=vx-rootdg vx-int_disk
    use-nvramrc?=true
    nvramrc=devalias vx-int_disk /pci@1c,600000/scsi@2/disk@0,0:a
    devalias vx-rootdg01 /pci@1c,600000/scsi@2/disk@1,0:a
  2. Set the device from which to boot using the eeprom command. This example shows booting from the primary root disk.
    # eeprom boot-device=vx-rootdg01
  3. Reboot the system.
    # shutdown -g0 -i6 -y