Skip to content

Instantly share code, notes, and snippets.

@tosmi
Last active February 27, 2020 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tosmi/d9777811d1aede10e225e263bf55119c to your computer and use it in GitHub Desktop.
Save tosmi/d9777811d1aede10e225e263bf55119c to your computer and use it in GitHub Desktop.

Create a cluster resource for SAP Hana on RHEL 8 with pacemaker 2.0

With pacemaker 2.0 master/slave resources where renamed to promoted resources.

The SAPHana resource is responsible for promoting the secondary Hana DB node to primary in case of a failure.

# pcs resource create SAPHana_HDB_00 SAPHana SID=HDB InstanceNumber=00 \
    PREFER_SITE_TAKEOVER=true DUPLICATE_PRIMARY_TIMEOUT=7200 AUTOMATED_REGISTER=true \
    op start timeout=3600 \
    op stop timeout=3600 \
    op monitor interval=61 role="Slave" timeout=700 \
    op monitor interval=59 role="Master" timeout=700 \
    op promote timeout=3600 \
    op demote timeout=3600 \
    promotable meta notify=true clone-max=2 clone-node-max=1 interleave=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment