歡迎您光臨本站 註冊首頁

rhel5.3雙機使用GFS出錯:two_node set but there are more than 2 nodes

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

rhel5.3雙機使用GFS出錯:two_node set but there are more than 2 nodes

兩台伺服器,共享磁碟陣列的一個lun,我用gfs文件系統,但是安裝完相關的軟體,做了設置之後,啟動cman出錯:
# /etc/init.d/cman start
Starting cluster:
   Loading modules... done
   Mounting configfs... done
   Starting ccsd... done
   Starting cman... failed
cman not started: two_node set but there are more than 2 nodes /usr/sbin/cman_tool: aisexec daemon didn't start
                                                           [失敗]


我的cluster.conf:



<?xml version="1.0" ?>
<cluster config_version="2" name="media">
        <fence_daemon post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="media1" nodeid="1" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="media" nodename="media1"/>
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="media2" nodeid="2" votes="2">
                        <fence>
                                <method name="1">
                                        <device name="media" nodename="media2"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="1" two_node="1"/>
        <fencedevices>
                <fencedevice agent="fence_manual" name="media"/>
        </fencedevices>
        <rm>
                <failoverdomains/>
                <resources/>
        </rm>
</cluster>





/etc/hosts內容:


# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1                media1 localhost.localdomain localhost
#::1                localhost6.localdomain6 localhost6
192.168.10.250        media2
192.168.10.253        media1





google了半天,沒找到這方面的說明,請各位指點一下,謝謝!
《解決方案》

不知道哪裡出問題了
《解決方案》

回復 #2 sunowy 的帖子

http://blog.chinaunix.net/u1/40226/showart_2050414.html  

我之前做過實驗了  你看一下,不知道是否能給你幫助。
《解決方案》

把/etc/hosts中
127.0.0.1                media1 localhost.localdomain localhost
這行的media1去掉試試
《解決方案》

回復 4# l_penny


    有道理
《解決方案》

/etc/hosts 光那樣設置不行吧,看樣子是你的public網路,你的走心跳的private網路了?
《解決方案》

http://xunion.ledu.com/serv/xunion.php?ucode=95&subucode=01
http://fmn.rrimg.com/fmn061/20110927/1035/large_Csgt_556a000019341266.jpg

[火星人 ] rhel5.3雙機使用GFS出錯:two_node set but there are more than 2 nodes已經有774次圍觀

http://coctec.com/docs/service/show-post-4852.html