Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 10 9/10 Installation Guide: Solaris Live Upgrade and Upgrade Planning |
Part I Upgrading With Solaris Live Upgrade
1. Where to Find Solaris Installation Planning Information
2. Solaris Live Upgrade (Overview)
3. Solaris Live Upgrade (Planning)
4. Using Solaris Live Upgrade to Create a Boot Environment (Tasks)
5. Upgrading With Solaris Live Upgrade (Tasks)
Task Map: Upgrading a Boot Environment
Upgrading a System With Packages or Patches
To Upgrade a Network Installation Image on a Boot Environment
To Upgrade a Network Installation Image From Multiple CDs
To Add Packages to a Network Installation Image on a Boot Environment
To Add Patches to a Network Installation Image on a Boot Environment
To Obtain Information on Packages Installed on a Boot Environment
Upgrading by Using a JumpStart Profile
To Create a Profile to be Used by Solaris Live Upgrade
To Test a Profile to Be Used by Solaris Live Upgrade
To Upgrade With a Profile by Using Solaris Live Upgrade
Installing Solaris Flash Archives on a Boot Environment
To Install a Solaris Flash Archive on a Boot Environment
To Install a Solaris Flash Archive With a Profile
To Install a Solaris Flash Archive With a Profile Keyword
Requirements and Limitations for Activating a Boot Environment
To Activate a Boot Environment
To Activate a Boot Environment and Synchronize Files
6. Failure Recovery: Falling Back to the Original Boot Environment (Tasks)
7. Maintaining Solaris Live Upgrade Boot Environments (Tasks)
8. Upgrading the Solaris OS on a System With Non-Global Zones Installed
9. Solaris Live Upgrade (Examples)
10. Solaris Live Upgrade (Command Reference)
Part II Upgrading and Migrating With Solaris Live Upgrade to a ZFS Root Pool
11. Solaris Live Upgrade and ZFS (Overview)
12. Solaris Live Upgrade for ZFS (Planning)
13. Creating a Boot Environment for ZFS Root Pools
14. Solaris Live Upgrade For ZFS With Non-Global Zones Installed
B. Additional SVR4 Packaging Requirements (Reference)
Activating a boot environment makes it bootable on the next reboot of the system. You can also switch back quickly to the original boot environment if a failure occurs on booting the newly active boot environment. See Chapter 6, Failure Recovery: Falling Back to the Original Boot Environment (Tasks).
|
To successfully activate a boot environment, that boot environment must meet the following conditions:
|
x86 only - If you have an x86 based system, you can also activate with the GRUB menu. Note the following exceptions:
If a boot environment was created with the Solaris 8, 9, or 10 3/05 release, the boot environment must always be activated with the luactivate command. These older boot environments do not display on the GRUB menu.
The first time you activate a boot environment, you must use the luactivate command. The next time you boot, that boot environment's name is displayed in the GRUB main menu. You can thereafter switch to this boot environment by selecting the appropriate entry in the GRUB menu.
See x86: Activating a Boot Environment With the GRUB Menu.
The following procedure switches a new boot environment to become the currently running boot environment.
x86 only - If you have an x86 based system, you can also activate with the GRUB menu. Note the following exceptions:
If a boot environment was created with the Solaris 8, 9, or 10 3/05 release, the boot environment must always be activated with the luactivate command. These older boot environments do not display on the GRUB menu.
The first time you activate a boot environment, you must use the luactivate command. The next time you boot, that boot environment's name is displayed in the GRUB main menu. You can thereafter switch to this boot environment by selecting the appropriate entry in the GRUB menu.
See x86: Activating a Boot Environment With the GRUB Menu.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# /sbin/luactivate BE_name
Specifies the name of the boot environment that is to be activated
# init 6
Caution - Use only the init or shutdown commands to reboot. If you use the reboot, halt, or uadmin commands, the system does not switch boot environments. The last-active boot environment is booted again. |
Example 5-14 Activating a Boot Environment
In this example, the second_disk boot environment is activated at the next reboot.
# /sbin/luactivate second_disk # init 6
The first time you boot from a newly created boot environment, Solaris Live Upgrade software synchronizes the new boot environment with the boot environment that was last active. “Synchronize” means that certain critical system files and directories are copied from the last-active boot environment to the boot environment being booted. Solaris Live Upgrade does not perform this synchronization after the initial boot, unless you force synchronization with the luactivate command and the -s option.
x86 only - When you switch between boot environments with the GRUB menu, files also are not synchronized. You must use the following procedure to synchronize files.
For more information about synchronization, see Synchronizing Files Between Boot Environments.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# /sbin/luactivate -s BE_name
Forces a synchronization of files between the last-active boot environment and the new boot environment. The first time that a boot environment is activated, the files between the boot environment are synchronized With subsequent activations, the files are not synchronized unless you use the -s option.
Caution - Use this option with great care, because you might not be aware of or in control of changes that might have occurred in the last-active boot environment. For example, if you were running Solaris 10 9/10 software on your current boot environment and booted back to a Solaris 9 release with a forced synchronization, files could be changed on the Solaris 9 release. Because files are dependent on the release of the OS, the boot to the Solaris 9 release could fail because the Solaris 10 9/10 files might not be compatible with the Solaris 9 files. |
Specifies the name of the boot environment that is to be activated.
# init 6
Example 5-15 Activating a Boot Environment
In this example, the second_disk boot environment is activated at the next reboot and the files are synchronized.
# /sbin/luactivate -s second_disk # init 6
A GRUB menu provides an optional method of switching between boot environments. The GRUB menu is an alternative to activating (booting) with the luactivate command. The table below notes cautions and limitations when using the GRUB menu.
Table 5-3 x86: Activating With the GRUB Menu Summary
|
You can switch between two boot environments with the GRUB menu. Note the following limitations:
The first activation of a boot environment must be done with the luactivate command. After the initial activation, the boot environment is displayed on the GRUB menu. The boot environment can then be booted from the GRUB menu.
Caution - Switching to a boot environment with the GRUB menu bypasses synchronization. For more information about synchronizing files, see link Forcing a Synchronization Between Boot Environments.
If a boot environment was created with the Solaris 8, 9, or 10 3/05 release, the boot environment must always be activated with the luactivate command. These older boot environments are not displayed on the GRUB menu.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# init 6
The GRUB main menu is displayed. The two operating systems are listed, Solaris and second_disk, which is a Solaris Live Upgrade boot environment. The failsafe entries are for recovery, if for some reason the primary OS does not boot.
GNU GRUB version 0.95 (616K lower / 4127168K upper memory) +-------------------------------------------------------------------+ |Solaris | |Solaris failsafe | |second_disk | |second_disk failsafe | +-------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line.
The selected boot environment is booted and becomes the active boot environment.