Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1196002
  • 博文数量: 245
  • 博客积分: 10185
  • 博客等级: 上将
  • 技术积分: 2744
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-30 17:07
文章分类

全部博文(245)

文章存档

2015年(1)

2014年(1)

2013年(1)

2012年(1)

2011年(37)

2010年(20)

2009年(14)

2008年(38)

2007年(88)

2006年(44)

分类: Oracle

2009-10-29 17:39:10

                   

 

host78#   /oracle/crs/root.sh

WARNING: directory '/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

/etc/oracle does not exist. Creating it now.

 

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory '/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 :

node 0: host75 host75-priv host75

node 1: host76 host76-priv host76

node 2: host78 host78-priv host78

node 3: host79 host79-priv host79

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.

 

 

。。。

发现一直挂在这里,没有提示root.sh执行完成。

检查一下进程,

host78# ps -ef|grep crs

    root 270534 442370   0 01:08:03  pts/1  0:00 /bin/sh /oracle/crs/install/rootconfig

root 442370 413696   0 01:08:03  pts/1  0:00 /bin/sh /oracle/crs/root.sh

tmp看下(2次与/tmp 相关的rac排错  已经说了,crs相关的好多错误信息都存放在/tmp下,

oracle@host78 $ cd /tmp

oracle@host78 $ ls -rlt

total 488

……………………………………………………………………………………………………

-rw-r--r--    1 root     system         2509 Oct 28 00:48 rootpre.out_09-10-28.00:48:14

drwxr-xr-x    9 oracle   oinstall       4096 Oct 28 01:05 OraInstall2009-10-28_12-48-26AM

-rw-r--r--    1 oracle   oinstall         83 Oct 28 01:37 crsctl.450708

oracle@host78 $ cat crsctl.450708

Failed 3 to bind listening endpoint: (ADDRESS=(PROTOCOL=tcp)(HOST=host78-priv))

难道是ip 地址问题?

oracle@host78 $ /etc/ifconfig -a

en0: flags=5e080863,c0

        inet 10.182.9.78 netmask 0xfffff000 broadcast 10.182.15.255

         tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0

en2: flags=5e080863,c0

        inet 192.168.60.78 netmask 0xffffff00 broadcast 192.168.60.255

lo0: flags=e08084b

        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255

        inet6 ::1/0

         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

 

再看下/etc/hosts文件,

oracle@host78 $ cat /etc/hosts |grep priv

192.168.60.75   host75-priv

192.168.60.76   host76-priv

192.168.60.78   host75-priv

192.168.60.79   host76-priv

原来是这个文件写错了,真是faint.

host79#  cat /etc/hosts |grep priv

192.168.60.75   host75-priv

192.168.60.76   host76-priv

192.168.60.78   host75-priv

192.168.60.79   host76-priv

 

/etc/hosts文件改正确后,

原来hang住的root.sh脚本也开始自动运行完毕了,

 

………………………………………

Adding daemons to inittab

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

        host75

        host76

        host78

CSS is inactive on these nodes.

        host79

Local node checking complete.

Run root.sh on remaining nodes to start CRS daemons.

 /tmp下的报错信息也没了。

oracle@host78 $ ls -rlt /tmp/crsctl*

ls: 0653-341 The file /tmp/crsctl* does not exist.

 

经验教训:1 /etc/hosts文件会在执行root.sh时用到,最好 编辑一份再rcp到其他各节点,以免出错

参考 :    

阅读(2427) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~