創建WSRR DM profiles 與Node profiles
構建如下一個創建概要文件sh腳本文件:
S1.SH
#!/bin/sh cd /usr/WebSphere/ilogWAS7/bin ./manageprofiles.sh -create -profileName Dmgr01 -profilePath /usr/WebSphere/WSRR7/profiles/Dmgr01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/dmgr -hostName S1-CRM-J2EE-WAS -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -samplesPassword wasadmin
./manageprofiles.sh -create -profileName AppSrv01 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s1wsrrNode01
./manageprofiles.sh -create -profileName AppSrv02 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv02 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s1wsrrNode02 |
然後在終端命令符下面執行:
./s1.sh
等候運行一段時間後的結果。
安裝成功後並驗證:
在另外一台機同樣創建s2.sh 腳本.
#!/bin/sh cd /usr/WebSphere/ilogWAS7/bin ./manageprofiles.sh -create -profileName Dmgr01 -profilePath /usr/WebSphere/WSRR7/profiles/Dmgr01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/dmgr -hostName S2-CRM-J2EE-WAS -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -samplesPassword wasadmin
./manageprofiles.sh -create -profileName AppSrv01 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s2wsrrNode01
./manageprofiles.sh -create -profileName AppSrv02 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv02 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s2wsrrNode02
|
腳本執行成功後,啟動Dmgr,檢查日誌。
在WPS安裝目錄/profiles/Dmgr01/bin下運行./startManager.sh
檢查日誌,沒有錯誤。
各應用node 節點,在上面的腳本運行同時,已經建立。
聯立節點
查看Dmgr的端口信息,到查看Dmgr01/logs/AboutThisProfile.txt
記錄Dmgr的SOAP管理端口,以此處為例為8884。
轉到Custom概要文件的bin目錄下:
cd /usr/WebSphere/WPS/profiles/Custom01 |
執行節點聯立命令(此時先保證Dmgr概要文件實例已經在運行,否則在Dmgr概要文件bin目錄下運行./startManager.sh以啟動),根據實際情況修改主機名,DM節點SOAP管理端口,WAS管理控制台管理用戶和密碼
./addNode.sh S2-CRM-J2EE-WAS 8879 –username wasadmin –password <password> |
運行一段時間後,參看運行結果
使用管理控制台創建ND6群集
完成這步之前,先確保Dmgr進程和對應Custom概要文件的節點代理進程已經正常啟動成功。
否則使用
#/usr/WebSphere/WSRR7/profiles/Dmgr01/bin/startManager.sh |
啟動Dmgr進程,並使用
#/usr/WebSphere/WSRR7/profiles/AppSrv01/bin/startNode.sh |
啟動NodeAgent進程。
登錄管理控制台,進入”Servers“-“Cluster”操作頁面,點擊New…按鈕,創建一個WSRR集群
創建好集群後,先不用啟動集群。而且要停掉各個nodeagent。並且在命令行,停掉dmgr.
切換到argument File文件目錄:
/usr/WebSphere/WSRR7/WSRR/install/profile-responsefiles
將augment-oracle-cluster-singledb.txt 複製成wssrDmgr01.txt
編輯wssrDmgr01.txt 文件。編輯如下wssrDmgr01.txt文件
# begin_generated_IBM_copyright_prolog
#
# Licensed Materials – Property of IBM
# 5724-N72 5655-W17
# (c) Copyright IBM Corp. 2009 All Rights Reserved
# US Government Users Restricted Rights – Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp.
#
# end_generated_IBM_copyright_prolog
# WSRR manageprofiles sample response file
# Run this file using:
# manageprofiles -response <path to this file>
# For Windows please use double backslashes as path separators (\\)
# Please ensure there are no trailing space characters on the end of property values.
# This file is for deploying WSRR to a cluster using Oracle with a single database.
augment
# details of the profile
profileName=Dmgr01
templatePath=/usr/WebSphere/WSRR7/profileTemplates/dmgr.wsrr
# WAS security
adminUserName=wasadmin
adminPassword=wasadmin
# Target cluster
wsrrClusterName=wsrr2C
# wsrr security settings
runasUserName=wasadmin
runasPassword=wasadmin
jmsUserName=wasadmin
jmsPassword=wasadmin
adminUser=ALL_AUTHENTICATED
adminGroup=NONE
userUser=ALL_AUTHENTICATED
userGroup=NONE
# Set this to true if you have already created the database and tables
dbAlreadyConfigured=true
# Set this to true to create a new database
# Set this to false to create the tables in an existing database
dbCreateNew=false
# Set this to true to generate the SQL but not execute it
# Set this to false to execute the SQL during profile creation
dbDelayConfig=true
# Directory to put sql scripts in
dbOutputScriptDir=dbscripts
# database type can be:
# DB2_Universal
# DERBY_EMBEDDED
# ORACLE10G
# ORACLE11G
# DB2UDBOS390_V8_1
# DB2UDBOS390_V9_1
# MSSQLSERVER_MICROSOFT
dbType=ORACLE11G
# Oracle Install directory
# e.g. c:\\oracle\\app\\product\\10.2.0\\db_1 (Windows)
# e.g. /u01/oracle/app/oracle/product/10.2.0/db_1 (UNIX)
# dbLocation=/u01/oracle/app/oracle/product/10.2.0/db_1
# path to jdbc drivers
# For oracle this is the directory containing the ojdbc6.jar file
dbJDBCClasspath=/usr/WebSphere/WSRR7/jdbc/lib
# Oracle system administrator (owner of the Oracle files on the filesystem)
dbSysUserId=oracle
# Oracle SYSTEM password
dbSysPassword=ora-01555
# TS database parameters
dbHostName=10.251.35.31 dbServerPort=1521
dbName=wilog2 dbUserId=WSRR
dbPassword=WSRR
sibDbSchemaName=WSRRSIB
|
以下文章點擊率最高
Loading…