inet addr:10.0.15.176 Bcast:10.0.15.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:130 Memory:da000000-da012800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:921339 errors:0 dropped:0 overruns:0 frame:0
TX packets:921339 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:417953992 (398.5 MiB) TX bytes:417953992 (398.5 MiB)
[root@UNID02 bin]#
咨询系统工程师,告知这台机器之前Public IP使用的是eth0网卡,后来eth0网卡发生了故障,切换到了eth2网卡,原来如此。
有2个解决方法:
1.将unid01-vip修改为eth2
[root@UNID02 ~]$ srvctl modify nodeapps -n unid01 -A 10.0.15.175/255.255.255.0/eth2
再次启动,启动成功。
[oracle@UNID02 ~]$ crs_start ora.unid01.vip
Attempting to start `ora.unid01.vip` on member `UNID02`
Start of `ora.unid01.vip` on member `UNID02` succeeded.
2.因为crs_start会调用racgvip这个脚本启动vip,所以直接修改环境变量,再直接执行sh racgvip start ora.unid01.vip
[root@UNID02 ~]# export _USR_ORA_VIP=10.0.15.175
[root@UNID02 ~]# export _USR_ORA_NETMASK=255.255.255.0
[root@UNID02 ~]# export _USR_ORA_IF=eth2
[root@UNID02 ~]# export _CAA_NAME=ora.unid01.vip
[root@UNID02 bin]# sh -x racgvip start ora.unid01.vip
+ IFCONFIG=/sbin/ifconfig
+ GREP=/bin/grep
+ SED=/bin/sed
+ RM=/bin/rm
+ MV=/bin/mv
+ UNIQ=/usr/bin/uniq
+ PING=/bin/ping
+ WC=/usr/bin/wc
+ NETSTAT=/bin/netstat
+ AWK=/bin/awk
+ WHOAMI=/usr/bin/whoami
+ CAT=/bin/cat
+ UNAME=/bin/uname
+ SLEEP=/bin/sleep
+ SORT=/bin/sort
+ EXPR=/usr/bin/expr
+ DATE=/bin/date
+ RENICE=/usr/bin/renice
+ MIITOOL=/sbin/mii-tool
+ ARPING=/sbin/arping
+ IPCMD='/sbin/ip -f inet'
+ LANG=C
+ LC_ALL=C
+ export LANG LC_ALL
+ FAIL_WHEN_ALL_LINK_DOWN=1
+ FAIL_WHEN_DEFAULTGW_NOT_FOUND=1
+ DEFAULTGW=
+ /usr/bin/renice -20 -p 15145
++ /bin/hostname
+ HOSTNAME=UNID02
+ PING_TIMEOUT='-w 3 -c 1'
+ PING_COUNT=10
+ LOCKED=0
+ CRS_STAT=/bin/crs_stat
+ CHECK_TIMES=2
+ SUCCESS=0
+ ERROR=1
+ DEFAULT_TIMEOUT=60
+ IP=10.0.15.175
+ IF=eth2
+ OP=start
++ /usr/bin/whoami
+ USER=root
++ uname
+ [[ Linux != Linux ]]
+ listif_result=
+ '[' root '!=' root -a start '!=' list ']'
+ '[' -n 10.0.15.175 -a -n 255.255.255.0 ']'
++ IFS=.
++ set 10 0 15 175 255 255 255 0
++ echo 10.0.15.255
+ BROADCAST=10.0.15.255
+ logx 'Broadcast = 10.0.15.255'
+ '[' -n '' ']'
+ '[' start = list ']'
++ echo ora.unid01.vip
++ /bin/sed '-es/^ora\.//;s/\.vip$//'
+ VIP_NAME=unid01
+ NAME=ora.unid01.vip
+ '[' -z ora.unid01.vip ']'
+ IF_USING=
+ '[' -n 10.0.15.175 ']'
+ logx Checking interface existance
+ '[' -n '' ']'
+ logx 'Calling getifbyip'
+ '[' -n '' ']'
++ getifbyip 10.0.15.175
++ __LOCAL_IP=10.0.15.175
++ gf_retif=
++ logx 'getifbyip: started for 10.0.15.175'
++ '[' -n '' ']'
+++ /sbin/ip -f inet -o addr
+++ /bin/grep 'inet 10.0.15.175/'
+++ /bin/awk '{ print $NF }'
++ gf_retif=
++ logx 'getifbyip: returning IP '
++ '[' -n '' ']'
++ '[' -z '' ']'
+ LI=
+ logx Completed getifbyip
+ '[' -n '' ']'
+ logx 'Calling getifbyip -a'
+ '[' -n '' ']'
++ getifbyip 10.0.15.175 -a
++ __LOCAL_IP=10.0.15.175
++ gf_retif=
++ logx 'getifbyip: started for 10.0.15.175'
++ '[' -n '' ']'
+++ /sbin/ip -f inet -o addr
+++ /bin/grep 'inet 10.0.15.175/'
+++ /bin/awk '{ print $NF }'
++ gf_retif=
++ logx 'getifbyip: returning IP '
++ '[' -n '' ']'
++ '[' -z -a ']'
++ '[' -n '' ']'
+ LI_A=
+ logx Completed getifbyip
+ '[' -n '' ']'
+ '[' '' '!=' '' ']'
+ echo ''
+ /bin/grep -q :
+ '[' 1 -ne 0 ']'
+ '[' st