为什么AS 4做集群的时候,只看到一个member?
[root@linux1 ~]# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
linux1 Online, Local, rgmanager
linux2 Offline
Service Name Owner (Last) State
------- ---- ----- ------ -----
httpd linux1 started
[root@linux2 ~]# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
linux1 Offline
linux2 Online, Local, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
httpd linux2 started
[root@linux1 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.28.201 linux1
10.0.0.1 cluster1
192.168.28.202 linux2
10.0.0.2 cluster2
[root@linux2 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.28.201 linux1
10.0.0.1 cluster1
192.168.28.202 linux2
10.0.0.2 cluster2
为什么我在集群里面只看到一个会员啊
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
等待!
cluster.conf文件不能随便改地?
我还是在Cluster manager里面看不到另外一台机器。
是不是AS 4做2点热备比较麻烦啊?
请求帮忙!
2节点的集群比较特别,因为DLM仲裁投票问题比较头疼,我看了一下你cluster。conf这个文件,是不是应该在前边加上一行
<cman expected_votes="1" two_node="1"/>
我对CS、GFS也是刚刚入门,希望不要误导LZ
在线等待!
两台机器的文件都是一样的:
[root@linux1 ~]# more /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster alias="zcb-cluster" config_version="8" name="alpha_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="linux1" votes="1">
<fence/>
</clusternode>
<clusternode name="linux2" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains>
<failoverdomain name="httpd" ordered="1" restricted="1">
<failoverdomainnode name="linux1" priority="1"/>
<failoverdomainnode name="linux2" priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<script file="/etc/rc.d/init.d/httpd" name="httpd"/>
<fs device="/dev/sdb1" force_fsck="1" force_unmount="1" fsid="6443"
fstype="ext3" mountpoint="/www" name="httpd-content" options="" self_fence="1"/>
<ip address="192.168.28.203" monitor_link="1"/>
</resources>
<service autostart="1" domain="httpd" name="httpd">
<script ref="httpd"/>
<fs ref="httpd-content"/>
<ip ref="192.168.28.203"/>
</service>
</rm>
</cluster>
[root@linux1 ~]#
这个节点名,我用的是主机名,如果不行我用机器的IP试一试?
3.7.2.1. Adding a Member to a Running Cluster That Contains Only Two Nodes
To add a member to an existing cluster that is currently in operation, and contains only two nodes, follow these steps:
Add the node and configure fencing for it as in
Section 3.7.1 Adding a Member to a Cluster.
Click Send to Cluster to propagate the updated configuration to other running nodes in the cluster.
Use the scp command to send the updated /etc/cluster/cluster.conf file from one of the existing cluster nodes to the new node.
At the Red Hat Cluster Suite management GUI Cluster Status Tool tab, disable each service listed under Services.
Stop the cluster software on the two running nodes by running the following commands at each node in this order:
service rgmanager stop
service gfs stop, if you are using Red Hat GFS
service clvmd stop
service fenced stop
service cman stop
service ccsd stop
Start cluster software on all cluster nodes (including the added one) by running the following commands in this order:
service ccsd start
service cman start
service fenced start
service clvmd start
service gfs start, if you are using Red Hat GFS
service rgmanager start
Start the Red Hat Cluster Suite management GUI. At the Cluster Configuration Tool tab, verify that the configuration is correct. At the Cluster Status Tool tab verify that the nodes and services are running as expected.
/etc/cluster/cluster.conf 文件两台一样吗?
我的Failover Domain是两台机器的机器名啊,linux1和linux2,两台机器都是这样设置的:
里面的设置如下:
Failover Domain:httpd
Member Node Priority
linux1 1
linux2 2
另外两个选项,我都勾上了
Restric Failover to this Domain Members
Prioritized List
两台机器都是这样的啊,为什么cluster管理里面,只有1个member了?
设定Failover Domain 时要把Node1与Node2都加入,默认只有一个成员!
[ 本帖最后由 yuan781010 于 2006-9-20 10:31 编辑 ]