覆盖 IP 资源 - SAP HANA 开启 Amazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

覆盖 IP 资源

使用以下群集引导选项创建一个名为 “aws-move-ip.txt” 的文件,以便在故障转移期间移动 IP 资源:

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

将参数iprouting_table的值替换为叠加 IP 地址和路由表名称。

使用以下命令将 move IP 配置文件添加到群集:

prihana:~  crm configure load update aws-move-ip.txt

您还可以在表参数中使用多个 Amazon VPC 路由routing_table表,如以下示例所示。

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