跳过导航链接 | |
退出打印视图 | |
安装 Oracle Solaris 11.1 系统 Oracle Solaris 11.1 Information Library (简体中文) |
本节介绍了客户机安装失败时建议要采取的操作。
如果在客户机系统上执行的安装失败,可以在 /system/volatile/install_log 中找到日志。
用于此客户机的 AI 清单位于 /system/volatile/ai.xml 中。用于此客户机的系统配置文件位于 /system/volatile/profile/* 中。
通过验证是否存在非空 /etc/resolv.conf 文件,检查是否在客户机上配置了 DNS。
如果 /etc/resolv.conf 不存在或为空,请检查 DHCP 服务器是否可向客户机提供 DNS 服务器信息:
# /sbin/dhcpinfo DNSserv
如果此命令不返回任何信息,那么说明未将 DHCP 服务器设置为向客户机提供 DNS 服务器信息。请与 DHCP 管理员联系,纠正此问题。
如果 /etc/resolv.conf 文件存在且正确配置了该文件,请检查以下可能的问题,并与系统管理员联系以获取解决方案:
DNS 服务器可能无法解析 IPS 系统信息库服务器名。
不存在可访问 DNS 服务器的缺省路由。
请查看下列有关客户机系统引导时所出现错误的附加信息。
本节介绍了在通过网络引导 SPARC 客户机时可能出现的错误或问题以及可能的原因:
如果 DHCP 服务器未响应 SPARC 客户机的请求,将显示如下消息:
... OpenBoot 4.23.4, 8184 MB memory available, Serial #69329298. Ethernet address 0:14:4f:21:e1:92, Host ID: 8421e192. Rebooting with command: boot net:dhcp - install Boot device: /pci@7c0/pci@0/network@4:dhcp File and args: 1000 Mbps FDX Link up Timed out waiting for BOOTP/DHCP reply Timed out waiting for BOOTP/DHCP reply Timed out waiting for BOOTP/DHCP reply Timed out waiting for BOOTP/DHCP reply
此超时消息意味着客户机发出了 DHCP 请求,但没有针对该请求的响应。此错误可能是由于 DHCP 配置问题而导致的。检查是否在 DHCP 服务器中正确配置了您的客户机。
如果 AI 客户机开始下载 boot_archive,但失败并出现 "Boot load failed" 错误,那么意味着客户机的 DHCP 信息配置错误。
Rebooting with command: boot net:dhcp - install Boot device: /pci@7c0/pci@0/network@4:dhcp File and args: 1000 Mbps FDX Link up HTTP: Bad Response: 500 Internal Server Error Evaluating: Boot load failed
如果有另一个 DHCP 服务器响应了该客户机,就会发生此错误。检查此客户机的 DHCP 配置。如果配置看上去没有错误,那么应确定子网中是否存在另一个 DHCP 服务器。
在 AI 客户机获取了 IP 地址和初始参数并开始下载引导归档文件后,客户机可能无法找到或下载 boot_archive。
如果客户机找不到 boot_archive,那么会显示以下错误:
Rebooting with command: boot net:dhcp - install Boot device: /pci@7c0/pci@0/network@4:dhcp File and args: 1000 Mbps FDX Link up <time unavailable> wanboot info: WAN boot messages->console <time unavailable> wanboot info: Starting DHCP configuration <time unavailable> wanboot info: DHCP configuration succeeded <time unavailable> wanboot progress: wanbootfs: Read 366 of 366 kB (100%) <time unavailable> wanboot info: wanbootfs: Download complete Tue Aug 5 20:46:43 wanboot alert: miniinfo: Request returned code 500 Tue Aug 5 20:46:44 wanboot alert: Internal Server Error \ (root filesystem image missing)
如果 AI 客户机找到了 boot_archive 文件,但无法访问该文件,那么会显示以下错误:
Rebooting with command: boot net:dhcp - install Boot device: /pci@7c0/pci@0/network@4:dhcp File and args: 1000 Mbps FDX Link up <time unavailable> wanboot info: WAN boot messages->console <time unavailable> wanboot info: Starting DHCP configuration <time unavailable> wanboot info: DHCP configuration succeeded <time unavailable> wanboot progress: wanbootfs: Read 366 of 366 kB (100%) <time unavailable> wanboot info: wanbootfs: Download complete Tue Aug 5 20:53:02 wanboot alert: miniroot: Request returned code 403 Tue Aug 5 20:53:03 wanboot alert: Forbidden
对于这两种问题,都应修复为该客户机配置的 boot_archive 文件。检查位于 $IMAGE/boot/boot_archive 的 boot_archive 的路径名和权限。
如果 AI 客户机成功下载了 boot_archive 并引导了 Oracle Solaris 内核,但未能获取一个映像归档文件,那么会显示消息 "ERROR 403: Forbidden" 和 "ERROR 404: Not Found"。将显示一个指示是哪个文件导致此问题的错误消息。例如,在 SPARC 客户机的以下输出中,solaris.zlib 文件在指定的位置不存在或无法访问:
<time unavailable> wanboot info: Starting DHCP configuration <time unavailable> wanboot info: DHCP configuration succeeded <time unavailable> wanboot progress: wanbootfs: Read 368 of 368 kB (100%) <time unavailable> wanboot info: wanbootfs: Download complete Thu Jul 5 18:57:36 wanboot progress: miniroot: Read 235737 of 235737 kB (100%) Thu Jul 5 18:57:36 wanboot info: miniroot: Download complete SunOS Release 5.11 Version 11.1 64-bit Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. Remounting root read/write Probing for device nodes ... Preparing network image for use Downloading solaris.zlib --2012-07-05 18:52:30-- http://10.134.125.136:5555/export/auto_install/11_1_sparc/solaris.zlib Connecting to 10.134.125.136:5555... connected. HTTP request sent, awaiting response... 404 Not Found 2012-07-05 18:52:30 ERROR 404: Not Found. Could not obtain http://10.134.125.136:5555/export/auto_install/11_1_sparc/solaris.zlib from install server Please verify that the install server is correctly configured and reachable from the client
此问题可能是由于下列情况之一所导致的:
WAN 引导中配置的映像路径不正确。
映像路径不存在或者不完整。
由于权限问题,访问被拒绝。
检查 DHCP 配置或者您在运行 installadm create-service 时指定的网络映像的内容。检查 WAN 引导配置。
在客户机系统上安装 Oracle Solaris OS 时,需要在引导时按以下方式包括 install 参数,以便启动安装:
ok boot net:dhcp - install
如果在未使用 install 引导参数的情况下进行引导,SPARC 客户机会引导到自动化安装程序引导映像,但不会启动安装。有关如何从此刻启动自动安装的说明,请参见在不启动安装的情况下引导后启动安装。
本节介绍了在通过网络引导 x86 客户机时可能出现的错误或问题以及可能的原因:
如果 DHCP 服务器未响应 x86 客户机的请求,您将看到以下消息:
Intel(R) Boot Agent PXE Base Code (PXE-2.1 build 0.86) Copyright(C) 1997-2007, Intel Corporation CLIENT MAC ADDR 00 14 4F 29 04 12 GUID FF2000008 FFFF FFFF FFFF 7BDA264F1400 DHCP......... No DHCP or ProxyDHCP offers were received PXE-MOF: Exiting Intel Boot Agent
超时消息意味着客户机发送了 DHCP 请求,但未收到响应。此问题可能是由于 DHCP 配置错误而引起的。检查是否在 DHCP 服务器中正确配置了您的客户机。
DHCP 服务器在 DHCP 响应中提供 IP 地址和初始引导程序的位置。
如果引导程序不存在,那么 AI 客户机引导将无法继续。将显示以下消息:
Intel(R) Boot Agent PXE Base Code (PXE-2.1 build 0.86) Copyright(C) 1997-2007, Intel Corporation CLIENT MAC ADDR 00 14 4F 29 04 12 GUID FF2000008 FFFF FFFF FFFF 7BDA264F1400 CLIENT IP: 10.6.68.29 MASK: 255.255.255.0 DHCP IP: 10.6.68.49 GATEWAY: 10.6.68.1 TFTP. PXE-T02: Access Violation PXE-E3C: TFTP Error - Access violation PXE-MOF: Exiting Intel Boot Agent
如果引导程序存在,但不是正确的程序,那么 AI 客户机将在显示如下消息后挂起:
Intel(R) Boot Agent PXE Base Code (PXE-2.1 build 0.86) Copyright(C) 1997-2007, Intel Corporation CLIENT MAC ADDR 00 14 4F 29 04 12 GUID FF2000008 FFFF FFFF FFFF 7BDA264F1400 CLIENT IP: 10.6.68.29 MASK: 255.255.255.0 DHCP IP: 10.6.68.49 GATEWAY: 10.6.68.1
如果客户机能够执行初始引导,但内核无法引导,那么系统将在用户从 GRUB 菜单中选择某一项后挂起。
在安装服务器上,检查此客户机的 grub.cfg 文件或 menu.lst 文件是否指向有效的引导归档文件。在该服务器上,映像的引导目录应当回送挂载到 /etc/netboot 目录下,如用于 installadm list 所示映像路径的 df -k 所生成的以下摘录样例所示:
Filesystem 1K-blocks Used Available Use% Mounted on /export/auto_install/solaris11_1-i386 92052473 36629085 55423388 40% /etc/netboot/default-i386 /export/auto_install/solaris11_1-i386 92052473 36629085 55423388 40% /etc/netboot/solaris11_1-i386
在安装服务器上,如果某个安装程序在 /etc/netboot 下的 grub.cfg 文件或 menu.lst 文件中所指定的位置不可访问或不存在,则客户机能够引导,但无法下载该文件。将显示一个指示是哪个文件导致此问题的错误消息。例如,在 x86 客户机上的以下输出中,solaris.zlib 文件在指定的位置不存在:
SunOS Release 5.11 Version 11.1 64-bit Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. Remounting root read/write Probing for device nodes ... Preparing network image for use Downloading solaris.zlib --2012-07-18 20:02:26-- http://10.134.125.136:5555/export/auto_install/solaris11_1-i386/solaris.zlib Connecting to 10.134.125.136:5555... connected. HTTP request sent, awaiting response... 404 Not Found 2012-07-18 20:02:26 ERROR 404: Not Found. Could not obtain http://10.134.125.136:5555/export/auto_install/solaris11_1-i386/solaris.zlib from install server Please verify that the install server is correctly configured and reachable from the client Requesting System Maintenance Mode (See /lib/svc/share/README for more information.) Console login service(s) cannot run
检查您在运行 installadm create-service 命令时所指定的目标目录的内容。
对于通过网络进行引导的安装,在 x86 客户机系统上安装 Oracle Solaris OS 时,您必须选择 GRUB 引导菜单中的第二项,以启动自动化安装。通常,菜单项如下所示:
Oracle Solaris 11.1 Text Installer and command line Oracle Solaris 11.1 Automated Install
如果选择了第一个 GRUB 菜单项或允许超时提示,那么系统将引导到自动化安装引导映像,但是不会启动安装。有关如何从此刻启动自动安装的说明,请参见在不启动安装的情况下引导后启动安装。
以下错误是 SPARC 和 x86 安装的常见错误:
如果安装期间发生失败,那么会显示以下消息:
21:43:34 Automated Installation Failed. See install log at /system/volatile/install_log Automated Installation failed Please refer to the /system/volatile/install_log file for details Jul 6 21:43:34 solaris svc.startd[9]: application/auto-installer:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
为了安装 Oracle Solaris OS,安装客户机需要访问 AI 清单中定义的 IPS 软件包系统信息库。如果客户机无法访问软件包系统信息库,安装将失败,并且 application/auto-installer 服务将转换到维护状态。以下输出是有关控制台上显示内容的示例:
15:54:46 Creating IPS image 15:54:46 Error occurred during execution of 'generated-transfer-1341-1' checkpoint. 15:54:47 Failed Checkpoints: 15:54:47 15:54:47 generated-transfer-1341-1 15:54:47 15:54:47 Checkpoint execution error: 15:54:47 15:54:47 Framework error: code: 6 reason: Couldn't resolve host 'pkg.example.com' 15:54:47 URL: 'http://pkg.example.com/solaris/release/versions/0/'. 15:54:47 15:54:47 Automated Installation Failed. See install log at /system/volatile/install_log Automated Installation failed Please refer to the /system/volatile/install_log file for details Aug 31 15:54:47 line2-v445 svc.startd[8]: application/auto-installer:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details) ... SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major EVENT-TIME: Wed Aug 31 15:54:47 UTC 2011 PLATFORM: SUNW,Sun-Fire-V445, CSN: -, HOSTNAME: line2-v445 SOURCE: software-diagnosis, REV: 0.1 EVENT-ID: c8a5b809-ece4-4399-9646-d8c64d78aac7 DESC: A service failed - a start, stop or refresh method failed. AUTO-RESPONSE: The service has been placed into the maintenance state. IMPACT: svc:/application/auto-installer:default is unavailable. REC-ACTION: Run 'svcs -xv svc:/application/auto-installer:default' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted. Please refer to the associated reference document at http://support.oracle.com/msg/SMF-8000-YX for the latest service procedures and policies regarding this diagnosis.
检查 /system/volatile/install_log 文件中是否存在如下消息:
TransportFailures: Framework error: code: 6 reason: Couldn't resolve host 'pkg.example.com' URL: 'http://pkg.example.com/solaris/versions/0/'
TransportFailures: Framework error: code: 7 reason: Failed connect to pkg.example.com:80; Connection refused URL: 'http://pkg.example.com/solaris/versions/0/'
TransportFailures: http protocol error: code: 404 reason: Not Found URL: 'http://pkg.oracle.com/mysolaris/versions/0/'
根据所看到的消息,尝试以下可能的补救措施:
尝试从发生故障的客户机系统访问软件包服务器,例如通过使用 ping。
如果使用的是 DNS,请检查 AI 客户机上的 DNS 是否正确配置。请参见检查 DNS。
如果使用的是本地系统信息库,请检查是否已将该系统信息库设为可供所有客户机访问。请参见《复制和创建 Oracle Solaris 11.1 软件包系统信息库》中的第 3 章 "提供对系统信息库的访问"。
确保 AI 清单中的 URI 不存在排字错误。
使用命令(如以下命令)检查软件包系统信息库是否有效:
$ pkg list -g http://pkg.example.com/solaris/ entire
您可能需要刷新目录或重新生成索引。
如果不能在 IPS 系统信息库中找到 AI 清单中指定的某个软件包,那么安装程序将会失败,从而无法在磁盘上安装任何软件包。在以下示例中,安装程序在 IPS 系统信息库中找不到软件包 mypkg。以下输出是有关控制台上显示内容的示例:
14:04:02 Failed Checkpoints: 14:04:02 14:04:02 generated-transfer-1230-1 14:04:02 14:04:02 Checkpoint execution error: 14:04:02 14:04:02 The following pattern(s) did not match any allowable packages. Try 14:04:02 using a different matching pattern, or refreshing publisher information: 14:04:02 14:04:02 pkg:/mypkg 14:04:02 14:04:02 Automated Installation Failed. See install log at /system/volatile/install_log
以下输出是部分 /system/volatile/install_log 日志文件的示例:
PlanCreationException: The following pattern(s) did not match any allowable packages. Try using a different matching pattern, or refreshing publisher information: pkg:/mypkg
检查所提到的软件包是否是有效的软件包。如果可从其他 IPS 系统信息库获取此软件包,请通过将另一个 publisher 元素添加到 source 元素来在 AI 清单中添加该 IPS 系统信息库。