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

本文详细介绍了如何解决ovirt hosted-engine服务在服务器重启后无法正常工作的问题,并成功修复了glusterfs挂载失败的情况。通过检查并重启ovirt-ha-agent和ovirt-ha-broker服务,最终使得主机状态恢复正常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

ovirthost17.skyovirt.com
ovirthost18.skyovirt.com
上面安装了ovirt hosted-engine 管理服务.ovirthost18.skyovirt.com服务器重启后使用hosted-engine --vm-status无法查看服务器状态
[root@ovirthost18 ~]# 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
[root@ovirthost18 ~]# 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

可以看到服务没有启动.
[root@ovirthost18 ovirt-hosted-engine-ha]# systemctl restart ovirt-ha-broker.service
[root@ovirthost18 ovirt-hosted-engine-ha]# systemctl restart ovirt-ha-agent.service
再执行态状查看

点击(此处)折叠或打开

  1. [root@ovirthost18 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
[root@ovirthost18 ovirt-hosted-engine-ha]# hosted-engine --check-liveliness
Hosted Engine is up!
此时主机状态是Non-Operational.

执行下面的操作修复hosted_storages的glusterf的挂载.
[root@ovirthost18 ~ ]# mkdir -p /rhev/data-center/mnt/glusterSD/ovirthost14.skyovirt.com:_Ovirt
[root@ovirthost18 ~ ]# mount -t glusterfs ovirthost14.skyovirt.com:Ovirt /rhev/data-center/mnt/glusterSD/ovirthost14.skyovirt.com:_Ovirt

服务器状态已经up


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值