For maximum availability of the SAP DB database, resources that Sun Cluster HA for SAP DB requires must be available before the SAP DB database instance is started. An example of such a resource is the file system where programs and libraries for the SAP DB runtime environment reside. To ensure that these resources are available, configure the HAStoragePlus resource type to work with Sun Cluster HA for SAP DB.
For information about the relationship between resource groups and disk device groups, see “Relationship Between Resource Groups and Disk Device Groups” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
Configuring the HAStoragePlus resource type to work with Sun Cluster HA for SAP DB involves the following operations:
Synchronizing the startups between resource groups and disk device groups as explained in “Synchronizing the Startups Between Resource Groups and Disk Device Groups” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS
Registering and configuring an HAStoragePlus resource
Register the SUNW.HAStoragePlus resource type.
# scrgadm -a -t SUNW.HAStoragePlus |
Create an HAStoragePlus resource for the global device group on which SAP DB is installed.
Create this resource in the SAP DB resource group. This resource must perform an affinity switchover for all global devices that are defined for this resource.
# scrgadm -a -j hsp-resource -g sapdb-rg \ -t SUNW.HAStoragePlus -x filesystemmountpoints=mountpoint-list \ -x globaldevicepaths=sapdb-device-group -x affinityon=TRUE |
Specifies that a new configuration is to be added.
Specifies that the resource that you are creating is named hsp-resource.
Specifies that the resource is to be added to the SAP DB 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. For more information, see the SUNW.HAStoragePlus(5) man page.
Specifies the name of the global device group on which the SAP DB software is installed.
Specifies that this resource performs an affinity switchover for all global devices that are defined for this resource.
Enable the HAStoragePlus resource that you created in Step 2.
# scswitch -ej hsp-resource |
Specifies that the HAStoragePlus resource that you created in Step 2 is to be enabled
# scrgadm -a -j hsprs -g sapdbrg \ -t SUNW.HAStoragePlus -x filesystemmountpoints=/global/sapdbdata \ -x globaldevicepaths=sapdbdg -x affinityon=TRUE |
This example shows the creation of a SUNW.HAStoragePlus resource that has the following characteristics:
The resource is named hsprs.
The resource is a member of a resource group that is named sapdbrg. The creation of this resource group is shown in Example 1–5.
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 DB software is installed on a global device group that is named sapdbdg.
The hsprs resource performs an affinity switchover for all global devices that are defined for this resource.
Go to Registering and Configuring Sun Cluster HA for SAP DB.