Sun Cluster Data Service for SAP DB Guide for Solaris OS

ProcedureHow to Register and Configure an HAStoragePlus Resource

Steps
  1. Register the SUNW.HAStoragePlus resource type.


    # scrgadm -a -t SUNW.HAStoragePlus
    
  2. 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
    
    -a

    Specifies that a new configuration is to be added.

    -j hsp-resource

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

    -g sapdb-rg

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

    -t SUNW.HAStoragePlus

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

    -x filesystemmountpoints=mountpoint-list

    Specifies a list of valid mount points for the file system. For more information, see the SUNW.HAStoragePlus(5) man page.

    -x globaldevicepaths=sapdb-device-group

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

    -x affinityon=TRUE

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

  3. Enable the HAStoragePlus resource that you created in Step 2.


    # scswitch -ej hsp-resource
    
    -ej hsp-resource

    Specifies that the HAStoragePlus resource that you created in Step 2 is to be enabled


Example 6 Creating an HAStoragePlus Resource


# 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:


Next Steps

Go to Registering and Configuring Sun Cluster HA for SAP DB.