live_upgrade

 


 
 
 
 Standards, Environments, and Macros               live_upgrade(5)
 
 
 


NAME

live_upgrade - overview of Live Upgrade feature

DESCRIPTION

The Live Upgrade feature of the Solaris operating environ- ment enables you to maintain multiple operating system images on a single system. An image-called a boot environ- ment, or BE-represents a set of operating system and appli- cation software packages. The BEs might contain different operating system and/or application versions. On a system with the Solaris Live Upgrade software, your currently booted OS environment is referred to as your active, or current BE. You have one active, or current BE; all others are inactive. You can perform any number of modifications to inactive BEs on the same system, then boot from one of those BEs. If there is a failure or some undesired behavior in the newly booted BE, Live Upgrade software makes it easy for you to fall back to the previ- ously running BE. Live upgrade software includes a Forms and Menu Language Interpreter-based user interface named lu(1M) and a suite of commands. (See fmli(1) for a description of the Forms and Menu Language Interpreter.) The following are some of the tasks you can perform with Live Upgrade software: + You can upgrade to a new OS version on a second boot environment, then boot from that environment. If you choose, you can then fall back to your original boot environment or boot from yet another environment. + You can install application or OS packages to a boot environment, then boot from that environment. + You can install OS patches to a boot environment, then boot from that environment. + From a flash archive, you can install an OS to a boot environment, then boot from that environment. See flar(1M) for information on administering flash archives. + You can split and rejoin file systems in a BE. For example, you can separate /usr, /var, and /opt from /, putting them on their own partitions. Conversely, you could join these file systems on a single partition under /. + You can mount any or all of the filesystems of a BE SunOS 5.8 Last change: 8 Jun 2001 1 Standards, Environments, and Macros live_upgrade(5) that is not active, compare the files in any pair of BEs, delete or rename a BE, and perform other adminis- trative tasks. The Live Upgrade software supports upgrade from any valid Solaris installation medium, including a CD-ROM, an NFS or UFS directory, or a flash archive. (See flar(1M) for a description of the flash archive feature.) In simplest terms, a BE, for Live Upgrade, consists of the knowledge of the disk slice containing a root file system and the file system/device (usually disk) slice entries specified in vfstab(4). This set of slices is not limited to a single disk. This means that you can have multiple BEs on a single device, or have a BE spread across slices on multi- ple devices. The minimal requirement for a Live Upgrade BE is the same as for any Solaris boot environment: have root (/) and usr filesystems (which might both reside on /). All filesys- tems except for /, /usr, /var, and /opt can be shared among multiple BEs, if you choose. Each BE must have a unique copy of the file systems that contain the OS-/, /usr, /var, and /opt. For Live Upgrade purposes, these are referred to as non-shareable file sys- tems. With other file systems, such as /export or /home, you have the option of copying the files to a new BE or, the default, sharing them among BEs. These are referred to as shareable file systems. A BE is made up of a unique copy of one or more non-shareable file systems and zero or more copies of shareable file systems. The Live Upgrade feature is fully compatible with Solstice Disk Suite (SDS) and Veritas volume management products. This means you can create BEs made up of SDS metadevices or of Veritas vxfs file systems. See lucreate(1M) and luupgrade(1M) for details. Most Live Upgrade operations, such as OS upgrades, can be scheduled to occur at your convenience. Both the FMLI inter- face and the command-line utilities have time-related param- eters that enable this capability. Below is an example set of steps that you might follow in the use of Live Upgrade software. These steps specify the use of commands rather than lu(1M), the FMLI interface. Most Live Upgrade functions are accessible through lu. Except where lu does not support a function, the choice between lu and Live Upgrade commands is a matter of your requirements and preferences. The following example is by no means exhaustive of the possibilities of the use of the Live SunOS 5.8 Last change: 8 Jun 2001 2 Standards, Environments, and Macros live_upgrade(5) Upgrade software. 1. You create a new BE, using lucreate(1M). The first time you run the command, you are required to name the current BE. In lucreate, you provide the name of the new BE and the device (disk) slices you want to use for the BE. You could also specify a source for the new BE other than your current BE. For example, you could specify a Solaris installation CD, or an NFS-accessible directory contain- ing an OS image. 2. Using luupgrade(1M), you upgrade the OS version on your new BE (or on yet another BE you created with lucreate). The luupgrade enables you to upgrade an OS (from any valid Solaris installation medium, including a flash archive), add or remove packages (OS or application), and add or remove patches. 3. You use luactivate(1M) to make the new BE bootable. The next time you reboot your system, you will come up in the new BE. 4. Using lucompare(1M), you compare the system files on two different BEs. This utility gives you a comprehensive list of the files that have differences. 5. Using lumount(1M), you mount the filesystems of a BE that is not active, enabling you to make changes. When you are finished with the changes, use luumount(1M) to unmount the BE's file systems. 6. Upon booting a new BE, you discover a failure or some other undesirable behavior. Using the procedure specified in luactivate, you can fall back to the previous BE. 7. Using ludelete then luupgrade, you reassign file systems on the now-deleted BE to different disk slices. You separate /opt and /var from / on the new BE. Also, you specify that swap be spread over slices on multiple disks. The following is a summary of Live Upgrade commands. All commands require root privileges. lu FMLI-based interface for creating and administering BEs. luactivate Designate a BE as the BE to boot from upon the next reboot of the system. lucancel SunOS 5.8 Last change: 8 Jun 2001 3 Standards, Environments, and Macros live_upgrade(5) Cancel a previously scheduled operation. lucompare Compare the contents of two BEs. lucreate Create a BE. lucurr Display the name of the current BE. ludelete Delete a BE. lufslist List the file systems on a specified BE. lumake Re-create a BE based on the active BE. lumount, luumount Mount, unmount file systems of a specified BE. lurename Rename a BE. lustatus For all BEs on a system, report on whether a BE is active, active upon the next reboot, in the midst of a copy operation, and whether a copy operation is scheduled for it. luupgrade Upgrade an OS and install application software on a BE. Such software includes flash archives, complete OS installations, OS and application packages, and OS patches.

FILES

/etc/lutab list of BEs on the system

SEE ALSO

lu(1M), luactivate(1M), lucancel(1M), lucompare(1M), lucreate(1M), lucurr(1M), ludelete(1M), lufslist(1M), lumake(1M), lumount(1M), lurename(1M), lustatus(1M), luupgrade(1M), lutab(4)

NOTES

Solaris Live Upgrade software is designed to install and run on multiple versions of the Solaris operating environment. Correct operation of Solaris Live Upgrade requires a certain SunOS 5.8 Last change: 8 Jun 2001 4 Standards, Environments, and Macros live_upgrade(5) level of patch cluster for a given OS version. Consult http://www.sunsolve.sun.com for the correct revision level for a patch cluster for your OS version. SunOS 5.8 Last change: 8 Jun 2001 5