Overlay IP resource
Create a file called “aws-move-ip.txt
” with the following cluster
bootstrap options to move IP resources during failover:
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 \ op start interval=0 timeout=180 \ op stop interval=0 timeout=180 \ op monitor interval=60 timeout=60
Replace the value for parameters ip
and routing_table
with
your overlay IP address and route table names.
Add the move
IP configuration file to the cluster with the following
command:
prihana:~ # crm configure load update aws-move-ip.txt
You can also use multiple Amazon VPC routing tables in the routing_table
table parameter, as shown in the following example.
primitive res_AWS_IP ocf:suse:aws-vpc-move-ip \ params ip=x.x.x.x \ routing_table=rtb-xxxxxxxxx,rtb-yyyyyyyyy,rtb-zzzzzzzzz \ interface=eth0 profile=cluster \ op start interval=0 timeout=180 \ op stop interval=0 timeout=180 \ op monitor interval=60 timeout=60