免费注册 查看新帖 |

Chinaunix

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

诚心请教:双机配置中浮动IP不生效,如何解决?谢谢。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-13 22:25 |只看该作者 |倒序浏览
我现在的双机配置完成,双机节点、程序包启动正常。但是我的浮动IP未生效。

请问,除了在/etc/hosts、/etc/cmcluster/pkghlrdb/pkghlrdb.sh这2个文件中需要设置浮动IP,还有其他地方需要做设置吗?

1、/etc/hosts
129.0.24.138                db_srv
129.0.24.161                db1 node1   //工作IP
129.0.24.162                db2 node2   //工作IP

192.168.0.1                db1
192.168.0.2                db2

2、/etc/cmcluster/pkghlrdb/pkghlrdb.sh
IP[0]= 129.0.24.138
SUBNET[0]= 129.0.0.0

在/etc/cmcluster/pkghlrdb/pkghlrdb.sh.log中看到有can not find 129.0.24.138和can not find 129.0.0.0的记录,网络连接正常。


请指点,不胜感激!!

论坛徽章:
0
2 [报告]
发表于 2006-06-14 09:27 |只看该作者
浮动ip是在.cntl里面配置的吧,.conf配置的是网段.

论坛徽章:
0
3 [报告]
发表于 2006-06-14 10:08 |只看该作者
Check your /etc/cmcluster/pkghlrdb/pkghlrdb.conf, make sure this line is there:

SUBNET       129.0.0.0

in your /etc/cmcluster/pkghlrdb/pkghlrdb.sh ( I think you mean HP called /etc/cmcluster/pkghlrdb/pkghlrdb.cntl), better use:

IP[0]=\"129.0.24.138\"
SUBNET[0]=\"129.0.0.0\"

You\'d better halt your pakage,  before you modify these two files.
If you need to modify .conf file, make sure you use:
cmcheckconf -v -P /etc/cmcluster/pkghlrdb/pkghlrdb.conf
and
cmapplyconf -v -P /etc/cmcluster/pkghlrdb/pkghlrdb.conf
/etc/cmcluster/pkghlrdb/pkghlrdb.sh needs to be copy to all of your nodes.

I am assuming that you are using class B IP, netmask is 255.255.0.0 which you need to check.
129.0.24 are public IPs. I can not find out who these IPs belong to from ARIN.
Besides, make sure your routing table is correct in your servers, and double check your switch to server conncetions.

GOOD LUCK

论坛徽章:
0
4 [报告]
发表于 2006-06-14 18:55 |只看该作者
谢谢两位。问题已经解决。
IP[0]=129.0.24.138    //“=”与地址之间不能有空格
SUBNET[0]=129.0.0.0   //“=”与地址之间不能有空格
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP