高可用性集群设置 - SAP HANA 开启 Amazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

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

高可用性集群设置

以下是支持共享 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-资源代理-4.1.1-44.12

  • SLES 12 SP5-资源代理-4.3.018.a7fb5035-3.79.1.x86_64

  • SLES 15 SP2-资源代理-4.4.0+git57.70549516-3.30.1.x86_64

  • SLES 15 SP3-资源代理-4.8.0+git30.d0077df0-8.5.1

在 SLES 上进行设置

  1. 使用以下命令将叠加 IP 地址添加到主节点。

    prihana:~ # ip address add xxx.xxx.xxx.xxx/32 dev eth0
  2. 使用以下群集选项创建一个名为aws-move-ip.txt的文件。

    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
  3. 使用以下命令将 overlay ip 配置文件添加到集群。

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

在 RHEL 上进行设置

  1. 使用以下命令将叠加 IP 地址添加到主节点。

    [root@prihana ~]# ip address add xxx.xxx.xxx.xxx/32 dev eth0
  2. 根据以下示例配置群集资源代理。

    [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