Chinaunix

标题: 诚心请教:双机配置中浮动IP不生效,如何解决?谢谢。 [打印本页]

作者: cmcmcm    时间: 2006-06-13 22:25
标题: 诚心请教:双机配置中浮动IP不生效,如何解决?谢谢。
我现在的双机配置完成,双机节点、程序包启动正常。但是我的浮动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的记录,网络连接正常。


请指点,不胜感激!!
作者: hetorry    时间: 2006-06-14 09:27
浮动ip是在.cntl里面配置的吧,.conf配置的是网段.
作者: iamu    时间: 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
作者: cmcmcm    时间: 2006-06-14 18:55
谢谢两位。问题已经解决。
IP[0]=129.0.24.138    //“=”与地址之间不能有空格
SUBNET[0]=129.0.0.0   //“=”与地址之间不能有空格




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2