PCS Cluster is required for:

Install PCS Services

Install the PCS packages:

yum -y install pacemaker pcs resource-agents fence-agents-all
systemctl enable pcsd
systemctl enable corosync
systemctl enable pacemaker
systemctl start pcsd.service

Disable Managed Services

Disable smb and haproxy since these services will be moved and managed by pacemaker:

systemctl disable smb
systemctl disable haproxy

Configure the Firewall

Next configure the firewall for ha services:

firewall-cmd --zone=public --add-service=high-availability --permanent
firewall-cmd --reload

Configuration

Next configure the names of the machines and the virtual IP address which will be shared in the cluster:

KE_HOST1=uk-acd-store1
KE_HOST1=uk-acd-store2
KE_VIP=10.4.8.22
useradd -m hacluster
echo fireball | passwd --stdin hacluster

Cluster ConfigurationĀ 

Now configure the cluster and set some basic options:

pcs cluster auth ${KE_HOST1} ${KE_HOST2} -u hacluster -p fireball --force
pcs cluster setup --force --name portal ${KE_HOST1} ${KE_HOST2}
pcs cluster enable --all
pcs cluster start --all
pcs property set stonith-enabled=false
pcs property set no-quorum-policy=ignore
pcs resource defaults migration-threshold=1

Test

Check the results:

pcs status