免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4743 | 回复: 5

RHCS: cman: can't open cluster socket: Device or resource busy failed [复制链接]

论坛徽章:
0
发表于 2010-07-09 10:28 |显示全部楼层
添加NODE时启动cman时会出现上面的情况,但重新将其它服务器
重新启动一下就又可以了。
=======================================
难道新添一个node需要重新启动其它的所有服务器吗?估计没有这样的。
倒底是怎么样添加node呢?
  1. <?xml version="1.0"?>
  2. <cluster config_version="9" name="cluster">
  3.         <fence_daemon post_fail_delay="0" post_join_delay="3"/>
  4.         <clusternodes>
  5.                 <clusternode name="RHCS-MASTER" votes="1">
  6.                         <fence>
  7.                                 <method name="1">
  8.                                         <device name="manualfence" nodename="RHCS-MASTER"/>
  9.                                 </method>
  10.                         </fence>
  11.                 </clusternode>
  12.                 <clusternode name="backup" votes="1">
  13.                         <fence>
  14.                                 <method name="1">
  15.                                         <device name="manualfence" nodename="backup"/>
  16.                                 </method>
  17.                         </fence>
  18.                 </clusternode>
  19.                 <clusternode name="RHCS-HA" votes="1">
  20.                         <fence>
  21.                                 <method name="1">
  22.                                         <device name="manualfence" nodename="RHCS-HA"/>
  23.                                 </method>
  24.                         </fence>
  25.                 </clusternode>
  26.                 <clusternode name="RHCS-20" votes="1">
  27.                         <fence>
  28.                                 <method name="1">
  29.                                         <device name="manualfence" nodename="RHCS-20"/>
  30.                                 </method>
  31.                         </fence>
  32.                 </clusternode>
  33.                 <clusternode name="RHCS-30" votes="1">
  34.                         <fence>
  35.                                 <method name="1">
  36.                                         <device name="manualfence" nodename="RHCS-30"/>
  37.                                 </method>
  38.                         </fence>
  39.                 </clusternode>
  40.         </clusternodes>
  41.         <cman/>
  42.         <fencedevices>
  43.                 <fencedevice agent="fence_manual" name="manualfence"/>
  44.         </fencedevices>
  45. <rm>
  46.                 <failoverdomains>
  47.                         <failoverdomain name="EPG-80" ordered="0" restricted="0">
  48.                                 <failoverdomainnode name="RHCS-MASTER" priority="1"/>
  49.                                 <failoverdomainnode name="backup" priority="1"/>
  50.                         </failoverdomain>
  51.                 </failoverdomains>
  52.                 <resources>
  53.                         <ip address="192.168.22.42" monitor_link="1"/>
  54.                         <script file="/etc/init.d/apache" name="EPG-Apache"/>
  55.                 </resources>
  56.                 <service autostart="1" domain="EPG-80" name="service-epg">
  57.                         <ip ref="192.168.22.42"/>
  58.                         <script ref="EPG-Apache"/>
  59.                 </service>
  60.         </rm>
  61. </cluster>
复制代码

论坛徽章:
0
发表于 2010-07-13 11:08 |显示全部楼层
每改变一次服务器配置,我必须把所有的服务器的关于RHCS重新启动一次才行,不然这个问题必定会出来。
还是没有找到问题的解决方法~

论坛徽章:
3
CU大牛徽章
日期:2013-09-18 15:16:55CU大牛徽章
日期:2013-09-18 15:18:22CU大牛徽章
日期:2013-09-18 15:18:43
发表于 2010-07-14 16:44 |显示全部楼层
每改变一次服务器配置,我必须把所有的服务器的关于RHCS重新启动一次才行,不然这个问题必定会出来。
还是 ...
hb_li_520 发表于 2010-07-13 11:08




请问你是哪个版本的平台 以及RHCS 版本  以便确认问题

论坛徽章:
0
发表于 2010-07-19 10:49 |显示全部楼层
Redhat 4 update 7的版.....
RHCS具体的版本不明白你说的什么意思?
ftp://ftp.redhat.com/pub/redhat/ ... /4AS/en/RHCS/SRPMS/
难道不是每个OS系统都会对应不同的版本么.
ccs 1.0.7
fence
dlm-kernel-2.6.9-54.11
dlm-1.0.7-1
cman-1.0.17
fence-1.32.63
iddev-2.0.0-4
rgmanager-1.9.38-0
GFS-kernel-2.6.9-80
GFS-6.1.18-1
等等.

论坛徽章:
0
发表于 2010-07-19 12:09 |显示全部楼层
更改集群配置,使之生效一般用ccs_tool update /etc/cluster/cluster.conf,操作之前记得改一下配置版本号;之后要使用cman_tool -r后面跟版本号。不用重启集群服务。

论坛徽章:
0
发表于 2010-07-20 11:57 |显示全部楼层
更改集群配置,使之生效一般用ccs_tool update /etc/cluster/cluster.conf,操作之前记得改一下配置版本号; ...
jerrywjl 发表于 2010-07-19 12:09

谢谢。都怪自已看文档不仔细.^0^

The cluster configuration guis take case of propagating changes to cluster.conf to your cluster. The system-config-cluster gui has a big button that says "Send to Cluster". If you're maintaining your cluster.conf file by hand and want to propagate it to the rest of the cluster, do this:
         1. Edit /etc/cluster/cluster.conf using the editor of choice.
         2. Tell ccs about the change:
            ccs_tool update /etc/cluster/cluster.conf
         3. Find out what version your cluster.conf file currently is from cman's perspective:
            cman_tool status | grep "Config version"
            It should come back with something like this:
            Config version: 37
         4. Tell cman your newer cluster.conf is a newer version:
            cman_tool version -r 38

      Note: For RHEL5 and similar, cman_tool -r is no longer necessary.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP