Tuesday, April 4, 2017

fence_vmware_soap working configuration PCS cluster

fence_vmware_soap -a 172.28.8.131 -l ram@sdp -p ****** -z --ssl-insecure -o list|grep LXTEST0
SP1LVLXTEST04,4232d5fc-368d-18e4-9447-0defc87ba4e0
SP1LVLXTEST03,42322855-441a-a675-1ae8-ab0e8eedcf86
SP1LVLXTEST05,42324804-a7be-087a-8efb-49ae84c98073

https://rizvir.com/articles/rhel6-cluster/


 pcs -f stonith_cfg stonith create my_vcentre-fence fence_vmware_soap  ipaddr=172.28.8.131 ipport=443 ssl_insecure=1 inet4_only=1  login="ram@sdp" passwd="******" action=reboot  pcmk_host_map="sp1lvlxtest04:SP1LVLXTEST04;sp1lvlxtest03:SP1LVLXTEST03;sp1lvlxtest05:SP1LVLXTEST05" pcmk_host_check=static-list pcmk_host_list="sp1lvlxtest03,sp1lvlxtest04,sp1lvlxtest05"  power_wait=3 op monitor interval=60s

  323  pcs -f stonith_cfg property set stonith-enabled=true
  324  pcs cluster cib-push stonith_cfg
  325  pcs stonith show
  326  pcs status
  327  stonith_admin --reboot  sp1lvlxtest04