Re: [Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

2012-01-15 Thread Andrew Beekhof
On Thu, Jan 12, 2012 at 11:01 PM, Florian Haas wrote: > On Thu, Jan 5, 2012 at 10:15 PM, Florian Haas wrote: >> Florian Haas (2): >>      extra: add rsyslog configuration snippet >>      extra: add logrotate configuration snippet >> >>  configure.ac                      |    4 +++ >>  extra/Makef

Re: [Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

2012-01-15 Thread Florian Haas
On Sun, Jan 15, 2012 at 9:27 PM, Andrew Beekhof wrote: > On Thu, Jan 12, 2012 at 11:01 PM, Florian Haas wrote: >> On Thu, Jan 5, 2012 at 10:15 PM, Florian Haas wrote: >>> Florian Haas (2): >>>      extra: add rsyslog configuration snippet >>>      extra: add logrotate configuration snippet >>> >

Re: [Pacemaker] [Question] About the rotation of the pe-file.

2012-01-15 Thread renayama19661014
Hi Lars, Hi Andrew, > If you want it to be between [0, max-1], > obviously that should be > while(max > 0 && sequence >= max) { > sequence -= max; > } Thanks!!I try it. > Though I wonder why not simply: > if (max == 0) > return; > if (sequence > ma

Re: [Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 6:38 AM, Florian Haas wrote: > On Sun, Jan 15, 2012 at 9:27 PM, Andrew Beekhof wrote: >> On Thu, Jan 12, 2012 at 11:01 PM, Florian Haas wrote: >>> On Thu, Jan 5, 2012 at 10:15 PM, Florian Haas wrote: Florian Haas (2):      extra: add rsyslog configuration snipp

Re: [Pacemaker] [Question] About the rotation of the pe-file.

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 10:56 AM, wrote: > Hi Lars, > Hi Andrew, > >> If you want it to be between [0, max-1], >> obviously that should be >>         while(max > 0 && sequence >= max) { >>                 sequence -= max; >>         } > > Thanks!!I try it. > >> Though I wonder why not simply: >>

Re: [Pacemaker] [Problem] The attrd does not sometimes stop.

2012-01-15 Thread renayama19661014
Hi Lars, Thank you for comments and suggestion. > > poll([{fd=7, events=POLLIN|POLLPRI}, {fd=4, events=POLLIN|POLLPRI}, {fd=5, > > events=POLLIN|POLLPRI}], 3, -1 > > Note the -1 (infinity timeout!) > > So even though the trigger was (presumably) set, > and the ->prepare() should have returned

Re: [Pacemaker] [Question] About the rotation of the pe-file.

2012-01-15 Thread renayama19661014
Hi Andrew, Hi Lars, > >> If you want it to be between [0, max-1], > >> obviously that should be > >> while(max > 0 && sequence >= max) { > >> sequence -= max; > >> } The rotation was carried out definitely from 0 to max-1. > >> Though I wonder why not simply: > >

Re: [Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

2012-01-15 Thread Florian Haas
On Mon, Jan 16, 2012 at 10:59 AM, Andrew Beekhof wrote: > By "Nuclear", I meant nothing at all from Pacemaker. Which is not what it does. > If thats what you want, there's a far easier way to achieve this and > keep usable logs around for debugging, set facility to none and add a > logfile. No

Re: [Pacemaker] [PATCH 0/2] rsyslog/logrotate configuration snippets

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 2:42 PM, Florian Haas wrote: > On Mon, Jan 16, 2012 at 10:59 AM, Andrew Beekhof wrote: > >> By "Nuclear", I meant nothing at all from Pacemaker. > > Which is not what it does. The daemons. The RAs are not "from Pacemaker". This is why I wrote in my first reply: "/some/

Re: [Pacemaker] [Question] About the rotation of the pe-file.

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 16, 2012 at 11:48 AM, wrote: > Hi Andrew, > Hi Lars, > >> >> If you want it to be between [0, max-1], >> >> obviously that should be >> >>         while(max > 0 && sequence >= max) { >> >>                 sequence -= max; >> >>         } > > The rotation was carried out definitely fro

Re: [Pacemaker] [Problem] The attrd does not sometimes stop.

2012-01-15 Thread Andrew Beekhof
On Sun, Jan 15, 2012 at 1:57 AM, Lars Ellenberg wrote: > On Tue, Jan 10, 2012 at 04:43:51PM +0900, renayama19661...@ybb.ne.jp wrote: >> Hi Lars, >> >> I attach strace file when a problem reappeared at the end of last year. >> I used glue which applied your patch for confirmation. >> >> It is the f

Re: [Pacemaker] need cluster-wide variables

2012-01-15 Thread Andrew Beekhof
On Wed, Jan 11, 2012 at 8:24 AM, Arnold Krille wrote: > On Tuesday 10 January 2012 20:08:50 Dejan Muhamedagic wrote: >> On Thu, Jan 05, 2012 at 04:59:13AM +, shashi wrote: >> > So we have two probable options: >> > 1. An work around to achieve this tri-state efficiently without changing >> > p

Re: [Pacemaker] SBD stonith issues in RHEL cluster

2012-01-15 Thread Andrew Beekhof
On Mon, Jan 9, 2012 at 7:30 PM, Qiu Zhigang wrote: > Hi, All > > > > I want to use SBD device as a stonith device in RHCS, but how could I > configure sbd resource agent? I don't think you can, it doesn't ship at part of RHCS at this stage. No idea if that will change. You'd have to build and in

Re: [Pacemaker] [Question] About the rotation of the pe-file.

2012-01-15 Thread renayama19661014
Hi Andrew, Hi Lars, > Its in my private tree so far: > https://github.com/beekhof/pacemaker/commit/bfbb73c > > It will make its way to clusterlabs when I merge next. All right! Many Thanks! Hideo Yamauchi. --- On Mon, 2012/1/16, Andrew Beekhof wrote: > On Mon, Jan 16, 2012 at 11:48 AM, 

Re: [Pacemaker] [Partially SOLVED] pacemaker/dlm problems

2012-01-15 Thread Andrew Beekhof
Sorry for not getting to this earlier... On Mon, Dec 19, 2011 at 10:39 PM, Vladislav Bogdanov wrote: > 09.12.2011 08:44, Andrew Beekhof wrote: >> On Fri, Dec 9, 2011 at 3:16 PM, Vladislav Bogdanov >> wrote: >>> 09.12.2011 03:11, Andrew Beekhof wrote: On Fri, Dec 2, 2011 at 1:32 AM, Vladisl

Re: [Pacemaker] [Partially SOLVED] pacemaker/dlm problems

2012-01-15 Thread Andrew Beekhof
On Mon, Dec 19, 2011 at 11:11 PM, Vladislav Bogdanov wrote: > 19.12.2011 14:39, Vladislav Bogdanov wrote: >> 09.12.2011 08:44, Andrew Beekhof wrote: >>> On Fri, Dec 9, 2011 at 3:16 PM, Vladislav Bogdanov >>> wrote: 09.12.2011 03:11, Andrew Beekhof wrote: > On Fri, Dec 2, 2011 at 1:32 AM

Re: [Pacemaker] [Problem]It is judged that a stopping resource is starting.

2012-01-15 Thread Andrew Beekhof
On Fri, Jan 6, 2012 at 12:37 PM, wrote: > Hi Andrew, > > Thank you for comment. > >> But it should have a subsequent stop action which would set it back to >> being inactive. >> Did that not happen in this case? > > Yes. Could you send me the PE file related to this log please? Jan 6 19:22:01

Re: [Pacemaker] cman multi-homed with udp-broadcast issues

2012-01-15 Thread Andrew Beekhof
This is getting into some pretty specific cman knowledge, you might find more experts on that at linux-clus...@redhat.com On Sat, Jan 7, 2012 at 4:00 AM, Patrick H. wrote: > So I'm trying to setup a cluster with a secondary communication ring in case > the first ring fails. The cluster operates f

Re: [Pacemaker] Two-node cluster, able to function with only a single-node?

2012-01-15 Thread Andrew Beekhof
On Tue, Dec 13, 2011 at 9:40 AM, Reid, Mike wrote: > I've been doing a lot of testing while I've been learning > Pacemaker/Heartbeat, DRBD, OCFS2, etc (Nginx, PHP-FPM, Apache…)  Below I've > attached my working CIB, but I worry I am missing something obvious (or > perhaps going about it incorrectl

Re: [Pacemaker] [Partially SOLVED] pacemaker/dlm problems

2012-01-15 Thread Vladislav Bogdanov
16.01.2012 09:20, Andrew Beekhof wrote: [snip] >>> At the same time, stonith_admin -B succeeds. >>> The main difference I see is st_opt_sync_call in a latter case. >>> Will try to experiment with it. >> >> Ys!!! >> >> Now I see following: >> Dec 19 11:53:34 vd01-a cluster-dlm: [2474]: info:

Re: [Pacemaker] large cluster design questions

2012-01-15 Thread Andrew Beekhof
On Fri, Jan 6, 2012 at 10:10 PM, Christian Parpart wrote: > Hey all, > > I am also about to evaluate whether or not Pacemaker+Corosync is the > way to go for our > infrastructure. > > We are currently having about 45 physical nodes (plus about 60 more > virtual containers) > with a statically hist

Re: [Pacemaker] [Partially SOLVED] pacemaker/dlm problems

2012-01-15 Thread Vladislav Bogdanov
16.01.2012 09:17, Andrew Beekhof wrote: [snip] >> At the same time, stonith_admin -B succeeds. >> The main difference I see is st_opt_sync_call in a latter case. >> Will try to experiment with it. > > /Shouldn't/ matter. It really looks like it matters. Can't discuss it at more depth though beca

Re: [Pacemaker] setup multimaster drbd with ocfs without o2cb and controld

2012-01-15 Thread Andrew Beekhof
On Fri, Jan 6, 2012 at 3:49 AM, thomas polnik wrote: > Hello, > > I want setup follow: > 2 servers with multimaster drbd and ocfs filesystem and mount it. > > *system: gentoo, 2.6.39, pacemaker-1.1.5 > > *Setup pacemaker: > > # misc settings > property no-quorum-policy="ignore" > property stonith-

Re: [Pacemaker] [Problem]It is judged that a stopping resource is starting.

2012-01-15 Thread renayama19661014
Hi Andrew, Thank you for comments. > Could you send me the PE file related to this log please? > > Jan 6 19:22:01 rh57-1 crmd: [3461]: info: do_te_invoke: Processing > graph 4 (ref=pe_calc-dc-1325845321-26) derived from > /var/lib/pengine/pe-input-4.bz2 The old file disappeared. I send log and