Solaris 9 安装指南

测试 Solaris Live Upgrade 要使用的配置文件

创建配置文件之后,使用 luupgrade 命令测试配置文件。通过检查 luupgrade 生成的安装输出,可以迅速确定配置文件是否按预期的要求运行。

  1. 测试配置文件。


    # luupgrade -u -n BE_name -D -s os_image_path -j profile_path
    

    -u

    在引导环境中升级操作系统映像 

    -n BE_name

    指定要升级的引导环境的名称。 

    -D

    luupgrade 命令使用选定引导环境的磁盘配置测试带有 -j 选项的配置文件选项。

    -s os_image_path

    指定包含操作系统映像的目录的路径名。此目录可以位于安装介质上,如 DVD-ROM、CD-ROM,也可以是 NFS 或 UFS 目录。 

    -j profile_path

    为进行升级而配置的配置文件的路径。配置文件必须存放在本地计算机的目录中。 


实例 33–4 使用 Solaris Live Upgrade 测试配置文件

在下面的示例中,配置文件名为 upgrade_solaris9,此配置文件在名为 s9u1b08 的非活动引导环境中成功地通过测试。


# luupgrade -u -n s9u1b08 -D -s /net/installsvr/export/s9u1/combined.s9s_u1wos \
 -j /var/tmp/flash_profile
Validating the contents of the media /net/installsvr/export/s9u1/combined.s9s_u1wos.
The media is a standard Solaris media.
The media contains an operating system upgrade image.
The media contains Solaris version 9.
Locating upgrade profile template to use.
Locating the operating system upgrade program.
Checking for existence of previously scheduled Live Upgrade requests.
Creating upgrade profile for BE s9u1b08.
Determining packages to install or upgrade for BE s9u1b08.
Simulating the operating system upgrade of the BE s9u1b08.
The operating system upgrade simulation is complete.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of the
upgrade operation.
INFORMATION: var/sadm/system/data/upgrade_cleanup contains a log of
cleanup operations required.
The Solaris upgrade of the boot environment s9u1b08 is complete.

现在您可以使用该配置文件升级非活动引导环境。