High availability cluster setup
The following are the minimum version requirements needed to support shared Amazon VPC:
-
Red Hat 7.9 - resource-agents-4.1.1-61.10
-
Red Hat 8.1 - resource-agents-4.1.1-33.10
-
Red Hat 8.2 - resource-agents-4.1.1-44.12
-
SLES 12 SP5 - resource-agents-4.3.018.a7fb5035-3.79.1.x86_64
-
SLES 15 SP2 - resource-agents-4.4.0+git57.70549516-3.30.1.x86_64
-
SLES 15 SP3 - resource-agents-4.8.0+git30.d0077df0-8.5.1
Setup on SLES
-
Add the overlay ip address to the primary node using the following command.
prihana:~ # ip address add xxx.xxx.xxx.xxx/32 dev eth0
-
Create a file named
aws-move-ip.txt
with the following cluster options.prihana:~ # cat aws-move-ip.txt primitive res_AWS_IP ocf:suse:aws-vpc-move-ip \ params ip=<overlay ip address> \ routing_table=<route table identifier 1>,<route table identifier 2> \ interface=eth0 \ profile=cluster \ lookup_type=NetworkInterfaceId \ routing_table_role=”arn:aws:iam::<VPC-Account-Number>:role/<VPC-Account-Cluster-Role>” \ op start interval=0 timeout=180 \ op stop interval=0 timeout=180 \ op monitor interval=60 timeout=60
-
Use the following command to add the overlay ip configuration file to the cluster.
prihana:~ # crm configure load update aws-move-ip.txt
Setup on RHEL
-
Add the overlay ip address to the primary node using the following command.
[root@prihana ~]# ip address add xxx.xxx.xxx.xxx/32 dev eth0
-
Configure the cluster resource agent according to the following example.
[root@prihana ~]# pcs resource create res_AWS_IP aws-vpc-move-ip \ ip=<overlay ip address> \ routing_table=<route table identifier 1>,<route table identifier 2> \ interface=eth0 \ profile=cluster \ lookup_type=NetworkInterfaceId \ routing_table_role=”arn:aws:iam::<VPC-Account-Number>:role/<VPC-Account-Cluster-Role>” \ op start interval=0 timeout=180 \ op stop interval=0 timeout=180 \ op monitor interval=60 timeout=60