Add horizontal nodes to the cluster on IBM i
After installing IBM WebSphere Portal for the horizontal cluster node, add the node to the cluster to create a highly available environment.
- Prerequisites
- Install WebSphere Portal on IBM i for the horizontal cluster nodes
Add the horizontal cluster node to the cluster
- To create a directory to store templates:
- Copy...
PORTAL_HOME/profileTemplates/profileTemplates.zip
...on the primary node to the same location on the additional cluster node.
- Extract the profileTemplates.zip file in the same location. If any of the templates already exist in the profileTemplates directory, overwrite them.
- Because some files are set to read-only after the copy operation, open permissions...
chmod -R 755 PORTAL_HOME/profileTemplates
- To install the copied profile template...
cd PORTAL_HOME/profileTemplates
./installPortalTemplates.shThis task localizes the profile templates to the current environment and registers them with the pmt.sh if it exists on the server.
- cd WAS_HOME/bin
Choose a Node Name that is different from what you entered for the primary node.
manageprofiles -create -templatePath
/QIBM/ProdData/WebSphere/PortalServer/V8/portal_family/profileTemplates/managed.portal -profileName testManagedPortal1 -profilePath /QIBM/UserData/WebSphere/AppServer/V8/ND/profiles/testManagedPortal1 -cellName testCell -nodeName testNode -hostName myportal.myco.comUse the continuation character "\" to avoid seeing the "not found" error message.
In this example, the portal profile template is installed under the /QIBM/ProdData/WebSphere/PortalServer/V8/portal_family/profileTemplates/managed.portal directory. The new profile is named testManagedPortal1 and is located under the /QIBM/UserData/WebSphere/AppServer/V8/ND/profiles/testManagedPortal1 directory.
- To ensure that the database information is correct and to ensure a successful additional node:
- Ensure that the wkplc_dbdomain.properties and wkplc_dbtype.properties files have the correct database information in them.
The wkplc_dbdomain.properties and wkplc_dbtype.properties files should match the database information defined in the primary node.
- Copy the database drivers on the primary node to the same location on the additional cluster node. We can find the location of the database drivers in wkplc_dbtype.properties.
- Run the ConfigEngine.sh validate-database -DWasPassword=foo task to validate the database settings.
Add -DTransferDomainList to the validate-database task to specify the domains to validate; for example...
-DTransferDomainList=jcr
To validate all domains, you do not need to specify this parameter on the command line.
- Edit...
WP_PROFILE/PortalServer/jcr/lib/com/ibm/icm/icm.properties
...and set...
jcr.textsearch.enabled = false
- Federate the additional cluster node:
addNode dmgr_hostname dmgr_port -username wasadmin -password fooThe variables are defined as:
- dmgr_hostname is the TCP/IP host name of the dmgr server
- dmgr_port is the SOAP port number of the dmgr server
- wasadmin and foo are the user ID and password for the dmgr administrator
If the WAS administrator user ID and password for the local node are different from the dmgr, add the following parameters:
- -localusername local_wasadmin
- -localpassword local_foo
See the addNode command file for more information about the addNode command and other optional parameters.
- Ensure that the following parameters are set correctly in wkplc.properties, located in the profiles/wp_profile/ConfigEngine/properties directory of the additional cluster node:
Although we can add these parameters (particularly passwords) directly to any task while creating the cluster, we might want to temporarily add them to the properties file. We can then remove them when we are finished to keep the environment secure.
- Verify that WasUserid is set to the dmgr administrator ID.
- Verify that WasPassword is set to the dmgr administrator password.
- Verify that WasRemoteHostName is set to the fully qualified host name of the dmgr.
- Verify that WasSoapPort is set to the SOAP port that the dmgr is using; the default value is 8879.
- Verify that ServerName is set to the correct server name. The default is WebSphere_Portal but we can change this on the additional nodes.
- Verify that PrimaryNode is set to false.
- Verify that ClusterName is set to the primary node's ClusterName.
- If we configured a database user registry or a property extension database on the dmgr, set up access to the database drivers:
- Set the property value for federated.db.DbType if using a database user registry or set the property value for la.DbType if using a property extension database in wkplc.properties.
If you migrated the primary node from a version prior to Version 6.1.0 and we are not using a database user registry or a property extension database, set the property value for federated.db.DbType to the same value that is in wkplc.properties on the primary node.
- To add the library paths to the VMM_JDBC_CLASSPATH variable:
- Log on to the WAS WAS admin console.
- Click Environment > WebSphere Variables.
- Select scope: cell.
- Select the VMM_JDBC_CLASSPATH variable. If this variable does not exist, click New to create the variable.
- Enter the complete paths to the library files in Value. Separate multiple files with a colon (:); for example, enter...
SQLLIB/java/db2jcc4.jar:SQLLIB/java/db2jcc_license_cu.jar
- Copy files set for the VMM_JDBC_CLASSPATH variable into the appserver/lib directory.
- Stop and restart the appropriate servers to propagate the changes.
- To create the local dmgr WebSphere variable used to access the database jars...
cd WP_PROFILE\ConfigEngine
ConfigEngine.sh wp-prep-vmm-db-secured-environment -DWasPassword=foo -DDbDomain=la|federated.db -Ddb_type.NodeDbLibrary=/path/to/dmgr/jars -DDmgrNodeName=dmgr_node_nameSet db_type to your database type, for example db2. The /path/to/db/jars should be one of the following options:
- DB2 Type 2 driver: db2java.zip
- DB2 Type 4 driver: db2jcc4.jar;db2jcc_license_cu.jar
- DB2 for z/OS Type 2 driver: db2java.zip
- DB2 for z/OS Type 4 driver: db2jcc4.jar;db2jcc_license_cisuz.jar
- Oracle: ojdbc14.jar
- SQL Server JDBC driver: sqljdbc.jar
- Run the ConfigEngine.sh wp-node-prep-vmm-db-secured-environment -DWasPassword=foo -DDbDomain=la|federated.db -DVmmNodeName=node_name -Ddb_type.NodeDbLibrary=/path/to/db/jars to create the variable used to access the VMM database jars.
VmmNodeName is a list of one or more nodes names in the cell which share the same database driver paths. The db_type in db_type.NodeDbLibrary should be set to the type of database we are using, for example db2.
- IBM DB2 for i Type 2 driver: /QIBM/ProdData/Java400/ext/db2_classes.jar
- IBM DB2 for i Type 4 driver: /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar
- The node is federated and using the dmgr cell and its user registry. If the admin user ID and group name are different in the WebSphere Portal and dmgr configurations, choose one of the following options depending on your security policies:
- Add the existing admin user ID and group to the dmgr security configuration
- To change the values in the WebSphere Portal configuration to match the dmgr values:
If the dmgr cell is using a stand-alone LDAP user registry, complete these steps after the cluster-node-config-cluster-setup-additional task completes.
- Start the WebSphere_Portal server.
- Verify the required WebSphere Portal admin user ID and group ID are defined in the dmgr user registry that provides security for the cell.
- Run...
./ConfigEngine.sh wp-change-portal-admin-user -DWasPassword=foo -DnewAdminId=newadminid -DnewAdminPw=newpassword -DnewAdminGroupId=newadmingroupid
If the value for newAdminGroupId contains a space; for example Software Group, open wkplc.properties and add the values for newAdminId, newAdminPw, and newAdminGroupId. Save the changes and then run the ConfigEngine.sh wp-change-portal-admin-user -DWasPassword=dmgr_password task.
- WasPassword is set to the administrative password for the dmgr cell
- newAdminId is set to the fully qualified DN of the WebSphere Portal admin user ID in the cell
- newAdminGroupId is set to the fully qualified DN of the group for the WebSphere Portal admin user ID in the cell
- After the task completes, stop the WebSphere_Portal server.
- Run the ConfigEngine.sh cluster-node-config-cluster-setup-additional -DWasPassword=dmgr_password task to add the node to your cluster.
- If the profile templates were copied from a server with a different profile directory:
- Log on to the dmgr integrative console.
- Go to Servers > Server Types > Application servers.
- Select the additional cluster member server.
- Go to Java and Process Management > Process definition > Environment Entries.
- Delete the following environment entries:
- LD_LIBRARY_PATH
- LIBPATH
- PATH
- SHLIB_PATH
- cd WP_PROFILE/ConfigEngine
- Run the ConfigEngine.sh profile-update-entries task to update these entries with the correct profile paths.
- To access the WCM content through an external web server:
- Log on to the dmgr console.
- Select Environment > WebSphere Variables.
- From the Scope drop-down menu, select the option...
Node=nodename, Server=servername
...where Node=nodename is the node containing the portal application server.
- Update the WCM_HOST variable with the fully qualified host name used to access the portal server through the web server or On Demand Router.
- Update the WCM_PORT variable with the port number used to access the portal server through the web server or On Demand Router.
- Update the WCM_HOST and WCM_PORT variable for each additional portal server that already exists in the cluster.
- Synchronize the node with the dmgr:
- Select System Administration > Nodes.
- Select the node to synchronize from the list.
- Click Full Resynchronize.
- Log off of the dmgr console.
- Propagate changes:
WebSphere_Portal is the name of the node's WebSphere Portal server; but if you customized the server name, the default name changes. If we are uncertain of the server name, run the task...
serverstatus -all
...to get a list of the server names and their status.
- stopServer.sh WebSphere_Portal -username wpadmin -password foo
- startServer.sh WebSphere_Portal
- If you entered passwords in any of the properties files while creating the cluster, you should remove them for security purposes. See "Deleting passwords from properties files" under Related for information.
Parent: Prepare additional cluster members on IBM i
Previous: Install WebSphere Portal on IBM i for the horizontal cluster nodes
Next: Add vertical cluster members to a static cluster on IBM i
Related:
Delete passwords from properties files