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.
Perform this procedure on any one cluster node.
# clresourcetype register SUNW.HAStoragePlus
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
Specifies that a new resource is to be created in a disabled state.
Specifies that the resource is to be added to the SAP MaxDB resource group.
Specifies that the resource is an instance of the SUNW.HAStoragePlus resource type.
Specifies a list of valid mount points for the file system.
Specifies the name of the global device group on which the SAP MaxDB software is installed.
Specifies that this resource performs an affinity switchover for all global devices that are defined for this resource.
Specifies that the resource that you are creating is named hasp-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