Vous êtes sur la page 1sur 10

Installing Websphere Application Server 7.

0 in
Silent Mode on Linux
Step 1) Download Websphere Installer from the official IBM Site
http://www.ibm.com/developerworks/downloads/ws/was/
There are two types of installers, BASE Edition and Network Deployment.Only Base Edition is
available for trail. We can only create standalone servers with that.Network Deployment Installer
comes with additional fetaures like Clustering. You can check the official Website for more details.
Step 2) Extract the installer
tar -pxvzf was.cd.7007.trial.base.opt.linux.ia32.tar.gz
Step 3) Create a responsefile.base.txt with the following content.
-OPT allowNonRootSilentInstall=true
-OPT disableOSPrereqChecking=true
-OPT disableNonBlockingPrereqChecking=true
-OPT installType=installNew
-OPT feature=noFeature
-OPT installLocation=/home/apps/ebsi/fkmd/WAS/AppServer
-OPT PROF_enableAdminSecurity=true
-OPT PROF_adminUserName=wasadmin
-OPT PROF_adminPassword=wasadmin
-OPT PROF_profileName=AppSrv01
-OPT PROF_hostName=localhost
-OPT PROF_nodeName=node01
-OPT PROF_defaultPorts=true
-OPT traceLevel=INFO
Step 4) Install with the following options
./install options responsefile.base.txt -silent
Check the following location to verify that the installation went fine.
user_home/waslogs

Normally it takes 10-15 minutes for the installation.


Step 5) Start the Server
$ pwd
/WAS/AppServer/bin
$ ./startServer.sh server1
ADMU0116I: Tool information is being logged in file
/WAS/AppServer/profiles/AppSrv01/logs/server1/startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 30162
Step 6) Access the console with credentials wasadmin/wasadmin

Clustering in WebSphere Application Server


Clustering is a very critical aspect of any middleware enterprise application. It provides capabilities of
high availability by providing fail over and load balancing mechanism.
This post is a sample demonstration of configuring a cluster in WebSphere Application Server
Network Deployment 7.0.
Prerequisites:
Deployment Manager Profile created using profile management tools.

Steps:
1. Create Cluster definition.
Log into WAS Admin console > Servers > Clusters > WebSphere application server
clusters.

Clustering in websphere

2. Create cluster members.


Provide the details about the cluster members.

Define the node on which the cluster member would reside.


Also define whether the server would be generated based on a server template.
You can add additional members to the cluster.

Once the cluster is created successfully, it would be in stopped state by default.


3. Make sure the node agent is started.
Go to System administration from left panel > Node agents > Check the status.

Clustering in WebSphere

If the Node Agent is not started, you can execute the below script to start the same.
WAS_HOME/profiles/YOUR_PROFILE_NAME/bin/startNode.cmd
4. Start the cluster.

Further reading:
http://pic.dhe.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc
%2Finfo%2Fae%2Fae%2Ftrun_wlm_cluster.html

Some common issues while configuring a cluster in WebSphere Application Server.


Issues:
1.
Cluster member MyServer1 will not be started because the Node Agent on node Node02 is not
active. Cluster members can be started individually from the cluster member collection panel.
Remedy:
Make sure you start the Node Agent.
2.
The node agent on node Node02 must be started to perform the restart operation. Node agents in
stopped state cannot be started from the console.

Remedy:
You would need to start the node agent from command line as below.
WAS_HOME/profiles/YOUR_PROFILE_NAME/bin/startNode.cmd

3.

Caused by: com.ibm.websphere.management.exception.AdminException: ADMU7707E: Failed


while trying to determine the Windows Service name for server: nodeagent; probable error executing
WASService.exe: com.ibm.websphere.management.exception.AdminException: ADMU7709E:
Unexpected exception while processing server: nodeagent; exception = java.io.IOException: Cannot
run program D:\Softwares\bin\WASService.exe: CreateProcess error=740, The requested
operation requires elevation.

Remedy:
Check whether the node agent service is present or not. If not create a node agent service as below.

WAS_HOME\bin> wasservice -add Dmgr01_NodeAgent


-servername server1 -profilePath D:\Softwares\profiles\Dmgr01
-wasHome D:\Softwares -logFile
D:\Softwares\profiles\Dmgr01\logs\nodeagent\startNode.log
-logRoot D:\Softwares\profiles\Dmgr01logs\nodeagent -restart true
-startType automatic

4.
The node LTADKAW7Node01 is not synchronized with the master configuration. This may prevent
cluster member MyServer1 from starting correctly.
Remedy: Synchronize the node.

Vous aimerez peut-être aussi