Should I specify an action when creating stonith devices in my High Availability cluster with pacemaker?
Issue
- When using
cman, we used to create a<device/>entry in/etc/cluster/cluster.confand specify the desired action, likeaction="off". Should I specify an action when creating astonithdevice withpcs? - Will
stonith-ngoverride my configuredactionsetting on astonithdevice with the expected action that needs to be carried out? - Nodes are being rebooted when joining the cluster and unfencing is carried out
- Nodes reboot when stonith is executing a monitor operation
- How do I change the fence agent so it shuts a node down instead of rebooting the node?
- How do I see what the fence action is set to for a fence agent?
- Nodes get rebooted unexpectedly when I issue a
pcs resource cleanuporpcs stonith cleanup, and there don't appear to be any resource failures to cause fencing. - The below warning is observed at the top of the
pcs statusoutput:
WARNINGS:
Following stonith devices have the 'action' option set, it is recommended to set 'pcmk_off_action', 'pcmk_reboot_action' instead: node1-fence
Environment
- Red Hat Enterprise Linux (RHEL) 6, 7, 8, 9 or 10 with the High Availability Add On
pacemaker- One or more stonith devices configured with an
action="reboot"oraction="off"attribute
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.