免费注册 查看新帖 |

Chinaunix

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

HACMP5.4拔主机网线无法切换到备机!急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-28 11:16 |只看该作者 |倒序浏览
大家好。 今天配置了个HA,环境是AIX5.3-05,HACMP5.4.0,配置同步都没报错,但是做拔网线测试的时候,拔掉1根,server ip可以切换到备用网卡, 但是拔掉2根网线, 无法切换到备机, 请各位指教。
附:hacmp.out
Jan 28 01:04:55 EVENT START: release_vg_fs ALL appvg  

xxcs_app_rg:release_vg_fs[63] [[ high = high ]]
xxcs_app_rg:release_vg_fs[63] version=1.4.1.49
xxcs_app_rg:release_vg_fs[65] STATUS=0
xxcs_app_rg:release_vg_fs[65] typeset -i DEF_VARYON_ACTION=0
xxcs_app_rg:release_vg_fs[69] [[ RELEASE != RELEASE ]]
xxcs_app_rg:release_vg_fs[75] FILE_SYSTEMS=ALL
xxcs_app_rg:release_vg_fs[76] VOLUME_GROUPS=appvg
xxcs_app_rg:release_vg_fs[77] OEM_FILE_SYSTEMS=
xxcs_app_rg:release_vg_fs[78] OEM_VOLUME_GROUPS=
xxcs_app_rg:release_vg_fs[79] VG_MOD=false
xxcs_app_rg:release_vg_fs[80] SELECTIVE_FAILOVER=false
xxcs_app_rg:release_vg_fs[80] typeset -i DEF_VARYOFF_ACTION=0
xxcs_app_rg:release_vg_fs[85] cut -c1-2
xxcs_app_rg:release_vg_fs[85] oslevel -r
xxcs_app_rg:release_vg_fs[85] [[ 53 > 52 ]]
xxcs_app_rg:release_vg_fs[87] FORCED=-F
xxcs_app_rg:release_vg_fs[96] [[ ALL = ALL ]]
xxcs_app_rg:release_vg_fs[98] FILE_SYSTEMS=
xxcs_app_rg:release_vg_fs[98] [[ -z appvg ]]
xxcs_app_rg:release_vg_fs[98] [[ -n appvg ]]
xxcs_app_rg:release_vg_fs[110] xxcs_app_rg:release_vg_fs[110] rdsort appvg
xxcs_app_rg:release_vg_fs[3] echo appvg
xxcs_app_rg:release_vg_fs[4] sort -ru
xxcs_app_rg:release_vg_fs[3] sed -e s/\ /\
/g
VOLUME_GROUPS=appvg
xxcs_app_rg:release_vg_fs[110] [[ true = true ]]
xxcs_app_rg:release_vg_fs[110] [[ ONLINE != ONLINE ]]
xxcs_app_rg:release_vg_fs[120] date
Thu Jan 28 01:04:55 BEIST 2010
xxcs_app_rg:release_vg_fs[122] grep -x appvg
xxcs_app_rg:release_vg_fs[122] lsvg -L -o
appvg
xxcs_app_rg:release_vg_fs[125] xxcs_app_rg:release_vg_fs[125] awk $1 == "dependency" { gsub(/"/, "", $3); print $3 }
xxcs_app_rg:release_vg_fs[125] odmget -q name = appvg CuDep
OPEN_LVs=app1
app2
loglv00
fslv00
xxcs_app_rg:release_vg_fs[129] xxcs_app_rg:release_vg_fs[129] awk $1 == "value" && $3 ~ /^\"\//{ gsub(/"/,"",$3); print $3 }
xxcs_app_rg:release_vg_fs[129] odmget -q name = app1 and attribute = label CuAt
FS=
xxcs_app_rg:release_vg_fs[129] [[ -n  ]]
xxcs_app_rg:release_vg_fs[129] xxcs_app_rg:release_vg_fs[129] awk $1 == "value" && $3 ~ /^\"\//{ gsub(/"/,"",$3); print $3 }
xxcs_app_rg:release_vg_fs[129] odmget -q name = app2 and attribute = label CuAt
FS=
xxcs_app_rg:release_vg_fs[129] [[ -n  ]]
xxcs_app_rg:release_vg_fs[129] xxcs_app_rg:release_vg_fs[129] awk $1 == "value" && $3 ~ /^\"\//{ gsub(/"/,"",$3); print $3 }
xxcs_app_rg:release_vg_fs[129] odmget -q name = loglv00 and attribute = label CuAt
FS=
xxcs_app_rg:release_vg_fs[129] [[ -n  ]]
xxcs_app_rg:release_vg_fs[129] xxcs_app_rg:release_vg_fs[129] awk $1 == "value" && $3 ~ /^\"\//{ gsub(/"/,"",$3); print $3 }
xxcs_app_rg:release_vg_fs[129] odmget -q name = fslv00 and attribute = label CuAt
FS=/app
xxcs_app_rg:release_vg_fs[129] [[ -n /app ]]
xxcs_app_rg:release_vg_fs[131] FILE_SYSTEMS= /app
xxcs_app_rg:release_vg_fs[137] date
Thu Jan 28 01:04:55 BEIST 2010
xxcs_app_rg:release_vg_fs[137] [[ false = true ]]
xxcs_app_rg:release_vg_fs[149] [[ -n  ]]
xxcs_app_rg:release_vg_fs[183] xxcs_app_rg:release_vg_fs[183] cl_fs2disk -v /app
vg=appvg
xxcs_app_rg:release_vg_fs[183] [[  = reconfig* ]]
xxcs_app_rg:release_vg_fs[201] VOLUME_GROUPS=appvg appvg
xxcs_app_rg:release_vg_fs[210] [[ -n  /app ]]
xxcs_app_rg:release_vg_fs[213] xxcs_app_rg:release_vg_fs[213] rdsort /app
xxcs_app_rg:release_vg_fs[3] echo /app
xxcs_app_rg:release_vg_fs[4] sort -ru
xxcs_app_rg:release_vg_fs[3] sed -e s/\ /\
/g
FILE_SYSTEMS=/app
xxcs_app_rg:release_vg_fs[216] cl_deactivate_fs /app
xxcs_app_rg:cl_deactivate_fs[320] [[ high = high ]]
xxcs_app_rg:cl_deactivate_fs[320] version=1.1.4.28
xxcs_app_rg:cl_deactivate_fs[322] STATUS=0
xxcs_app_rg:cl_deactivate_fs[323] SLEEP=2
xxcs_app_rg:cl_deactivate_fs[324] TMP_FILENAME=_deactivate_fs.tmp
xxcs_app_rg:cl_deactivate_fs[326] OEM_CALL=false
xxcs_app_rg:cl_deactivate_fs[327] [[ 1 -ne 0 ]]
xxcs_app_rg:cl_deactivate_fs[327] [[ /app = -c ]]
xxcs_app_rg:cl_deactivate_fs[333] [ ! -n  ]
xxcs_app_rg:cl_deactivate_fs[335] EMULATE=REAL
xxcs_app_rg:cl_deactivate_fs[338] PROC_RES=false
xxcs_app_rg:cl_deactivate_fs[342] [[ 0 != 0 ]]
xxcs_app_rg:cl_deactivate_fs[346] [[ false = true ]]
xxcs_app_rg:cl_deactivate_fs[352] [ 1 -eq 0 ]
xxcs_app_rg:cl_deactivate_fs[360] echo /app
xxcs_app_rg:cl_deactivate_fs[360] set -A fs_array /app
xxcs_app_rg:cl_deactivate_fs[361] FILE1=/app
xxcs_app_rg:cl_deactivate_fs[366] RES_GRP=xxcs_app_rg
xxcs_app_rg:cl_deactivate_fs[367] TMP_FILENAME=xxcs_app_rg_deactivate_fs.tmp
xxcs_app_rg:cl_deactivate_fs[370] [[ -f /tmp/xxcs_app_rg_deactivate_fs.tmp ]]
xxcs_app_rg:cl_deactivate_fs[373] [ sequential =  ]
xxcs_app_rg:cl_deactivate_fs[379] xxcs_app_rg:cl_deactivate_fs[379] sed s/^ //
xxcs_app_rg:cl_deactivate_fs[379] print sequential
RECOVERY_METHOD=sequential
xxcs_app_rg:cl_deactivate_fs[380] xxcs_app_rg:cl_deactivate_fs[380] sed s/ $//
xxcs_app_rg:cl_deactivate_fs[380] print sequential
RECOVERY_METHOD=sequential
xxcs_app_rg:cl_deactivate_fs[381] [ sequential != sequential -a sequential != parallel ]
xxcs_app_rg:cl_deactivate_fs[389] cut -c1-2
xxcs_app_rg:cl_deactivate_fs[389] oslevel -r
xxcs_app_rg:cl_deactivate_fs[389] [[ 53 > 52 ]]
xxcs_app_rg:cl_deactivate_fs[391] FORCED=-F
xxcs_app_rg:cl_deactivate_fs[398] set -u
xxcs_app_rg:cl_deactivate_fs[471] xxcs_app_rg:cl_deactivate_fs[471] /bin/sort -r
xxcs_app_rg:cl_deactivate_fs[471] /bin/echo /app
FILELIST=/app
xxcs_app_rg:cl_deactivate_fs[476] ALLFS=All_filesystems
xxcs_app_rg:cl_deactivate_fs[477] [ REAL = EMUL ]
xxcs_app_rg:cl_deactivate_fs[482] cl_RMupdate resource_releasing All_filesystems cl_deactivate_fs
Reference string: Thu.Jan.28.01:04:56.BEIST.2010.cl_deactivate_fs.All_filesystems.xxcs_app_rg.ref
xxcs_app_rg:cl_deactivate_fs[485] [[ false = true ]]
xxcs_app_rg:cl_deactivate_fs[491] [ sequential = parallel ]
xxcs_app_rg:cl_deactivate_fs[501] [ REAL = EMUL ]
xxcs_app_rg:cl_deactivate_fs[506] fs_umount /app cl_deactivate_fs xxcs_app_rg_deactivate_fs.tmp
xxcs_app_rg:cl_deactivate_fs[4] FS=/app
xxcs_app_rg:cl_deactivate_fs[5] PROGNAME=cl_deactivate_fs
xxcs_app_rg:cl_deactivate_fs[6] TMP_FILENAME=xxcs_app_rg_deactivate_fs.tmp
xxcs_app_rg:cl_deactivate_fs[7] STATUS=0
xxcs_app_rg:cl_deactivate_fs[10] xxcs_app_rg:cl_deactivate_fs[10] lsfs -c /app
xxcs_app_rg:cl_deactivate_fs[10] tail -1
xxcs_app_rg:cl_deactivate_fs[10] cut -c6-
xxcs_app_rg:cl_deactivate_fs[10] cut -d: -f2
lv=fslv00
xxcs_app_rg:cl_deactivate_fs[12] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[23] mount
xxcs_app_rg:cl_deactivate_fs[23] fgrep -s -x /dev/fslv00
xxcs_app_rg:cl_deactivate_fs[23] awk { print $1 }
xxcs_app_rg:cl_deactivate_fs[25] [ 0 -eq 0 ]
xxcs_app_rg:cl_deactivate_fs[38] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[39] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[43] COUNT=60
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 60 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 60 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 60 - 1
COUNT=59
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 59 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 59 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 59 - 1
COUNT=58
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 58 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 58 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 58 - 1
COUNT=57
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 57 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 57 = 57 ]
xxcs_app_rg:cl_deactivate_fs[52] [ ! -f /tmp/.RPCLOCKDSTOPPED ]
xxcs_app_rg:cl_deactivate_fs[54] odmget -q name=EXPORT_FILESYSTEM AND group=xxcs_app_rg HACMPresource
xxcs_app_rg:cl_deactivate_fs[54] grep value
xxcs_app_rg:cl_deactivate_fs[54] awk {print $3}
xxcs_app_rg:cl_deactivate_fs[54] sed s/"//g
xxcs_app_rg:cl_deactivate_fs[54] grep -w /app
xxcs_app_rg:cl_deactivate_fs[55] [ 1 = 0 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 57 - 1
COUNT=56
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 56 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 56 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 56 - 1
COUNT=55
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 55 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 55 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 55 - 1
COUNT=54
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 54 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 54 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 54 - 1
COUNT=53
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 53 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 53 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 53 - 1
COUNT=52
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 52 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 52 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 52 - 1
COUNT=51
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 51 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 51 = 57 ]
xxcs_app_rg:cl_deactivate_fs[63] xxcs_app_rg:cl_deactivate_fs[63] expr 51 - 1
COUNT=50
xxcs_app_rg:cl_deactivate_fs[64] sleep 2
xxcs_app_rg:cl_deactivate_fs[65] fuser -k -u -x /dev/fslv00
/dev/fslv00:
xxcs_app_rg:cl_deactivate_fs[66] [ 0 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[44] true
xxcs_app_rg:cl_deactivate_fs[45] umount /app
umount: error unmounting /dev/fslv00: Device busy
xxcs_app_rg:cl_deactivate_fs[46] [ 1 -ne 0 ]
xxcs_app_rg:cl_deactivate_fs[48] [ 50 -gt 0 ]
xxcs_app_rg:cl_deactivate_fs[50] [ 50 = 57 ]

论坛徽章:
0
2 [报告]
发表于 2010-01-28 11:19 |只看该作者

回复 #1 poweryu 的帖子

另外附上HACMP的拓扑图
Cluster Name: xxcs_ha
Cluster Connection Authentication Mode: Standard
Cluster Message Authentication Mode: None
Cluster Message Encryption: None
Use Persistent Labels for Communication: No

NODE xxcs_app:
                xxcs_app_svc    10.199.56.3
                xxcs_app_boot1  10.199.56.1
                xxcs_app_boot2  10.199.57.2
                app_tty /dev/tty0

NODE xxcs_db:
                xxcs_db_svc     10.199.56.6
                xxcs_db_boot1   10.199.56.4
                xxcs_db_boot2   10.199.57.5
                dbtty   /dev/tty0

论坛徽章:
0
3 [报告]
发表于 2010-01-28 12:54 |只看该作者
是下面这个原因吧:
umount: error unmounting /dev/fslv00: Device busy

论坛徽章:
0
4 [报告]
发表于 2010-01-28 13:12 |只看该作者
原帖由 tianyue01 于 2010-1-28 12:54 发表
是下面这个原因吧:
umount: error unmounting /dev/fslv00: Device busy

就是楼上兄弟这个问题,不知道有什么好的解决方法,我也用fusr -kuxc /app,但是没用。
另外很奇怪的就是,我的app脚本里面就是一个空的脚本,只是在起HA的时候把appvg varyon了,然后又mount  文件系统app,也没人用,为什么切的时候就还是提示忙?很纳闷

论坛徽章:
0
5 [报告]
发表于 2010-01-28 13:35 |只看该作者
有fuser -xc /app的结果吗?是什么process用着呢?

kill -9 proc_ID

论坛徽章:
0
6 [报告]
发表于 2010-01-28 14:36 |只看该作者
手动试试能不能umount

论坛徽章:
0
7 [报告]
发表于 2010-01-28 15:35 |只看该作者
你拔掉一根网线 可以切换到备卡上 说明你的链路是冗余的 但它不代表HA是OK的 我认为是你的双机 做的有问题

论坛徽章:
0
8 [报告]
发表于 2010-02-01 09:38 |只看该作者
吧所有的业务脚本都注销掉,看看双机能否切换,判断问题需要一步步的验证,首先在没有挂载任何资源的情况下,验证hacmp的正常与否,另外 ha5.4的切换策略配置 总共有启动策略 失败策略和恢复策略 检查下!

论坛徽章:
0
9 [报告]
发表于 2010-08-08 09:23 |只看该作者
首先应该测试不带脚步下的切换是否正常

论坛徽章:
0
10 [报告]
发表于 2010-08-10 08:32 |只看该作者
高手高手高高手.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP