欢迎阅读!

潇湘夜雨

当前位置: 主页 > 服务器 >

drbd+corosync+mysql(8)

时间:2016-09-27 09:44来源:潇湘夜雨 作者:华嵩阳 点击:
5、启动Corosync服务 [root@nod1 ~]# service corosync start Starting Corosync Cluster Engine (corosync): [ OK ] ######查看corosync引擎是否正常启动 [root@nod1 ~]# grep -e Corosync Cluster
5、启动Corosync服务
[root@nod1 ~]# service corosync start 
Starting Corosync Cluster Engine (corosync):              [  OK  ] 
######查看corosync引擎是否正常启动 
[root@nod1 ~]# grep -e "Corosync Cluster Engine" -e "configuration file" /var/log/cluster/corosync.log 
Sep 19 18:44:36 corosync [MAIN  ] Corosync Cluster Engine ('1.4.1'): started and ready to provide service. 
Sep 19 18:44:36 corosync [MAIN  ] Successfully read main configuration file '/etc/corosync/corosync.conf'. 
######查看启动过程是否产生错误信息;如下信息可以忽略 
[root@nod1 ~]# grep ERROR: /var/log/cluster/corosync.log 
Sep 19 18:44:36 corosync [pcmk  ] ERROR: process_ais_conf: You have configured a cluster using the Pacemaker plugin for Corosync. The plugin is not supported in this environment and will be removed very soon. 
Sep 19 18:44:36 corosync [pcmk  ] ERROR: process_ais_conf:  Please see Chapter 8 of 'Clusters from Scratch' (http://www.clusterlabs.org/doc) for details on using Pacemaker with CMAN 
######查看初始化成员节点通知是否正常发出 
[root@nod1 ~]# grep  TOTEM  /var/log/cluster/corosync.log 
Sep 19 18:44:36 corosync [TOTEM ] Initializing transport (UDP/IP Multicast). 
Sep 19 18:44:36 corosync [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0). 
Sep 19 18:44:36 corosync [TOTEM ] The network interface [172.16.14.1] is now up. 
Sep 19 18:44:36 corosync [TOTEM ] A processor joined or left the membership and a new membership was formed. 
######查看pacemaker是否正常启动 
[root@nod1 ~]# grep pcmk_startup /var/log/cluster/corosync.log 
Sep 19 18:44:36 corosync [pcmk  ] info: pcmk_startup: CRM: Initialized 
Sep 19 18:44:36 corosync [pcmk  ] Logging: Initialized pcmk_startup 
Sep 19 18:44:36 corosync [pcmk  ] info: pcmk_startup: Maximum core file size is: 18446744073709551615 
Sep 19 18:44:36 corosync [pcmk  ] info: pcmk_startup: Service: 9 
Sep 19 18:44:36 corosync [pcmk  ] info: pcmk_startup: Local hostname: nod1.allen.com
6、启动NOD2节点上Corosync服务
[root@nod1 ~]# ssh nod2 'service corosync start' 
Starting Corosync Cluster Engine (corosync): [  OK  ] 
######查看集群节点启动状态 
[root@nod1 ~]# crm status 
Last updated: Thu Sep 19 19:01:33 2013 
Last change: Thu Sep 19 18:49:09 2013 via crmd on nod1.allen.com 
Stack: classic openais (with plugin) 
Current DC: nod1.allen.com - partition with quorum 
Version: 1.1.8-7.el6-394e906 
2 Nodes configured, 2 expected votes 
0 Resources configured. 
Online: [ nod1.allen.com nod2.allen.com ] #两个节点都已正常启动
7、查看Corosync启动的相关进程
 
[root@nod1 ~]# ps auxf 
root    10336  0.3  1.2 556824  4940 ?        Ssl  18:44  0:04 corosync 
305      10342  0.0  1.7  87440  7076 ?        S    18:44  0:01  \_ /usr/libexec/pacemaker/cib
root    10343  0.0  0.8  81460  3220 ?        S    18:44  0:00  \_ /usr/libexec/pacemaker/stonit
root    10344  0.0  0.7  73088  2940 ?        S    18:44  0:00  \_ /usr/libexec/pacemaker/lrmd
305      10345  0.0  0.7  85736  3060 ?        S    18:44  0:00  \_ /usr/libexec/pacemaker/attrd
305      10346  0.0  4.7 116932 18812 ?        S    18:44  0:00  \_ /usr/libexec/pacemaker/pengin
305      10347  0.0  1.0 143736  4316 ?        S    18:44  0:00  \_ /usr/libexec/pacemaker/crmd
五、配置资源
1、Corosync默认启用了Stonith,而当前集群并没有相应的Stonith,会出现以下错误;需要禁用Stonith
[root@nod1 ~]# crm_verify -L -V  (责任编辑:liangzh)
织梦二维码生成器
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
栏目列表
推荐内容