楼主: shahand

原创 Oracle 10g CRS 安装管理一点小结-

[复制链接]
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
11#
 楼主| 发表于 2006-4-25 10:39 | 只看该作者
一个网卡拿什么做心跳啊

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
12#
发表于 2006-4-25 12:24 | 只看该作者
最初由 biti_rainy 发布
[B]我怀疑是不是换了个名字,是这个了:

/opt/oracle/products/10.2.0/crs/bin/oclsomon.bin [/B]


You probably meant oclsmon.bin. I don't have that running on my Linux (Oracle 10gR2). I don't use any vendor clusterware.

Do you use vendor clusterware? I wonder if Oracle's statement "this process only appears on platforms that do not use vendor clusterware with Oracle Clusterware" should be the opposite. Note:295326.1 says "The presence of Vendor Clusterware (Serviceguard) should prevent the oprocd from starting".

Yong Huang

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
13#
 楼主| 发表于 2006-4-25 17:12 | 只看该作者
OCR和vd的添加和删除
                shahand  20060425
oracle10gR2开始支持OCR和vd的冗余,voting disk的添加删除比较简单,但ocr我在metalink上没有找到有相关的文章,是摸索过来的,其中还试过用dd来复制ocr的数据,结果crs启动失败了,才根据如何备份ocr想到的ocrconfig命令。

一、ocr的添加。
这里只举例使用raw device的情况
(1)停止crs
#crsctl stop crs
# rsh lxvcs-8 /OraHome/crs/bin/crsctl stop crs
(2)创建mirror ocr设备,vxassist -g ocrdg make ocrvol1 200M
(3)
使用ocrconfig倒出ocr数据
# ocrconfig -export /oradata/ocr.data
(4)
修改文件,添加第二行
#cat /etc/oracle/ocr.loc
ocrconfig_loc=/dev/vx/rdsk/ocrdg/ocrvol
ocrmirrorconfig_loc=/dev/vx/rdsk/ocrdg/ocrvol1
local_only=FALSE
(5)使用ocrconfig向设备中导入数据
#ocrconfig -import /oradata/ocr.data
(6)此步可选,使用ocrcheck检查
# ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          2
         Total space (kbytes)     :     204576
         Used space (kbytes)      :       2200
         Available space (kbytes) :     202376
         ID                       : 1831185259
         Device/File Name         : /dev/vx/rdsk/ocrdg/ocrvol
                                    Device/File integrity check succeeded
         Device/File Name         : /dev/vx/rdsk/ocrdg/ocrvol1
                                    Device/File integrity check succeeded

         Cluster registry integrity check succeeded

(7)启动crs,可以用#crsctl start crs
(8)检查crs状态crsctl check crs

二、删除mirror比较简单,去掉/注释掉 ocrmirrorconfig_loc这行,删除然后就可以了

三、voting disk 的添加,见下面的例子,
使用crsctl来添加,唯一要注意的是需要指定-force 参数
[root@lxvcs-8 ~]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]# crsctl query css votedisk
0.     0    /dev/vx/rdsk/ocrdg/vdvol

located 1 votedisk(s).
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]# crsctl add css votedisk /dev/vx/rdsk/ocrdg/vdvol1
Cluster is not in a ready state for online disk addition
[root@lxvcs-8 ~]# crsctl add css votedisk /dev/vx/rdsk/ocrdg/vdvol1 -force
Now formatting voting disk: /dev/vx/rdsk/ocrdg/vdvol1
successful addition of votedisk /dev/vx/rdsk/ocrdg/vdvol1.
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]# crsctl query css votedisk
0.     0    /dev/vx/rdsk/ocrdg/vdvol
1.     0    /dev/vx/rdsk/ocrdg/vdvol1

located 2 votedisk(s).
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

四、voting disk 的删除,同上,同样需要 -force参数
[root@lxvcs-8 ~]# crsctl query css votedisk
0.     0    /dev/vx/rdsk/ocrdg/vdvol
1.     0    /dev/vx/rdsk/ocrdg/vdvol1

located 2 votedisk(s).
[root@lxvcs-8 ~]# crsctl delete css votedisk /dev/vx/rdsk/ocrdg/vdvol1
Cluster is not in a ready state for online disk removal
[root@lxvcs-8 ~]#
[root@lxvcs-8 ~]# crsctl delete css votedisk /dev/vx/rdsk/ocrdg/vdvol1 -force
successful deletion of votedisk /dev/vx/rdsk/ocrdg/vdvol1.

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
14#
发表于 2006-4-26 02:28 | 只看该作者
最初由 Yong Huang 发布
[B]
...I wonder if Oracle's statement "this process only appears on platforms that do not use vendor clusterware with Oracle Clusterware" should be the opposite. Note:295326.1 says "The presence of Vendor Clusterware (Serviceguard) should prevent the oprocd from starting".
[/B]


I think I got the logic wrong. The documentation is consistent with Note:295326.1. One prevents the other from occurring, i.e. either vendor clusterware or oprocd, but not both.

But in my case, I don't see oprocd even though I'm not using vendor clusterware.

Yong Huang

使用道具 举报

回复
论坛徽章:
86
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20咸鸭蛋
日期:2012-05-08 10:27:19版主8段
日期:2012-05-15 15:24:112013年新春福章
日期:2013-02-25 14:51:24
15#
发表于 2006-4-26 12:41 | 只看该作者
最初由 Yong Huang 发布
[B]

I think I got the logic wrong. The documentation is consistent with Note:295326.1. One prevents the other from occurring, i.e. either vendor clusterware or oprocd, but not both.

But in my case, I don't see oprocd even though I'm not using vendor clusterware.

Yong Huang [/B]


是的,我在linux上,没有使用第三方 cluster 软件。这个进程是不存在的

在log 里面有如下信息:

[root@forumsb1 root]# cd  /opt/oracle/products/10.2.0/crs/log/forumsb1/cssd/
[root@forumsb1 cssd]# ls -ltr
total 4756
drwxr-xr-x    2 oracle   oinstall     4096 Mar  8 14:19 oclsmon
drwxr-xr-x    2 oracle   root         4096 Mar 21 18:17 oclsomon
-rw-r--r--    1 oracle   oinstall        6 Apr 10 19:07 forumsb1.pid
-rw-r--r--    1 oracle   oinstall       17 Apr 10 19:07 cssdOUT.log
-rw-r--r--    1 oracle   oinstall  2142238 Apr 17 15:24 ocssd.l01
-rw-r--r--    1 oracle   oinstall  2695953 Apr 26 12:35 ocssd.log
[root@forumsb1 cssd]# tail -20  ocssd.log
[    CSSD]2006-04-26 12:22:45.437 [190241712] >TRACE:   clssgmClientConnectMsg: Connect from con(0xb72358c8) proc(0xb7263338) pid() proto(10:2:1:1)
[    CSSD]2006-04-26 12:22:47.912 [190241712] >TRACE:   clssgmClientConnectMsg: Connect from con(0xb72358c8) proc(0xb7263338) pid() proto(10:2:1:1)
[    CSSD]2006-04-26 12:22:57.150 [190241712] >TRACE:   clssgmClientConnectMsg: Connect from con(0xb72358c8) proc(0xb7263338) pid() proto(10:2:1:1)
[    CSSD]2006-04-26 12:23:33.881 [190241712] >TRACE:   clssgmClientConnectMsg: Connect from con(0xb72358c8) proc(0xb7263338) pid() proto(10:2:1:1)

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
16#
 楼主| 发表于 2006-4-26 18:46 | 只看该作者
唉,metalink上文档就是有些细节不太准

使用道具 举报

回复
论坛徽章:
16
ITPUB元老
日期:2006-12-29 17:11:00秀才
日期:2015-12-25 15:31:102015年新春福章
日期:2015-03-06 11:57:31沸羊羊
日期:2015-03-04 14:43:432012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412010新春纪念徽章
日期:2010-03-01 11:21:02祖国60周年纪念徽章
日期:2009-10-09 08:28:002009新春纪念徽章
日期:2009-01-04 14:52:28生肖徽章2007版:鼠
日期:2008-01-02 17:35:53
17#
发表于 2006-4-28 10:10 | 只看该作者
1÷这两个文件对于cluster节点是共享的,并且可以同时可读写的吗?
2÷如果不用vendor的ha软件,那么是通过crs来保证cluster节点对该文件的并发读写吗

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
18#
 楼主| 发表于 2006-4-28 14:26 | 只看该作者
最初由 cyr1974 发布
[B]1÷这两个文件对于cluster节点是共享的,并且可以同时可读写的吗?
2÷如果不用vendor的ha软件,那么是通过crs来保证cluster节点对该文件的并发读写吗
? [/B]


1是的
2是由cvm控制的  

使用道具 举报

回复
论坛徽章:
0
19#
发表于 2006-4-28 17:21 | 只看该作者
10G R2 CRS 重装一定要FORMAT voting disk ,曾被这个问题折腾了一天,反复检查不知道是什么原因,感觉这点CRS比较傻!

使用道具 举报

回复
论坛徽章:
2
授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44
20#
发表于 2006-4-29 10:15 | 只看该作者
我在hp安腾主机上安装过10.1,crs的停止用init.crs stop可以停止crs进程,同时也可以停止数据库,但是用init.crs start不能启动crs进程,只能用/etc/inittab中的脚本启动crs,目前在安装10.2在hp安腾平台上,也是init.crs stop可以,但是init.crs start不行,用/etc/inittab中的命令也不行了,尝试了crsctl等命令也不行,现在要把启动crs和数据库的命令都放到双机的脚本中去,却启动不了crs和数据库,郁闷!有什么好的办法吗?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表