Placing LifeKeeper Protected Resources in Maintenance Mode During SAP Software Update

LifeKeeper has the ability to place the resources in an SAP hierarchy into maintenance mode to allow the user to upgrade their SAP software in-place without having to first bring the hierarchy in-service on a backup server.

When maintenance mode is enabled for the SAP hierarchy:

  • Resource health monitoring, local recovery, and failover are disabled for all resources in the hierarchy.
  • Any DataKeeper mirrors in the hierarchy will be paused until either maintenance mode is disabled or the user manually resumes the mirror.

To place the SAP hierarchies into maintenance mode:

  1. Open the LifeKeeper GUI.
  2. Right-click each SAP resource on the node where it is currently in-service and click SSHCC HA Actions.

  1. Select Maintenance Mode in the drop-down box.

  1. Select Enable or Disable maintenance mode for all resources in the chosen hierarchy. This action will be attempted on all nodes in the cluster.

Enabling and Disabling SAP Maintenance Mode from the Command Line

To enable SAP Maintenance Mode for all resource hierarchies on all servers in the cluster, execute the following command on one of the servers that is hosting LifeKeeper-protected SAP resources:

sudo /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/lk_maintenance_mode --mode=enable --cluster

The optional --tag parameter may also be used to specify that only particular resource hierarchies should be placed into maintenance mode. For example, to place only the (A)SCS and ERS resource hierarchies into maintenance mode, execute the following command on one of the servers that is hosting LifeKeeper-protected SAP resources:

sudo /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/lk_maintenance_mode --mode=enable --tag=<A/SCS Resource Tag>,<ERS Resource Tag> --cluster

To disable SAP Maintenance Mode for all resources hierarchies on all servers in the cluster, execute the following command on one of the servers that is hosting LifeKeeper-protected SAP resources:

sudo /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/lk_maintenance_mode --mode=disable --cluster

As described above, the optional --tag parameter may also be used to disable maintenance mode for specific resource hierarchies. For example:

sudo /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/lk_maintenance_mode --mode=disable --tag=<A/SCS Resource Tag>,<ERS Resource Tag< --cluster

Checking Maintenance Mode Status for LifeKeeper Protected Resources

The LifeKeeper GUI does not currently show the maintenance mode status for each resource hierarchy. To check the maintenance mode status of an SAP hierarchy in LifeKeeper, run the following command from the command line:

sudo /opt/LifeKeeper/lkadm/subsys/appsuite/sap/bin/lk_maintenance_mode --mode=check --tag=<Resource Tag> --cluster

where <Resource Tag> is the LifeKeeper tag of the SAP resource (e.g., SAP-SID_ASCS00 or SAP-SID_ERS10). The output will show whether maintenance mode is fully enabled, partially enabled, or fully disabled for the hierarchy containing the given resource.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment