為什麼AS 4做集群的時候,只看到一個member?
# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
linux1 Online, Local, rgmanager
linux2 Offline
Service Name Owner (Last) State
------- ---- ----- ------ -----
httpd linux1 started
# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
linux1 Offline
linux2 Online, Local, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
httpd linux2 started
# 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
# 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
為什麼我在集群裡面只看到一個會員啊
《解決方案》
設定Failover Domain 時要把Node1與Node2都加入,默認只有一個成員!
[ 本帖最後由 yuan781010 於 2006-9-20 10:31 編輯 ]
《解決方案》
我的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了?
《解決方案》
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 文件兩台一樣嗎?
《解決方案》
兩台機器的文件都是一樣的:
# 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>
#
這個節點名,我用的是主機名,如果不行我用機器的IP試一試?
《解決方案》
在線等待!
《解決方案》
2節點的集群比較特別,因為DLM仲裁投票問題比較頭疼,我看了一下你cluster。conf這個文件,是不是應該在前邊加上一行
<cman expected_votes="1" two_node="1"/>
我對CS、GFS也是剛剛入門,希望不要誤導LZ
《解決方案》
cluster.conf文件不能隨便改地?
我還是在Cluster manager裡面看不到另外一台機器。
是不是AS 4做2點熱備比較麻煩啊?
請求幫忙!
《解決方案》
等待!