免费注册 查看新帖 |

Chinaunix

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

求助HP双机CLUSTER问题!工程中,急!!!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-20 19:21 |只看该作者 |倒序浏览
# cmcheckconf -v -C /etc/cmcluster/rac.ascii
Checking cluster file: /etc/cmcluster/rac.ascii
Checking nodes ... Done
Checking existing configuration ... Done
Network interface lan0 on node host1 couldn\'t talk to itself.
Network interface lan1 on node host1 couldn\'t talk to itself.
Network interface lan0 on node host2 couldn\'t talk to itself.
Network interface lan1 on node host2 couldn\'t talk to itself.
lan0 on node host1 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.
lan1 on node host1 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.
lan0 on node host2 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.
lan1 on node host2 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.
Failed to evaluate network
cmcheckconf: Unable to reconcile configuration file /etc/cmcluster/rac.ascii
with discovered configuration information

论坛徽章:
0
2 [报告]
发表于 2008-05-20 20:01 |只看该作者

回复 #1 liz2003 的帖子

各位大老,有没有知道是怎么回事的啊?原来双机是好的,我修改了IP之后再检测就出现这类问题了。

论坛徽章:
0
3 [报告]
发表于 2008-05-20 20:37 |只看该作者
改ip还要改rac.ascii文件中的ip,另外hosts文件也要改。

论坛徽章:
0
4 [报告]
发表于 2008-05-20 21:46 |只看该作者

回复 #3 disy 的帖子

#

127.0.0.1       localhost       loopback

10.19.71.189  host2
10.0.0.6      host2_heart
10.19.71.188  host1
10.0.0.5      host1_heart
10.19.71.190  hostname_service
#
这是hosts中的配置,另外:
# STATIONARY_IP. They cannot be HEARTBEAT_IP.


NODE_NAME               host1
  NETWORK_INTERFACE     lan2
    HEARTBEAT_IP        10.19.71.188
  NETWORK_INTERFACE     lan0
  NETWORK_INTERFACE     lan1
  NETWORK_INTERFACE     lan3
    STATIONARY_IP       10.0.0.5
  FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names
# For example:
# SERIAL_DEVICE_FILE    /dev/tty0p0

# Possible standby Network Interfaces for lan2,lan3: lan0,lan1.

NODE_NAME               host2
  NETWORK_INTERFACE     lan2
    HEARTBEAT_IP        10.19.71.189
  NETWORK_INTERFACE     lan0
  NETWORK_INTERFACE     lan1
  NETWORK_INTERFACE     lan3
    STATIONARY_IP       10.0.0.6
  FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names

配置有问题吗?

论坛徽章:
0
5 [报告]
发表于 2008-05-20 21:49 |只看该作者

双机启动超时

# cmruncl -v
cmruncl: Validating network configuration...
cmruncl: Failed to validate the network configuration as reported above but will try to start the cluster anyway.
cmruncl: Network validation complete
Waiting for cluster to form .............. timed out
Check the syslog files for information.
cmruncl failed: timed out waiting for cluster to form

论坛徽章:
0
6 [报告]
发表于 2008-05-20 23:10 |只看该作者
双机环境,IP地址可不是随便能改的,不行的话先改回来吧。

论坛徽章:
0
7 [报告]
发表于 2008-05-20 23:39 |只看该作者
双机环境中如果改IP的话。
不仅需要修改网卡上的IP,还需要修改/etc/hosts文件。双机配置文件中的IP等等

然后还需要重新分发一下cluster的配置文件才能生效
cmapplyconf一下。

论坛徽章:
0
8 [报告]
发表于 2008-05-21 10:19 |只看该作者
建议你要确认下你的那个业务ip和心跳地址是配置在了lan2和lan3上了么?(在你的集群配置文件中业务ip和心跳ip分别是lan2和lan3)
lanscan 看下ip是否配置在lan0和lan1上了,而你在集群上却配置的是lan2和lan3.

lan0 on node host1 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.
lan1 on node host1 cannot be configured in the cluster
because it does not have an IP address, and it is not a standby lan for any other lan.


