[ClusterLabs] Q: callback hooks for sbd?
Klaus Wenninger
kwenning at redhat.com
Thu Mar 11 12:15:50 EST 2021
On 3/11/21 12:30 PM, Ulrich Windl wrote:
> Hi!
>
> I wonder: Is it possible to register some callback to sbd that is called whenever a fencing operation is to be executed?
> I would like to run some command on the node that is going to be fenced.
Don't know of anything that exists you could use for that purpose.
Because of the base-principle it is anyway never gonna be reliable
that the command is executed. When the watchdog is taking
down the node you can't execute anything before of course.
And we couldn't wait for your callback to return of course as
we don't have a reliable channel back to the fencing party
and thus have to execute with a strict timeout.
What you can of course always do is put some pseudo-fence-agent
on a topology level with the poison-pill agent that tries to contact
the to be fenced party first to execute your command.
What I could imagine is to trigger execution of a customizable
command(s) in parallel with the sequence of reboot / sysrq
or as a replacement of that. We would still have the watchdog
to take care of a strict timeout.
I suppose idea is trying to do something graceful before being
taken down by the watchdog.
Or were you thinking along those lines:
https://bugzilla.redhat.com/show_bug.cgi?id=1869728
Regards,
Klaus
>
> Regards,
> Ulrich
>
>
>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>
More information about the Users
mailing list