This section contains the procedures you need to configure Sun Cluster HA for BEA WebLogic Server.
Use the extension properties in Extension Properties to create your resources. Use the command scrgadm -x parameter-value to configure extension properties when you create your resource. Use the procedure in “Administering Data Service Resources” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS to configure the extension properties if you have already created your resources. You can update some extension properties dynamically. You can update others, however, only when you create or disable a resource. The Tunable entries indicate when you can update each property. See “Standard Properties” in Sun Cluster Data Services Planning and Administration Guide for Solaris OS for details on all Sun Cluster properties.
Use this procedure to configure Sun Cluster HA for BEA WebLogic Server as a failover data service. The following steps assume that you are using the configuration described in Simple Configuration and have configured the BEA WebLogic Serves as mentioned in Installing and Configuring the BEA WebLogic Server Application. These steps assume that you have already created resource groups RG1 and RG2 and have also created logical-host-1 and logical-host-2 resources in these resource groups. Refer to How to Prepare the Nodes for procedures to create logical hostname resources. If you are planning a different configuration, you must configure the BEA WebLogic Server resources accordingly.
Before you start Sun Cluster HA for BEA WebLogic Server, if you are using a database, check that your database is accessible.
Add the BEA WebLogic Server resource type.
# scrgadm -a -t SUNW.wls
Create a BEA WebLogic Admin Server resource in the RG1 resource group.
# scrgadm -a -j admin-rs -t SUNW.wls -g RG1\ -x Confdir_list=/global/bea/beahome/weblogic700\ -x Server_url=http://logical-host-1:7001\ -x Start_script=/global/bea/beahome/user_projects\ /petstore/startWebLogic.sh
This configuration does not enable smooth shutdown. The Sun Cluster HA for BEA WebLogic Server stop method will force shutdown the BEA WebLogic Administration Server (kill the process). Refer to Creating a Resource Which Will Shut Down Smoothly for the configuration to enable smooth shutdown. For more information, see STOP Method.
Create a BEA WebLogic Managed Server resource in the RG2 resource group.
# scrgadm -a -j managed-rs -t SUNW.wls -g RG2 \ -x Confdir_list=/global/bea/beahome/weblogic700\ -x Server_url=http://logical-host-2:7004\ -x Start_script=/global/bea/beahome/user_projects\ /petstore/startManagedWebLogic.sh