免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4692 | 回复: 9
打印 上一主题 下一主题

关于Clusterware卸载的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-07 23:46 |只看该作者 |倒序浏览
正在实施一套Solaris10+Sun Cluster3.2+Oracle Clusterware+Oracle10g RAC的项目,已经配置完Sun Cluster3.2和SVM,在安装完Oracle Clusterware后(安装没问题、VIP已经生效、crs_stat显示状态正常,但还未安装Oracle RAC)发现其安装目录指定在默认的$ORACLE_BASE/db_1目录下了(应该为$ORACLE_BASE/crs),为规范起见,准备卸载Clusterware软件,并重新安装指定到正确目录,但重新运行安装程序时,在安装完软件包后,提示以root用户执行下面的脚步(/opt/oracle/product/10.2.0/crs/root.sh),只提示了以root执行这一个脚本,在一个节点上执行这个脚本时就停在“Startup will be queued to init within 30 seconds”不动了,不知道什么原因???是不是卸载Clusterware不彻底呀?还需要做什么呢?

root@ecdb1 # /opt/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/opt/oracle/product/10.2.0' is not owned by root
WARNING: directory '/opt/oracle/product' is not owned by root
WARNING: directory '/opt/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
Checking to see if any 9i GSD is up

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/opt/oracle/product/10.2.0' is not owned by root
WARNING: directory '/opt/oracle/product' is not owned by root
WARNING: directory '/opt/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 0: ecdb1 clusternode1-priv ecdb1
node 1: ecdb3 clusternode2-priv ecdb3
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.



备注,卸载Clusterware的步骤如下:
1. Run the command CRS_home/install/rootdelete.sh to disable the Oracle Clusterware applications that are running on the cluster node.
2. Start OUI. In the Welcome page, click Deinstall Products to display the list of installed products. Select the Oracle Clusterware home to de-install.

论坛徽章:
2
丑牛
日期:2014-06-11 13:55:04ChinaUnix元老
日期:2015-02-06 15:16:14
2 [报告]
发表于 2009-07-08 09:25 |只看该作者
不记得卸载时还有运行root.sh呀

论坛徽章:
17
CU大牛徽章
日期:2013-03-13 15:32:352017金鸡报晓
日期:2017-02-08 10:33:21fulanqi
日期:2016-06-17 17:54:25lufei
日期:2016-06-17 17:38:40平安夜徽章
日期:2015-12-26 00:06:30冥斗士
日期:2015-11-25 14:38:112015年辞旧岁徽章
日期:2015-03-03 16:54:15亥猪
日期:2015-01-26 17:23:43CU大牛徽章
日期:2013-04-17 11:02:58CU大牛徽章
日期:2013-04-17 11:02:36CU大牛徽章
日期:2013-04-17 11:02:15CU大牛徽章
日期:2013-04-17 11:01:45
3 [报告]
发表于 2009-07-08 15:50 |只看该作者
需要在RAC的每个节点上都运行CRS_home/install/rootdelete.sh和CRS_home/install/rootdeinstall.sh

论坛徽章:
0
4 [报告]
发表于 2009-07-08 21:51 |只看该作者
问题解决了,的确是卸载的不彻底导致,后来在metalink上找到一篇文档,安装文档做了一遍reboot系统后,问题解决。感谢楼上几位的支持!

论坛徽章:
0
5 [报告]
发表于 2009-07-08 21:52 |只看该作者
对了,把那个文档贴出来,供大家参考:

Subject: How to Clean Up After a Failed Oracle Clusterware (CRS) Installation
  Doc ID: 239998.1 Type:  BULLETIN
  Modified Date:  18-MAR-2009 Status:  PUBLISHED


PURPOSE
-------

The purpose of this document is to help DBA's and support analysts understand how
to clean up a failed CRS (Cluster Ready Services) install for 10g RAC.


SCOPE & APPLICATION
-------------------

DBA's and Support Analysts


10g RAC: How to Clean Up After a Failed CRS Install
---------------------------------------------------

Not cleaning up a failed CRS install can cause problems like node reboots.
Follow these steps to clean up a failed CRS install:

1. Run the rootdelete.sh script then the rootdeinstall.sh script from the
$ORA_CRS_HOME/install directory on any nodes you are removing CRS from.  Running
these scripts should be sufficent to clean up your CRS install.  Rootdelete.sh
accepts options like nosharedvar/sharedvar, and nosharedhome/sharedhome. Make
yourself familiar with these options by reading the Oracle Clusterware and
Oracle Real Application Clusters Administration and Deployment Guide.
If you have any problems with these scripts please open a service request.  

If for some reason you have to manually remove the install due to problems
with the scripts, continue to step 2:

2. Stop the Nodeapps on all nodes:

        srvctl stop nodeapps -n <node name>

3. Prevent CRS from starting when the node boots.  To do this issue the following
as root:

Sun:

        rm /etc/init.d/init.cssd
        rm /etc/init.d/init.crs
        rm /etc/init.d/init.crsd
        rm /etc/init.d/init.evmd
        rm /etc/rc3.d/K96init.crs
        rm /etc/rc3.d/S96init.crs
        rm -Rf /var/opt/oracle/scls_scr
        rm -Rf /var/opt/oracle/oprocd
        rm /etc/inittab.crs
        cp /etc/inittab.orig /etc/inittab

