如题,我用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"
mark赞赞!呃,,就这点内容,完了?
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。