Sample working configuration
The following is a sample working configuration for high availability cluster configuration for RHEL.
ENSA1
[root@hahost05 HA1]# pcs config Cluster Name: rhelha Corosync Nodes: hahost01 hahost02 Pacemaker Nodes: hahost01 hahost02 Resources: Group: rsc_ASCS00_group Resource: rsc_fs_ascs00 (class=ocf provider=heartbeat type=Filesystem) Attributes: device=fs-xxxxxx.efs.us-east-1.amazonaws.com:/ASCS directory=/usr/sap/HA1/ASCS00 force_unmount=safe fstype=nfs options=nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport Operations: monitor interval=20s timeout=40s (rsc_fs_ascs00-monitor-interval-20s) notify interval=0s timeout=60s (rsc_fs_ascs00-notify-interval-0s) start interval=0s timeout=60s (rsc_fs_ascs00-start-interval-0s) stop interval=0s timeout=60s (rsc_fs_ascs00-stop-interval-0s) Resource: rsc_vip_ascs00 (class=ocf provider=heartbeat type=aws-vpc-move-ip) Attributes: interface=eth0 ip=192.168.xx.x routing_table=rtb-09xxxxx Operations: monitor interval=60s timeout=30s (rsc_vip_ascs00-monitor-interval-60s) start interval=0s timeout=180s (rsc_vip_ascs00-start-interval-0s) stop interval=0s timeout=180s (rsc_vip_ascs00-stop-interval-0s) Resource: rsc_ascs00 (class=ocf provider=heartbeat type=SAPInstance) Attributes: AUTOMATIC_RECOVER=false InstanceName=HA1_ASCS00_ascshost START_PROFILE=/sapmnt/HA1/profile/HA1_ASCS00_ascshost Meta Attrs: failure-timeout=60 migration-threshold=1 resource-stickiness=5000 Operations: demote interval=0s timeout=320s (rsc_ascs00-demote-interval-0s) methods interval=0s timeout=5s (rsc_ascs00-methods-interval-0s) monitor interval=20s on-fail=restart timeout=60s (rsc_ascs00-monitor-interval-20s) promote interval=0s timeout=320s (rsc_ascs00-promote-interval-0s) start interval=0s timeout=600s (rsc_ascs010-start-interval-0s) stop interval=0s timeout=600s (rsc_ascs010-stop-interval-0s) Group: rsc_ERS10_group Resource: rsc_fs_ers10 (class=ocf provider=heartbeat type=Filesystem) Attributes: device=fs-xxxxxx.efs.us-east-1.amazonaws.com:/ERS directory=/usr/sap/HA1/ERS10 force_unmount=safe fstype=nfs options=nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport Operations: monitor interval=20s timeout=40s (rsc_fs_ers10-monitor-interval-20s) notify interval=0s timeout=60s (rsc_fs_ers10-notify-interval-0s) start interval=0s timeout=60s (rsc_fs_ers10-start-interval-0s) stop interval=0s timeout=60s (rsc_fs_ers10-stop-interval-0s) Resource: rsc_vip_ers10 (class=ocf provider=heartbeat type=aws-vpc-move-ip) Attributes: interface=eth0 ip=192.168.yy.y routing_table=rtb-09xxxxx Operations: monitor interval=60s timeout=30s (rsc_vip_ers10-monitor-interval-60s) start interval=0s timeout=180s (rsc_vip_ers10-start-interval-0s) stop interval=0s timeout=180s (rsc_vip_ers10-stop-interval-0s) Resource: rsc_ers10 (class=ocf provider=heartbeat type=SAPInstance) Attributes: AUTOMATIC_RECOVER=false IS_ERS=true InstanceName=HA1_ERS10_ershost START_PROFILE=/sapmnt/HA1/profile/HA1_ERS10_ershost Operations: demote interval=0s timeout=320s (rsc_ers10-demote-interval-0s) methods interval=0s timeout=5s (rsc_ers10-methods-interval-0s) monitor interval=20s on-fail=restart timeout=60s (rsc_ers10-monitor-interval-20s) promote interval=0s timeout=320s (rsc_ers10-promote-interval-0s) start interval=0s timeout=600s (rsc_ers10-start-interval-0s) stop interval=0s timeout=600s (rsc_ers10-stop-interval-0s) Stonith Devices: Resource: clusterfence (class=stonith type=fence_aws) Attributes: pcmk_host_map=hahost01:i-0a47xxxxxxx;hahost02:i-0a47yyyyyy pcmk_reboot_retries=4 pcmk_reboot_timeout=600 pcmk_delay_max=45 pcmk_reboot_action=off power_timeout=240 region=us-east-1 Operations: monitor interval=300 timeout=60 (clusterfence-monitor-interval-120) start interval=0s timeout=180 (clusterfence-start-interval-0s) Fencing Levels: Location Constraints: Resource: rsc_ascs00 Constraint: location-rsc_ascs00 Rule: score=2000 (id:location-rsc_ascs00-rule) Expression: runs_ers_rsc eq 1 (id:location-rsc_ascs00-rule-expr) Ordering Constraints: start rsc_ASCS00_group then stop rsc_ERS10_group (kind:Optional) (non-symmetrical) Colocation Constraints: rsc_ERS10_group with rsc_ASCS00_group (score:-5000) Ticket Constraints: Alerts: No alerts defined Resources Defaults: No defaults set Operations Defaults: No defaults set Cluster Properties: cluster-infrastructure: corosync cluster-name: rhelha dc-version: 1.1.19-8.el7_6.5-c3c624ea3d have-watchdog: false last-lrm-refresh: 1619403702 maintenance-mode: false Quorum: Options:
ENSA2
[root@hahost05 HA1]# pcs config Cluster Name: rhelha Corosync Nodes: hahost01 hahost02 Pacemaker Nodes: hahost01 hahost02 Resources: Group: rsc_ASCS00_group Resource: rsc_fs_ascs00 (class=ocf provider=heartbeat type=Filesystem) Attributes: device=fs-xxxxxx.efs.us-east-1.amazonaws.com:/ASCS directory=/usr/sap/HA1/ASCS00 force_unmount=safe fstype=nfs options=nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport Operations: monitor interval=20s timeout=40s (rsc_fs_ascs00-monitor-interval-20s) notify interval=0s timeout=60s (rsc_fs_ascs00-notify-interval-0s) start interval=0s timeout=60s (rsc_fs_ascs00-start-interval-0s) stop interval=0s timeout=60s (rsc_fs_ascs00-stop-interval-0s) Resource: rsc_vip_ascs00 (class=ocf provider=heartbeat type=aws-vpc-move-ip) Attributes: interface=eth0 ip=192.168.xx.x routing_table=rtb-09xxxxx Operations: monitor interval=60s timeout=30s (rsc_vip_ascs00-monitor-interval-60s) start interval=0s timeout=180s (rsc_vip_ascs00-start-interval-0s) stop interval=0s timeout=180s (rsc_vip_ascs00-stop-interval-0s) Resource: rsc_ascs00 (class=ocf provider=heartbeat type=SAPInstance) Attributes: AUTOMATIC_RECOVER=false InstanceName=HA1_ASCS00_ascshost START_PROFILE=/sapmnt/HA1/profile/HA1_ASCS00_ascshost Meta Attrs: failure-timeout=60 migration-threshold=1 resource-stickiness=5000 Operations: demote interval=0s timeout=320s (rsc_ascs00-demote-interval-0s) methods interval=0s timeout=5s (rsc_ascs00-methods-interval-0s) monitor interval=20s on-fail=restart timeout=60s (rsc_ascs00-monitor-interval-20s) promote interval=0s timeout=320s (rsc_ascs00-promote-interval-0s) start interval=0s timeout=600s (rsc_ascs010-start-interval-0s) stop interval=0s timeout=600s (rsc_ascs010-stop-interval-0s) Group: rsc_ERS10_group Resource: rsc_fs_ers10 (class=ocf provider=heartbeat type=Filesystem) Attributes: device=fs-xxxxxx.efs.us-east-1.amazonaws.com:/ERS directory=/usr/sap/HA1/ERS10 force_unmount=safe fstype=nfs options=nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport Operations: monitor interval=20s timeout=40s (rsc_fs_ers10-monitor-interval-20s) notify interval=0s timeout=60s (rsc_fs_ers10-notify-interval-0s) start interval=0s timeout=60s (rsc_fs_ers10-start-interval-0s) stop interval=0s timeout=60s (rsc_fs_ers10-stop-interval-0s) Resource: rsc_vip_ers10 (class=ocf provider=heartbeat type=aws-vpc-move-ip) Attributes: interface=eth0 ip=192.168.yy.y routing_table=rtb-093xxxxx Operations: monitor interval=60s timeout=30s (rsc_vip_ers10-monitor-interval-60s) start interval=0s timeout=180s (rsc_vip_ers10-start-interval-0s) stop interval=0s timeout=180s (rsc_vip_ers10-stop-interval-0s) Resource: rsc_ers10 (class=ocf provider=heartbeat type=SAPInstance) Attributes: AUTOMATIC_RECOVER=false InstanceName=HA1_ERS10_ershost START_PROFILE=/sapmnt/HA1/profile/HA1_ERS10_ershost Operations: demote interval=0s timeout=320s (rsc_ers10-demote-interval-0s) methods interval=0s timeout=5s (rsc_ers10-methods-interval-0s) monitor interval=20s on-fail=restart timeout=60s (rsc_ers10-monitor-interval-20s) promote interval=0s timeout=320s (rsc_ers10-promote-interval-0s) start interval=0s timeout=600s (rsc_ers10-start-interval-0s) stop interval=0s timeout=600s (rsc_ers10-stop-interval-0s) Stonith Devices: Resource: clusterfence (class=stonith type=fence_aws) Attributes: pcmk_host_map=hahost01:i-0a47xxxxxx;hahost02:i-0a47yyyyy pcmk_reboot_retries=4 pcmk_reboot_timeout=600 pcmk_delay_max=45 pcmk_reboot_action=off power_timeout=240 region=us-east-1 Operations: monitor interval=300 timeout=60 (clusterfence-monitor-interval-120) start interval=0s timeout=180 (clusterfence-start-interval-0s) Fencing Levels: Location Constraints: Ordering Constraints: start rsc_ASCS00_group then start rsc_ERS10_group (kind:Optional) (non-symmetrical) start rsc_ASCS00_group then stop rsc_ERS10_group (kind:Optional) (non-symmetrical) Colocation Constraints: rsc_ERS10_group with rsc_ASCS00_group (score:-5000) Ticket Constraints: Alerts: No alerts defined Resources Defaults: No defaults set Operations Defaults: No defaults set Cluster Properties: cluster-infrastructure: corosync cluster-name: rhelha dc-version: 1.1.19-8.el7_6.5-c3c624ea3d have-watchdog: false last-lrm-refresh: 1619403702 maintenance-mode: false Quorum: Options: