本过程介绍使用配置文件安装 Solaris Flash 归档文件或差别归档文件的步骤。
如果在配置文件中添加了语言环境,请确保创建了带有额外磁盘空间的引导环境。
在您的系统中安装 Solaris Live Upgrade SUNWlur 和 SUNWluu 软件包。这些软件包必须是将要升级到的发行版的软件包。有关逐步的操作说明,请参见使用 pkgadd 命令安装 Solaris Live Upgrade。
成为超级用户或承担等效角色。
角色包含授权和具有一定权限的命令。有关角色的更多信息,请参见《系统管理指南:安全性服务》中的“配置 RBAC(任务列表)”。
创建配置文件。
有关可以在 Solaris Live Upgrade 配置文件中使用的关键字的列表,请参见创建 Solaris Live Upgrade 要使用的配置文件。
键入:
# luupgrade -f -n BE_name -s os_image_path -j profile_path |
指明从 Solaris Flash 归档文件安装操作系统。
指定要升级的引导环境的名称。
指定包含操作系统映像的目录的路径名。此目录可以位于安装介质(如 DVD-ROM、CD-ROM)上,也可以是 NFS 或 UFS 目录。
为 Flash 安装配置的 JumpStart 配置文件的路径。配置文件必须在本地计算机的目录中。-s 选项的操作系统版本和 Solaris Flash 归档文件操作系统版本必须相同。
引导环境已经做好激活准备。
在本示例中,配置文件提供归档文件的安装位置。
# profile keywords profile values # ---------------- ------------------- install_type flash_install archive_location nfs installserver:/export/solaris/flasharchive/solarisarchive
创建配置文件后,可以运行 luupgrade 命令并安装归档文件。使用 -j 选项访问配置文件。pkgadd 命令添加将要升级到的发行版的 Solaris Live Upgrade 软件包。
# pkgadd -d /server/packages SUNWlur SUNWluu # luupgrade -f -n second_disk \ -s /net/installmachine/export/solarisX/OS_image \ -j /var/tmp/profile |
引导环境已经做好激活准备。要创建配置文件,请参见创建 Solaris Live Upgrade 要使用的配置文件。