antony@notes:~/suse$ cat "Basic-HA-Troubleshooting.md"
Basic HA Troubleshooting
Basic HA Troubleshooting
Preface
本篇文章會主要會介紹在 SLE HAE v15 上如何進行基本的故障修復
可以透過點擊以下目錄,選擇想看的內容,跳轉至特定章節
:::warning
:::spoiler {state=“open”} 目錄
[TOC]
:::
General Troubleshooting
- Cluster nodes are SLE 15 servers
- Standard SLE troubleshooting techniques and tools can be used
- Check the basics:
- 時間有沒有校時
- 名稱解析
- Monitor bonded network interfaces
- The system may be using its last working interface
- A cluster is inherently less stable than a single server:
- It is running SBD/Watchdog and could self fence
- Other nodes are monitoring it with the intention of shooting it
Maintanance Tasks
- The following tasks will enable you to potentially catch a potential problem early
- Perform regular health checks
- Follow documented procedures to clean up after a failure
- Using Maintanance mode
- Manage logs
- Patching nodes
Command Line Troubleshooting Tools
Clean up after Resouce Failures
當 resource 失敗達到叢集屬性 migration-threshold 指定的次數時,它將被遷移到不同的節點
- 將為失敗的節點建立一個
-INFINITY的分數 - To display the scores:
crm resource scores- 請記住,分數也會被 constraints 設定
- To view constraints:
- crm resources constraints
<resouce-name>
- crm resources constraints
- Before cleaning up resources:
- 調查問題原因
- 尋找解決方案
- 解決問題
如果要通知叢集可以再次在該節點上執行資源:
crm resource cleanup <resource-name> [node]- 可以提供一個可選的節點參數,以便僅在該節點上執行 cleanup 程序。
- 如果未指定可選節點,則會清除所有節點上資源的 fail counts ( 失敗計數 ) 和 negative scores ( 負分數 )