NODE_NAME               host1
  NETWORK_INTERFACE     lan2
    HEARTBEAT_IP        10.19.71.188
  NETWORK_INTERFACE     lan0
  NETWORK_INTERFACE     lan1
  NETWORK_INTERFACE     lan3
    STATIONARY_IP       10.0.0.5

将lanscan和netstat -rn的结果也贴出来看下,呵呵。

也可以尝试将业务ip和心跳ip分别改到lan0和lan1上,lan2和lan3做备用网卡。

论坛徽章:
0
9 [报告]
发表于 2008-05-21 16:17 |只看该作者
现在我的双机是好的,我把配置文件给大家看一下,我应该怎么样更改IP地址?谢谢
more /etc/hosts
#

127.0.0.1       localhost       loopback

192.168.12.98  host1
192.168.12.99  host2
192.168.12.90  hostname_service

#
#ROUTE_COUNT[0]=\"1\"
ROUTE_GATEWAY[0]=\"15.104.97.14\"
ROUTE_DESTINATION[0]=\"default\"
ROUTE_COUNT[0]=\"1\"
IP_ADDRESS[2]=192.168.12.98
SUBNET_MASK[2]=255.255.255.0
INTERFACE_NAME[2]=lan2
BROADCAST_ADDRESS[2]=192.168.12.255
INTERFACE_STATE[2]=up
IP_ADDRESS[3]=10.0.0.98
SUBNET_MASK[3]=255.255.255.0
INTERFACE_NAME[3]=lan3
BROADCAST_ADDRESS[3]=10.0.0.255
INTERFACE_STATE[3]=up
#
more /etc/cmcluster/rac.ascii
# STATIONARY_IP. They cannot be HEARTBEAT_IP.


NODE_NAME               host1
  NETWORK_INTERFACE     lan2
    HEARTBEAT_IP        192.168.12.98
  NETWORK_INTERFACE     lan0
  NETWORK_INTERFACE     lan1
  NETWORK_INTERFACE     lan3
    STATIONARY_IP       10.0.0.98
  FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names
# For example:
# SERIAL_DEVICE_FILE    /dev/tty0p0

# Possible standby Network Interfaces for lan2,lan3: lan0,lan1.

NODE_NAME               host2
  NETWORK_INTERFACE     lan2
    HEARTBEAT_IP        192.168.12.99
  NETWORK_INTERFACE     lan0
  NETWORK_INTERFACE     lan1
  NETWORK_INTERFACE     lan3
    STATIONARY_IP       10.0.0.99
  FIRST_CLUSTER_LOCK_PV /dev/dsk/c6t0d1
# List of serial device file names

论坛徽章:
0
10 [报告]
发表于 2008-05-21 17:48 |只看该作者
# netstat -in
IPv4:
Name      Mtu  Network         Address         Ipkts   Ierrs Opkts   Oerrs Coll
lan3      1500 10.0.0.0        10.0.0.98       19270   0     982     0     0   
lan2      1500 192.168.12.0   192.168.12.98  30327   0     7478    0     0   
lan1*     1500 none            none            0       0     0       0     0   
lan0*     1500 none            none            0       0     0       0     0   
lo0       4136 127.0.0.0       127.0.0.1       41275   0     41275   0     0   
lan2:1    1500 192.168.12.0   192.168.12.90  0       0     0       0     0   

IPv6:
Name         Mtu Address/Prefix                              Ipkts               Opkts
lan1*       1500 none                                               0        0
lan0*       1500 none                                               0        0
lo0         4136 ::1/128                                         5987     5987
# lanscan lan0
Hardware Station        Crd Hdw   Net-Interface  NM  MAC       HP-DLPI DLPI
Path     Address        In# State NamePPA        ID  Type      Support Mjr#
0/1/2/0  0x001B789FF343 0   UP    lan0 snap0     1   ETHER     Yes     119
0/2/1/0/6/0 0x001A4B0A1135 2   UP    lan2 snap2     2   ETHER     Yes     119
0/4/1/0/6/0 0x001A4B0A1124 3   UP    lan3 snap3     3   ETHER     Yes     119
0/1/2/1  0x001B789FF342 1   UP    lan1 snap1     4   ETHER     Yes     119

[ 本帖最后由 liz2003 于 2008-5-21 17:50 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP