This procedure shows you how to create a profile for use with Solaris Live Upgrade. You can use this profile to upgrade an inactive boot environment by using the luupgrade command with the -j option.
For procedures to use this profile, see the following sections:
For an upgrade with a profile, see To Upgrade With a Profile by Using Solaris Live Upgrade (Command-Line Interface).
For a Solaris Flash installation with a profile, see To Install a Solaris Flash Archive With a Profile (Command-Line Interface).
Use a text editor to create a text file.
Name the file descriptively. Ensure that the name of the profile reflects how you intend to use the profile to install the Solaris software on a system. For example, you might name this profile upgrade_solaris9.
Add profile keywords and values to the profile.
Only the following upgrade keywords can be used in a Solaris Live Upgrade profile.
Table 33–2 Live Upgrade Profile Keywords and Descriptions
Keyword |
Description |
---|---|
(Required) Install_type |
Defines whether to upgrade the existing Solaris environment on a system or install a Solaris Flash archive on the system. The values are upgrade or flash_install. |
(Optional) archive_location |
Retrieves a Solaris Flash archive from a designated location. For a list of values that can be used with this keyword, see archive_location Keyword. |
(Optional) cluster (adding or deleting clusters) |
Designates whether a cluster is to be added or deleted from the software group that is to be installed on the system. For a list of values that can be used with this keyword, see cluster Profile Keyword (Adding Software Groups). |
(Optional) geo |
Designates the regional locale or locales that you want to install on a system or to add when upgrading a system. For a list of values that can be used with this keyword, see geo Profile Keyword. |
(Optional) isa_bits |
Specifies whether 64-bit or 32-bit Solaris 9 packages are to be installed. For a list of values that can be used with this keyword, see isa_bits Profile Keyword. |
(Optional) locale |
Designates the locale packages you want to install or add when upgrading. For a list of values that can be used with this keyword, see locale Profile Keyword. |
(Optional) package |
Designates whether a package is to be added to or deleted from the software group that is to be installed on the system. For a list of values that can be used with this keyword, see package Profile Keyword. |
Save the profile in a directory on the local system.
Ensure that root owns the profile and that the permissions are set to 644.
Test the profile (optional).
For a procedure to test the profile, see To Test a Profile to Be Used By Solaris Live Upgrade.
In this example, a profile provides the upgrade parameters. This profile is to be used to upgrade an inactive boot environment with the Solaris Live Upgrade luupgrade command and the -u and -j options. This profile adds a package and a cluster. A regional locale and additional locales are also added to the profile. If you add locales to the profile, make sure that you have created a boot environment with additional disk space.
# profile keywords profile values # ---------------- ------------------- install_type upgrade package SUNWxwman add cluster SUNWCacc add geo C_Europe locale zh_TW locale zh_TW.BIG5 locale zh_TW.UTF-8 locale zh_HK.UTF-8 locale zh_HK.BIG5HK locale zh locale zh_CN.GB18030 locale zh_CN.GBK locale zh_CN.UTF-8 |