[ClusterLabs] Fencing issue with dlm resources in pacemaker cluster.
Ken Gaillot
kgaillot at redhat.com
Tue Jul 25 13:33:46 EDT 2023
On Sat, 2023-07-22 at 08:33 +0000, Sai Siddhartha Peesapati wrote:
> This is a 3-node cluster with gfs2 filesystem resources configured
> using dlm and clvmd. Stonith is enabled. dlm and gfs2 resources are
> set to fence on failures.
> Pacemaker version on the cluster - 2.1.4-5.el8 (CentOS 8 Stream)
>
> Pacemaker default fence actions are set to power off the node instead
> of a reboot by setting "pcmk_reboot_action=off" on IPMI fence
> devices. Also, cluster wide stonith default action is set to poweroff
> the node instead of a reboot
> # pcs property config |grep stonith
> stonith-action: off
> stonith-enabled: true
>
> But still the node is rebooting as dlm_controld resource is sending a
> reboot action as part of fencing. Below are the logs obtained from
> syslog to confirm the same.
Hi,
Unfortunately, only fencing initiated by Pacemaker itself uses stonith-
action, pcmk_reboot_action, and similar options. External software
packages such as DLM specify the action they want when requesting
fencing. You can check the manual for the relevant software to see if
they provide configuration for the action to use.
It would be possible to create a new Pacemaker interface that allows
external software to say "use the default action" but it would require
coordination with the developers of the external software to test for
support and use it.
A workaround would be to make a copy of the fence agent you are using,
and map "reboot" to "off" before doing anything else.
>
> dlm_controld[73542]: 813117 fence request 3 pid 1695739 nodedown time
> 1690006193 fence_all dlm_stonith
> pacemaker-fenced[15706]: notice: Client stonith-api.1695739 wants to
> fence (reboot) 3 using any device
>
> I need the node to be powered off from fencing operations rather than
> a reboot. Disabling fencing on dlm resources is not an option. Is
> there any other way to solve this and make dlm issue a poweroff
> action instead of a reboot as part of fencing.
>
> Regards
> P V K Sai Siddhartha
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Users
mailing list