1. 程式人生 > >heartbeat常見錯誤排查解決方法

heartbeat常見錯誤排查解決方法

錯誤一:

[[email protected] ha.d 11:55:37]#service heartbeat start

Starting High-Availability services: INFO:  Resource is stopped

 Heartbeat failure [rc=6]. Failed.

heartbeat: udpport setting must precede media statementsheartbeat[2299]: 2016/10/18_11:55:43 ERROR: Client child command [/usr/lib/heartbeat/ipfail] is not executable

heartbeat[2299]: 2016/10/18_11:55:43 ERROR: Heartbeat not started: configuration error.

heartbeat[2299]: 2016/10/18_11:55:43 ERROR: Configuration error, heartbeat not started.

解決方法

#vim /etc/ha.d/ha.cf   將 respawn hacluster /usr/lib/heartbeat/ipfail 改成 respawn hacluster /usr/lib/heartbeat/ipfail    //系統是64位的,所以路徑應該在/usr/lib64/目錄

錯誤二:

[[email protected] ha.d 12:01:03]#service heartbeat start

Starting High-Availability services: INFO:  Resource is stopped

 Heartbeat failure [rc=6]. Failed.

heartbeat: udpport setting must precede media statementsheartbeat[2464]: 2016/10/18_12:01:59 ERROR: Missing auth directive in keyfile [/etc/ha.d//authkeys]

heartbeat[2464]: 2016/10/18_12:01:59 ERROR: Authentication configuration error.

heartbeat[2464]: 2016/10/18_12:01:59 ERROR: Configuration error, heartbeat not started.

解決方法

#vim /etc/ha.d/authkeys

3 md5 Hello!

auth 3

3 md5 Hello!

錯誤三:

[[email protected] ha.d 13:44:32]#service heartbeat start

Starting High-Availability services: INFO: Resource is stopped

Heartbeat failure [rc=6]. Failed.

heartbeat: udpport setting must precede media statementsheartbeat: baudrate setting must precede media statementsheartbeat[2641]: 2016/10/18_13:44:36 info: Pacemaker support: false

heartbeat[2641]: 2016/10/18_13:44:36 ERROR: Current node [snale2.localdomain] not in configuration!

heartbeat[2641]: 2016/10/18_13:44:36 info: By default, cluster nodes are named by `uname -n` and must be declared with a 'node' directive in the ha.cf file.

heartbeat[2641]: 2016/10/18_13:44:36 info: See also: http://linux-ha.org/wiki/Ha.cf#node_directive

heartbeat[2641]: 2016/10/18_13:44:36 WARN: Logging daemon is disabled --enabling logging daemon is recommended

heartbeat[2641]: 2016/10/18_13:44:36 ERROR: Configuration error, heartbeat not started.

錯誤原因:在ha.cf配置中 node snale2 與 uname -n  得出的結果snale2.localdomain不一致,改成一直即可。


相關推薦

heartbeat常見錯誤排查解決方法

錯誤一: [[email protected] ha.d 11:55:37]#service heartbeat start Starting High-Availability services: INFO:  Resource is stopped  Hea

web程序常見錯誤解決方法

開始 個數字 ice 依據 文件中 方法參數 500錯誤 程序 運行 404錯誤產生原因及解決方法 在剛開始進行Web應用開發的時候,經常看見頁面出現404這個數字,我們一般會稱之為運行產生了404錯誤。類似於404這個數字,還有可能在頁面上看到405、500這兩個數字,他

jenkins 常見錯誤解決方法整理

ref 令行 follow ESS tro windows ins 常見錯誤 以管理員身份運行 現象 WMI.WmiException:AccessDenied 解決方法: 以管理員身份運行 cmd 命令行 jenkins-slave install jenkins

rsync 常見錯誤解決方法整理

pin acc ctrl 不可 管理員 rsync配置 nta onf 開啟 由於我們經常使用rsync進行服務器文件的同步工作,但在配置過程中,會出現很多問題,下面的錯誤基本上都是通過客戶端返回的錯誤進行分析我們都是通過錯誤日誌查看在rsyncd.log裏面或.err文件

ENVI FLAASH大氣校正常見錯誤解決方法(轉載)

ENVI FLAASH大氣校正常見錯誤及解決方法(轉載) 本文彙總了ENVI FLAASH大氣校正模組中常見的錯誤,並給出解決方法,分為兩部分:執行錯誤和結果錯誤。前面是錯誤提示及說明,後面是錯誤解釋及解決方法。 FLAASH對輸入資料型別有以下幾個要

nginx常見錯誤解決方法

nginx: [error] open() “/var/run/nginx.pid” failed (2: No such file or directory) 今天修改了下nginx配置,重新載入配置檔案的時候報瞭如下錯誤 [root@renguangli ~]# nginx

ABAP--關於Unicode的常見錯誤解決方法

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

java中在使用類時的一些常見錯誤解決方法

關於java中類的一些常見錯誤及解決方法 1.定義了一個主類,如 public class TestCircle{//此時這裡會顯示“class TestCircle”has never been used“ public void main(String[] args){…}; class

Linux下編譯PHP常見錯誤解決方法

locate freetype evel distrib 常見 expec fin install erro 1、configure: error: xml2-config not found. Please check your libxml2 installation.

loadrunner執行場景時,常見錯誤解決方法

目錄   1、Error -27727:.3 2、Error -27728:.3 3、Error -27791:.3 4、Error -27492:.4 5、Error -27498:.4 6、Error -26612:.4

mysql主從同步常見錯誤以及解決方法總結

前言 在發生故障切換後,經常遇到的問題就是同步報錯,資料庫很小的時候,dump完再匯入很簡單就處理好了,但線上的資料庫都150G-200G,如果用單純的這種方法,成本太高,故經過一段時間的摸索,總結了幾種處理方法。 生產環境架構圖 目前現網的架構,儲存著兩份資料,通過非同步複製做的高可用叢集,

LR執行場景時,21種常見錯誤解決方法

1、Error -27727: Step download timeout (120 seconds)has expired when downloading resource(s). Set the“Resource Page Timeout is a Wa

HTML三大選擇器的使用和命名方式,優先順序,以及選擇器中常見錯誤解決方法

HTML中的三大選擇器1.標籤選擇器:使用標籤的名稱作為選擇器,選中標籤設定樣式, 特點:可以選中多個標籤,給一堆標籤同時設定樣式書寫方式 標籤名{ 樣式 }2.類選擇器:在標籤中利用class屬性設

Android 常見錯誤以及解決方法

01、 解決方案: Gradle的一個Bug,解決辦法是,刪除專案根目錄的.gradle資料夾,然後Clean ,Rebulid。  02、git 提交程式碼無法提交問題 Unable to create 'D:/work/******/.git/index.lo

hibernate常見錯誤解決方法總結

1、org.hibernate.PropertyNotFoundException: field [cid] not found on org.sihai.shop.categorySecond.Cat

初學Maven常見錯誤解決方法

一、匯入新maven專案後,pom.xml可能出現以下情況:     Cannot upgrade/downgrade to Dynamic Web Module 3.0 facet. It is incompatibile with already installed f

jsp常見錯誤解決方法

僅供參考 1 臨時應答1xx 臨時應答,也就是訊息性質的應答,標誌了對方伺服器正在處理請求,並且還沒有決定最後的應答。如果伺服器處理請求需要花200ms以上才能產生終結應答的時候,它應當傳送一個1xx應答。注意1xx應答並不是可靠傳輸的。他們不會導致客戶端傳送一個ACK應答

JPA系列--JPA部署階段常見錯誤解決方法(持續更新)

錯誤一:javax.persistence.PersistenceException: Unable to locate persistence units問題 1.問題詳述 1.1 persistence.xml配置檔案 <?xml versi

Ubuntu 常見錯誤解決方法——長期不定時更新

1. 修復 /etc/sudoers 檔案損壞導致不能使用 sudo 命令 這是之前錯誤地編輯了 /etc/sudoers 這個檔案導致的,因此撤銷編輯即可,但由於已經不能使用 sudo 命令,因此不

Android 開發常見錯誤解決方法集錦

                                                 作者:段興               2014-5-24 1    DescriptionThe container 'Android Dependencies' refe