Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1193087
  • 博文数量: 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-07-01 08:53:14

                          

 

1 )  启动crs时发现crs进程总是未启动, 去查看crs log,发现根本没更新, 也就无从查找原因了, 后来问了下同事, 查了下/tmp下的log 发现是因为privnic没有UP导致的, privnic启动就OK了。

     小节: crs启动后才会将启动日志写到$crs_home/log/$nodename/crsd/crsd.log ,之前会先写log /tmp里, 所以检查crs 进程都没启动的log可以去/tmp下查找。 

 

2)   今天用crs_start -all启动nodeapps发现有一个资源ora.host124.ons没有启动,检查crs log,

2009-06-29 09:33:08.936: [  OCRSRV][4133]th_select_handler: Failed to retrieve procctx from ht. constr = [399211792] retval lht [-27] Signal CV.

2009-06-29 09:33:09.140: [  CRSRES][11904]32Start of `ora.host123.gsd` on member `host123` succeeded.

2009-06-29 09:33:09.232: [  CRSRES][12675]32Start of `ora.host124.ons` on member `host124` failed.

2009-06-29 09:33:09.564: [  CRSRES][12675]32host123 : CRS-1019: Resource ora.host124.ons (application) cannot run on host123

 

这个信息提示太不明了, 网上查找原因,发现很多原因都会造成这个。

 

先说下我的环境,这次装的crsoracle binary和以前的不同(以前都装在本地,这次因为测试需要,都放在cfs里),  懒得修改环境变量,就用全路径了。

尝试单独启动

host123# /oracle/crs/bin/crs_start ora.host124.ons

Attempting to start `ora.host124.ons` on member `host124`

Start of `ora.host124.ons` on member `host124` failed.

host123 : CRS-1019: Resource ora.host124.ons (application) cannot run on host123

 

CRS-0215: Could not start resource 'ora.host124.ons'.

 

按照网上的找的方法,尝试下关闭再启动,

horibm123# /oracle/crs/bin/crs_stop -all

Attempting to stop `ora.host123.ons` on member `host123`

Attempting to stop `ora.host124.gsd` on member `host124`

Attempting to stop `ora.host123.gsd` on member `host123`

Stop of `ora.host123.ons` on member `host123` succeeded.

Stop of `ora.host124.gsd` on member `host124` succeeded.

Stop of `ora.host123.gsd` on member `host123` succeeded.

Attempting to stop `ora.host123.vip` on member `host123`

Attempting to stop `ora.host124.vip` on member `host124`

Stop of `ora.host123.vip` on member `host123` succeeded.

Stop of `ora.host124.vip` on member `host124` succeeded.

host123# crs_stat -t

ksh: crs_stat:  not found

host123# /oracle/crs/bin/crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....123.gsd application    ONLINE    ONLINE    host123 

ora....123.ons application    ONLINE    ONLINE    host123 

ora....123.vip application    ONLINE    ONLINE    host123 

ora....124.gsd application    ONLINE    ONLINE    host124 

ora....124.ons application    ONLINE    OFFLINE              

ora....124.vip application    ONLINE    ONLINE    host124 

 

host123# srvctl stop nodeapps -n host123

****ORACLE_HOME environment variable not set!

    ORACLE_HOME should be set to the main

    directory that contains Oracle products.

    Set and export ORACLE_HOME then re-run.

 

host123# su - oracle

oracle@host123 $ export ORACLE_HOME=/oracle/10g

oracle@host123 $ srvctl stop nodeapps -n host123

ksh: srvctl:  not found.

oracle@host123 $ /oracle/crs/bin/srvctl stop nodeapps -n host123

PRKA-2019 : Error executing command "/opt/oracle/crs/bin/crs_stop". File is missing.

PRKA-2019 : Error executing command "/opt/oracle/crs/bin/crs_stop". File is missing.

PRKA-2019 : Error executing command "/opt/oracle/crs/bin/crs_stop". File is missing.

PRKA-2019 : Error executing command "/opt/oracle/crs/bin/crs_stop". File is missing.

 

看来不管是root还是oracle用户,用srvctl的话可能还要调用自身的环境变量,看来不能偷懒, 修改完root用户的正确的环境变量后

 

host123# srvctl start nodeapps -n host124

host124:ora.host124.ons:/tmp/sh372820.1: There is not enough space in the file system.

host124:ora.host124.ons:/tmp/sh188548.1: There is not enough space in the file system.

CRS-0215: Could not start resource 'ora.host124.ons'.

CRS-0210: Could not find resource ora.host124.LISTENER_HOST124.lsnr.

 

提示的信息马上明了很多,是因为host124/tmp空间不够了,不能存放启动时需要记录日志的临时文件了,导致'ora.host124.ons'资源不能启动。

 

root@host124 # df -g

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

…………………………………………………………………….

/dev/hd3           3.00      0.00  100%     8997    49% /tmp

…………………………………………………………………….

/dev/vx/dsk/oradg_host123_124/oravol     10.00      4.51   55%    28369     3% /oracle

删除些文件,

root@host124 # df -g

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

…………………………………………………………………….

/dev/hd3           3.00      2.99    1%       36     1% /tmp

………………………………………………………………………..

/dev/vx/dsk/oradg_host123_124/oravol     10.00      4.51   55%    28368     3% /oracle

 

host123# crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....123.gsd application    OFFLINE   OFFLINE              

ora....123.ons application    OFFLINE   OFFLINE              

ora....123.vip application    OFFLINE   OFFLINE              

ora....124.gsd application    ONLINE    ONLINE    host124 

ora....124.ons application    ONLINE    OFFLINE              

ora....124.vip application    ONLINE    ONLINE    host124 

 

host123# srvctl stop nodeapps -n host124

CRS-0210: Could not find resource 'ora.host124.LISTENER_HOST124.lsnr'.

host123# crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....123.gsd application    OFFLINE   OFFLINE              

ora....123.ons application    OFFLINE   OFFLINE              

ora....123.vip application    OFFLINE   OFFLINE              

ora....124.gsd application    OFFLINE   OFFLINE              

ora....124.ons application    OFFLINE   OFFLINE              

ora....124.vip application    OFFLINE   OFFLINE              

host123# srvctl start nodeapps -n host124

CRS-0210: Could not find resource ora.host124.LISTENER_HOST124.lsnr.

host123# crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....123.gsd application    OFFLINE   OFFLINE              

ora....123.ons application    OFFLINE   OFFLINE              

ora....123.vip application    OFFLINE   OFFLINE              

ora....124.gsd application    ONLINE    ONLINE    host124 

ora....124.ons application    ONLINE    ONLINE    host124 

ora....124.vip application    ONLINE    ONLINE    host124

 

host123#  srvctl start nodeapps -n host123

CRS-0210: Could not find resource ora.host123.LISTENER_HOST123.lsnr.

host123# crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....123.gsd application    ONLINE    ONLINE    host123 

ora....123.ons application    ONLINE    ONLINE    host123 

ora....123.vip application    ONLINE    ONLINE    host123 

ora....124.gsd application    ONLINE    ONLINE    host124 

ora....124.ons application    ONLINE    ONLINE    host124 

ora....124.vip application    ONLINE    ONLINE    host124

 

 

     小节:  crs启动资源前也会写日志到/tmp下, 应保正/tmp下的剩余空间足够,否则会影响crs资源的启动。最最重要的一点是: 正确配置好rootoracle用户的环境变量十分重要

 

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