Use the following procedure to configure a HAStoragePlus resource for non-global zones.
The entries in the /etc/vfstab file for cluster file systems should contain the global keyword in the mount options.
The SAP binaries that will be made highly available using the HAStoragePlus resource should be accessible from the non-global zones.
In non-global zones, file systems that are used by different resources in different resource groups must reside in a single HAStoragePlus resource that resides in a scalable resource group. The nodelist of the scalable HAStoragePlus resource group must be a superset of the nodelists of the application resource groups that have resources which depend on the file systems. These application resources that depend on the file systems must have a strong resource dependency set to the HAStoragePlus resource. In addition, the dependent application resource group must have a strong positive resource group affinity set to the scalable HAStoragePlus resource group.
On any node in the cluster, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Create the scalable resource group with non-global zones that contain the HAStoragePlus resource.
# clresourcegroup create \ -p Maximum_primaries=m\ -p Desired_primaries=n\ [-n node-zone-list] hasp-resource-group |
Specifies the maximum number of active primaries for the resource group.
Specifies the number of active primaries on which the resource group should attempt to start.
In the node list of a HAStoragePlus resource group, specifies the list of nodename:zonename pairs as the node list of the HAStoragePlus resource group, where the SAP instances can come online.
Specifies the name of the scalable resource group to be added. This name must begin with an ASCII character.
Register the resource type for the HAStoragePlus resource.
# clresourcetype register HAStoragePlus |
Create the HAStoragePlus resource hasp-resource and define the SAP filesystem mount points and global device paths.
# clresource create -g hasp-resource-group -t SUNW.HAStoragePlus \ -p GlobalDevicePaths=/dev/global/dsk/d5s2,dsk/d6 \ -p affinityon=false -p FilesystemMountPoints=/sapmnt/JSC,/usr/sap/trans,/usr/sap/JSC hasp-resource |
Specifies the resource group name.
Contains the following values:
Global device group names, such as sap-dg, dsk/d5
Paths to global devices, such as /dev/global/dsk/d5s2, /dev/md/sap-dg/dsk/d6
Contains the following values:
Mount points of local or cluster file systems, such as /local/mirrlogA,/local/mirrlogB,/sapmnt/JSC,/usr/sap/JSC
The HAStoragePlus resource is created in the enabled state.
Register the resource type for the SAP application.
# clresourcetype register resource-type |
Specifies the name of the resource type to be added. For more information, see Supported Products.
Create a SAP resource group.
# clresourcegroup create [-n node-zone-list] -p RG_affinities=++hastorageplus-rg resource-group-1 |
Specifies the SAP services resource group.
Add the SAP application resource to resource-group-1 and set the dependency to hastorageplus-1.
# clresource create -g resource-group-1 -t SUNW.application \ [-p "extension-property[{node-specifier}]"=value, ?] \ -p Resource_dependencies=hastorageplus-1 resource |
Bring the failover resource group online.
# clresourcegroup online resource-group-1 |