Chinaunix首页 | 论坛 | 博客
  • 博客访问: 292982
  • 博文数量: 60
  • 博客积分: 1437
  • 博客等级: 中尉
  • 技术积分: 632
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-10 14:12
文章存档

2012年(7)

2011年(53)

分类: Oracle

2011-02-13 00:34:17

目前遇到的与VIP错误有关的问题
1./etc/hosts文件中的localhost被删除或改成其它名字
2.没有配置默认网关,
3.添加了默认网关,但是默认的网关ping不通
4.临时添加的网关,重启以后没有了,AIX中可以在/etc/rc.d/rc2.d/下添加一个脚本
把如下命令添加进去让它随机启动:
route add default 172.16.12.1
或者
route add 0 172.16.12.1

======================================================================
VIP Debug

$ vi racgvip
"racgvip" 707 lines, 15791 characters
#!/bin/sh
#
# VIP implementation on AIX  using ifconfig
# It only supports IPv4
#
#
# Syntax:
#
# racgvip start  vip_name
# racgvip stop   vip_name
# racgvip check  vip_name
# racgvip create vip_name IP=vip_address NODE=preferred_node
#         [MASK=netmask IF="interfaces"]
# racgvip delete vip_name
#
# vip_name must be unique across the cluster. In RAC HA,
# the preferred node name is used for vip_name.
#
#
# Note: It assumes interface name does not contain space character.
#       VIP must be in the form of n.n.n.n
#
#
--设置跟踪参数
_USR_ORA_DEBUG=1

IFCONFIG=/usr/sbin/ifconfig
GREP=/usr/bin/grep
SED=/usr/bin/sed
RM=/usr/bin/rm
MV=/usr/bin/mv
UNIQ=/usr/bin/uniq
PING=/usr/sbin/ping
WC=/usr/bin/wc
# For IPv4 interfaces only
NETSTAT="/usr/bin/netstat -f inet"
LSATTR=/usr/sbin/lsattr
AWK=/usr/bin/awk
WHOAMI=/usr/bin/whoami
CAT=/usr/bin/cat
UNAME=/usr/bin/uname
SLEEP=/usr/bin/sleep
"racgvip" 707 lines, 15807 characters
$ exit  
# pwd
/orahome/app/oracle/product/10.2.0/crs/bin
# ./crs_stat -t     
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.easdb1.gsd application    ONLINE    ONLINE    easdb1      
ora.easdb1.ons application    ONLINE    ONLINE    easdb1      
ora.easdb1.vip application    ONLINE    OFFLINE               
ora.easdb2.gsd application    ONLINE    ONLINE    easdb2      
ora.easdb2.ons application    ONLINE    ONLINE    easdb2      
ora.easdb2.vip application    ONLINE    OFFLINE               

--跟踪VIP的详细信息
# ./crsctl debug log res "ora.easdb1.vip:5"
Set Resource Debug Module: ora.easdb1.vip  Level: 5
# ./srvctl start nodeapps -n easdb1
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] Checking interface existance
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] Calling getifbyip
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] getifbyip:  started for 172.16.12.30
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] getifbyip: checking if failover is happening ()
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] getifbyip: failover is not happening ()
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] Completed getifbyip
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] ping_vip 172.16.12.30 started
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:25 BEIST 2008 [ 229830 ] About to execute : /usr/sbin/ping  -c 1 -w 1 172.16.12.30
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] ping_vip: 172.16.12.30 is not pingable, _count = 1
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] Completed with initial interface test
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] Broadcast = 172.16.12.255
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] Interface tests
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] checkIf: start for if=en2
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] IsIfAlive: start for if=en2
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] defaultgw:  started
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] defaultgw:  completed with
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] IsIfAlive: Default gateway is not defined (host=easdb1)
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] Interface en2 checked failed (host=easdb1)
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] IsIfAlive: end for if=en2
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 229830 ] checkIf: end for if=en2
easdb1:ora.easdb1.vip:Invalid parameters, or failed to bring up VIP (host=easdb1)

easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] Checking interface existance
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] Calling getifbyip
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] getifbyip:  started for 172.16.12.30
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] getifbyip: checking if failover is happening ()
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] getifbyip: failover is not happening ()
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] Completed getifbyip
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] ping_vip 172.16.12.30 started
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:26 BEIST 2008 [ 266386 ] About to execute : /usr/sbin/ping  -c 1 -w 1 172.16.12.30
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:27 BEIST 2008 [ 266386 ] ping_vip: 172.16.12.30 is not pingable, _count = 1
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:27 BEIST 2008 [ 266386 ] Completed with initial interface test
easdb1:ora.easdb1.vip:Wed Oct 15 11:41:27 BEIST 2008 [ 266386 ] Broadcast = 172.16.12.255
CRS-1006: No more members to consider
CRS-0215: Could not start resource 'ora.easdb1.vip'.
CRS-0210: Could not find resource ora.easdb1.LISTENER_EASDB1.lsnr.

#

可以看到,是因为没有设置Default Gateway导致VIP起不来,而Listener是依赖于VIP的,所以
Listener也启动不了!
--去除debug跟踪
# ./crsctl debug log res "ora.easdb1.vip:0"

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