AIX 安装 RAC 错误集锦(5)之-VIP错误


AIX 安装 RAC 错误集锦(5)之-VIP错误

环境:

操作系统: AIX 5.3.8

集群软件: CRS 10.2.0.1

数据库:   Oracle 10.2.0.1

错误现象



错误现象: ora.aix211.vip 启动失败(其中一个节点vip 启动失败)

# crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.aix211.gsd application    ONLINE    ONLINE    aix211      
ora.aix211.ons application    ONLINE    ONLINE    aix211      
ora.aix211.vip application    ONLINE    OFFLINE               
ora.aix212.gsd application    ONLINE    OFFLINE               
ora.aix212.ons application    ONLINE    OFFLINE               
ora.aix212.vip application    ONLINE    OFFLINE

日志:

/u01/crs_1/log/aix211:

# tail -f ora.aix212.vip.log
Invalid parameters, or failed to bring up VIP (host=aix211)

2013-09-05 23:09:55.518: [    RACG][1] [405660][1][ora.aix212.vip]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/crs_1

2013-09-05 23:09:55.518: [    RACG][1] [405660][1][ora.aix212.vip]: clsrcexecut: cmd = /u01/crs_1/bin/racgeut -e _USR_ORA_DEBUG=0 54 /u01/crs_1/bin/racgvip check aix212

2013-09-05 23:09:55.518: [    RACG][1] [405660][1][ora.aix212.vip]: clsrcexecut: rc = 1, time = 2.308s

2013-09-05 23:09:55.518: [    RACG][1] [405660][1][ora.aix212.vip]: end for resource = ora.aix212.vip, action = start, status = 1, time = 5.071s

2013-09-05 23:46:27.830: [    RACG][1] [422024][1][ora.aix212.vip]: Interface en2 checked failed (host=aix211)
Invalid parameters, or failed to bring up VIP (host=aix211)

2013-09-05 23:46:27.830: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/crs_1

2013-09-05 23:46:27.830: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: cmd = /u01/crs_1/bin/racgeut -e _USR_ORA_DEBUG=0 54 /u01/crs_1/bin/racgvip start aix212

2013-09-05 23:46:27.830: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: rc = 1, time = 2.330s

2013-09-05 23:46:30.139: [    RACG][1] [422024][1][ora.aix212.vip]: Interface en2 checked failed (host=aix211)
Invalid parameters, or failed to bring up VIP (host=aix211)

2013-09-05 23:46:30.139: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/crs_1

2013-09-05 23:46:30.139: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: cmd = /u01/crs_1/bin/racgeut -e _USR_ORA_DEBUG=0 54 /u01/crs_1/bin/racgvip check aix212

2013-09-05 23:46:30.139: [    RACG][1] [422024][1][ora.aix212.vip]: clsrcexecut: rc = 1, time = 2.308s

2013-09-05 23:46:30.139: [    RACG][1] [422024][1][ora.aix212.vip]: end for resource = ora.aix212.vip, action = start, status = 1, time = 4.944s

原因:

在安装crs 时,节点1 public interface 为 en1,节点2 public interface 为en2,在节点2 做vipca ,指定vip 地址绑定在en2.
   节点1启动vip服务时,也选择en2 启动vip,导致失败。

解决方法:

1、调整两边节点 ,en0 为public interface

2、通过srvctl 修改vip 地址

-------停止节点 nodeapps              
# srvctl stop nodeapps -n aix211

CRS-0210: Could not find resource 'ora.aix211.LISTENER_AIX211.lsnr'.
# srvctl stop nodeapps -n aix212
CRS-0210: Could not find resource 'ora.aix212.LISTENER_AIX212.lsnr'.
# crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.aix211.gsd application    OFFLINE   OFFLINE               
ora.aix211.ons application    OFFLINE   OFFLINE               
ora.aix211.vip application    OFFLINE   OFFLINE               
ora.aix212.gsd application    OFFLINE   OFFLINE               
ora.aix212.ons application    OFFLINE   OFFLINE               
ora.aix212.vip application    OFFLINE   OFFLINE  

----- 修改 vip 地址            
# srvctl modify nodeapps -n aix211 -o /u01/app/oracle/product/10.2.0/db_1 -A 192.168.8.11/255.255.255.0/en0

# srvctl modify nodeapps -n aix212 -o /u01/app/oracle/product/10.2.0/db_1 -A 192.168.8.12/255.255.255.0/en0

------重新启动 节点 crs 服务

AIX 211:

# crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
# crsctl start crs
Attempting to start CRS stack 
The CRS stack will be started shortly

# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

-----查看网卡配置信息

AIX211:
# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 192.168.8.211 netmask 0xffffff00 broadcast 192.168.8.255
       inet 192.168.8.11 netmask 0xffffff00 broadcast 192.168.8.255
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
       inet 10.10.10.11 netmask 0xffffff00 broadcast 10.10.10.255


# crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.


# crsctl start crs
Attempting to start CRS stack 
The CRS stack will be started shortly

# crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

------- 查看网卡信息
# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 192.168.8.211 netmask 0xffffff00 broadcast 192.168.8.255
       inet 192.168.8.11 netmask 0xffffff00 broadcast 192.168.8.255
en1: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
       inet 10.10.10.11 netmask 0xffffff00 broadcast 10.10.10.255


AIX212:

# crsctl stop crs
Stopping resources.
Successfully stopped CRS resources 
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
# crsctl start crs 
Attempting to start CRS stack 
The CRS stack will be started shortly


# ifconfig -a
en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
inet 192.168.8.212 netmask 0xffffff00 broadcast 192.168.8.255
       inet 192.168.8.12 netmask 0xffffff00 broadcast 192.168.8.255
en2: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
       inet 10.10.10.12 netmask 0xffffff00 broadcast 10.10.10.255

------ 至此,crs服务启动正常

# crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora.aix211.gsd application    ONLINE    ONLINE    aix211      
ora.aix211.ons application    ONLINE    ONLINE    aix211      
ora.aix211.vip application    ONLINE    ONLINE    aix211      
ora.aix212.gsd application    ONLINE    ONLINE    aix212      
ora.aix212.ons application    ONLINE    ONLINE    aix212      
ora.aix212.vip application    ONLINE    ONLINE    aix212     









本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1374236,如需转载请自行联系原作者
上一篇:Springboot excel导入 EasyPOI 双表头的excel 导入数据


下一篇:PostgreSQL备份恢复 12.2