[ClusterLabs] about "action" "pcmk_reboot_action" "pcmk_off_action"

Ken Gaillot kgaillot at redhat.com
Mon Dec 16 15:26:36 UTC 2024


Hi,

"action" was never the correct setting to use in configuration. It's
required by the fence agent, but Pacemaker sets it automatically. The
proper configuration items that are related are:

* The "stonith-action" cluster option. This can be "off" or "reboot",
and selects the action that will be used when the cluster needs to
fence a node.

* The "pcmk_off_action" fence device agent parameter. These is not
actually interpreted by the agent, but is set in the agent parameters
for historical reasons. If the cluster needs to turn a node off as part
of fencing, this is the actual action it will send to the agent as the
value of "action". This allows use of agents with nonstandard action
names. (This can be used even if "stonith_action" is "reboot", because
reboots are sometimes remapped to an "off" action followed by an "on"
action.)

* The "pcmk_reboot_action" fence device agent parameter is the same,
but used when the cluster needs to reboot a node as part of fencing.
Besides nonstandard action names, this is also sometimes used to force
an "off" action for a particular fence device, even when "stonith-
action" is set to "reboot".

* "pcmk_on_action", "pcmk_list_action", "pcmk_status_action", and
"pcmk_monitor_action" work similarly but are rarely needed.

On Mon, 2024-12-16 at 10:50 +0800, Mr.R via Users wrote:
> Hi all,
> 
> What is the relationship between the attributes "aciton",
> "pcmk_reboot_action", 
> "pcmk_off_action" of the fence type resource?
> 
> In previous pacemaker versions, the fence action is set by setting
> "action". In 
> recent Pacemaker versions, the fence action is set by setting
> "pcmk_reboot_action". 
> When both "action" and "pcmk_reboot_action" are set at the same time,
> "pcmk_reboot_action" 
> determines the fence action. Can you describe how this process
> changes from version to version?
> Or are there any references?
> 
> Also, what does the attribute "pcmk_off_action" do when setting the
> fence action? 
> How to use this parameter? Is there any introduction?
> 
> thanks!
> 
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list