10.3. 为选择隔离创建可见的 watchdog 设备


在一些节点缺少功能硬件 watchdog 的异构集群中,您可以创建一个可见的隔离资源,以确保只对支持的节点应用只有 watchdog 的隔离。

先决条件

  • SBD 在支持的节点上以 watchdog-only 模式启用。
  • 目标节点上提供了一个功能的硬件 watchdog 设备。

流程

  1. 创建 watchdog 隔离资源。使用 pcmk_host_list 属性仅指定具有功能 watchdog 设备的节点:

    # pcs stonith create watchdog_fencing fence_watchdog pcmk_host_list="node-01,node-02"
  2. 如果集群包含不在 pcmk_host_list 中的节点,请配置这些特定节点的替代隔离方法(如 IPMI 或基于电源的代理)。
  3. 配置隔离级别,以使用 watchdog 作为回退。在级别 1 和 2 级设置 watchdog 代理的主要隔离代理。

    # pcs stonith level add 1 node-01 ipmi_fencing
    # pcs stonith level add 2 node-01 watchdog_fencing

验证

  1. 确认资源仅限于指定的主机:

    # pcs stonith config watchdog_fencing
  2. 验证集群是否可以识别隔离拓扑:

    # pcs stonith level
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部