Show Table of Contents
4.5. 使用 unfencing 配置基于存储的 Fence 设备
创建 SAN/存储 fence 设备时(即使用非基于电源的 fencing 代理),必须在创建
stonith 设备时设定元数据选项 provides=unfencing。这样可保证隔离的节点在节点重启前处于未隔离状态,并在该节点中启动集群服务。
配置基于电源的 fence 设备时不一定要设定
provides=unfencing 元数据选项,因为该设备本身为节点提供电源以便其引导(并尝试重新加入集群)。在这种情况下的引导动作表示出现 unfencing 状态。
以下命令配置名为
my-scsi-shooter,使用 fence_scsi fence 代理为该设备启用 unfencing 的 stonith 设备。
pcs stonith create my-scsi-shooter fence_scsi devices=/dev/sda meta provides=unfencing

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.