Cluster administration - SAP HANA on Amazon
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Cluster administration

To manually migrate the cluster resources from one node to another, run the following command:

prihana:~ # crm resource move msl_SAPHana_HDB_HDB00 force INFO: Move constraint created for msl_SAPHana_HDB_HDB00 INFO: Use `crm resource clear msl_SAPHana_HDB_HDB00` to remove this constraint

Check the status of the migration using the command “crm_mon –r”.

prihana:~ # crm_mon -r Stack: corosync Current DC: prihana (version 1.1.18+20180430.b12c320f5-3.24.1-b12c320f5) - partition with quorum Last updated: Thu Nov 12 12:39:00 2020 Last change: Thu Nov 12 12:38:47 2020 by root via crm_attribute on prihana 2 nodes configured 6 resources configured Online: [ prihana sechana ] Full list of resources: res_AWS_STONITH (stonith:external/ec2): Started prihana res_AWS_IP (ocf::suse:aws-vpc-move-ip): Started sechana Clone Set: cln_SAPHanaTopology_HDB_HDB00 [rsc_SAPHanaTopology_HDB_HDB00] Started: [ prihana sechana ] Master/Slave Set: msl_SAPHana_HDB_HDB00 [rsc_SAPHana_HDB_HDB00] rsc_SAPHana_HDB_HDB00 (ocf::suse:SAPHana): Promoting sechana Slaves: [ prihana ]

After the resource is migrated, you can check the status of the cluster. Clean up the failed actions as shown in next section.

prihana:~ # crm status Stack: corosync Current DC: prihana (version 1.1.18+20180430.b12c320f5-3.24.1-b12c320f5) - partition with quorum Last updated: Thu Nov 12 12:41:07 2020 Last change: Thu Nov 12 12:40:44 2020 by root via crm_attribute on prihana 2 nodes configured 6 resources configured Online: [ prihana sechana ] Full list of resources: res_AWS_STONITH (stonith:external/ec2): Started prihana res_AWS_IP (ocf::suse:aws-vpc-move-ip): Started sechana Clone Set: cln_SAPHanaTopology_HDB_HDB00 [rsc_SAPHanaTopology_HDB_HDB00] Started: [ prihana sechana ] Master/Slave Set: msl_SAPHana_HDB_HDB00 [rsc_SAPHana_HDB_HDB00] Masters: [ sechana ] Slaves: [ prihana ] Failed Actions: * rsc_SAPHana_HDB_HDB00_monitor_61000 on prihana 'not running' (7): call=35, status=complete, exitreason='', last-rc-change='Thu Nov 12 12:39:49 2020', queued=0ms, exec=0ms