Oracle® Solaris Cluster Data Service for Oracle WebLogic Server Guide

Exit Print View

Updated: July 2014, E39648–01
 
 

How to Set Up the WebLogic Server on Zone Clusters for HAStoragePlus Configuration

Use the following procedure to configure an HAStoragePlus resource for zone clusters.


Note - The examples shown in the following procedure assume that you perform all steps from inside the zone cluster. If you choose to create resources and resource groups from outside the cluster, you need to add the -Z sczone option to all commands to specify the name of the zone cluster.

Before You Begin

  • The entries in the /etc/vfstab file for cluster file systems should contain the global keyword in the mount options.

  • The cluster file systems can be configured for zone clusters in the HAStoragePlus resources using the loopback mount mechanism. The SUNW.HAStoragePlus resource type makes the cluster file system available to a zone cluster by mounting the file system in the global cluster and then performing a loopback mount in the zone cluster node.

  • The cluster file systems configured in the HAStoragePlus resource type for zone clusters should be authorized for use in zone clusters using the clzonecluster command. For more information, see Adding File Systems to a Zone Cluster in Oracle Solaris Cluster Software Installation Guide .

  • In a zone cluster, 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.

  1. On any node in the cluster, assume the root role or a role that provides solaris.cluster.modify RBAC authorization.
  2. Create the scalable resource group that contains the HAStoragePlus resource.
    # clresourcegroup create  -p Maximum_primaries=m \
    -p Desired_primaries=n [-n node-zone-list] hasp-rg
    -p Maximum_primaries=m

    Specifies the maximum number of active primaries for the resource group.

    -p Desired_primaries=n

    Specifies the number of desired primaries on which the resource group should attempt to start.

    -n node-zone-list

    Specifies the list of node names as the node list of the HAStoragePlus resource group where the WebLogic Server instances can be brought online.

    hasp-rg

    Specifies the name of the scalable resource group to be added. This name must begin with an ASCII character.

  3. Configure the cluster file system in the zone cluster.

    For more information, see Creating and Configuring a Zone Cluster in Oracle Solaris Cluster Software Installation Guide .

  4. Register the resource type for the HAStoragePlus resource.
    # clresourcetype register HAStoragePlus
  5. 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 hasp-rs
  6. Bring the HAStoragePlus resource and resource group online.
    # clresourcegroup online -M hasp-rg
  7. Register the resource type for the WebLogic Server application.
    # clresourcetype register SUNW.wls
  8. Create a WebLogic Server resource group.
    # clresourcegroup create -g wls-rg
  9. Add the WebLogic Server resource to wls–rg and set the dependency to HAStoragePlus resource.
    # clresource create -t SUNW.wls -g wls-rg \
    -p Confdir_list=/global/wls/Oracle/Middleware/wlserver_12.1 \
    -p Server_url{node1}=http://logical-host-1:7003 \
    -p Server_url{node2}=http://logical-host-2:7004 \
    -p Start_script=/global/wls/Oracle/Middleware/user_projects/domains/base_domain
    /bin/startManagedWebLogic.sh
    -p "Server_name{node1}"= mgd1 \
    -p "Server_name{node2}"= mgd2 \
    -p Resource_dependencies=logical-host-1@node1,logical-host-2@node2 \
    managed server-rs
  10. Bring the failover resource group online.
    # clresourcegroup online -M wls–rg