Use this procedure to configure HA for WebLogic Server in a multi-master configuration. The following steps assume that you are using the configuration that is described in WebLogic Servers Configured as a Multi-Master Resource and have configured the WebLogic Servers as mentioned in Installing and Configuring the HA for WebLogic Server Application. These steps assume that you have already created a resource group and started the Administration Server either outside or inside the agent control. If you are planning a different configuration, you must configure the WebLogic Server resources accordingly.
# clresourcetype register SUNW.wls
# clresourcegroup create -p Maximum_primaries=m \ -p Desired_primaries=n managed-server-rg
Use the following information:
-p Maximum_primaries=m specifies the maximum number of active primary nodes permitted for this resource group. The default is 1.
-p Desired_primaries=n specifies the desired number of active primary nodes for this resource group. The default is 1.
managed-server-rg is the resource group name.
# clresourcegroup online -M managed-server-rg
The following example starts the WebLogic Server Managed Server instances mgd1 on node1 and mgd2 on node2.
# clresource create -t SUNW.wls -g managed-server-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_mgd1/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