...
- The role LB (Load Balancer), if two load balancers are used for redundancy
- The role STORE (file storage), if two file stores are setup using DRBD for redundancy
If the system does not contain redundancy, do not install this.
Install PCS Services (Both nodes)
Install the PCS packages:
Code Block |
---|
|
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 (Both nodes)
Disable smb and haproxy since these services will be moved and managed by pacemaker:
Code Block |
---|
title | Disable smb and haproxy |
---|
|
systemctl disable smb
systemctl disable haproxy |
Next configure the firewall for ha services:
Code Block |
---|
|
firewall-cmd --zone=public --add-service=high-availability --permanent
firewall-cmd --reload
|
Change user password (Both nodes)
Change the password of the hacluster user:
Code Block |
---|
title | Setup hosts and create user and password |
---|
|
echo fireball | passwd --stdin hacluster |
Configuration (Only on one node!)
Next configure the names of the machines and the virtual IP address which will be shared in the cluster:
Code Block |
---|
title | Setup hosts and create user and password |
---|
|
KE_HOST1=uk-acd-store1
KE_HOST2=uk-acd-store2
|
Cluster Configuration (Only on one node!)
Now configure the cluster and set some basic options:
Code Block |
---|
|
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 on both machines:
...