Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2226418
  • 博文数量: 533
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7046
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(533)

文章存档

2024年(2)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: 其他UNIX

2013-10-28 15:11:33




 

如何删除WAS的profile

分类: WAS

一般情况下,当然是不用考虑这种问题了。主要是在实验环境下,可能想尝试点新的玩法。
Profile Management Tool不能用来删除一个profile。
#1 先删除一个独立的app server
首先把server停掉,然后
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv02
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv02
INSTCONFSUCCESS: Success: The profile no longer exists.
====================================================================
文件系统里应该还有些残余,主要是Log文件。反正也没什么用了,直接把整个文件夹AppSrv02删除好了。
然后更新下注册表:manageprofiles.bat -validateAndUpdateRegistry
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -validateAndUpdateRegistry
[]
====================================================================
这个命令的返回值看起来有点奇怪嘛。

#2 cell环境下profile的删除
先确保dmgr和node agent都正常运行
登陆console,在node页面,选中node,然后单击“Remove Node”。如果配置了安全,需要输入用户名和密码。
=====================================================================================
Removing node

ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01

ADMU2035W: WARNING! Node removal utility is unable to remove this node since it was created during Cell Profile creation. Your current node has not been modified.

ADMU2036I: To continue removal of this node manually, you may use manageprofiles utility to delete the profile for this node and run cleanupNode utility on Deployment Manager.

The console has not received information on the remove operation in a timely manner. The state of the operation is indeterminate. Check the remove node log for details.

=================================================================================================================

它说这个node是在创建cell时创建的,这个普通的node删除工具无法完成,只能用manageprofiles来完成。
那就照它说的办吧。
先在admin console里停掉node agent。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv01
INSTCONFPARTIALSUCCESS: The profile no longer exists, but errors occurred. For m
ore information, consult D:\IBM\WebSphere\AppServer\logs\manageprofiles\AppSrv01
_delete.log.
=================================================================================================================

说是部分成功,上目录看一下,也都删完了,只剩下logs目录了。所以基本认定为成功。顺便把AppSrv01清理掉。
不过admin console里面还是有这个node的信息的,所以还得执行下cleanupNode
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode AppSrv01 -profileName Dmgr01
=================================================================================================================
需要输入下用户名和密码。
=================================================================================================================
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode AppSrv01 -profileName
 Dmgr01
ADMU0116I: Tool information is being logged in file
           D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: AppSrv01
ADMU2026E: Node AppSrv01 is not incorporated into any cell.
=================================================================================================================
这下就比较纠结了。
不过貌似把node和profile搞的有点混了,搞错node的名字了:
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode HGHLTR8Y32CCNode01 -profileName Dmgr01
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode HGHLTR8Y32CCNode01 -p
rofileName Dmgr01
ADMU0116I: Tool information is being logged in file
           D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01
ADMU2024I: Removal of node HGHLTR8Y32CCNode01 is complete.
=================================================================================================================
这下admin console干净多了。
最后一步,把dmgr的profile也删掉。先把dmgr停掉。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName Dmgr01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName Dmgr01
INSTCONFSUCCESS: Success: The profile no longer exists.
=================================================================================================================
Dmgr01的目录里也只剩logs了,也一并清理了。
顺便把D:\IBM\WebSphere\AppServer\logs\manageprofiles里面的log也打包清理了。

这样WebSphere又是一个全新的空的安装了。
阅读(1790) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~