Cluster

redhat 集群故障轉移不工作(corosync噸OT_和米噸這噸和米TOTEM轉發列表)

  • August 28, 2014

我正在使用以下內容:

[root@kpdbm01 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.5 (Santiago)
[root@kpdbm01 ~]# uname -a
Linux kpdbm01 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@kpdbm01 ~]# rpm -q rgmanager cman corosync ricci 
rgmanager-3.0.12.1-19.el6.x86_64
cman-3.0.12.1-59.el6_5.2.x86_64
corosync-1.4.1-17.el6_5.1.x86_64
ricci-0.16.2-69.el6_5.1.x86_64
[root@kpdbm01 ~]# 

我正在嘗試使用clusvcadmto Disable//但無論我最終得到什麼EnableRelocate <group>Failure

我看到很多消息,例如以下內容/var/log/cluster/corosync.log

Aug 27 19:14:57 corosync [TOTEM ] Retransmit List: 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 

這是/var/log/cluster/rgmanager.log我嘗試時的輸出Disable PR_MYSQL1

Aug 27 19:18:31 rgmanager Stopping service service:PR_MYSQL1
Aug 27 19:19:02 rgmanager #52: Failed changing RG status
Aug 27 19:19:02 rgmanager [fs] Checking fs "FS_D", Level 20
Aug 27 19:19:02 rgmanager [fs] Checking fs "FS_L", Level 20
Aug 27 19:19:02 rgmanager [fs] Checking fs "FS_B", Level 20
Aug 27 19:19:02 rgmanager [ip] Checking 192.168.52.34/24, Level 10
Aug 27 19:19:02 rgmanager [ip] 192.168.52.34/24 present on eth0
Aug 27 19:19:02 rgmanager [ip] Link for eth0: Detected
Aug 27 19:19:02 rgmanager [ip] Link detected on eth0
Aug 27 19:19:02 rgmanager [ip] Local ping to 192.168.52.34 succeeded
Aug 27 19:19:02 rgmanager [mysql] Verifying Configuration Of mysql:PR_DB
Aug 27 19:19:02 rgmanager [mysql] Verifying Configuration Of mysql:PR_DB > Succeed
Aug 27 19:19:02 rgmanager [mysql] Monitoring Service mysql:PR_DB
Aug 27 19:19:02 rgmanager [mysql] Monitoring Service mysql:PR_DB > Service Is Running
Aug 27 19:19:05 rgmanager [fs] Checking fs "FS_D", Level 10
Aug 27 19:19:05 rgmanager [fs] Checking fs "FS_L", Level 10
Aug 27 19:19:05 rgmanager [fs] Checking fs "FS_B", Level 10
Aug 27 19:19:05 rgmanager [ip] Checking 192.168.52.34/24, Level 0
Aug 27 19:19:05 rgmanager [ip] 192.168.52.34/24 present on eth0
Aug 27 19:19:05 rgmanager [ip] Link for eth0: Detected
Aug 27 19:19:05 rgmanager [ip] Link detected on eth0

這裡是輸出clustat

[root@kpdbm02 ~]# clustat 
Cluster Status for db_prod1 @ Wed Aug 27 19:16:15 2014
Member Status: Quorate

Member Name                                                     ID   Status
------ ----                                                     ---- ------
kpdbm01-224                                                         1 Online, rgmanager
kpdbm02-224                                                         2 Online, Local, rgmanager

Service Name                                                     Owner (Last)                                                     State         
------- ----                                                     ----- ------                                                     -----         
service:PR_MYSQL1                                                kpdbm02-224                                                      started       
[root@kpdbm02 ~]# 

有什麼想法有什麼問題嗎?以及我該如何解決?

作為解決通信困難的工作,將集群通信從預設的多播更改為單播:

<   <cman expected_votes="1" two_node="1"/>
---
>   <cman expected_votes="1" two_node="1" transport="udpu"/>

引用自:https://serverfault.com/questions/624597