首頁 資訊 How to do health check of RHCS

How to do health check of RHCS

來源:泰然健康網(wǎng) 時間:2024年12月19日 11:37

?著作權(quán)歸作者所有:來自51CTO博客作者老衲不宅的原創(chuàng)作品,請聯(lián)系作者獲取轉(zhuǎn)載授權(quán),否則將追究法律責(zé)任

1. If you use gfs, then you may use following command to see if the list output and df output are the same on all the nodes, e.g:

#gfs_tool list
#gfs_tool df


2. And for RHCS services, you may using following command to see if all the nodes in normal status,e.g:

# clustat
# cman_tool status


3. To check failover function works or not, there are two level failover you may need to check: service level, node level,
most of time you may focus on the service level(you business logic) failover:

3.1 for service level failover, you  unplug the virtual IP network to provide cluster services (business logic) and to see if the service can migrate to other nodes

Note:
before you test the service level failover, you may try to test if you can manually migrate the server from one node to another node, e.g:
# clusvcadm -r service -m other_node

3.2 for node level failover,  you can try fencing function works in your cluster or not, at last, you may unplug the heartbeat network which used to communicate among nodes to see if the node can be rebooted, e.g:

1) Test by fence agent without cman/cluster.conf configured

# fence_xxxx -a <ipaddress> -l <username> -p <password>

The default action will reboot the other node, use "-o status" will not reboot.

2) Test fence while cman is started

# fence_node <node_name>

3) Test fence by cutting down the heartbeat network

Note:
1. ideally the RHCS could separate this three network to different NIC. If you use only one NIC, then all the failover test described here cannot be done
2. the heartbeat network is the one used to communicate with other nodes in the cluster, it don't specified in configuration file,
RHCS use the corresponding IP address for the hostname to communicate with the other nodes in the cluster, if fencing network and heartbeat network are setup on the same NIC,
unplug the heartbeat network cable cannot cause the node reboot.

收藏 評論 舉報

相關(guān)知識

Stress and Distress During Pregnancy: How to Protect Both Mother and Child
As we all know, smoking is harmful to one's health . =As is known to all, smoking is harmful to o——青夏教育精英家教網(wǎng)——
Pregnant women: addressing maternal mental health in Africa
運動與健康(Sport and health)
The Health Benefits of Dietary Fibre
健康的生活方式英語作文(精選20篇)
十大創(chuàng)新技術(shù)將變革醫(yī)學(xué)健康模式
健康的生活方式英語作文(精選16篇)
System construction of international health impact assessment: From policy to legal status
健康飲食的英語作文及翻譯(通用16篇)

網(wǎng)址: How to do health check of RHCS http://www.u1s5d6.cn/newsview645786.html

推薦資訊