<div dir="ltr"><div>Dear friends ,<br><br></div>I have two_nodes (sgw-01 and sgw-02) HA cluster integrated with two APC PDUs as fence devices<br><div><br>1) pcs stonith create node2-psu fence_apc ipaddr=&quot;10.158.0.162&quot; login=&quot;apc&quot; passwd=&quot;apc&quot; port=&quot;1&quot; pcmk_host_list=&quot;sgw-02&quot; pcmk_host_check=&quot;static-list&quot; action=&quot;reboot&quot; power_wait=&quot;5&quot; op   monitor interval=&quot;60s&quot;<br>pcs constraint location node2-psu prefers sgw-01=INFINITY<br><br><br>2)pcs stonith create node1-psu fence_apc ipaddr=&quot;10.158.0.161&quot; login=&quot;apc&quot; passwd=&quot;apc&quot; port=&quot;1&quot; pcmk_host_list=&quot;sgw-01&quot; pcmk_host_check=&quot;static-list&quot; action=&quot;reboot&quot; power_wait=&quot;5&quot; op monitor interval=&quot;60s&quot;<br>pcs constraint location node1-psu prefers sgw-02=INFINITY</div><div><br></div><div><br></div><div>Fencing is working fine but i want to deploy the following scenario :</div><div><br></div><div>If one node fenced more than x times during a specified time period then change the fence action from reboot to stop. <br></div><div><br></div><div>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.</div><div><br></div><div>Is there a proper way to implement the above scenario  ? <br></div><div><br></div><div>is it mandatory to use two level fencing  for the above case ? <br></div><div><br></div><div><br></div><div><br></div><div>Sincerely</div><div><br></div><div>Vaggelis Papastavros <br></div></div>