Switching the boot environment for Solaris x86-64

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:

To switch the boot environment if 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

    When the system boots up, the GRUB menu displays the following entries for the Live Upgrade boot environments:

    source.2657
    dest.2657

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

To switch the boot environment if root disk is encapsulated