sbd fencing to shutdown and NOT restart the node in cluster

Hi Everyone,

I have configured a pacemaker stonith fencing agent using sbd (Cluster is on SLES 12 SP3).
The watchdog used is softdog.

The crm property is set as stonith-action=“poweroff”

But still each time there is an action triggered (for e.g. in case of interface going down) for sbd, it reboots the node instead of shutdown of the node.
The poweroff option is not working as expected.

Is there any other option that needs to be set or any other parameter that would make this work!

Thanks ahead!

Try using “stonith-action=off” instead.
“poweroff” is a legacy option and its likely using the default of “reboot” as a result.

https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-cluster-options.html

[QUOTE=pri14bal;58668]Hi Everyone,

I have configured a pacemaker stonith fencing agent using sbd (Cluster is on SLES 12 SP3).
The watchdog used is softdog.

The crm property is set as stonith-action=“poweroff”

But still each time there is an action triggered (for e.g. in case of interface going down) for sbd, it reboots the node instead of shutdown of the node.
The poweroff option is not working as expected.

Is there any other option that needs to be set or any other parameter that would make this work!

Thanks ahead![/QUOTE]

Can you provide the stonith resource configuration?

crm configure show <sbd_resource>

You can view the meta even for stonith devices via(note, take the device type from cluster configuration and replace below):

crm ra classes crm ra list stonith crm ra info stonith:<type-of-stonith-device>
Most probably you haven’t defined what the SBD should do and it takes ‘reboot’ as default.