Performing planned maintenance - 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).

Performing planned maintenance

When performing maintenance on SAP HANA systems in a cluster environment, it’s important to understand how the cluster interacts with SAP HANA system replication. Planned maintenance activities should be conducted carefully to prevent unnecessary failovers or cluster interventions.

There are different options to perform planned maintenance on nodes, resources, and the cluster.

Maintenance mode

Use maintenance mode if you want to make any changes to the configuration or take control of the resources and nodes in the cluster. In most cases, this is the safest option for administrative tasks.

On
# crm maintenance on
# crm configure property maintenance-mode="true"
Off
# crm maintenance off
# crm configure property maintenance-mode="false"

Placing a node in standby mode

To perform maintenance on the cluster without a full system outage, the recommended method for moving active resources is to place the node you want to remove from the cluster in standby mode.

# crm node standby <hostname>

The cluster will cleanly relocate resources, and you can perform activities, including reboots on the node in standby mode. When maintenance activities are complete, you can re-introduce the node with the following command.

# crm node online <hostname>

Moving a resource

Moving individual resources is not recommended because of the migration or move constraints that are created to lock the resource in its new location. These can be cleared as described in the info messages, but this introduces an additional setup.

# crm resource move msl_SAPHanaController_HDB_HDB00 hanahost02 INFO: Move constraint created for msl_SAPHanaController_HDB_HDB00 to hanahost02 INFO: Use `crm resource clear msl_SAPHanaController_HDB_HDB00` to remove this constraint

Note: The exact resource name will vary depending on your SAP HANA system ID and instance number. Adjust the commands accordingly.

Use the following command once the resources have relocated to their target location.

# crm resource clear msl_SAPHanaController_HDB_HDB00