[ Team LiB ] |
Solaris Live UpgradeWith Solaris Live Upgrade, you can create separate, inactive boot environments without affecting the currently running system. After you have created the boot environment (BE) and installed it, you activate that BE and reboot. The original BE remains available, and you can revert to it with a simple reboot. With Solaris Live Upgrade you can do the following tasks.
To use the Solaris Live Upgrade process, you perform the following tasks.
Describing the Solaris Live Upgrade method is beyond the scope of this book. Refer to the Solaris 9 Installation Guide for complete instructions. Solaris Live Upgrade CommandsThe Solaris Live Upgrade feature provides the commands listed in Table 26.
Creating a Boot EnvironmentYou can create one or more boot environments and copy critical file systems from an active BE to the new BE. You can reorganize the disk if necessary and customize file systems. You can create a boot environment on an unused partition on an existing hard drive or on a separate hard drive. Creating a BE can be a bit tricky. Refer to the Solaris 9 Installation Guide for complete instructions. This section provides a single example. Describing the complete process for creating all of the possible boot environment configurations is beyond the scope of this book. Solaris Live Upgrade distinguishes between critical file systems and shareable file systems. Critical file systems required by the Solaris Operating Environment are separate mount points in the vfstab file of the active and inactive boot environments. Examples are root (/), /usr, /var, or /opt. You always copy these file systems from the source to the inactive BE. Live Upgrade duplicates only file systems that are specific to the operating environment configuration. Live Upgrade considers operating environment file systems critical. When you create a new boot environment, Live Upgrade makes sure that these critical file systems are copied to different slices and that Live Upgrade updates the /etc/vfstab in the new boot environment accordingly. By contrast, shareable file systems are those that need not be duplicated, for example, user files such as those in the /export directory. Thus, when you create a boot environment, the /etc/vfstab file in the new boot environment does not update such shared file systems. Instead, it points to the same file system as the original boot environment. The sharing of swap is a special circumstance. All swap slices are shared by default, but you can specify a destination directory for swap and copy the swap slice. A swap slice is not required. Part of creating a new BE involves copying critical file systems to another slice. You may need to prepare the disk before you create the new BE. Check the disk to make sure it is formatted properly.
NOTE. The slice must not be mounted or listed in the /etc/vfstab file. You can use the (undocumented) /usr/lib/lu/ludevices command to list available spare partitions. In the following example, partition c1t0d0s4 is available for use as a BE.
# /usr/lib/lu/ludevices
/dev/dsk/c1t0d0s4 9216144
#
You can use the /usr/lib/lu/ludevices -x 9 option to display complete debugging information for all devices on a system. Use the following steps to create a boot environment on a free slice on an existing disk.
The following example shows the progress message for successfully creating a BE named s9beta on slice c1d0t0s4 on the same disk as the active BE. Updating system configuration files. Creating configuration for boot environment <s9beta>. ********************************************************************** Beginning process of creating Boot Environment <s9beta>. No more user interaction is required until this process is complete. ********************************************************************** Creating file systems on BE <s9beta>. Creating <ufs> file system on </dev/dsk/c1t0d0s4>. Mounting file systems for BE <s9beta>. Calculating required sizes of file systems for BE <s9beta>. Populating file systems on BE <s9beta>. Copying file system contents to BE <s9beta>. Copying of file system / directory </> is in progress... Upgrading a Boot EnvironmentAfter you have created a BE, it remains unchanged until you are ready to upgrade it. You can upgrade the BE at any time. The upgrade does not affect any files in the active BE. When you are ready, you activate the new release and reboot the system. Instead of upgrading a BE, you can install a Flash archive on a BE. The Flash installation feature enables you to create a single reference installation of the Solaris Operating Environment, including third-party software, on a master system. You can then replicate that installation on a number of clone systems. The inactive BE is considered a clone. See "Flash Installation" on page 102 for more information about the Flash installation feature. Activating a Boot EnvironmentWhen the inactive BE is configured and upgraded, you use the following procedure to activate the new boot environment.
Alternatively, you can use the luactivate command to activate a BE. |
[ Team LiB ] |