开发者社区> 问答> 正文

pacemaker+heartbeat+drbd+apache+mysql+za?报错

如题,我用pacemaker+heartbeat+drbd+apache+mysql+zabbix搭建了一套zabbix的HA系统,

heartbeat开启后,正常的顺序应该如下:

group zabbix res_mount res_mount_mysql res_ip res_srcaddr res_httpd res_mysqld res_zabbix_server

但每当我手动启动heartbeat(/etc/init.d/heartbeat start)时,会发现zabbix_server会先在node1和node2上分别运行一下,然后关闭,最后再按group的正常顺序启动。系统运行一切正常,知识node2上的message里会有pacemaker的报错,如下:

Nov 19 09:33:28 V00ZAB2P pengine: [6987]: ERROR: native_add_running: Resource lsb::zabbix_server:res_zabbix_server appears to be active on 2 nodes.
Nov 19 09:33:28 V00ZAB2P pengine: [6987]: ERROR: process_pe_message: Transition 1: ERRORs found during PE processing. PEngine Input stored in: /var/lib/pengine/pe-error-15.bz2

以下是我的crm 配置信息:

node $id="55b6dea8-4ef8-4e18-aad7-dc74a35fb390" v00zab2p
node $id="f38c3ad1-e01e-4399-9493-69ba34e77789" v00zab1p
primitive res_drbd_r0 ocf:linbit:drbd \
        params drbd_resource="r0" \
        op monitor interval="20" role="Slave" timeout="20" \
        op monitor interval="10" role="Master" timeout="20" \
        op start interval="0" timeout="240" \
        op stop interval="0" timeout="100"
primitive res_httpd ocf💓apache \
        params configfile="/etc/httpd/conf/httpd.conf" \
        op start interval="0" timeout="40" \
        op stop interval="0" timeout="120" \
        op monitor interval="30" timeout="30"
primitive res_ip ocf💓IPaddr2 \
        params ip="172.45.200.202" cidr_netmask="24" \
        op monitor interval="50" timeout="30"
primitive res_mount ocf💓Filesystem \
        params device="/dev/drbd0" fstype="ext4" directory="/drbd" options="noatime" \
        op monitor interval="10" timeout="60" \
        op start interval="0" timeout="60" \
        op stop interval="0" timeout="60"
primitive res_mount_mysql ocf💓Filesystem \
        params device="/drbd/mysql" fstype="ext4" directory="/var/lib/mysql" options="bind,noatime" \
        op monitor interval="10" timeout="60" \
        op start interval="0" timeout="60" \
        op stop interval="0" timeout="60"
primitive res_mysqld ocf💓mysql \
        params binary="/usr/bin/mysqld_safe" pid="/var/run/mysqld/mysqld.pid" \
        op start interval="0" timeout="120" \
        op stop interval="0" timeout="120" \
        op monitor interval="30" timeout="30"
primitive res_srcaddr ocf💓IPsrcaddr \
        params ipaddress="172.45.200.202" \
        op monitor interval="50" timeout="30"
primitive res_zabbix_server lsb:zabbix_server \
        op monitor interval="30" timeout="30" \
        op start interval="0" timeout="30" \
        op stop interval="0" timeout="120"
group zabbix res_mount res_mount_mysql res_ip res_srcaddr res_httpd res_mysqld res_zabbix_server
ms ms_drbd_r0 res_drbd_r0 \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
location l_zabbix zabbix 100: v00zab1p
colocation c_zabbix inf: zabbix ms_drbd_r0:Master
order o_zabbix inf: ms_drbd_r0:promote zabbix:start
property $id="cib-bootstrap-options" \
        dc-version="1.0.12-066152e" \
        cluster-infrastructure="Heartbeat" \
        default-resource-stickiness="200" \
        no-quorum-policy="ignore" \
        stonith-enabled="false"

展开
收起
爱吃鱼的程序员 2020-06-10 10:55:06 523 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    mark赞赞!呃,,就这点内容,完了?

    2020-06-10 10:55:22
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像