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