Sun Cluster Data Service for MaxDB Guide for Solaris OS

Configuring the HAStoragePlus Resource Type to Work With Sun Cluster HA for MaxDB

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

For information about the relationship between resource groups and disk device groups, see Relationship Between Resource Groups and 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 MaxDB involves the following operation:

ProcedureHow 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 MaxDB is installed.

    Create this resource in the 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 hsp-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 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 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.

    hsp-resource

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

    The resource is created in the enabled state.


Example 6 Creating an HAStoragePlus Resource


# clresource create -g sapdbrg \
-t SUNW.HAStoragePlus -p filesystemmountpoints=/global/sapdbdata \
-p globaldevicepaths=sapdbdg -p affinityon=TRUE hsprs

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


Next Steps

Go to Registering and Configuring Sun Cluster HA for MaxDB.