配置vCenter HA的时候提示“A general system error occured: Failed to start HACore profile on node 192.168.18.22”

排错概要

/var/log/vmware/vpxd/vpxd.log可以看到如下提示

2017-11-07T12:24:54.750+01:00 info vpxd[7FDFFF9F3700] [Originator@6876 sub=Default opID=FlowBasedWizard-apply-426753-ngc:70014009-f6] [VpxLxRO] -- ERROR task-31949 -- FailoverClusterConfigurator -- vim.vcha.FailoverClusterConfigurator.configure: vmodl.fault.SystemError:
--> Result:
--> (vmodl.fault.SystemError) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> reason = "Failed to start HACore profile on node 10.107.233.10"
--> msg = ""
--> }
--> Args:
-->
--> Arg configSpec:
--> (vim.vcha.FailoverClusterConfigurator.VchaClusterConfigSpec) {
--> passiveIp = "10.107.233.9",
--> witnessIp = "10.107.233.10"
--> }

/var/log/vmware/vmon/vmon-syslog.log可以看到如下提示

​​​17-11-07T12:24:35.212293+01:00 notice vmon Service statsmonitor start operation timed out.
17-11-07T12:24:35.214212+01:00 notice vmon Constructed command: /usr/bin/python /usr/lib/vmware-vmon/vmonEventPublisher.py --eventdata statsmonitor,UNHEALTHY,UNKNOWN,0
17-11-07T12:24:55.222870+01:00 warning vmon Service statsmonitor exited. Exit code 1
17-11-07T12:24:55.237217+01:00 err vmon Service batch op START failed. Failed services: 'statsmonitor'

故障原因

在statsmonitor服务初始化过程中,数据库/var/vmware/applmgmt/appliance_stats. stats. stats. stats.检查sqlite文件的完整性。如果承载设备根文件系统vmdk的IO子系统很忙或面临延迟问题,数据库完整性检查的时间可能会比默认服务启动超时时间更长,从而导致vMon服务看门狗宣布statsmonitor不健康并停止它。这会导致vMon watchdog的整个HACore配置文件启动失败,进而导致VCHA使能被声明为失败。

解决方法

  1. 在vCenter HA配置之前
  2. 以root用户的身份登录vCenter并开启SSH服务;
  3. 修改 statsmonitor service config for vMon
sed -i '/StartTimeout/d' /etc/vmware/vmware-vmon/svcCfgfiles/statsmonitor.json
sed -i '/ApiHealthFile/a "StartTimeout": 600,' /etc/vmware/vmware-vmon/svcCfgfiles/statsmonitor.json
  1. Reload vMon service config through SIGHUP
kill -HUP $(cat /var/run/vmon.pid)​
  1. Stop and start statmonitor service.
/usr/lib/vmware-vmon/vmon-cli -k statsmonitor
/usr/lib/vmware-vmon/vmon-cli -i statsmonitor​
  1. 开始配置 VCHA.
最后修改:2021 年 03 月 04 日 09 : 57 AM
如果觉得我的文章对你有用,请随意赞赏