Use the Upgrade menu or luupgrade command to upgrade a boot environment. This section provides the procedure for upgrading an inactive boot environment from files that are located on the following:
NFS server
Local file
Local tape
Local device, including DVD or CD
If the installation requires more than one CD, you must use the command-line interface procedure for upgrading. See "To Upgrade an Operating System Image From Multiple CDs (Command-Line Interface)".
When you upgrade a boot environment with the latest operating environment, you do not affect the active boot environment. The new files merge with the inactive boot environment critical file systems, but shareable file systems are not changed.
Rather than upgrading, if you have created a Web Start Flash archive, you could install the archive on an inactive boot environment. The new files overwrite the inactive boot environment critical file systems, but shareable file systems are not changed. See "Installing Web Start Flash Archives on a Boot Environment".
To upgrade or install a flash archive on a new boot environment, the device must be a physical slice. If you have a boot environment that has a file system that is mounted either on a Solaris Volume Manager metadevice or a Veritas file system (VxFS) volume, the upgrade or installation of a flash archive fails. To upgrade or install a flash archive on such a boot environment, you must manually change the boot environment so that all slices are physical disk slices. You could use the lucreate command to create another boot environment or you could break the metadevices or volumes.
To use the lucreate command to make a copy of the boot environment, you would place the boot environment copy on physical disk slices. For example, suppose your current boot environment's disk configuration contains the following volumes and slices.
root (/) |
Mounted on /dev/md/dsk/d10 |
/usr |
Mounted on /dev/md/dsk/d20 |
/var |
Mounted on /dev/dsk/c0t3d0s0 |
Free slice |
c0t4d0s0 |
Free slice |
c0t4d0s3 |
Free slice |
c0t4d0s4 |
You could then use the following lucreate command to copy the boot environment on physical disk slices. The boot environment could then be upgraded or be installed with a flash archive. In this example, the current boot environment is named, currentBE, and the new boot environment is named, nextBE.
# lucreate -s currentBE -n nextBE -m /:/dev/dsk/c0t4d0s0:ufs \ -m /usr:/dev/dsk/c0t4d0s3:ufs -m /var:/dev/dsk/c0t4d0s4:ufs |
You would then be able to upgrade or install a flash archive on the new boot environment, activate it, and then re-mirror or encapsulate it manually.
If you choose to manually break the metadevice or volume, you would need to do the following:
Manually mount the boot environment
Edit the /etc/vfstab file to change all metadevices or volumes to physical disk slices
Use the Solaris Volume Manager or Veritas software to tear down the metadevices or volumes
Unmount the boot environment
You can use Solaris Live Upgrade to add patches and packages to a system. As with upgrading a machine, by using Live Upgrade to add patches to a machine, the only downtime the system incurs is that of a reboot. You can add patches and packages directly to a boot environment with the luupgrade command. Or, you can apply patches and packages to a master system and apply a Web Start Flash archive of that system to a boot environment by using Live Upgrade.
To add patches to a boot environment directly, create a new boot environment and use the luupgrade command with the -t option. To add packages to a boot environment, use the luupgrade command with the -p option. For more information, see the man page, luupgrade(1M).
Or, you can use Solaris Live Upgrade to install a Web Start Flash archive that contains a complete copy of a boot environment with new packages and patches already included. This complete boot environment or single reference system is called a master system. The process of creating a Web Start Flash archive begins with creating a master system. After you have created a master system, add any patches and packages that you want to install. Then, create a Web Start Flash archive of the master system. Use Solaris Live Upgrade to install the archive on the new boot environment. You can copy the boot environment, change it, and distribute it as many times as necessary. For details about how to create a Web Start Flash archive, see Chapter 18, Creating Web Start Flash Archives (Tasks). For information on using Solaris Live Upgrade to install a Web Start Flash archive, see "Installing Web Start Flash Archives on a Boot Environment".
When upgrading and adding and removing packages or patches, Solaris Live Upgrade requires packages or patches that comply with the SVR4 advanced packaging guidelines. While Sun packages conform to these guidelines, Sun cannot guarantee the conformance of packages from third-party vendors. A non-conformant package can cause the package-addition software during an upgrade to fail or worse, to alter the active boot environment.
For more information on adding and removing packages with Solaris Live Upgrade, see the man page, luupgrade(1M). For more information on packaging requirements, see Appendix C, Additional SvR4 Packaging Requirements (Reference).
To upgrade by using this procedure, you must use only one CD, a DVD, or a combined installation image. For an installation that requires more than one CD, you must use the procedure: "To Upgrade an Operating System Image From Multiple CDs (Command-Line Interface)".
From the Solaris Live Upgrade main menu, select Upgrade.
The Upgrade menu screen is displayed.
Type the new boot environment's name.
Type the path to where the Solaris installation image is located.
Installation Media Type |
Description |
---|---|
Network File System |
Specify the path to the network file system where the installation image is located. |
Local file |
Specify the path to the local file system where the installation image is located. |
Local tape |
Specify the local tape device and the position on the tape where the installation image is located. |
Local device, DVD, or CD |
Specify the local device and the path to the installation image. |
If you are using DVD or one CD, type the path to that disc, as in this example:
Package Media: /cdrom/solaris9/s0 |
If you have a combined image on the network, type the path to the network file system as in this example:
Package Media: /net/installmachine/export/solaris9/os_image |
To upgrade, press F3.
When the upgrade is completed, the main menu is displayed.
To upgrade by using this procedure, you must use only one CD, a DVD, or a combined installation image. If the installation requires more than one CD, you must use the procedure: "To Upgrade an Operating System Image From Multiple CDs (Command-Line Interface)".
Log in as superuser.
Indicate the boot environment to upgrade and the path to the installation software by typing:
# luupgrade -u -n BE_name -s os_image_path |
-u |
Upgrades an operating system image on a boot environment |
-n BE_name |
Specifies the name of the boot environment that is to be upgraded |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image |
In this example, the second_disk boot environment is upgraded.
# luupgrade -u -n second_disk \ -s /net/installmachine/export/solaris9/OS_image |
If the operating system image resides on two or more CDs, use this upgrade procedure.
Log in as superuser.
Indicate the boot environment to upgrade and the path to the installation software by typing:
# luupgrade -u -n BE_name -s os_image_path |
-u |
Upgrades an operating system image on a boot environment |
-n BE_name |
Specifies the name of the boot environment that is to be upgraded |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image |
When the installer is finished with the contents of the first CD, insert the second CD.
This step is identical to the previous step, but the -u option is replaced by the -i option. Also, choose to run the installer on the second CD with menus or with text.
This command runs the installer on the second CD with menus.
# luupgrade -i -n BE_name -s os_image_path |
This command runs the installer on the second CD with text and requires no user interaction.
# luupgrade -i -n BE_name -s os_image_path -O '-nodisplay -noconsole' |
-i |
Looks for an installation program on the specified medium and runs that program. The installer program is specified with -s. |
-n BE_name |
Specifies the name of the boot environment that is to be upgraded. |
-s os_image_path |
Specifies the path name of a directory that contains an operating system image. |
-O '-nodisplay -noconsole' |
(Optional) Runs the installer on the second CD in text mode and requires no user interaction. |
The boot environment is ready to be activated. See "Activating a Boot Environment".
In this example, the second_disk boot environment is upgraded and the installation image is on two CDs: the Solaris 9 Software 1 of 2 and the Solaris 9 Software 2 of 2 CDs. The -u option determines if sufficient space for all the packages is on the CD set. The -O option with the -nodisplay and -noconsole options prevents the character user interface from displaying after the reading of the second CD. If you use these options, you are not prompted to input information. Omit these options to display the interface.
Insert the Solaris 9 Software 1 of 2 CD and type:
# luupgrade -u -n second_disk -s /dev/cdrom/cdrom0/s0 |
Insert the Solaris 9 Software 2 of 2 CD and type:
# luupgrade -i -n second_disk -s /dev/cdrom/cdrom0 -O '-nodisplay \ -noconsole' |
Use the luupgrade command with the -i option to install any additional CDs.