![]() |
![]() |
| |||||||||
Chapter 38Solaris Live Upgrade (Examples)This chapter provides examples of creating a boot environment, then upgrading and activating the new boot environment which then becomes the currently running system. This chapter contains the following sections:
Example of Upgrading With Solaris Live Upgrade (Command-Line Interface)In this example, a new boot environment is created by using the lucreate command on a system that is running the Solaris 7 release. The new boot environment is upgraded to the Solaris 9 release by using the luupgrade command. The upgraded boot environment is activated by using the luactivate command. An example of falling back to the original boot environment is also given. Install Live Upgrade on the Active Boot Environment
Create a Boot EnvironmentThe source boot environment is named c0t4d0s0 by using the -c option. Naming the source boot environment is only required when the first boot environment is created. For more information on naming using the -c option, see the description in Step 2. The new boot environment is named c0t15d0s0. The -A option creates a description that is associated with the boot environment name. The root (/) file system is copied to the new boot environment. Also, a new swap slice is created rather than sharing the source boot environment's swap slice.
Upgrade the Inactive Boot EnvironmentThe inactive boot environment is named c0t15d0s0. The operating system image to be used for the upgrade is taken from the network.
Check If Boot Environment Is BootableThe lustatus command reports if the boot environment creation is complete. lustatus also shows if the boot environment is bootable.
Activate the Inactive Boot EnvironmentThe c0t15d0s0 boot environment is made bootable with the luactivate command. The system is then rebooted and c0t15d0s0 becomes the active boot environment. The c0t4d0s0 boot environment is now inactive.
Fall Back to the Source Boot EnvironmentThree procedures for falling back depend on your new boot environment activation situation:
Example 38-1 To Fall Back Despite Successful Boot Environment Creation In this example, the original c0t4d0s0 boot environment is reinstated as the active boot environment although it was activated successfully. The device name is first_disk.
Example 38-2 SPARC: To Fall Back From a Failed Boot Environment Activation In this example, the new boot environment was not bootable. You must return to the OK prompt before booting from the original boot environment, c0t4d0s0, in single-user mode.
The original boot environment, c0t4d0s0, becomes the active boot environment. Example 38-3 SPARC: To Fall Back to the Original Boot Environment by Using a DVD, CD, or Net Installation Image In this example, the new boot environment was not bootable. You cannot boot from the original boot environment and must use media or a net installation image. The device is /dev/dsk/c0t4d0s0. The original boot environment, c0t4d0s0, becomes the active boot environment.
| |||||||||
| |||||||||