Show Table of Contents
2.4. 管理 Manager 虚拟机
hosted-engine 工具用于协助管理 Manager 虚拟机。它能够在该环境中的任意自承载引擎主机上运行。如需查看全部选项,请运行 hosted-engine --help。如需详细了解某条命令,运行 hosted-engine --command --help。请参考 第 3.1 节 “对 Manager 虚拟机进行故障排除” 了解更多信息。
过程 2.5. 在共享存储域上更新自承载引擎配置
以下过程描述了如何在初始部署之后在共享存储域上更新自承载引擎配置文件(
/var/lib/ovirt-hosted-engine-ha/broker.conf) 。目前,您可以使用 SMTP 配置电子邮件通知,用以提醒自承载引擎主机上发生的任意 HA 状态变化。可更新的关键字包括: smtp-server、smtp-port、source-email、destination-emails 和 state_transition。
- 在自承载引擎主机上,将
smtp-server关键字设置为所需的 SMTP 服务器地址:# hosted-engine --set-shared-config smtp-server smtp.example.com --type=broker
注意
为了确认自承载引擎配置文件是否已更新,请运行:# hosted-engine --get-shared-config smtp-server --type=broker broker : smtp.example.com, type : broker
- 确认是否已配置默认的 SMTP 端口(端口 25):
# hosted-engine --get-shared-config smtp-port --type=broker broker : 25, type : broker
- 指定您希望 SMTP 服务器用于发送电子邮件通知的电子邮件地址。只能指定一个地址。
# hosted-engine --set-shared-config source-email source@example.com --type=broker
- 指定接收电子邮件通知的目标电子邮件地址。如果要指定多个电子邮件地址,请用逗号将它们隔开。
# hosted-engine --set-shared-config destination-emails destination1@example.com,destination2@example.com --type=broker
如需确认是否已针对您的自承载引擎环境合理配置 SMTP,请更改自承载引擎主机的 HA 状态,然后确认是否发送电子邮件通知。例如,您可以通过将 HA 代理置于维护模式来改变 HA 状态。请查看 第 5.1 节 “维护自承载引擎” 了解更多信息。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.