牵手网
牵手网,予人玫瑰,手留余香。
网站首页
关于本博客
本博客部分文章摘自互联网,如果有涉及侵权行为,请来信告知,,我们将严格处理侵权内容。
您当前位置:牵手网>虚拟化与云计算>解决vCenter Inventory Service fails to start in vCenter Server Appliance
Jul
11
grep -i error /var/log/vmware/vpx/inventoryservice/ds.log
发现[2012-10-19 13:56:41,077 WrapperListener_start_runner FATAL com.vmware.vim.dataservices.WrapperListenerImpl] Error starting service: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'instanceUUID' defined in class path resource [server/config/server-config.xml]: Cannot resolve reference to bean 'store' while setting bean property 'targetObject'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeFactory' defined in class path resource [server/config/query-server-config.xml]: Invocation of init method failed; nested exception is com.xhive.error.XhiveException: INTERNAL_ERROR: Log corrupt: no log records seen, checkpointLSN = 5009727e5)
基本上来说是vCenter Server Inventory Service的数据库坏了,需要重建,然后将数据库重新注册到vcsa
# service vmware-inventoryservice stop
# rm -rf /storage/db/inventoryservice/data
# /usr/lib/vmware-vpx/inventoryservice/scripts/ds-invoke.sh -Dvim.logdir=/var/log/vmware/vpx/inventoryservice com.vmware.vim.dataservices.CreateDb /storage/db/inventoryservice/data changeme default changeme
数据库密码changeme
# service vmware-inventoryservice start
vcsa是5.0:
# /usr/lib/vmware-vpx/inventoryservice/scripts/ds-invoke.sh -Dvim.logdir=/var/log/vmware/vpx/inventoryservice-registration com.vmware.vim.dataservices.provider.util.SetupLocalService -vcurl https://<vcentername or ip>:443/sdk/vimService -providercfg file:/usr/lib/vmware-vpx/inventoryservice/lib/server/config/vc-provider-registration.xml -servicecfg /usr/lib/vmware-vpx/inventoryservice/lib/server/config/dataservice.properties
# service vmware-vpxd restart
vcsa是5.1:
# /usr/lib/vmware-vpx/inventoryservice-registration/vcregtool.sh -Dvim.logdir=/var/log/vmware/vpx/inventoryservice-registration com.vmware.vim.dataservices.vcregtool.RegisterVC -action register -lookupserviceurl https://vcentername:7444/lookupservice/sdk -isurl https://vcentername:10443 -vcurl https://vcentername/sdk/vimService -vccert /etc/vmware-vpx/ssl/rui.crt -vcprivkey /etc/vmware-vpx/ssl/rui.key -vcinstancecfg /etc/vmware-vpx/instance.cfg -vcendpointsdir /usr/lib/vmware-vpx/endpoints -vcextensionsdir /usr/lib/vmware-vpx/extensions
# service vmware-vpxd restart
手工搞定
原文地址:
本文标题:解决vCenter Inventory Service fails to start in vCenter Server Appliance
上 一 篇:SSH 下使vim语法高亮显示 && 终端下vim配置
下 一 篇:CentOS下实现SFTP CHROOT的几种方法
      你可能感兴趣的文章:
      本站为你推荐的文章:
热门文章
最新发布文章
完全随机文章
文章分类列表
网络风云
网赚技巧
Google ads
情感时空
大学生涯
人生感悟
养生之道
休闲娱乐
牵手网 版权所有 网站地图 豫ICP备12013471号-2
站务联系:huiyingruyue@126.com (本站仅回复邮件)