Ovirt Hosted-engine HOST重启后Unable to read vm.conf

ovirthost17.skyovirt.com
ovirthost18.skyovirt.com
上面安装了ovirt hosted-engine 管理服务.ovirthost18.skyovirt.com服务器重启后使用hosted-engine --vm-status无法查看服务器状态
[[email protected] ~]# hosted-engine --vm-status
Unable to read vm.conf, please check ovirt-ha-agent logs
查看ovirthost17.skyovirt.com,vm.conf位于/run/ovirt-hosted-engine-ha/vm.conf
[[email protected] ~]# ll /run/ovirt-hosted-engine-ha/vm.conf
ls: cannot access /run/ovirt-hosted-engine-ha/vm.conf: No such file or directory
再查看ha守护进程服务状态
● ovirt-ha-agent.service                                                                           loaded    failed   failed    oVirt Hosted Engine High Availability Monitoring Agent
  ovirt-ha-broker.service                                                                          loaded    inactive dead      oVirt Hosted Engine High Availability Communications Broker

可以看到服务没有启动.
[[email protected] ovirt-hosted-engine-ha]# systemctl restart ovirt-ha-broker.service

[[email protected] ovirt-hosted-engine-ha]# systemctl restart ovirt-ha-agent.service
再执行态状查看

点击(此处)折叠或打开

  1. [[email protected] ovirt-hosted-engine-ha]# hosted-engine --vm-status
  2. --== Host 1 status ==--
  3. Status up-to-date : False
  4. Hostname : ovirthost18.skyovirt.com
  5. Host ID : 1
  6. Engine status : unknown stale-data
  7. Score : 0
  8. stopped : False
  9. Local maintenance : True
  10. crc32 : 28619c9f
  11. Host timestamp : 150139
  12. --== Host 2 status ==--
  13. Status up-to-date : False
  14. Hostname : ovirthost17.skyovirt.com
  15. Host ID : 2
  16. Engine status : unknown stale-data
  17. Score : 3400
  18. stopped : False
  19. Local maintenance : False
  20. crc32 : efc4cf25
  21. Host timestamp : 160410
[[email protected] ovirt-hosted-engine-ha]# hosted-engine --check-liveliness
Hosted Engine is up!
此时主机状态是Non-Operational.
Ovirt Hosted-engine HOST重启后Unable to read vm.conf
执行下面的操作修复hosted_storages的glusterf的挂载.
[[email protected] ~ ]# mkdir -p /rhev/data-center/mnt/glusterSD/ovirthost14.skyovirt.com:_Ovirt
[[email protected] ~ ]# mount -t glusterfs ovirthost14.skyovirt.com:Ovirt /rhev/data-center/mnt/glusterSD/ovirthost14.skyovirt.com:_Ovirt
Ovirt Hosted-engine HOST重启后Unable to read vm.conf
服务器状态已经up
Ovirt Hosted-engine HOST重启后Unable to read vm.conf