Linux:

        rm /etc/oracle/*
        rm -f /etc/init.d/init.cssd
        rm -f /etc/init.d/init.crs
        rm -f /etc/init.d/init.crsd
        rm -f /etc/init.d/init.evmd
        rm -f /etc/rc2.d/K96init.crs
        rm -f /etc/rc2.d/S96init.crs
        rm -f /etc/rc3.d/K96init.crs
        rm -f /etc/rc3.d/S96init.crs
        rm -f /etc/rc5.d/K96init.crs
        rm -f /etc/rc5.d/S96init.crs
        rm -Rf /etc/oracle/scls_scr
        rm -f /etc/inittab.crs
        cp /etc/inittab.orig /etc/inittab

HP-UX:

        rm /sbin/init.d/init.cssd
        rm /sbin/init.d/init.crs
        rm /sbin/init.d/init.crsd
        rm /sbin/init.d/init.evmd
        rm /sbin/rc2.d/K960init.crs
        rm /sbin/rc2.d/K001init.crs
        rm /sbin/rc3.d/K960init.crs
        rm /sbin/rc3.d/S960init.crs
        rm -Rf /var/opt/oracle/scls_scr
        rm -Rf /var/opt/oracle/oprocd
        rm /etc/inittab.crs
        cp /etc/inittab.orig /etc/inittab

HP Tru64:

        rm /sbin/init.d/init.cssd
        rm /sbin/init.d/init.crs
        rm /sbin/init.d/init.crsd
        rm /sbin/init.d/init.evmd
        rm /sbin/rc3.d/K96init.crs
        rm /sbin/rc3.d/S96init.crs
        rm -Rf /var/opt/oracle/scls_scr
        rm -Rf /var/opt/oracle/oprocd
        rm /etc/inittab.crs
        cp /etc/inittab.orig /etc/inittab

IBM AIX:

        rm /etc/init.cssd
        rm /etc/init.crs
        rm /etc/init.crsd
        rm /etc/init.evmd
        rm /etc/rc.d/rc2.d/K96init.crs
        rm /etc/rc.d/rc2.d/S96init.crs
        rm -Rf /etc/oracle/scls_scr
        rm -Rf /etc/oracle/oprocd
        rm /etc/inittab.crs
        cp /etc/inittab.orig /etc/inittab

4. If they are not already down, kill off EVM, CRS, and CSS processes or reboot
   the node:

        ps -ef | grep crs       
        kill <crs pid>
        ps -ef | grep evm
        kill <evm pid>
        ps -ef | grep css       
        kill <css pid>

   Do not kill any OS processes, for example icssvr_daemon process !

5. If there is no other Oracle software running (like listeners, DB's, etc...),
   you can remove the files in /var/tmp/.oracle or /tmp/.oracle.  Example:

        rm -f /var/tmp/.oracle/*

        or

        rm -f /tmp/.oracle/*

6. Remove the ocr.loc
   Usually the ocr.loc can be found at /etc/oracle

7. De-install the CRS home in the Oracle Universal Installer

8. Remove the CRS install location:

          rm -Rf <CRS Install Location>/*

9. Clean out the OCR and Voting Files with dd commands.  Example:

        dd if=/dev/zero of=/dev/rdsk/V1064_vote_01_20m.dbf bs=1M count=256
        dd if=/dev/zero of=/dev/rdsk/ocrV1064_100m.ora bs=1M count=256

   See the Clusterware Installation Guide for sizing requirements...  

   If you placed the OCR and voting disk on a shared filesystem, remove them.

   If you are removing the RDBMS installation, also clean out any ASM disks if
   they have already been used.

10. It is good practice to reboot the node before starting the next install.

11.If you would like to re-install CRS, follow the steps in the RAC Installation manual.

论坛徽章:
2
丑牛
日期:2014-06-11 13:55:04ChinaUnix元老
日期:2015-02-06 15:16:14
6 [报告]
发表于 2009-07-08 22:30 |只看该作者

回复 #5 lyh303 的帖子

不错,收藏了

论坛徽章:
0
7 [报告]
发表于 2009-07-10 22:25 |只看该作者
感谢楼主的分享

论坛徽章:
4
IT运维版块每日发帖之星
日期:2015-08-19 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-28 06:20:00IT运维版块每周发帖之星
日期:2015-09-11 19:20:31
8 [报告]
发表于 2009-07-18 07:14 |只看该作者
请教一下?

suncluster与clusterware的作用是不是重叠?只用一种群集管理软件是不是也可以实现RAC?

论坛徽章:
0
9 [报告]
发表于 2009-07-19 12:39 |只看该作者
原帖由 rickcafe 于 2009-7-18 07:14 发表
请教一下?

suncluster与clusterware的作用是不是重叠?只用一种群集管理软件是不是也可以实现RAC?


不重叠, Oracle clusterware可以使用suncluster的某些功能, 比如集群管理, 比如裸设备管理.

10g RAC必须安装Oracle clusterware, suncluster可以装, 也可以不装

论坛徽章:
0
10 [报告]
发表于 2009-07-21 17:48 |只看该作者
我郁闷了2天asm,最后更换硬盘才解决。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP