4.6.2. Creating an IP address resource to manage a private IP address limited to a single AWS Availability Zone


In an Amazon Web Services (AWS) Availability Zone (AZ), you can use a private IP address. This address is limited to that zone in a Red Hat Enterprise Linux (RHEL) high-availability (HA) cluster. Use this address to configure an AWS Secondary Private IP Address (awsvip) resource.

Prerequisites

Procedure

  1. Install the resource-agents package.

    # dnf install resource-agents
  2. Optional: View the options and default operations for awsvip:

    # pcs resource describe awsvip
  3. Create a Secondary Private IP address with an unused private IP address in the VPC CIDR block:

    [root@ip-10-0-0-48 ~]# pcs resource create privip awsvip secondary_private_ip=10.0.0.68 --group networking-group

    The secondary private IP address is included in a resource group.

  4. Create a virtual IP resource with the vip resource ID and the networking-group group name:

    root@ip-10-0-0-48 ~]# pcs resource create vip IPaddr2 ip=10.0.0.68 --group networking-group

    A Virtual Private Cloud (VPC) IP address maps from the fence node to the failover node and masks the failure of the fence node within the subnet. Ensure that the virtual IP belongs to the same resource group as the Secondary Private IP address you created in the previous step.

Verification

  • Verify the cluster status to ensure resources are available:

    [root@ip-10-0-0-48 ~]# pcs status
    Cluster name: newcluster
    Stack: corosync
    Current DC: ip-10-0-0-46 (version 1.1.18-11.el7-2b07d5c5a9) - partition with quorum
    Last updated: Fri Mar  2 22:34:24 2018
    Last change: Fri Mar  2 22:14:58 2018 by root via cibadmin on ip-10-0-0-46
    
    3 nodes configured
    3 resources configured
    
    Online: [ ip-10-0-0-46 ip-10-0-0-48 ip-10-0-0-58 ]
    
    Full list of resources:
    
    clusterfence    (stonith:fence_aws):    Started ip-10-0-0-46
     Resource Group: networking-group
         privip (ocf::heartbeat:awsvip): Started ip-10-0-0-48
         vip (ocf::heartbeat:IPaddr2): Started ip-10-0-0-58
    
    Daemon Status:
      corosync: active/disabled
      pacemaker: active/disabled
      pcsd: active/enabled

    In this example, newcluster is an active cluster where resources such as vip and elastic are part of the networking-group resource group.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동