Solaris 实时更新现在支持升级带有非全局区域的 Solaris 10 操作系统。Solaris 10 8/07 发行版包括一项“区域升级”功能,该功能增强了 Solaris 平台升级机制,从而全面支持系统上配置的所有非全局区域。该区域升级功能支持将 Solaris 实时更新用于非全局区域。
每个非全局区域均被 Solaris 实时更新和底层实用程序视为独立的 Solaris 实例。首先升级全局区域,然后逐个升级非全局区域。
注意:在执行任何安装、升级或修补过程之前,请确保完整备份系统。
针对 Solaris 实时更新的规划
在对运行 Solaris 10 8/07 发行版之前的任何版本的 Solaris 10 操作系统的系统进行升级之前,请安装 Solaris 实时更新软件包和修补程序。对 Solaris 10 系统进行的修补至少要达到 InfoDoc 72099 中列出的修补级别。根据 Solaris 10 系统版本的不同,您可能会发现其中的某些修补程序已经安装。
必需的软件包
要将系统升级到 Solaris 10 8/07 发行版,请从 Solaris 10 8/07 的映像安装 Solaris 实时更新软件包。升级之前,需要具备新的软件包 SUNWlucfg。Solaris 实时更新软件包包含现有的软件、新功能和错误修复。如果在使用 Solaris 实时更新之前,没有删除现有的软件包即在系统上安装了新的软件包,则在向目标发行版升级时可能会出现问题。新的软件包提供当前系统上的软件包中未提供的错误修复和功能。有关如何安装软件包的信息,请参见本文中的“如何安装必需的软件包”部分。
必需的修补程序
安装软件包后,请应用 InfoDoc 72099 中列出的修补程序,使用 Solaris 实时更新执行升级必须具备这些修补程序。如果要将修补程序存储在本地磁盘上,请创建 /var/tmp/lupatches 目录并将修补程序下载到该目录中。
#zoneadm -z zone1 boot
#zoneadm -z zone2 boot
#zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 zone1 running /space/zone1 native shared
2 zone2 running /space/zone2 native shared
#zoneadm list -p
0:global:running:/::native:shared
1:zone1:running:/space/zone1:559ca0a2-d7c5-6a61-e64c- bec99bb0910c:native:shared
2:zone2:running:/space/zone2:d3e6bc88-3533-6209-f25d- e811e334295a:native:shared
升级新的引导环境。
#luupgrade -u-nnew-BE-ssolaris-image-path
luupgrade -u
升级引导环境中的操作系统
-nnew-BE
要升级的引导环境的名称
-ssolaris-image-path
指定 Solaris 映像路径
例如:
#luupgrade -u -n BE2 -s /net/ins3525-svr/export2/s10u4/dvds/latest
159376 blocks
miniroot file system is <lofs>
Mounting miniroot at </net/ins3525-svr/export2/s10u4/dvds/latest/Solaris_10/Tools/Boot>
Validating the contents of the media </net/ins3525- svr/export2/s10u4/dvds/latest>.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains <Solaris> version <10>.
Constructing upgrade profile to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE <BE2>.
Determining packages to install or upgrade for BE <BE2>.
Performing the operating system upgrade of the BE <BE2>.
CAUTION: Interrupting this process may leave the boot environment unstable
or unbootable.
Upgrading Solaris: 100% completed
Installation of the packages from this media is complete.
Updating package information on boot environment <BE2>.
Package information successfully updated on boot environment <BE2>.
Adding operating system patches to the BE <BE2>.
The operating system patch installation is complete.
INFORMATION: The file </var/sadm/system/logs/upgrade_log> on boot
environment <BE2> contains a log of the upgrade operation.
INFORMATION: The file </var/sadm/system/data/upgrade_cleanup> on boot
environment <BE2> contains a log of cleanup operations required.
WARNING: <1> packages failed to install properly on boot environment <BE2>.
INFORMATION: The file </var/sadm/system/data/upgrade_failed_pkgadds> on
boot environment <BE2> contains a list of packages that failed to upgrade
or install properly.
INFORMATION: Review the files listed above. Remember that all of the files
are located on boot environment <BE2>. Before you activate boot
environment <BE2>, determine if any additional system maintenance is
required or if additional media of the software distribution must be
installed.
The Solaris upgrade of the boot environment <BE2> is partially complete.
Doing pkgadd of SUNWcsu to /
29329 blocks
Doing pkgadd of SUNWcsu
Installation of SUNWcsu was successful
下面是非全局区域的 upgrade_log 文件中的一个样例条目:
Doing pkgadd of SUNWcsu to /
31722 blocks
Installation of SUNWcsu was successful.
Installation of SUNWcsu on zone <SUNWlu-zone1> was successful.
Installation of SUNWcsu on zone <SUNWlu-zone2> was successful
下面是非全局区域的 upgrade_log 文件中的一个故障条目样例:
Removal of SUNWgttf from zone <SUNWlu-zone1> failed.
注意:Solaris 实时更新与 VxVM 不兼容。应将 Solaris 实时更新与 Solaris 卷管理器一起使用。
确保成功升级新的引导环境。
成功完成 luupgrade 命令后,请激活 BE2 并检验是否正确升级了所有区域。
注意:请忽略控制台上的以下消息。这是一个已知问题。
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100083_1/ rpc_tcp:default in repository: entity not found
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100083_1/ rpc_tcp:default in repository: No such file or directory
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100068_2-5/ rpc_udp:default in repository: entity not found
Sep 12 04:29:32 inetd[515]: Failed to update state of instance
svc:/network/rpc-100068_2-5/ rpc_udp:default in repository: No such file or directory