[Sheepdog] corosync.conf
Steven Dake
sdake at redhat.com
Mon May 9 18:32:27 CEST 2011
On 05/03/2011 02:41 PM, MORITA Kazutaka wrote:
> At Sat, 30 Apr 2011 10:42:47 -0700 (PDT),
> Ski Mountain wrote:
>>
>> yes, stupid spelling mistake. So once I got the spelling mistake fixed fixed,
>> it still did not start. So in the
>>
>> /var/log/corosync/corosync.log
>> Is the fowling error message. I was able to fix it as it states by adding in
>> consensus: 3200
>> just above the interface line. Just thought I should reply in case others has
>> the same issue as I did when copying the included configuration files. Any idea
>> why that line is not included in the example?
>>
>
> The default values looks working in my environment. Perhaps, your
> corosync (0.2.0) is too old to use implicit default values.
>
> Thanks,
>
> Kazutaka
>
>>
>> Apr 30 13:38:06 corosync [SERV ] Unloading all Corosync service engines.
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync extended
>> virtual synchrony service
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync
>> configuration service
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync cluster
>> closed process group service v1.01
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync cluster
>> config database access v1.01
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync profile
>> loading service
>> Apr 30 13:38:06 corosync [SERV ] Service engine unloaded: corosync cluster
>> quorum service v0.1
>> Apr 30 13:38:20 corosync [MAIN ] Corosync Cluster Engine ('1.2.0'): started and
>> ready to provide service.
>> Apr 30 13:38:20 corosync [MAIN ] Corosync built-in features: nss
>> Apr 30 13:38:20 corosync [MAIN ] Successfully read main configuration file
>> '/etc/corosync/corosync.conf'.
>> Apr 30 13:38:20 corosync [MAIN ] parse error in config: The consensus timeout
>> parameter (1200 ms) must be atleast 1.2 * token (1200 ms).
This is a known bu whih was fixed atleast a year ago. If you compile by
yourself, please use corosync 1.3.1 (available on www.corosync.org). If
you use a distro compile, I'd suggest filing a bug asking for a rebase.
To fix the problem, you can do something like
totem {
... all the totem configuration data
consensus: 1201
}
>> Apr 30 13:38:20 corosync [MAIN ] Corosync Cluster Engine exiting with status -9
>> at main.c:1359.
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>> ________________________________
>> From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
>> To: Ski Mountain <ski_the_mountain at yahoo.com>
>> Cc: sheepdog at lists.wpkg.org
>> Sent: Thu, April 28, 2011 9:55:31 AM
>> Subject: Re: [Sheepdog] corosync.conf
>>
>> At Thu, 28 Apr 2011 06:43:41 -0700 (PDT),
>> Ski Mountain wrote:
>>> I am having some corosync configuration issues. I am very unfamiliar with
>>> corosync.
>>>
>>>
>>>
>>> When I try to start up corosync I get this error in syslog
>>>
>>> Apr 28 08:59:31 duo corosync[3614]: parse error in config: parse error in
>>> config: .
>>> Apr 28 08:59:31 duo corosync[3614]: [MAIN ] Corosync Cluster Engine
>>> ('1.2.0'): started and ready to provide service.
>>> Apr 28 08:59:31 duo corosync[3614]: [MAIN ] Corosync built-in features: nss
>>> Apr 28 08:59:31 duo corosync[3614]: [MAIN ] Successfully read main
>>> configuration file '/etc/corosync/corosync.conf'.
>>> Apr 28 08:59:31 duo corosync[3614]: [MAIN ] parse error in config: parse
>>> error in config: .
>>> Apr 28 08:59:31 duo corosync[3614]: [MAIN ] Corosync Cluster Engine exiting
>>
>>> with status -9 at main.c:1331.
>>>
>>> and the "corosync.conf" pretty much copied from
>>> http://sourceforge.net/apps/trac/sheepdog/wiki/Corosync%20Config, with the
>>> bindnetaddr modified. What else do I need to do? I am asuming that I need to
>>
>>> incurment ringnumber for each node, is that it. What could be causing the
>>> syntax error, this log is quite lacking in details.
>>>
>>>
>>> Thanks
>>>
>>> # Please read the corosync.conf 5 manual page
>>> compatibility: whitetank
>>> totem {
>>> version: 2
>>> secauth: off
>>> threads: 0
>>> # Note, fail_recv_const is only needed if you're
>>> # having problems with corosync crashing under
>>> # heavy sheepdog traffic. This crash is due to
>>> # delayed/resent/misordered multicast packets.
>>> # fail_recv_const: 5000
>>> interface {
>>> ringnumber: 0
>>> bindnetaddr: 10.1.2.145
>>> mcastaddr: 226.94.1.1
>>> mcastport: 5405
>>> }
>>> }
>>> logging {
>>> fileline: off
>>> to_stderr: no
>>> to_logfile: yes
>>> to_syslog: yes
>>> # the pathname of the log file
>>> logfile: /var/log/corosyn/corosync.log
>>
>> I think you don't create /var/log/corosyn (misstype of
>> /var/log/corosync/corosync.log?).
>>
>> Thanks,
>>
>> Kazutaka
>> [1.2 <text/html; us-ascii (7bit)>]
>>
>> [2 <text/plain; us-ascii (7bit)>]
>> --
>> sheepdog mailing list
>> sheepdog at lists.wpkg.org
>> http://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list