Go to main content

Oracle® Solaris Cluster Data Service for SAP NetWeaver Guide

Exit Print View

Updated: November 2018
 
 

Setting SAP HA Maintenance Mode

SAP sets or revokes the maintenance mode either within the upgrade tool, or manually.

  1. Use the following commands as the user sidadm, to set the maintenance mode manually with SAP methods:
    • Set the maintenance mode where the sapstartsrv process for the instance runs:
      $ sapcontrol -nr <instance number> -function HASetMaintenanceMode 1
    • Revoke the maintenance mode on the node where the sapstartsrv process runs:
      $ sapcontrol -nr <instance number> -function HASetMaintenanceMode 0

    This traverses all SAP instances which have an HA integration configured in their instance profile, and sets or revokes the SAP HA Maintenance Mode for these instances. Instances which have no HA integration configured, are not set into maintenance.

  2. Use the following Oracle Solaric Cluster commands as the user sidadm, to set the maintenance mode manually:
    • Set the maintenance mode for the instance:
      $ $ /usr/cluster/bin/clresource unmonitor -g <resourcegroup-containing-the-instance-resource> +
      $ /usr/cluster/bin/clresourcegroup suspend <resourcegroup-containing-the-instance-resource>
      
    • Revoke the maintenance mode for an instance:
      $ $ /usr/cluster/bin/clresource monitor -g <resourcegroup-containing-the-instance-resource> +
      $ /usr/cluster/bin/clresourcegroup resume <resourcegroup-containing-the-instance-resource>