WebSphere - silent mod install Version 6.1.x, 7.x

WebSphere - silent mod install Version 6.1.x, 7.x



install log directory
silent mod로 설치 할 때 이게 제대로 설치가 되는건지 확인 하고 싶으면 로그를 확인 해야 한다.
tmp 폴더 안에 log.txt 파일이 설치 관련 로그 인데 해당 로그를 확인 하면 된다.

The installation of WebSphere Application Server and its associated fixes generates the following log file
# WAS_installdir/logs/install/log.txt

If the WebSphere Commerce installation wizard did not complete successfully or was otherwise interrupted and WebSphere Application Server was installed, the log files will be in the following location

# tail -f log.txt
  • windows
    drive:\Documents and Settings\user_ID\Local Settings\Temp\

  • 2008
    vista
    drive:\Users\user_ID\AppData\Local\Temp\
  • AIX
    Solaris
    Linux
    /tmp
마지막에 라인의 해당 메시지를 확인 하면 된다.

INSTCONFSUCCESS
조작이 성공함.
INSTCONFPARTIALSUCCESS
조작이 부분적으로 성공했습니다. 자세한 내용은 로그를 참조하십시오.
INSTCONFFAILED
조작에 실패했습니다. 자세한 내용은 로그를 참조하십시오.

Websphere Application Server silent mod install
1 단계 : 설치 전 이미지 파일이 있는 해당 디렉토리로 이동, 압축 파일을 풀어 준다.
# cd /home/wasadmin/was_img
# gunzip *
# tar -xvf <file_name>.tar

2 단계 : vi 편집
Silent mod 사용하기 위해서는 일단 설치에 대한 구성을 해줄 필요가 있다. 그래서 WAS의 환경구성 파일 편집을 위해 그전에 풀어둔 압축 파일의 WAS 디렉토리로 이동하여 responsefile.nd.txt 파일을 수정해 준다.
# cd /was_img/WAS
# cp responsefile.nd.txt res.nd.txt
# vi res.nd.txt

res.nd.txt >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# 라이선스 동의 여부 False에서 True로 변경
-OPT silentInstallLicenseAcceptance="true"
# 루트에서 실행 여부를 확인, NonRoot로 실행할 경우 true, 아니면 false
-OPT allowNonRootSilentInstall="true"
# 사전 검사 여부를 확인
-OPT disableOSPrereqChecking="true"

# install Type 새로 설치 이므로 “installNew” 선택, profile Type 선택
-OPT installType="installNew"
-OPT profileType="cell"

# Security 선택 여부, 나중에 설정 가능하므로 false로 변경 후 밑의 userName, Password 주석 처리
-OPT PROF_enableAdminSecurity="false"
#-OPT PROF_adminUserName=
#-OPT PROF_adminPassword=

# WebSphere Home 경로 선택
-OPT installLocation="/home/wasadmin/IBM/WebSphere/AppServer"
default installation <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

3 단계 : install
$ cd <WAS_img_Directory>/WAS
$ ./install –silent -options res.nd.txt

4 단계 : 설치 확인
Command 창에서 확인
$ cd <was_home>/AppServer/bin
$ cd ./versionInfo.sh # 버전 확인

$ tail –f log.txt # 설치 log 디렉토리로 이동 후 tail 명령어로 log 확인 log 마지막 라인에 INSTCONFSUCCESS이 뜨면 설치 완료
Console 창에서 확인
$ cd <was_home>/AppServer/profiles/Dmgr01/bin
$ ./startManager.sh # Dmgr 구동

$ cd <was_home>/AppServer/profiles/AppSrv01/bin
$ ./startNode.sh # NodeAgent 구동

Dmgr과 nodeagent 구동 후 browser에서 http://<IP, hostname>localhost:9060/admin 관리콘솔 접속하여 구동여부를 확인.
$ cd <was_home>/AppServer/profiles/Dmgr01/bin
$ ./startManager.sh #dmgr 구동
$ cd <was_home>/AppServer/profiles/AppSrv01/bin
$ ./startNode.sh #nodeagent 구동

IHS silent mod install
1 단계 : 설치 전 이미지 파일이 있는 해당 디렉토리로 이동, 압축 파일을 풀어 준다.
# cd /was_img
# tar –xvf <file_name>.tar

