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
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)
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
Activate the live-upgrade boot environment.
# luactivate dest.2657
# 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
If the root disk is encapsulated, for releases before Solaris 10 update 6 (2.10u6), you can use the luactivate method. For Solaris 10 update 6 and subsequent Solaris 10 updates, do one of the following:
Select the GRUB entry for the source boot environment or destination boot environment when the system is booted. You can also use the following procedure to manually set the default GRUB menu.lst entry to the source (PBE) or destination (ABE) grub entry:
If the system is booted from the alternate boot environment, perform the following steps to switch to the Primary boot environment:
# mkdir /priroot # mount rootpath /priroot # bootadm list-menu -R /priroot # bootadm list-menu # bootadm set-menu -R /priroot default=PBE_menu_entry # bootadm set-menu default=PBE_menu_entry # shutdown -g0 -i6 -y
rootpath is the path to the root device, such as /dev/vx/dsk/rootdg/rootvol
priroot is the primary root device
PBE_menu_entry is the number of the primary boot environment in the GRUB menu.
If the system is booted from the primary boot environment, perform the following steps to switch to the alternate boot environment:
# bootadm list-menu # bootadm set-menu default=ABE_menu_entry ABE booting