VIP不能正常启动,报错CRS-1006(三)

2014-11-24 17:37:56 · 作者: · 浏览: 3
art = stop ']'
+ ping_vip 10.0.15.175
+ logx 'ping_vip 10.0.15.175 started'
+ '[' -n '' ']'
+ '[' -n 10.0.15.175 ']'
+ _count=1
+ '[' 1 -le 10 ']'
+ /bin/ping 10.0.15.175 -w 3 -c 1
+ '[' 1 -ne 0 ']'
+ logx 'ping_vip: 10.0.15.175 is not pingable, _count = 1'
+ '[' -n '' ']'
+ return 1
+ '[' 1 -eq 0 ']'
+ logx 'Completed with initial interface test'
+ '[' -n '' ']'
+ case $OP in
+ '[' start = check ']'
+ '[' start = check ']'
+ '[' -n 10.0.15.175 -a -n 255.255.255.0 -a -n eth2 ']'
+ '[' -n '' ']'
+ logx 'Interface tests'
+ '[' -n '' ']'
++ echo eth2
++ /bin/sed '-es/|/ /g'
+ IF=eth2
+ for I in '$IF'
+ '[' eth2 = '' ']'
+ checkIf eth2
+ _IF=eth2
+ _RET=0
+ _LINK_STAT=
+ logx 'checkIf: start for if=eth2'
+ '[' -n '' ']'
+ '[' -z eth2 ']'
+ /sbin/ifconfig eth2
+ /bin/grep -q -w UP
+ '[' 0 -ne 0 ']'
+ '[' -x /sbin/mii-tool ']'
++ /sbin/mii-tool eth2
+ _LINK_STAT='eth2: negotiated 100baseTx-FD flow-control, link ok'
+ '[' 0 -eq 0 ']'
+ echo 'eth2: negotiated 100baseTx-FD flow-control, link ok'
+ /bin/grep -q 'link ok'
+ '[' 0 -eq 0 ']'
+ logx 'checkIf: mii-tool checked if=eth2 ok'
+ '[' -n '' ']'
+ _RET=0
+ '[' -z 'eth2: negotiated 100baseTx-FD flow-control, link ok' ']'
+ '[' 0 -eq 1 ']'
+ logx 'checkIf: end for if=eth2'
+ '[' -n '' ']'
+ return 0
+ '[' 0 -eq 0 ']'
+ getnextli eth2
+ _LOCAL_IF=eth2
+ nextli=
+ _LIN=
+ logx 'getnextli: started for if=eth2'
+ '[' -n '' ']'
++ listif
++ logx 'listif: starting'
++ '[' -n '' ']'
++ '[' -z '' ']'
+++ /sbin/ip -f inet -o addr
++ /bin/grep eth2:
++ /bin/sed '-es/^.*://'
+++ /bin/awk '{ print $NF }'
++ /bin/sort -n
+++ /bin/grep -vw lo
++ listif_result='eth1
eth2
eth2:1'
++ logx 'listif: completed with eth1
eth2
eth2:1'
++ '[' -n '' ']'
++ echo 'eth1
eth2
eth2:1'
+ _LIN=1
+ i=1
+ '[' 1 -le 256 ']'
+ _found=0
+ for j in '${_LIN}'
+ '[' 1 -eq 0 ']'
+ '[' 1 -eq 1 ']'
+ _found=1
+ break
+ '[' 1 -eq 0 ']'
+ i=2
+ '[' 2 -le 256 ']'
+ _found=0
+ for j in '${_LIN}'
+ '[' 1 -eq 0 ']'
+ '[' 2 -eq 1 ']'
+ '[' 0 -eq 0 ']'
+ get_lock eth2_2
+ TOUCH=/bin/touch
+ LS=/bin/ls
+ KILL=/bin/kill
+ LOCK=/var/tmp/vip_eth2_2_UNID02.lock
+ /bin/touch /var/tmp/vip_eth2_2_UNID02.lock.15145
+ '[' 0 -ne 0 ']'
++ /bin/ls /var/tmp/vip_eth2_2_UNID02.lock.15145
++ /usr/bin/wc -l
+ '[' 1 -eq 1 ']'
+ logx 'get_lock: lock file /var/tmp/vip_eth2_2_UNID02.lock.15145 is created'
+ '[' -n '' ']'
+ LOCKED=1
+ return 0
+ '[' 0 -eq 0 ']'
+ listif_result=
+ listif
+ logx 'listif: starting'
+ '[' -n '' ']'
+ '[' -z '' ']'
++ /sbin/ip -f inet -o addr
+ /bin/grep -w eth2:2
++ /bin/awk '{ print $NF }'
++ /bin/grep -vw lo
+ listif_result='eth1
eth2
eth2:1'
+ logx 'listif: completed with eth1
eth2
eth2:1'
+ '[' -n '' ']'
+ echo 'eth1
eth2
eth2:1'
+ '[' 1 -ne 0 ']'
+ break
+ '[' 2 -eq 256 ']'
+ nextli=eth2:2
+ logx 'getnextli: completed with nextli=eth2:2'
+ '[' -n '' ']'
+ return 2
+ LI=eth2:2
+ /sbin/ifconfig eth2:2 10.0.15.175 netmask 255.255.255.0 broadcast 10.0.15.255 up
+ '[' 0 -ne 0 ']'
+ logx 'Success exit 1'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ /sbin/arping -q -U -c 3 -I eth2 10.0.15.175
+ release_lock
+ '[' 1 = 1 ']'
+ /bin/rm -f /var/tmp/vip_eth2_2_UNID02.lock.15145
+ logx 'release_lock: remove lock file /var/tmp/vip_eth2_2_UNID02.lock.15145'
+ '[' -n '' ']'
+ LOCKED=0
+ exit 0 --返回值为0,启动成功


[root@UNID02 bin]# ifconfig
eth1 Link encap:Ethernet HWaddr A4:BA:DB:13:EA:C2
inet addr:192.168.127.102 Bcast:192.168.127.255 Mask:255.255.255.0
inet6 addr: fe80::a6ba:dbff:fe13:eac2/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:53 errors:0 dropped:0 overruns:0 frame:0
TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:82