你好,游客 登录 注册 搜索
背景:
阅读新闻

OCFS2+ASM 的RAC安装文档

[日期:2011-09-11] 来源:Linux社区  作者:tianlesoftware [字体:大 中 小]

八. RAC 的卸载

 

卸载分为几个部分:database的卸载和clusterware(10.2版本说法)的卸载(10.1 版本称为CRS:cluster ready service)。

 

Oracle database的卸载可以利用很多方法-粗野的和温柔的,我这里利用dbca去卸载即可。

 

database的卸载会把所有节点的instance删除掉,并把唯一的database删除。

卸载database的第二步骤是把所有节点的listener卸载,可以利用netca卸载即可。

 

最后卸载clusterware,可以用Clusterware 的安装程序来卸载,也可以利用脚本进行:

$ORA_CRS_HOME/install/rootdelete.sh -help

对本地节点和远程节点使用不用的命令,详细参考帮助。

[root@rac1 install]# ./rootdelete.sh --help

Usage: rootdelete [-help] [local|remote] [nosharedvar|sharedvar] [sharedhome|nosharedhome] [-downgrade [-version <version>]]

/-help: print this message

local: if this node is the node where OUI is to be run to deinstall, otherwise use 'remote'

sharedvar: OCR is on a shared path, otherwise use 'nosharedvar'

sharedhome: CRS home is on a shared path, otherwuse use 'nosharedhome'

/-downgrade: Oracle clusterware and OCR will be reset for downgrade

/-version <version>: OCR location file will reset for downgrade to specified version, default: 10.1

 

[root@rac1 install]# ./rootdelete.sh local sharedvar sharedhome -downgrade

[root@rac1 install]# ./rootdelete.sh remote sharedvar sharedhome -downgrade

最后在本地节点执行

$ORA_CRS_HOME/install/rootdeinstall.sh

即可。

 

脚本执行是比较安全的方式,完成之后把相关目录删除即可完成clusterware的卸载。

 

补充:RAC 安装的相关问题解决方法:

问题一:

安装好RAC后,在用DBCA建库时选择ASM做为存储方案时,有时候会报错说ASM是单实例环境,不是RAC环境,这样就无法继续建库下来,出错信息如下:

The ASM instance configured on the local node is a single-instance ASM.To create a single-instance database using this ASM instance ,restart DBCA and select the single-instance database option ,to create a RAC database using this ASM instance,convert it to RAC ASM first.

 

这个错误一般是发生在重装clusterware和database后,这样无论怎么样重启DBCA运行都会报同样的错。具体的解决办法便是在/etc/oratab里面的关于ASM的记录:+ASM1:/u01/app/oracle/product/10.2.0/db_1:N这么一行删除掉,再接着建库就可以了。

 

问题二:

 

创建ASM时报:ORA-12547:TNS:lost contact

解决方法:

$ cd $ORACLE_HOME/rdbms/lib 

$ make -f ins_rdbms.mk ioracle 

 

问题三

1.counld not start cluster stack. This must be resolved before any OCFS2 filesystem can be mounted

 

 This problem can be caused by different version of ocfs2 lib and RedHat kernel.selinux is allowed is another possible reason.

 

  tail -n100 /var/log/messages:

 

 May 18 12:10:27 rac1 kernel: SELinux: initialized (dev configfs, type configfs), not configured for labeling

 May 18 12:10:27 rac1 kernel: audit(1211083827.759:7): avc:  denied  { mount } for  pid=12346 comm="mount" name="/" dev=configfs ino=44504 scontext=root:system_r:initrc_t tcontext=system_u:object_r:unlabeled_t tclass=filesystem

 May 18 12:10:30 rac1 dbus: Can't send to audit system: USER_AVC pid=2642 uid=81 loginuid=-1 message=avc:  denied  { send_msg } for  scontext=root:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus

 May 18 12:11:05 rac1 last message repeated 7 times

 May 18 12:12:10 rac1 last message repeated 13 times

 

 [root@rac1 /]#vi /etc/selinux/config

 #SELINUX=enforcing

 SELINUX=disabled

 

 [root@rac1 /]# setenforce 0

 setenforce: SELinux is disabled

 

问题四

 2.The cluster stack has been started. It needs to be running for any clustering functionality to happen.

 Please run "/etc/init.d/o2cb enable" to have it started upon bootup.

 

 o2cb_ctl: Unable to access cluster service while creating node Could not add node rac1

 

 [root@rac1 init.d]# ./o2cb enable

 Writing O2CB configuration: OK

 Starting O2CB cluster ocfs2: Failed

 Cluster ocfs2 created

 o2cb_ctl: Configuration error discovered while populating cluster ocfs2.  None of its nodes were considered local. 

 A node is considered local when its node name in the configuration matches this machine's host name.

 Stopping O2CB cluster ocfs2: OK

 

 [root@rac1 ocfs2]# pwd

 /etc/ocfs2

 [root@rac1 ocfs2]# ls

 cluster.conf

 [root@rac1 ocfs2]# mv cluster.conf cluster.conf.Bak

 

 

问题5: 在CRS安装时,最后执行root.sh时,后执行的节点上无法成功,提示:
# ./root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Failed to upgrade Oracle Cluster Registry configuration
另外有一种提示为:PRIF-10: failed to initialize the cluster registry 
解决方法:关闭共享磁盘的锁定属性
SSA或者FASTT系列盘阵关闭磁盘锁定用:/usr/sbin/chdev -l hdiskn -a reserve_lock=no
ESS,EMC,HDS,CLARIION系列盘阵关闭磁盘锁定用:/usr/sbin/chdev -l hdiskn -a reserve_policy=no_reserve

在虚拟机上就是添加参数. disk.locking = "false" 

linux
相关资讯       Oracle教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款