2 단계 : vi 편집
Silent mod 사용하기 위해서는 일단 설치에 대한 구성을 해줄 필요가 있다. 그래서 IHS의 환경구성 파일 편집을 위해 그전에 풀어둔 압축 파일의 IHS 디렉토리로 이동하여 responsefile.txt 파일을 수정해 준다.
# cd /home/wasadmin/was_img/IHS
# cp responsefile.txt ihs.txt
# vi ihs.txt

ihs.txt >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# 라이선스 동의 여부
-OPT silentInstallLicenseAcceptance="true"
# root 실행 여부 NonRoot 사용시 해당 부분 true로 진행
-OPT allowNonRootSilentInstall=”false”
# 사전검사 여부
-OPT disableOSPrereqChecking="true"

# IHS Home 경로 설정 
-OPT installLocation="/home/wasadmin/IBM/HTTPServer"

# IHS 서비스 Port 설정 (80 port의 경우 root 권한이 필요)  
-OPT httpPort="80"
-OPT adminPort="8008"

# 계정 설정 여부 (콘솔 제어 여부)
-OPT createAdminAuth="true"

# 계정 설정 부분 (user ID와 , password 설정)
-OPT adminAuthUser="admin" 
-OPT adminAuthPassword="admin"
-OPT adminAuthPasswordConfirm="admin"

# 그룹 설정 부분
-OPT createAdminUserGroup=true
-OPT setupAdminUser="nobody"
-OPT setupAdminGroup="nobody"

# IHS설치시 plug-in을 같이 설치할지 여부
-OPT installPlugin="true"

# 웹 서버 이름
-OPT webserverDefinition="webserver01"

# 호스트네임 설정
-OPT washostname="localhost"

default installation <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

3 단계 : install
# cd <Web_img _Directory>/IHS
# ./install –silent -options res.IHS.txt 

4 단계 : 설치 확인
Command 창에서 확인
$ cd <ihs_home>/bin 
$ ./versionInfo.sh

$ cd <ihs_home>/Plugins/bin
$ ./versionInfo.sh

$ cd <ihs_home>/logs/install/log.txt
$ tail -f log.txt  # 정상적 설치 된 경우에는 INSTCONFSUCCESS 출력.

주의 사항 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1.     Install시 지정된 경로가 미리 생성되어 있던 경우에는 install이 제대로 안될 수 있다.
2.     was 설치 설치 user 확인 필수
3.     HTTP서버의 경우에는 80port을 사용할 경우 root계정으로 설치
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

IHS Start & Stop

HTTP Start
$ cd <ihs_home>/bin
$ ./apachectl start
$ ./adminctl start

# ./adminctl start: admin http started # 정상적으로 시작되었다는 문구
# ps -ef | grep HTTP # 프로세스 시작 여부 확인

중지
<ihs_hoem>/bin/apachectl stop
<ihs_hoem>/bin/adminctl stop

*설치 시 admin.conf의 아래에 나와 있는 부분이 제대로 작성이 안될 있을 수 있다. 이럴 경우 아래와 같이 변경하여 준다.
# cd /home/wasadmin/IBM/HTTPServer/conf
# vi admin.conf
# Default user and group settings for the server
User @@SetupadmUser@@
Group @@SetupadmGroup@@
변경
# Default user and group settings for the server
User nobody
Group nobody

WAS Start & Stop
was start

<was_home> = /home/wasadmin/IBM/WebSphere/AppServer
     <was_home>/profiles/Dmgr01/bin/startManager.sh
     <was_home>/profiles/AppSrv01/bin/startNode.sh
     <was_home>/profiles/AppSrv01/bin/startServer.sh server_name

was stop

     <was_home>/profiles/AppSrv01/bin/stopServer.sh server_name
     <was_home>/profiles/AppSrv01/bin/stopNode.sh
     <was_home>/profiles/Dmgr01/bin/stopManager.sh


Update Install
1 단계 : updateInstaller 확인 & Updata 전 process 확인
Fix pack을 updata을 하기 위해 먼저 UpdateInstaller가 필요하다. UpdateInstller을 먼저 설치 후 해당 Fix pack의 대한 구성파일을 수정 후 설치에 들어 간다.

**UpdateInstaller 최신 프로그램으로 갱신 할 경우 기존의 존재하는 UpdateInstaller는 삭제 후 설치 해야 한다.
**uninstall 명령 부분 참고

# ps –ef | grep java # WAS 확인
# ps –ef | grep http # HTTP 확인
# kill -l
** process 확인 후 해당 process가 구동 중 일 경우 해당 process stop

2 단계 : responsefile
# cd <was_img>
# cp responsefile.txt update.txt

update.txt >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-OPT silentInstallLicenseAcceptance="true"
-OPT disableOSPrereqChecking="true"
-OPT installLocation="/home/wasadmin/IBM/WebSphere/UpdateInstaller"

-OPT installLocation="C:\IBM\UpdateInstaller"
default installation <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

# install –silent -options <>update.txt

# install.exe –silent -options C:\7.0.0.13-WS-UPDI-WinIA32\UpdateInstaller\update.txt 

# cd <was_home>/UpdateInstaller/responsefiles
# cp install.txt WAS.txt
# cp install.txt IHS.txt
# cp install.txt Plugin.txt

install.update.txt >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 # fixpack 경로
-W maintenance.package="/home/wasadmin/was_img/fixpacks"

# fixpack 적용 경로
#-W product.location="/home/wasadmin/IBM/WebSphere/AppServer"
#-W product.location="/home/wasadmin/IBM/HTTPServer/Plugins"
#-W product.location="/home/wasadmin/IBM/HTTPServer"
default installation <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

3 단계 : install
# cd /home/wasadmin/IBM/WebSphere/UpdateInstaller
# ./update.sh  –silent -options responsefiles/<updata_file>.txt 



4 단계 : 설치 확인
# cd /home/wasadmin/IBM/HTTPServer/bin
# ./versionInfo.sh
# cd /home/wasadmin/IBM/HTTPServer/Plugins/bin
# ./versionInfo.sh
# cd /home/wasadmin/IBM/WebSphere/Application/bin
# ./versionInfo.sh

./versionInfo.sh으로 확인 시
Installed Product
--------------------------------------------------------------------------------
Name                   IBM WebSphere Application Server - ND
Version                  7.0.0.13 -> 이 부분을 확인 하면 된다.
ID                       ND
Build Level              cf131039.07
Build Date               10/2/10
Architecture             AMD (64 bit)
--------------------------------------------------------------------------------

Uninstall
1 단계 : 설치 제거하기 전에 모든 서버를 중지
2 단계 : uninstall 할 제품의 경로로 이동

#cd <was_home>/uninstall

3 단계 : 설치 제거
  • AIX, HP-UX, Linux, Solaris : uninstall
  • windows : uninstall.exe
  • 다음 명령을 발행하여 설치 제거 마법사 및 그래픽 사용자 인터페이스를 시작하십시오.
    •  <app_server_home>/uninstall/uninstall
    • <app_server_home> \uninstall\uninstall
  • 다음 명령을 발행하여 그래픽 사용자 인터페이스를 사용하지 않고 자동 모드로 설치 제거 마법사를 시작하고 모든 프로파일을 제거하십시오.
    •  <app_server_home>/uninstall/uninstall -silent(기본 작동)
    •  <app_server_home>/uninstall/uninstall -silent -OPT removeProfilesOnUninstall="true"
    • <app_server_home> \uninstall\uninstall -silent(기본 작동)
    • <app_server_home> \uninstall\uninstall -silent -OPT removeProfilesOnUninstall="true"
  • 자동 모드로 설치 제거 마법사를 시작하고 모든 프로파일을 그대로 남겨 두려면 다음 명령을 발행하십시오.
    •  <app_server_home>/uninstall/uninstall -silent -OPT removeProfilesOnUninstall="false"
    • <app_server_home> \uninstall\uninstall -silent -OPT removeProfilesOnUninstall="false"

4 단계 : 설치 후 로그 파일 확인

<app_server_home>/logs/uninstall/log.txt 파일을 검토하십시오.

로그 파일은 파일 시스템 또는 기타 비정상 오류를 기록합니다. 
로그에서 성공했음을 나타내는 INSTCONFSUCCESS를 찾아 보십시오.

(date_time),
Uninstall, com.ibm.ws.install.ni.ismp.actions.
SetExitCodeAction, msg1,
CWUPI0000I: EXITCODE=0
(date_time),
Uninstall, com.ibm.ws.install.ni.ismp.actions.
ISMPLogSuccessMessageAction, msg1,
INSTCONFSUCCESS

0 Comments:

댓글 쓰기

이 블로그 검색

Popular Posts

WEB&&WAS

OS

Reviews