[Pacemaker] Problems setting up clone resource syslog-ng - I need help
Senftleben, Stefan, ITSC
Stefan.Senftleben at ITSC.de
Wed Nov 17 10:22:19 UTC 2010
Hello everybody,
I need help in configuring a cluster resource for syslog-ng.
Could anybody give me a hint, what is wrong in the configuration?
After "crm resource start syslog-ng" the output of "crm_mon -f -1"
shows:
============
Last updated: Wed Nov 17 10:50:41 2010
Stack: openais
Current DC: lxds05 - partition with quorum
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
2 Nodes configured, 2 expected votes
6 Resources configured.
============
Online: [ lxds05 lxds07 ]
Master/Slave Set: ms_drbd
Masters: [ lxds05 ]
Slaves: [ lxds07 ]
Master/Slave Set: ms_drbd1
Masters: [ lxds05 ]
Slaves: [ lxds07 ]
Master/Slave Set: ms_drbd2
Masters: [ lxds05 ]
Slaves: [ lxds07 ]
Resource Group: nagios-group
fs_drbd (ocf::heartbeat:Filesystem): Started lxds05
fs_drbd1 (ocf::heartbeat:Filesystem): Started lxds05
fs_drbd2 (ocf::heartbeat:Filesystem): Started lxds05
ip1 (ocf::heartbeat:IPaddr2): Started lxds05
apache2 (ocf::heartbeat:apache): Started lxds05
nagios (ocf::naprax:nagios): Started lxds05
mailto (ocf::heartbeat:MailTo): Started lxds05
Clone Set: pingdclone
Started: [ lxds05 lxds07 ]
Migration summary:
* Node lxds05: pingd=400
* Node lxds07: pingd=400
Failed actions:
syslog-ng:0_monitor_0 (node=lxds05, call=283, rc=6,
status=complete): not configured
syslog-ng:0_monitor_0 (node=lxds07, call=117, rc=6,
status=complete): not configured
Following the output of "crm configure show":
########################################################################
############
node lxds05 \
attributes standby="off"
node lxds07 \
attributes standby="off"
primitive apache2 ocf:heartbeat:apache \
params configfile="/services/etc/apache2/apache2.conf"
httpd="/usr/sbin/apache2" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="240s" \
meta target-role="Started"
primitive drbd_disk ocf:linbit:drbd \
params drbd_resource="nagios" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive drbd_disk1 ocf:linbit:drbd \
params drbd_resource="pnp4nagios" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive drbd_disk2 ocf:linbit:drbd \
params drbd_resource="services" \
op monitor interval="20s" role="Slave" timeout="240s" \
op monitor interval="10s" role="Master" timeout="240s"
primitive fs_drbd ocf:heartbeat:Filesystem \
params device="/dev/drbd0" directory="/usr/local/nagios"
fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s"
primitive fs_drbd1 ocf:heartbeat:Filesystem \
params device="/dev/drbd1" directory="/usr/local/pnp4nagios"
fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s"
primitive fs_drbd2 ocf:heartbeat:Filesystem \
params device="/dev/drbd2" directory="/services/etc"
fstype="ext3" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="360s" \
meta target-role="Started"
primitive ip1 ocf:heartbeat:IPaddr2 \
params ip="192.168.1.112" nic="eth5" cidr_netmask="24" \
op monitor interval="10s" timeout="20s" \
meta target-role="Started"
primitive mailto ocf:heartbeat:MailTo \
params email="mail at domain.com" \
op monitor interval="10" timeout="10" depth="0" \
meta target-role="Started"
primitive nagios ocf:naprax:nagios \
params configfile="/usr/local/nagios/etc/nagios.cfg"
nagios="/usr/local/nagios/bin/nagios" \
op monitor interval="15s" \
op start interval="0" timeout="240s" \
op stop interval="0" timeout="240s" \
meta target-role="Started"
primitive pingd ocf:pacemaker:pingd \
params host_list="host1 host2 host3 host4" multiplier="100"
dampen="5s" \
op monitor interval="15s" timeout="5s"
primitive syslog-ng ocf:heartbeat:syslog-ng \
params configfile="/etc/syslog-ng/syslog-ng.conf"
syslog_ng_binary="/usr/sbin/syslog-ng" \
op monitor interval="60s" timeout="60s" depth="0"
group nagios-group fs_drbd fs_drbd1 fs_drbd2 ip1 apache2 nagios mailto \
meta target-role="Started"
ms ms_drbd drbd_disk \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true" target-role="Started"
ms ms_drbd1 drbd_disk1 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
ms ms_drbd2 drbd_disk2 \
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"
clone pingdclone pingd \
meta globally-unique="false" target-role="Started"
clone syslog-ng-clone syslog-ng \
meta globally-unique="false" target-role="Started"
location cli-prefer-ip1 nagios-group \
rule $id="cli-prefer-rule-ip1" inf: #uname eq lxds07 and #uname
eq lxds05
location nagios-group_on_connected_node nagios-group \
rule $id="pingd-rule" pingd: defined pingd
colocation drbd_on_disks inf: ms_drbd ms_drbd1 ms_drbd2 nagios-group
order mount_after_drbd inf: ms_drbd:promote nagios-group:start
order mount_after_drbd1 inf: ms_drbd1:promote nagios-group:start
order mount_after_drbd2 inf: ms_drbd2:promote nagios-group:start
property $id="cib-bootstrap-options" \
dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
cluster-infrastructure="openais" \
expected-quorum-votes="2" \
stonith-enabled="false" \
no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
resource-stickiness="100"
########################################################################
############
Regards
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101117/d9f3cf63/attachment-0001.html>
More information about the Pacemaker
mailing list