歡迎您光臨本站 註冊首頁

heartbeat 問題!

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

heartbeat 問題!

:em02: 我在VM上做的.主伺服器和備份伺服器啟動都沒有問題.可是主伺服器資料啟不來.當強制關閉主伺服器后,
可自動轉到備份.這是為什麼?
還有就是在執行service heartbeat stop 后.出現stopping high-availability services就沒反應了.
《解決方案》

原帖由 heweidimin 於 2007-7-28 10:32 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
:em02: 我在VM上做的.主伺服器和備份伺服器啟動都沒有問題.可是主伺服器資料啟不來.當強制關閉主伺服器后,
可自動轉到備份.這是為什麼?
還有就是在執行service heartbeat stop 后.出現stopping high-availabi ...


:em14: :em06: 主伺服器資料啟不來,是啥意思?
《解決方案》

呵呵.小弟大意!

主伺服器資源起不來.備份的可以!
《解決方案》

原帖由 heweidimin 於 2007-7-28 21:14 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
呵呵.小弟大意!

主伺服器資源起不來.備份的可以!


:em06: 你是heartbeat 2.0 上以版本?我也剛接觸,你是指在cluster ip上的apache服務啟不來,還是eth0:0啟不來?資源起不來,我還是不明白啊
《解決方案》

我的是1.2的.是cluster ip上的apache服務啟不來.
還有就是手動停止服務無效(service heartbeat stop)長時間等待無反應
《解決方案》

原帖由 heweidimin 於 2007-7-29 14:13 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
我的是1.2的.是cluster ip上的apache服務啟不來.
還有就是手動停止服務無效(service heartbeat stop)長時間等待無反應

那是你ha.d/haresources中沒配置對。

linuxha1.linux-ha.org 192.168.85.3 httpd
你看你/etc/init.d/下和apache有前的啟動文件名是什麼?我的是 apache,所以你要把上面的的httpd改成apache.
或者直接寫個linuxha1.linux-ha.org 192.168.85.3
這樣只有節點1死機后,才會切換到節點2。因沒有指定服務名,所以某個服務死掉后不會切換到節點2。

(或許在進程里看apache的進程名是什麼,這個官方沒有說,但推測應該是這樣的。)


官方文檔這樣說的:

Note: httpd and smb are the name of startup scripts for Apache and Samba, respectively. Heartbeat will look for startup scripts of the same name in the following paths:

/etc/ha.d/resource.d
/etc/init.d

These scripts must start services via "scriptname start" and stop them via "scriptname stop". So you can use any services as long as they conform to the above standard.

Should you need to pass arguments to a custom script, the format would be:

scriptname::argument

官方文檔
http://linux-ha.org/GettingStarted

另給個建議,在技術論壇上描述問題盡量用技術用語,標準的技術用語。避免大量無效的溝通。如你多次講資源啟不起來,資料啟不來,很讓人費解。你直接說apache在cluster ip上啟不來,這樣人一下就明白了。

[ 本帖最後由 qintel 於 2007-7-29 19:39 編輯 ]
《解決方案》

linuxha1.linux-ha.org 192.168.85.3 httpd::start這樣就可以了。
我備份伺服器上直接linuxha1.linux-ha.org 192.168.85.3 httpd就可以的!

[火星人 ] heartbeat 問題!已經有383次圍觀

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