集群,折磨了我N天.上来询问~第一次发帖给点面子大侠
我脸皮厚.别丢我.问题是这样的:本来想来论坛上查找,但是提示数据库连接失败,请稍后再试!connect
clumanage 我是做这个,一边看教程一边动手:结果最后干掉了我N个虚拟机.问了几个兄弟.没择只好发大帖子:
配置基本都配置好了,本人用VM做的,
2台server
配置后结果: 第1台, //也就是192.168.0.11这台显示如下
Cluster Quorum Incarnation #3
Shared State: Shared Raw Device Driver v1.2
Member Status
------------------ ----------
192.168.0.11 Active <-- You are here
192.168.0.9 Active
Service Status Owner (Last) Last Transition Chk Restarts
-------------- -------- ---------------- --------------- --- --------
apache1 started 192.168.0.11 10:42:15 Jun 28 1 0
上面很明显是成功的,但是继续看下面 //下面是192.168.0.9显示如下:
Cluster Quorum Incarnation #3
Shared State: Shared Raw Device Driver v1.2
Member Status
------------------ ----------
192.168.0.11 Active
192.168.0.9 Active <-- You are here
Service Status Owner (Last) Last Transition Chk Restarts
-------------- -------- ---------------- --------------- --- --------
apache1 started 192.168.0.9 10:53:23 Jun 28 1 0
很正常吧~~,,但是现在我把192.168.0.11 这台服务/etc/init.d/clumanager stop后,我到192.168.0.12下显示的却是如下:
Incarnation #4
(This member is not part of the cluster quorum)
Member Status
------------------ ----------
192.168.0.11 Inactive
192.168.0.12 Inactive
192.168.0.9 Active <-- You are here
No Quorum - Service States Unknown
之前我做了磁盘共享,用VM,不是用NFS.继续看下面.
::192.168.0.9 192.168.0.11 显示如下
[root@mm root]# fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 523 4096575 83 Linux
/dev/sda3 524 778 2048287+ 83 Linux
/dev/sda4 779 1305 4233127+ 5 Extended
/dev/sda5 779 905 1020096 83 Linux
/dev/sda6 906 938 265041 82 Linux swap
Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 122 522 3221032+ 83 Linux
/dev/sdb2 1 121 971901 83 Linux
Partition table entries are not in disk order
Disk /dev/sdc: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 522 4192933+ 83 Linux //这里是挂载WEB的~~ 挂载到/www
不知道为什么就是不行!~~192.168.0.9这台为什么不接管理WEB..
但是2个都启动clumanager时候,却都可以,这里有一个怪现象.
当我用xwindow--集群配置中禁止192.168.0.11时候,这时候192.168.0.11的ifconfig里没有了 (192.168.0.200 //这个是我指定外面访问的IP),,这个时候回到192.168.0.9上却发现ifconfig.有192.168.0.200..外面可以正常访问..
但是如果我把192.168.0.11的服务关掉...192.168.0.9就不行.显示
Incarnation #4
(This member is not part of the cluster quorum)
Member Status
------------------ ----------
192.168.0.11 Inactive
192.168.0.12 Inactive
192.168.0.9 Active <-- You are here
No Quorum - Service States Unknown
汗,我不明白了~ WHY?还请高人指点我以下..
我直接把192.168.0.11上的/etc/cluste?.xml cp 到 192.168.0.9的/etc下.还该了下名字,就没有了。 如下:
<?xml version="1.0"?>;
<cluconfig version="3.0">;
<clumembd broadcast="yes" interval="750000" loglevel="5" multicast="no" multicast_ipaddress="" thread="yes" tko_count="20"/>;
<cluquorumd loglevel="5" pinginterval="" tiebreaker_ip=""/>;
<clurmtabd loglevel="5" pollinterval="4"/>;
<clusvcmgrd loglevel="5"/>;
<clulockd loglevel="5"/>;
<cluster config_viewnumber="11" key="9ea87febda74c1623dacc0ae0f698cbc" name="yumen"/>;
<sharedstate driver="libsharedraw.so" rawprimary="/dev/raw/raw1" rawshadow="/dev/raw/raw2" type="raw"/>;
<members>;
<member id="0" name="192.168.0.11" watchdog="yes"/>;
<member id="1" name="192.168.0.9" watchdog="yes"/>;
</members>;
<services>;
<service checkinterval="1" failoverdomain="None" id="0" name="apache1" userscript="/usr/apache/haha">;
<service_ipaddresses>;
<service_ipaddress broadcast="192.168.0.255" id="0" ipaddress="192.168.0.200" netmask="255.255.255.0"/>;
</service_ipaddresses>;
<device id="0" name="/dev/sdc1" sharename="">;
<mount forceunmount="yes" fstype="ext3" mountpoint="/www" options="rw"/>;
</device>;
</service>;
</services>;
<failoverdomains/>;
</cluconfig>;
希望大家拉我一把~~感激
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
汗,顶以下~~~
12 是干什么的呀?
你看明白没??
靠,白让我高兴一场了,,12 是192.168.0.12 汗!~~
我可能是没看明白.
因为你上面写的只有 11, 9 两台, 后面又多出了个12. 我哪知道你那12干什么的.
另外, 你也没把你系统配置写出来, 我也没法知道为什么你的 Cluster 会停下来.
汗,,没有12才对,是我的错,闷闷啊..
真难过!~
兄弟, 真想找人帮忙的话, 总得把信息给全吧.
现在别人连你的系统是什么情况都不知道, 怎么帮你呢?
你要写上 os, share-disk-mount-point, ip-address, raw, services 这些东西.
当然如果你很清楚就不用写上了. 不过, 看看 log 可能会知道为什么.
还有这种请教问题的,自以为了不起。想得到别人的帮助,就不要用这种说话语气。