免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2358 | 回复: 7
打印 上一主题 下一主题

[新手入门] 如何实现ha接管oracle应用呢,谢谢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-07 13:33 |只看该作者 |倒序浏览
ha5.1+aix5.3+oracle10g

app server中加了启动停止脚本

资源组可以接管,但oracle不行,不知差哪

谢谢

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-06-07 13:40 |只看该作者
脚本写的有问题吧。确定单独运行脚本能启动、停止oracle

论坛徽章:
0
3 [报告]
发表于 2006-06-07 13:55 |只看该作者
单独测试了,可以

论坛徽章:
0
4 [报告]
发表于 2006-06-07 15:47 |只看该作者
不能接管报什么错?

论坛徽章:
0
5 [报告]
发表于 2006-06-07 15:55 |只看该作者
没报错啊,只是app没接管,资源组,svcIP都正常的

论坛徽章:
0
6 [报告]
发表于 2006-06-07 18:20 |只看该作者
呵呵,app 是资源组不可分割的一部分,怎么说app不正常但是资源组正常呢?

看看/tmp/hacmp.out在启完vg后的记录内容再说吧!

要是自己看起来有点不是很清晰,贴上来或者附件模式大家帮你看看。

绝对是小问题而已。

论坛徽章:
0
7 [报告]
发表于 2006-06-08 09:36 |只看该作者
下面是hacmp.out,信息够吗?

ay 20 03:20:50 EVENT START: network_up f80 net_ether_01

:network_up[60] [[ high = high ]]
:network_up[60] version=1.21
:network_up[61] :network_up[61] cl_get_path
HA_DIR=es
:network_up[62] STATUS=0
:network_up[64] [ 2 -ne 2 ]
:network_up[74] :network_up[74] cl_rrmethods2call net_initialization
:cl_rrmethods2call[49] [[ high = high ]]
:cl_rrmethods2call[49] version=1.6
:cl_rrmethods2call[50] :cl_rrmethods2call[50] cl_get_path
HA_DIR=es
:cl_rrmethods2call[92] :cl_rrmethods2call[92] odmget -qname=net_ether_01 HACMPnetwork
:cl_rrmethods2call[92] awk {print $3}
:cl_rrmethods2call[92] egrep nimname
:cl_rrmethods2call[92] sed s/"//g
RRNET=ether
:cl_rrmethods2call[92] [[ ether = Geo_Primary ]]
:cl_rrmethods2call[99] :cl_rrmethods2call[99] egrep net_initialization =
:cl_rrmethods2call[99] odmget -qtype=2 HACMPrresmethods
:cl_rrmethods2call[99] awk {print $3}
:cl_rrmethods2call[99] sed s/"//g
RRMETHODS=
:cl_rrmethods2call[101] echo  
:cl_rrmethods2call[102] exit 0
METHODS=
:network_up[87] set -u
:network_up[94] exit 0
May 20 03:20:50 EVENT COMPLETED: network_up f80 net_ether_01

                        HACMP Event Summary
Event: network_up f80 net_ether_01
Start time: Sat May 20 03:20:49 2006

End time: Sat May 20 03:20:50 2006

Action:         Resource:                       Script Name:
----------------------------------------------------------------------------
No resources changed as a result of this event
----------------------------------------------------------------------------

May 20 03:20:50 EVENT START: network_up_complete f80 net_ether_01

:network_up_complete[59] [[ high = high ]]
:network_up_complete[59] version=1.1.1.12
:network_up_complete[60] :network_up_complete[60] cl_get_path
HA_DIR=es
:network_up_complete[62] [ ! -n  ]
:network_up_complete[64] EMULATE=REAL
:network_up_complete[67] [ 2 -ne 2 ]
:network_up_complete[73] set -u
:network_up_complete[79] STATUS=0
:network_up_complete[83] odmget HACMPnode
:network_up_complete[83] grep name =
:network_up_complete[83] sort
:network_up_complete[83] uniq
:network_up_complete[83] wc -l
:network_up_complete[83] [ 2 -eq 2 ]
:network_up_complete[85] :network_up_complete[85] odmget HACMPgroup
:network_up_complete[85] grep group =
:network_up_complete[85] awk {print $3}
:network_up_complete[85] sed s/"//g
RESOURCE_GROUPS=aa
:network_up_complete[89] :network_up_complete[89] odmget -q group=aa AND name=EXPORT_FILESYSTEM HACM
Presource
:network_up_complete[89] grep value
:network_up_complete[89] awk {print $3}
:network_up_complete[89] sed s/"//g
EXPORTLIST=
:network_up_complete[90] [ -n  ]
:network_up_complete[110] NETWORK=net_ether_01
:network_up_complete[113] :network_up_complete[113] odmget -qname=net_ether_01 HACMPnetwork
:network_up_complete[113] awk $1 == "alias" {print $3}
:network_up_complete[113] sed s/"//g
ALIASING=1
:network_up_complete[114] [[ 1 = 1 ]]
:network_up_complete[115] cl_configure_persistent_address aliasing_network_up -n net_ether_01
:cl_configure_persistent_address[396] [[ high = high ]]
:cl_configure_persistent_address[396] version=1.9
:cl_configure_persistent_address[397] :cl_configure_persistent_address[397] cl_get_path
HA_DIR=es
:cl_configure_persistent_address[399] :cl_configure_persistent_address[399] get_local_nodename
:get_local_nodename[38] [[ high = high ]]
:get_local_nodename[38] version=1.2.1.12
:get_local_nodename[39] :get_local_nodename[39] cl_get_path
HA_DIR=es
:get_local_nodename[41] AIXODMDIR=/etc/objrepos
:get_local_nodename[42] HAODMDIR=/etc/es/objrepos
:get_local_nodename[45] :get_local_nodename[45] ODMDIR=/etc/es/objrepos
:get_local_nodename[45] odmget HACMPcluster
:get_local_nodename[45] grep nodename
nodename=       nodename = "f80"
:get_local_nodename[46] :get_local_nodename[46] print nodename = "f80"
:get_local_nodename[46] sed -e s/.*= *//g -e s/\"//g
nodename=f80
:get_local_nodename[48] :get_local_nodename[48] cllsnode -cS
:get_local_nodename[48] cut -d: -f1
NODENAME=f80
h70
:get_local_nodename[52] [[ f80 = f80 ]]
:get_local_nodename[55] print f80
:get_local_nodename[56] exit 0
LOCALNODENAME=f80
:cl_configure_persistent_address[401] NETWORK=
:cl_configure_persistent_address[402] ALIVE_IF=
:cl_configure_persistent_address[403] FAILED_IF=
:cl_configure_persistent_address[404] FAILED_ADDRESS=
:cl_configure_persistent_address[405] CHECK_HA_ALIVE=1
:cl_configure_persistent_address[407] ACTION=aliasing_network_up
:cl_configure_persistent_address[408] shift
:cl_configure_persistent_address[410] getopt n:a:f:i:d -n net_ether_01
:cl_configure_persistent_address[410] set -- -n net_ether_01 --
:cl_configure_persistent_address[412] [[ 0 != 0 ]]
:cl_configure_persistent_address[412] [[ aliasing_network_up =  ]]
:cl_configure_persistent_address[417] [[ -n != -- ]]
:cl_configure_persistent_address[420] NETWORK=net_ether_01
:cl_configure_persistent_address[421] shift
:cl_configure_persistent_address[421] shift
:cl_configure_persistent_address[421] [[ -- != -- ]]
:cl_configure_persistent_address[443] shift
:cl_configure_persistent_address[445] set -u
:cl_configure_persistent_address[448] [[ aliasing_network_up = up ]]
:cl_configure_persistent_address[448] [[ aliasing_network_up = swap ]]
:cl_configure_persistent_address[448] [[ aliasing_network_up = fail_boot ]]
:cl_configure_persistent_address[448] [[ aliasing_network_up = aliasing_network_up ]]
:cl_configure_persistent_address[448] [[ net_ether_01 =  ]]
:cl_configure_persistent_address[448] isAliasingNetwork net_ether_01
:cl_configure_persistent_address[3] set -u
:cl_configure_persistent_address[5] NETWORK=net_ether_01
:cl_configure_persistent_address[7] sed s/"//g
:cl_configure_persistent_address[7] awk $1 == "alias" {print $3}
:cl_configure_persistent_address[7] odmget -qname=net_ether_01 HACMPnetwork
:cl_configure_persistent_address[7] print 1
:cl_configure_persistent_address[448] [[ 1 != 1 ]]
:cl_configure_persistent_address[645] :cl_configure_persistent_address[645] awk -F: $2 == "persisten
t" && $3 == "net_ether_01" {print $1}
:cl_configure_persistent_address[645] cllsif -Scpi f80
PERSISTENT=
:cl_configure_persistent_address[645] [[  =  ]]
:cl_configure_persistent_address[648] exit 0
:network_up_complete[123] exit 0
May 20 03:20:50 EVENT COMPLETED: network_up_complete f80 net_ether_01

                        HACMP Event Summary
Event: network_up_complete f80 net_ether_01
Start time: Sat May 20 03:20:50 2006

End time: Sat May 20 03:20:50 2006
Action:         Resource:                       Script Name:
----------------------------------------------------------------------------
No resources changed as a result of this event
----------------------------------------------------------------------------

May 20 03:20:54 EVENT START: join_interface f80 192.168.2.80

:join_interface[57] [[ high = high ]]
:join_interface[57] version=1.2
:join_interface[58] :join_interface[58] cl_get_path
HA_DIR=es
:join_interface[60] [ 2 -ne 2 ]
:join_interface[66] NODENAME=f80
:join_interface[67] ADDR=192.168.2.80
:join_interface[69] set -u
:join_interface[71] :join_interface[71] dspmsg scripts.cat 8064 Interface 192.168.2.80 is now availa
ble on node f80.\n 192.168.2.80 f80
MSG=Interface 192.168.2.80 is now available on node f80.
:join_interface[72] echo Interface 192.168.2.80 is now available on node f80.
:join_interface[72] 1> /dev/console
:join_interface[74] exit 0
May 20 03:20:54 EVENT COMPLETED: join_interface f80 192.168.2.80
    HACMP Event Summary
Event: join_interface f80 192.168.2.80
Start time: Sat May 20 03:20:54 2006

End time: Sat May 20 03:20:54 2006

Action:         Resource:                       Script Name:
----------------------------------------------------------------------------
No resources changed as a result of this event
----------------------------------------------------------------------------

May 20 03:20:56 EVENT START: join_interface f80 192.168.3.231

:join_interface[57] [[ high = high ]]
:join_interface[57] version=1.2
:join_interface[58] :join_interface[58] cl_get_path
HA_DIR=es
:join_interface[60] [ 2 -ne 2 ]
:join_interface[66] NODENAME=f80
:join_interface[67] ADDR=192.168.3.231
:join_interface[69] set -u
:join_interface[71] :join_interface[71] dspmsg scripts.cat 8064 Interface 192.168.3.231 is now avail
able on node f80.\n 192.168.3.231 f80
MSG=Interface 192.168.3.231 is now available on node f80.
:join_interface[72] echo Interface 192.168.3.231 is now available on node f80.
:join_interface[72] 1> /dev/console
:join_interface[74] exit 0
May 20 03:21:01 EVENT COMPLETED: join_interface f80 192.168.3.231

论坛徽章:
0
8 [报告]
发表于 2006-06-12 09:38 |只看该作者
关注下,正打算测试
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP