[Pacemaker] Problems setting up clone resource syslog-ng - I need help

Dan Frincu dfrincu at streamwide.ro
Wed Nov 17 07:16:15 EST 2010


Hi,

Senftleben, Stefan, ITSC wrote:
> Hi,
>
> okay, these infos I found in syslog. But no lrmd-log entries canbe found.
>
>
> root at lxds05:~# cat /var/log/syslog|grep pengi|grep syslog
> Nov 17 12:47:22 lxds05 pengine: [1089]: ERROR: unpack_rsc_op: Hard error - syslog-ng:0_monitor_0 failed with rc=6: Preventing syslog-ng-clone from re-starting anywhere in the cluster
> Nov 17 12:47:22 lxds05 pengine: [1089]: ERROR: unpack_rsc_op: Hard error - syslog-ng:0_monitor_0 failed with rc=6: Preventing syslog-ng-clone from re-starting anywhere in the cluster
> Nov 17 12:47:22 lxds05 pengine: [1089]: notice: clone_print:  Clone Set: syslog-ng-clone
> Nov 17 12:47:22 lxds05 pengine: [1089]: notice: short_print:      Stopped: [ syslog-ng:0 syslog-ng:1 ]
> Nov 17 12:47:22 lxds05 pengine: [1089]: info: native_color: Resource syslog-ng:0 cannot run anywhere
> Nov 17 12:47:22 lxds05 pengine: [1089]: info: native_color: Resource syslog-ng:1 cannot run anywhere
> Nov 17 12:47:22 lxds05 pengine: [1089]: notice: LogActions: Leave resource syslog-ng:0  (Stopped)
> Nov 17 12:47:22 lxds05 pengine: [1089]: notice: LogActions: Leave resource syslog-ng:1  (Stopped)
> Nov 17 12:48:00 lxds05 pengine: [1089]: ERROR: unpack_rsc_op: Hard error - syslog-ng:0_monitor_0 failed with rc=6: Preventing syslog-ng-clone from re-starting anywhere in the cluster
>
>
> Question: 
> 	I executed following commands in /usr/lib/ocf/resource.d/heartbeat/ :
> OCF_ROOT=/usr/lib/ocf
> OCF_FUNCTIONS_DIR=${OCF_ROOT}/resource.d/heartbeat
>   
"export OCF_ROOT=/usr/lib/ocf" => you need to set the variable in such a 
way that it will be available for the processes you run in that shell 
from that moment on, you do this by exporting the variable with the 
previous command. Same goes for the OCF_FUNCTIONS_DIR.
> 	
> 	Executing the RA manually:
> root at lxds05:/usr/lib/ocf/resource.d/heartbeat# ./syslog-ng
> ./syslog-ng: Zeile 27: /resource.d/heartbeat/.ocf-shellfuncs: No such file or directory
> ./syslog-ng: Zeile 216: ocf_log: Kommando nicht gefunden.
>
> What command is needed to run the RA manually?
>
> Thanks
> Stefan
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Dejan Muhamedagic [mailto:dejanmm at fastmail.fm] 
> Gesendet: Mittwoch, 17. November 2010 12:39
> An: The Pacemaker cluster resource manager
> Betreff: Re: [Pacemaker] Problems setting up clone resource syslog-ng - I need help
>
> Hi,
>
> On Wed, Nov 17, 2010 at 11:22:19AM +0100, Senftleben, Stefan, ITSC wrote:
>   
>> 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
>>     
>
> The resource agent doesn't like the configuration you provided.
> You'll have to look at the logs to see what's wrong. Look for messages from the RA (syslog-ng) and lrmd.
>
> Thanks,
>
> Dejan
>
>   
>> 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
>>     
>
>   
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org 
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org Getting started: 
>> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: 
>> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacema
>> ker
>>     
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>   

-- 
Dan FRINCU
Systems Engineer
CCNA, RHCE
Streamwide Romania

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101117/17f8adf1/attachment-0001.html>


More information about the Pacemaker mailing list