https://clusterlabs.org/doc/crm_fencing.html
root@lap:~# pcs cluster setup –local –name cluster1 lap.casa.it rb2.casa.it –force
Shutting down pacemaker/corosync services…
Killing any remaining services…
Removing all cluster configuration files…
root@lap:~# systemctl start corosync.service
root@lap:~# systemctl start pacemaker.service
root@lap:~# pcs cluster auth lap.casa.it rb2.casa.it -u hacluster –force
Password:
rb2.casa.it: Authorized
lap.casa.it: Authorized
root@lap:~# pcs cluster setup –force –name cluster1 lap.casa.it rb2.casa.it
Destroying cluster on nodes: lap.casa.it, rb2.casa.it…
lap.casa.it: Stopping Cluster (pacemaker)…
rb2.casa.it: Stopping Cluster (pacemaker)…
lap.casa.it: Successfully destroyed cluster
rb2.casa.it: Successfully destroyed cluster
Sending cluster config files to the nodes…
lap.casa.it: Succeeded
rb2.casa.it: Succeeded
Synchronizing pcsd certificates on nodes lap.casa.it, rb2.casa.it…
rb2.casa.it: Success
lap.casa.it: Success
Restarting pcsd on the nodes in order to reload the certificates…
rb2.casa.it: Success
lap.casa.it: Success
root@lap:~# pcs cluster start –all
lap.casa.it: Starting Cluster…
rb2.casa.it: Starting Cluster…
root@lap:~# pcs status
Cluster name: cluster1
WARNING: no stonith devices and stonith-enabled is not false
Last updated: Wed Nov 22 17:18:24 2017 Last change: Wed Nov 22 17:16:33 2017 by hacluster via crmd on lap.casa.it
Stack: corosync
Current DC: lap.casa.it (version 1.1.14-70404b0) – partition with quorum
2 nodes and 0 resources configured
Online: [ lap.casa.it rb2.casa.it ]
Full list of resources:
PCSD Status:
lap.casa.it: Online
rb2.casa.it: Online
Daemon Status:
corosync: active/disabled
pacemaker: active/disabled
pcsd: active/enabled
pcs resource create cluster1_IP ocf:heartbeat:IPaddr2 ip=192.168.10.200 cidr_netmask=32 op monitor interval=30s
root@lap:~# crm_verify -LV
error: unpack_resources: Resource start-up disabled since no STONITH resources have been defined
error: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option
error: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity
Errors found during check: config not valid
root@lap:~# pcs property set stonith-enabled=false
root@lap:~# crm_verify -LV
root@lap:~# crm_resource –resource cluster11_IP –move –node rb2.casa.it
root@lap:~# crm_resource –resource cluster11_IP –move –node lap.casa.it