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
_______________________________________________ Users mailing list: Users@clusterlabs.org http://lists.clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org