The entries in the /etc/vfstab file for cluster file systems should contain the global keyword in the mount options.
The BEA WebLogic Server binaries that will be made highly accessible by 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 node list of the scalable HAStoragePlus resource group must be a superset of the node lists 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-rg |
Specifies the maximum number of active primaries for the resource group.
Specifies the number of desired primaries on which the resource group should attempt to start.
Specifies the list of nodename:zonename pairs as the node list of the HAStoragePlus resource group where the WebLogic Server instances can be brought 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-rs and define the WebLogic Server file-system mount points.
# clresource create -g hasp-rg -t SUNW.HAStoragePlus \ -p filesystemMountPoints=/global/wls affinityon=false hasp-rs |
Bring the HAStoragePlus resource and resource group online.
# clresourcegroup online hasp-rg |
Register the resource type for the WebLogic Server application.
# clresourcetype register SUNW.wls |
Create a WebLogic Server resource group and set the dependency to hasp-rg.
# clresourcegroup create -g wls2-rg \ RG_affinities=++hasp-rg wls2-rg |
Add the WebLogic Server resource to wls2–rg and set the dependency to HAStoragePlus resource.
# clresource create -g wls2–rg -t SUNW.wls \ -p Confdir_list=/global/bea/beahome/weblogic700 \ -p Server_url=http://logical-host-1:7001 \ -p Start_script=/global/bea/beahome/user_projects/petstore/startWebLogic.sh \ -p Server_name=ManagedServer_2 \ -p resouce_dependies=hasp-rs \ wls2-rs |
Bring the failover resource group online.
# clresourcegroup online wls2–rg |