如果使用 Solaris Live Upgrade 在空的备用引导环境中安装 Solaris Flash 归档文件,安装会失败。此时将显示与以下错误类似的消息。
sh: /path_to_install_image/Solaris_10/Tools/Boot/usr/sbin/install.d /mergescripts/merge_name_service: not found ERROR: Transfer list entry (/a/var/svc/profile/name_service.xml): mergescript failed (/path_to_install_image/Solaris_10/Tools/Boot/usr /sbin/install.d/mergescripts/merge_name_service) ERROR: Unable to copy a temporary file to it's final location ERROR: Flash installation failed Extracting Flash Archive: 100% completed (of 4361.24 megabytes) The Solaris flash install of the BE S10B74L2 failed. |
在上例中,path_to_install_image 是用于安装的网络安装映像的目录路径。
解决方法:执行以下步骤。
将目录转至用于安装的网络安装映像中的 mergescripts 目录。
# cd path_to_install_image/Solaris_10/Tools /Boot/usr/sbin/install.d/mergescripts |
创建 merge_name_service 文件。
# touch merge_name_service |
使 merge_name_service 文件可执行。
# chmod a+x merge_name_service |
在要进行安装的系统上,使用 Solaris Live Upgrade 在备用引导环境中安装 Solaris Flash 归档文件。
有关如何使用 Solaris Live Upgrade 安装 Solaris Flash 归档文件的说明,请参见《Solaris 10 6/06 安装指南:Solaris Live Upgrade 和升级规划》中的“在引导环境中安装 Solaris Flash 归档文件”。
在步骤 4 中安装的备用引导环境中安装文件系统。
# lumount alt_boot_env mount-point |
在前一个命令中,alt_boot_env 是步骤 4 中安装的引导环境。mount-point 是备用引导环境的挂载点。
将目录转至备用引导环境中的 /var/svc/profile 目录。
# cd mount-point/var/svc/profile |
删除 name_service.xml 配置文件。
# rm name_service.xml |
为名称服务配置文件创建指向 name_service.xml 文件的符号链接。
# ln -s ns_name-service.xml name_service.xml |
在上例中,name-service 是要用于系统的名称服务。为该值使用下列字符串之一。
nis
nisplus
dns
ldap
files