歡迎您光臨本站 註冊首頁

RHCS 4實驗失敗..放上配置文件和錯誤現象,菜鳥請教大大們

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

RHCS 4實驗失敗..放上配置文件和錯誤現象,菜鳥請教大大們

用虛擬機做的兩台RHAS 4.4的系統.安裝了RHCS4 配置好了HA..資源只設置了浮動IP和一個共享磁碟/dev/sdb1,掛接點為/oracle(為以後做ORACLE切換建立的).配置好HA.重起.在主機上IP和/ORACLE都OK了。然後我把主機斷掉,備機上還是顯示服務STOP的...........主機資源沒有釋放..等主機再次啟動,兩資源還都在主機上。....重起機器發現系統在啟動cman服務是顯示是警告???!!何解~


最奇怪的就是同樣的系統。同樣的常數配置
用DLM配置..CMAN啟動就是失敗.進不了CLUSTER 管理界面..
用GULM配置.CMAN啟動就是警告,資源起在主機,但不釋放資源.只能手動切換資源到主備機...


用GULM配置時,現象是CMAN啟動失敗。進不了CLUSTER MANAGER管理頁面:
<?xml version="1.0" ?>
<cluster alias="test" config_version="5" name="new_cluster">
<fence_daemon post_fail_delay="5" post_join_delay="3"/>
<clusternodes>
<clusternode name="linux01" votes="1">
<fence>
<method name="1">
<device name="test1" nodename="linux01"/>
</method>
</fence>
</clusternode>
<clusternode name="linux02" votes="1">
<fence>
<method name="1">
<device name="test2" nodename="linux02"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="test1"/>
<fencedevice agent="fence_manual" name="test2"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="test" ordered="1" restricted="1">
<failoverdomainnode name="linux01" priority="1"/>
<failoverdomainnode name="linux02" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<fs device="/dev/sdb1" force_fsck="0" force_unmount="0" fsid="32268" fstype="ext3" mountpoint="/oracle" name="test" options="" self_fence="0"/>
<ip address="192.168.5.200" monitor_link="1"/>
</resources>
<service autostart="1" domain="test" name="test">
<fs ref="test"/>
<ip ref="192.168.5.200"/>
</service>
</rm>
</cluster>



這是用DLM配置的時候。表現為CMAN啟動為警告。但資源和服務都可以正常啟動在主機上。但主機斷掉。服務和資源不能自動切換到備機上。手動切換OK

<?xml version="1.0" ?>
<cluster alias="test" config_version="2" name="new_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="linux01" votes="1">
<fence/>
</clusternode>
<clusternode name="linux02" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="test01"/>
<fencedevice agent="fence_manual" name="test02"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="test" ordered="1" restricted="1">
<failoverdomainnode name="linux01" priority="1"/>
<failoverdomainnode name="linux02" priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.5.200" monitor_link="1"/>
<fs device="/dev/sdb1" force_fsck="0" force_unmount="0" fsid="32268" fstype="ext3" mountpoint="/oracle" name="test" options="" self_fence="0"/>
</resources>
<service autostart="1" domain="test" name="test">
<ip ref="192.168.5.200"/>
<fs ref="test"/>
</service>
</rm>
</cluster>
《解決方案》

哥們,關於那個 cluster.conf 的資料哪裡有比較全的。。
比man 全就行。:(
《解決方案》

共享磁碟的文件要改一下。你可以搜一搜前人的用vmware做雙機的文章。
《解決方案》

估計是操作系統的版本與RHCS的版本不對應造成的.我原來也是有過這樣的錯誤(我原來也是安裝AS4.4並  但使用RHCS 4.5出的問題.).

[ 本帖最後由 fzhwind 於 2007-9-20 23:29 編輯 ]

[火星人 ] RHCS 4實驗失敗..放上配置文件和錯誤現象,菜鳥請教大大們已經有416次圍觀

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