Cluster Pacemaker et Corosync STONITH fencing

Voir :

Cluster Pacemaker et Corosync

Cluster script de test STONITH Fencing

Voir aussi :

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/High_Availability_Add-On_Reference/ch-fencing-HAAR.html

https://git.centos.org/raw/rpms!kexec-tools/a6d77e3e27a40e75f156364c9f4309ac6766d473/SOURCES!kdump-in-cluster-environment.txt;jsessionid=aigfzr15p6r4du79f17f548c

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_configuring_stonith.html

https://silvinux.wordpress.com/2016/01/21/2-nodes-rhel-cluster-suite-centos7rhel7-02-fencing-cconfiguration/

Brouillon

Notes

pcs stonith create fence_pcmk1_psu1 fence_apc_snmp \ pcmk_host_list="pcmk-1" ipaddr="pdu-1" \ port="1" op monitor interval="60s" pcs stonith create myfence fence_ssh params HOSTNAME="node2" ACTION="reboot" --force echo "action=metadata" |fence_ilo pcs property set stonith-timeout=120s pcs property set stonith-enabled=true pcs stonith list fence_kdump pcs stonith create MyStonith fence_kdump pcmk_host_list=node2 pcs stonith level add 10 node1 MyStonithNode1 echo "action=list" | fence_pcmk pcs stonith create mykdumpfence fence_kdump \ pcmk_host_check=static-list pcmk_host_list="node1 node2" pcs stonith create mykdumpfence fence_pcmk \ primitive st-kdump stonith:fence_kdump \ params nodename="alice "\ params pcmk_host_check="dynamic-list" \ params pcmk_reboot_action="off" \ params pcmk_monitor_action="metadata" \ params pcmk_reboot_retries="1" \ params timeout="60" pcs stonith fence node2 stonith_admin --reboot node2