Use this procedure to configure HA for SAP liveCache as a failover data service for the liveCache database and SAP xserver as a multiple master data service. This procedure assumes that you installed the data service packages. If you did not install the HA for SAP liveCache packages as part of your initial Oracle Solaris Cluster installation, go to Installing the HA for SAP liveCache Package to install the data service packages. Otherwise, use this procedure to configure the HA for SAP liveCache.
Caution - Do not configure more than one SAP xserver resource on the same cluster because one SAP xserver serves multiple liveCache instances in the cluster. More than one SAP xserver resource that runs on the same cluster causes conflicts between the SAP xserver resources. These conflicts cause all SAP xserver resources to become unavailable. If you attempt to start the SAP xserver twice, you receive an error message that says Address already in use. |
# cp /opt/SUNWsclc/livecache/bin/lccluster \ /sapdb/LC-NAME/db/sap
Uppercase name of liveCache database instance
# clresourcetype register SUNW.HAStoragePlus # clresource create -g livecache-resource-group \ -t SUNW.HAStoragePlus -p filesystemmountpoints=mountpoint,… \ -p globaldevicepaths=livecache-device-group \ -p affinityon=TRUE livecache-storage-resource
The resource is created in the enabled state.
For the procedure on how to set up an HAStoragePlus resource, see Planning and Administering Data Services for Oracle Solaris Cluster 4.4.
# clresourcetype register SUNW.sap_livecache
# clresourcetype register SUNW.sap_xserver
# clresourcegroup create -n node-list \ -p Maximum_primaries=value \ -p Desired_primaries=value xserver-resource-group
# clresource create \ -g xserver-resource-group \ -t SUNW.HAStoragePlus \ -p filesystemmountpoints=mountpoints \ -p affinityon=false xserver-storage-resource
The resource is created in the enabled state.
For more information about setting up an HAStoragePlus resource, see Enabling Highly Available Local File Systems in Planning and Administering Data Services for Oracle Solaris Cluster 4.4.
# clresource create \ -g xserver-resource-group \ -t SUNW.sap_xserver \ -p resource_dependencies_offline_restart= \ xserver-storage-resource{LOCAL_NODE xserver-resource
The resource is created in the enabled state.
See Setting HA for SAP liveCache Extension Properties for a list of extension properties.
# clresource create -g livecache-resource-group \ -t SUNW.sap_livecache \ -p livecache_name=LC-NAME \ -p resource_dependencies_offline_restart=livecache-storage-resource, \ xserver-resource livecache-resource
The resource is created in the enabled state.
To meet this requirement, create on the liveCache resource group a strong positive affinity for the SAP xserver resource group.
# clresourcegroup set \ -p rg_affinities=++xserver-resource-group livecache-resource-group
# clresourcegroup online -M livecache-resource-group
You might plan to run the APO application server on a node to which the liveCache resource can fail over. In this situation, consider using resource group affinities to shut down the APO application server when the liveCache resource fails over to the node.
To specify this behavior, create on the APO application server resource group a strong negative affinity for the liveCache resource group.
# clresourcegroup set \ -p rg_affinities=--liveCache-resource-group apo-resource-group