[Pacemaker] the behavior of clone resource

Junko IKEDA ikedaj at intellilink.co.jp
Wed Mar 17 21:34:28 EDT 2010


Hi Dejan,

Thank you for your advice,

I removed /usr/etc/logd.cf first,
and set use_logd off in corosync.conf.

logging setting in corosync.conf is here,

logging {
         fileline: on
         to_syslog: yes
         syslog_facility: local1
         syslog_priority: debug
         debug: on
         timestamp: on
}

so, the log message from corosync and pacemaker would be gathered by  
syslogd,
and I could get /var/log/messages from all nodes using hb_report.
It depended on my setting.
Sorry to bother you.
Thanks a lot!

Regards,
Junko


On Tue, 16 Mar 2010 23:54:51 +0900, Dejan Muhamedagic  
<dejanmm at fastmail.fm> wrote:

> On Tue, Mar 16, 2010 at 03:01:40PM +0100, Dejan Muhamedagic wrote:
>> Hi Junko-san,
>>
>> On Tue, Mar 16, 2010 at 10:45:22PM +0900, Junko IKEDA wrote:
>> > Hi Dejan,
>> >
>> > Thanks for your reply.
>> > output with -v is here;
>> >
>> > # hb_report -v -D -C -f 22:28 -u root /root/ikedaj/logs/trac1068
>> > cspm01: DEBUG: this is OpenAIS cluster stack
>> > cspm01: DEBUG: reading log settings from /usr/etc/logd.cf
>> > cspm01: DEBUG: log settings: facility= logfile=/var/log/ha-log
>> > debugfile=/var/log/ha-debug
>> > cspm01: DEBUG: querying CRM for nodes
>> > cspm01: DEBUG: nodes: cspm01 cspm02 cspm03 cspm04
>> > cspm01: DEBUG: will try with /var/log/ha-debug
>> > cspm01: DEBUG: the log file is in the syslog format
>> > cspm03: DEBUG: this is OpenAIS cluster stack
>> > cspm03: DEBUG: reading log settings from /usr/etc/logd.cf
>> > cspm03: DEBUG: log settings: facility= logfile=/var/log/ha-log
>> > debugfile=/var/log/ha-debug
>> > cspm04: DEBUG: this is OpenAIS cluster stack
>> > cspm02: DEBUG: this is OpenAIS cluster stack
>> > cspm02: DEBUG: reading log settings from /usr/etc/logd.cf
>> > cspm03: DEBUG: the log file is in the syslog format
>> > cspm02: DEBUG: log settings: facility= logfile=/var/log/ha-log
>> > debugfile=/var/log/ha-debug
>> > cspm04: DEBUG: reading log settings from /usr/etc/logd.cf
>> > cspm04: DEBUG: log settings: facility= logfile=/var/log/ha-log
>> > debugfile=/var/log/ha-debug
>> > cspm02: DEBUG: the log file is in the syslog format
>> > cspm04: DEBUG: the log file is in the syslog format
>> > cspm01: DEBUG: looking for PE files in /var/lib/heartbeat/pengine,
>> > /var/lib/pengine
>> > cspm01: DEBUG: found 15 pengine input files in /var/lib/pengine
>> > cspm03: DEBUG: looking for PE files in /var/lib/heartbeat/pengine,
>> > /var/lib/pengine
>> > cspm04: DEBUG: looking for PE files in /var/lib/heartbeat/pengine,
>> > /var/lib/pengine
>> > cspm02: DEBUG: looking for PE files in /var/lib/heartbeat/pengine,
>> > /var/lib/pengine
>> > cspm03: DEBUG: the log file is in the syslog format
>> > cspm02: DEBUG: the log file is in the syslog format
>> > cspm04: DEBUG: the log file is in the syslog format
>> > cspm01: DEBUG: the log file is in the syslog format
>> > The report is saved in /root/ikedaj/logs/trac1068.tar.bz2
>> >
>> > Thank you for taking time to create this report.
>> >
>> >
>> > It seems that there is nothing with wrong...
>>
>> Your log settings are somewhat contradictory. In logd.cf:
>>
>> logfile /var/log/ha-log
>> debugfile /var/log/ha-debug
>> logfacility none
>>
>> In corosync.conf:
>>
>> logging {
>>         fileline: on
>>         to_syslog: yes
>>         syslog_facility: local1
>>         syslog_priority: debug
>>         debug: on
>>         timestamp: on
>> }
>>
>> You should remove logfile/debugfile from logd.cf and set
>> logfacility to local1.
>>
>> Otherwise, hb_report should've managed, the logfile/debugfile
>> support is obviously lacking.
>
> Couldn't reproduce. If you feel like, you can send me the above
> created /root/ikedaj/logs/trac1068.tar.bz2 and one of the
> /var/log/ha-debug files.
>
> Cheers,
>
> Dejan
>
>> Cheers,
>>
>> Dejan
>>
>> > cluster-glue: 1.0.3 (2f34e6b29223 default tip)
>> > resource-agents: # Build version: 72f1ac55e70b default tip
>> > CRM Version: 1.0.8 (a77303a7adce stable-1.0 tip)
>> >
>> >
>> > Thanks,
>> > Junko
>> >
>> >
>> > On Tue, 16 Mar 2010 22:34:29 +0900, Dejan Muhamedagic
>> > <dejanmm at fastmail.fm> wrote:
>> >
>> > >Hi,
>> > >
>> > >On Tue, Mar 16, 2010 at 10:20:16PM +0900, Junko IKEDA wrote:
>> > >>Hi,
>> > >>
>> > >>There is just a little strange clone behavior.
>> > >[...]
>> > >>By the way, I tried to get the log with hb_report,
>> > >>but it failed to gather ha_log.txt,
>> > >>its size was 0 bite...
>> > >>anyway, I attached hb_report.
>> > >
>> > >Can you rerun with the -v option and try to see where it goes
>> > >wrong or post the output.
>> > >
>> > >Cheers,
>> > >
>> > >Dejan
>> > >
>> > >>
>> > >>Thanks,
>> > >>Junko
>> > >
>> > >
>> > >
>> > >>_______________________________________________
>> > >>Pacemaker mailing list
>> > >>Pacemaker at oss.clusterlabs.org
>> > >>http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> > >
>> > >
>> > >_______________________________________________
>> > >Pacemaker mailing list
>> > >Pacemaker at oss.clusterlabs.org
>> > >http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>> >
>> > _______________________________________________
>> > Pacemaker mailing list
>> > Pacemaker at oss.clusterlabs.org
>> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> _______________________________________________
>> Pacemaker mailing list
>> Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker




More information about the Pacemaker mailing list