Go to main content

Oracle® Solaris Cluster Data Service for SAP MaxDB Guide

Exit Print View

Updated: May 2019
 
 

Configuring the HAStoragePlus Resource Type to Work With HA for SAP MaxDB

For maximum availability of the SAP MaxDB database, resources that HA for SAP MaxDB requires must be available before the SAP MaxDB database instance is started. An example of such a resource is the file system where programs and libraries for the SAP MaxDB runtime environment reside. To ensure that these resources are available, configure the HAStoragePlus resource type to work with HA for SAP MaxDB.

For information about the relationship between resource groups and disk device groups, see Relationship Between Resource Groups and Device Groups in Oracle Solaris Cluster 4.3 Data Services Planning and Administration Guide .

Configuring the HAStoragePlus resource type to work with HA for SAP MaxDB involves registering and configuring an HAStoragePlus resource.

How to Register and Configure an HAStoragePlus Resource

Perform this procedure on any one cluster node.

  1. Register the SUNW.HAStoragePlus resource type.
    # clresourcetype register SUNW.HAStoragePlus
  2. Create an HAStoragePlus resource for the global device group on which SAP MaxDB is installed.

    Create this resource in the SAP MaxDB resource group. This resource must perform an affinity switchover for all global devices that are defined for this resource.

    # clresource create -d -g sapdb-rg \
    -t SUNW.HAStoragePlus -p FileSystemMountPoints=mountpoint-list \
    -p GlobalDevicePaths=sapdb-device-group \
    -p AffinityOn=TRUE hasp-resource
    -d

    Specifies that a new resource is to be created in a disabled state.

    -g sapdb-rg

    Specifies that the resource is to be added to the SAP MaxDB resource group.

    -t SUNW.HAStoragePlus

    Specifies that the resource is an instance of the SUNW.HAStoragePlus resource type.

    -p FileSystemMountPoints=mountpoint-list

    Specifies a list of valid mount points for the file system.

    -p GlobalDevicePaths=sapdb-device-group

    Specifies the name of the global device group on which the SAP MaxDB software is installed.

    -p AffinityOn=TRUE

    Specifies that this resource performs an affinity switchover for all global devices that are defined for this resource.

    hasp-resource

    Specifies that the resource that you are creating is named hasp-resource.

Example 6  Creating an HAStoragePlus Resource
# clresource create -g sapdbrg \
-t SUNW.HAStoragePlus -p FileSystemMountPoints=/global/sapdbdata \
-p GlobalDevicePaths=sapdbdg -p AffinityOn=TRUE hasprs

This example shows the creation of a SUNW.HAStoragePlus resource that has the following characteristics:

  • The resource is named hasprs.

  • The resource is a member of a resource group that is named sapdbrg. The creation of this resource group is shown in Example 5, Enabling SAP MaxDB to Run in a Cluster.

  • The resource is an instance of the SUNW.HAStoragePlus resource type. The registration of this resource type is not shown in this example.

  • The mount point for the file system is /global/sapdbdata.

  • The SAP MaxDB software is installed on a global device group that is named sapdbdg.

  • The hasprs resource performs an affinity switchover for all global devices that are defined for this resource.

Next Steps

Go to Registering and Configuring HA for SAP MaxDB.