[ClusterLabs] pacemaker fencing
Papastavros Vaggelis
psvaggelis at gmail.com
Tue Sep 5 08:43:28 EDT 2017
Dear friends ,
I have two_nodes (sgw-01 and sgw-02) HA cluster integrated with two APC
PDUs as fence devices
1) pcs stonith create node2-psu fence_apc ipaddr="10.158.0.162" login="apc"
passwd="apc" port="1" pcmk_host_list="sgw-02" pcmk_host_check="static-list"
action="reboot" power_wait="5" op monitor interval="60s"
pcs constraint location node2-psu prefers sgw-01=INFINITY
2)pcs stonith create node1-psu fence_apc ipaddr="10.158.0.161" login="apc"
passwd="apc" port="1" pcmk_host_list="sgw-01" pcmk_host_check="static-list"
action="reboot" power_wait="5" op monitor interval="60s"
pcs constraint location node1-psu prefers sgw-02=INFINITY
Fencing is working fine but i want to deploy the following scenario :
If one node fenced more than x times during a specified time period then
change the fence action from reboot to stop.
For example if the node rebooted more than 3 times during one hour then at
the next crash change the fence action from reboot to off.
Is there a proper way to implement the above scenario ?
is it mandatory to use two level fencing for the above case ?
Sincerely
Vaggelis Papastavros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20170905/422a96ec/attachment-0002.html>
More information about the Users
mailing list