对 vSphere Web Client 6.0 中缺失清单项目问题进行故障排除
search cancel

对 vSphere Web Client 6.0 中缺失清单项目问题进行故障排除

book

Article ID: 341823

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
免责声明: 本文为 Troubleshooting missing inventory items from the vSphere Web Client 6.0 (2121185) 的翻译版本。 尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。 有关最新内容,请参见英文版本。


  • 在升级到 vSphere 6.0 之后,vSphere Web Client 中的某些清单项目可能会缺失或不可用。
  • 这些清单项目在 vSphere Client 中可见


Environment

VMware vCenter Server 6.0.x
VMware vCenter Server Appliance 6.0.x

Resolution

如果在清单中看不到 vCenter Server,请参见 vCenter Server not listed in the inventory after installing or upgrading to vSphere 5.5 / 6.0 (2059528),然后再继续。

要对该问题进行故障排除,请按指定顺序执行以下步骤:

注意: 如果最近重新启动了 vCenter Server,则最多可能需要 15 分钟的时间来同步所有组件。
  1. 确认以 [email protected] 用户身份登录到 vSphere Web Client 显示相同的缺失项目。

    注意: 如果需要,使用为您的环境配置的域替换 @vSphere.local

  2. 使用文本编辑器打开 vSphere Web Client 日志 vsphere_client_virgo.log 文件。 这些日志文件位于以下位置:
    • 对于 Windows vCenter Server:

      %ALLUSERSPROFILE%\VMWare\vCenterServer\logs\vsphere-client\

    • 对于 vCenter Server Appliance:

      /var/log/vmware/vsphere-client/logs/

  3. 搜索引用了 Inventory Service 连接故障的错误:

    您可能会看到一些类似以下内容的错误:
    • Unable to connect to VMware Inventory Service
    • Connection refused

  4. 确认 Inventory Service 正在运行:
    • 对于 Windows vCenter Server:

      1. 单击开始 > 运行,键入 services.msc,然后单击确定
      2. 搜索 VMware Inventory Service,并确认其正在运行。

    • 对于 vCenter Server Appliance:
      1. 打开与 vCenter Server Appliance 的控制台会话。
      2. 键入 shell.set --enabled true,然后按 Enter
      3. 键入 shell,然后按 Enter
      4. 运行以下命令以检查 Inventory Service 的状态:

        service-control --status vmware-invsvc

        • 如果该服务正在运行,您将看到以下输出:

          Running:
          vmware-invsvc (VMware Inventory Service)

        • 如果该服务已停止,您将看到以下输出:

          Stopped:
          vmware-invsvc (VMware Inventory Service)

  5. 如果该服务已停止,则必须先启动它,然后再进行进一步的故障排除。 有关启动服务的详细信息,请参见停止、启动或重新启动 VMware vCenter Server 6.0 服务 (2115729)
  6. 该服务需要 10 到 15 分钟才能完成加载。
  7. 如果问题仍然存在,请打开 Inventory Service 日志 inv-svc.log 文件,其位于以下位置:
    • 对于 Windows vCenter Server:

      %ALLUSERSPROFILE%\VMWare\vCenterServer\logs\invsvc\

    • 对于 vCenter Server Appliance:

      /var/log/vmware/invsvc/

  8. 如果在日志中看到 DATA CORRUPTION 错误,说明 Inventory Service 数据库已损坏。 有关从该问题中恢复的详细信息,请参见 Resetting the VMware vCenter Server 6.0 Inventory Service database (2119422)
  9. 有关与特定组件相关的特定问题,请参见以下日志文件:
    • 存储配置文件: isp-SPS-xxxxxxxx.log
    • vCenter Server 连接问题: isp-vpx-xxxxxxxx.log
    • Inventory Service 性能问题: inv-svc-perf.log

      这些日志文件位于以下位置:
      • 对于 Windows vCenter Server:

        %ALLUSERSPROFILE%\VMWare\vCenterServer\logs\invsvc

      • 对于 vCenter Server Appliance:

        /var/log/vmware/invsvc/

        注意
        : 日志记录级别由以下文件控制:

        • 对于 Windows vCenter Server:

          C:\Program Files\VMware\vCenter Server\invsvc\lib\server\config\log4j.properties

        • 对于 vCenter Server Appliance:

          /usr/lib/vmware-invsvc/lib/server/conifg/log4j.properties


Additional Information

如何停止、启动或重新启动 vCenter Server 6.x 服务
Troubleshooting missing inventory items from the vSphere Web Client 6.0