Re: [Pacemaker] node score question?

2009-10-15 Thread Andreas Kurz
Hello, On Wed, October 14, 2009 18:21, Mihai Vintila wrote: > Hello, > I have a config like this: > Online: [ int3.test.tst wor1.test.tst wor2.test.tst wor3.test.tst > int1.test.tst int2.test.tst ] > > ip1 (ocf::heartbeat:IPaddr):Started int1.test.tst ip2 > (ocf::heartbeat:IPaddr):

[Pacemaker] How to configure log-level

2009-10-15 Thread  
Hi, I am running pacemaker-1.0.4-23.1 previously available from http://download.opensuse.org/repositories/server:/ha-clustering/CentOS_5/x86_64/ I could not find online nor in the manuals how to configure log-level in openais.conf. I saw the feature is "stroke through" at linux-ha wiki -does this

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 17:22 +0200, Dejan Muhamedagic wrote: > Good patch, though it won't help you unless you create the > directory which may not be exactly obvious, i.e. you would run > into exactly the same problem, I missed that. In my case the ${prefix}/var/lock dir exists already on my syst

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Dejan Muhamedagic
On Thu, Oct 15, 2009 at 05:18:41PM +0200, Johan Verrept wrote: > On Thu, 2009-10-15 at 17:16 +0200, Dejan Muhamedagic wrote: > > > configure.ac says: > > > > for HA_VARLOCKDIR in ${localstatedir}/lock ${localstatedir}/spool/lock > > ${localstatedir}/spool/locks ${localstatedir}/lock > > do > >

[Pacemaker] Debian_Lenny-openais and heartbeat packages not found

2009-10-15 Thread Billy Guthrie
Anyone have any clues? I followed the howto at: http://clusterlabs.org/wiki/Debian_Lenny_HowTo apache01:/etc/init.d# echo "deb http://people.debian.org/~madkiss/ha lenny main" > /etc/apt/sources.list.d/pacemaker.list OK apache01:/etc/init.d# apt-key adv --keyserver pgp.mit.edu --recv-key

[Pacemaker] node score question?

2009-10-15 Thread Mihai Vintila
Hello, I have a config like this: Online: [ int3.test.tst wor1.test.tst wor2.test.tst wor3.test.tst int1.test.tst int2.test.tst ] ip1 (ocf::heartbeat:IPaddr):Started int1.test.tst ip2 (ocf::heartbeat:IPaddr):Started int2.test.tst ip3 (ocf::heartbeat:IPaddr):St

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 17:16 +0200, Dejan Muhamedagic wrote: > configure.ac says: > > for HA_VARLOCKDIR in ${localstatedir}/lock ${localstatedir}/spool/lock > ${localstatedir}/spool/locks ${localstatedir}/lock > do > if > test -d "$HA_VARLOCKDIR" > then > ... > > probably not s

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Dejan Muhamedagic
Hi, On Thu, Oct 15, 2009 at 05:10:46PM +0200, Johan Verrept wrote: > On Thu, 2009-10-15 at 16:23 +0200, Johan Verrept wrote: > > For some reason, when building glue, HA_VARLOCKDIR is incorrectly > > #defined as "${prefix}/var/lock" > > > > ./include/glue_config.h:#define HA_VARLOCKDIR "${prefix}/

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Dejan Muhamedagic
Hi, On Thu, Oct 15, 2009 at 04:23:07PM +0200, Johan Verrept wrote: > On Thu, 2009-10-15 at 16:03 +0200, Johan Verrept wrote: > > On Thu, 2009-10-15 at 15:51 +0200, Johan Verrept wrote: > > > > > I just fear that some critical paths that are needed have moved between > > > 2.99.2 and 3.0.0 and tha

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 16:23 +0200, Johan Verrept wrote: > For some reason, when building glue, HA_VARLOCKDIR is incorrectly > #defined as "${prefix}/var/lock" > > ./include/glue_config.h:#define HA_VARLOCKDIR "${prefix}/var/lock" The attached patch solves the problem. J. --- Reusable-Clu

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 16:03 +0200, Johan Verrept wrote: > On Thu, 2009-10-15 at 15:51 +0200, Johan Verrept wrote: > > > I just fear that some critical paths that are needed have moved between > > 2.99.2 and 3.0.0 and that I am missing them. No idea how to find them, > > either. > > strace to the

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 15:51 +0200, Johan Verrept wrote: > I just fear that some critical paths that are needed have moved between > 2.99.2 and 3.0.0 and that I am missing them. No idea how to find them, > either. strace to the rescue... 4345 open("${prefix}/var/lock/LCK..ttyS0", O_RDONLY) = -1

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 15:49 +0200, Raoul Bhatia [IPAX] wrote: > is another program using ttyS0? (e.g. getty? ser2net? etc.) > (lsof -n |grep /dev/ttyS0) nope. > is it possible to *directly* communicate via the serial line? It worked fine under heartbeat 2.99.2 > what happens if you connect the

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Raoul Bhatia [IPAX]
On 10/15/2009 03:33 PM, Johan Verrept wrote: >> [...] >>> 14:37:46 heartbeat [3011]: ERROR: glib: cannot lock line /dev/ttyS0 >>> 14:37:46 heartbeat [3011]: ERROR: make_io_childpair: cannot open >>> serial /dev/ttyS0 >> >> Do you use serial? If so, can you fix it? > > That's the problem. If I remo

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 15:03 +0200, Dejan Muhamedagic wrote: > Hi, > > On Thu, Oct 15, 2009 at 02:48:45PM +0200, Johan Verrept wrote: > > > > Hello, > > > > I don't understand why heartbeat/pacemaker does not want to start. > > This is all logs there are... > > > [...] > > 14:37:46 heartbeat [

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 15:06 +0200, Raoul Bhatia [IPAX] wrote: > On 10/15/2009 02:48 PM, Johan Verrept wrote: > > > > Hello, > > > > I don't understand why heartbeat/pacemaker does not want to start. > > This is all logs there are... > > > > 14:37:46 heartbeat [3010]: info: Version 2 support: y

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Raoul Bhatia [IPAX]
On 10/15/2009 02:48 PM, Johan Verrept wrote: > > Hello, > > I don't understand why heartbeat/pacemaker does not want to start. > This is all logs there are... > > 14:37:46 heartbeat [3010]: info: Version 2 support: yes > 14:37:46 heartbeat [3010]: WARN: File /ub/etc/ha.d//haresources exists. d

Re: [Pacemaker] cluster refuses to start

2009-10-15 Thread Dejan Muhamedagic
Hi, On Thu, Oct 15, 2009 at 02:48:45PM +0200, Johan Verrept wrote: > > Hello, > > I don't understand why heartbeat/pacemaker does not want to start. > This is all logs there are... > [...] > 14:37:46 heartbeat [3011]: ERROR: glib: cannot lock line /dev/ttyS0 > 14:37:46 heartbeat [3011]: ERROR

[Pacemaker] cluster refuses to start

2009-10-15 Thread Johan Verrept
Hello, I don't understand why heartbeat/pacemaker does not want to start. This is all logs there are... 14:37:46 heartbeat [3010]: info: Version 2 support: yes 14:37:46 heartbeat [3010]: WARN: File /ub/etc/ha.d//haresources exists. 14:37:46 heartbeat [3010]: WARN: This file is not used because

Re: [Pacemaker] more package misery

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 13:22 +0200, Andrew Beekhof wrote: > > I found the --with-ocf-root parameter to configure in glue and > > resource-agents so I can now build succesfully. This should still > > default to the $PREFIX/usr/lib/ocf dir? > > More likely, $PREFIX/lib/ocf (assuming you insist on no

Re: [Pacemaker] more package misery

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 12:32 PM, Johan Verrept wrote: > On Thu, 2009-10-15 at 10:12 +0200, Johan Verrept wrote: > >> It installs the resources in /usr, not in $PREFIX/usr >> Is this intentional? >> It did not happen on hearbeat 2.99.2 > > I found the --with-ocf-root parameter to configure in glue

Re: [Pacemaker] more package misery

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 10:12 AM, Johan Verrept wrote: > On Thu, 2009-10-15 at 09:40 +0200, Andrew Beekhof wrote: > >> It still exists, along with shellfuncs, as part of resource-agents. > > Aah, that's where I went wrong :) > I did find the cause of the missing files though: > > >From the build:

Re: [Pacemaker] Openais 0.80.5 or 0.80.6 with Pacemaker 1.0.5?

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 11:42 AM, Ossi wrote: > Hi! > > We're investigation and setting up Pacemaker cluster with RHEL 5.4. > Seem that it is recommended to use openais-0.80.5-15.1 rpm for > compactibility reasons, > but it seems that it is Openais 1.x which has problems with Pacemaker. Correct,

Re: [Pacemaker] bug: target-role=master ignores master-max setting in m/s resource

2009-10-15 Thread Andrew Beekhof
Fixed in http://hg.clusterlabs.org/pacemaker/stable-1.0/rev/6dffe25d35f2 Thanks for reporting On Thu, Oct 15, 2009 at 11:53 AM, Rasto Levrinc wrote: > With the following config the dummy resource is promoted on both nodes to > master, although master-max="1". XML is attached. > > node $id="816

[Pacemaker] DRBD User's Guide 1.3.0

2009-10-15 Thread Florian Haas
Hello everyone, I have released and uploaded the DRBD User's Guide 1.3.0. Thanks to everyone who provided feedback and corrected errors! A few notable changes since the 1.2.0 release 2 months ago: - Lots of stuff about Pacemaker integration. Note in particular the new sections about 4-way redund

Re: [Pacemaker] more package misery

2009-10-15 Thread Johan Verrept
On Thu, 2009-10-15 at 10:12 +0200, Johan Verrept wrote: > It installs the resources in /usr, not in $PREFIX/usr > Is this intentional? > It did not happen on hearbeat 2.99.2 I found the --with-ocf-root parameter to configure in glue and resource-agents so I can now build succesfully. This should

Re: [Pacemaker] [PATCH] pingd: set ICMP6 filter

2009-10-15 Thread Kazunori INOUE
Hi Andrew, Andrew Beekhof wrote: 2009/10/9 Kazunori INOUE : Hi all, I'm posting patch for pignd in Pacemaker 1.0 (changeset:6cf252e61e25). This patch sets the filter of ICMP6 and fixed some bugs. Could you be a little more specific about what those bugs were? :-) I'm sorry, I'd like to exp

[Pacemaker] bug: target-role=master ignores master-max setting in m/s resource

2009-10-15 Thread Rasto Levrinc
With the following config the dummy resource is promoted on both nodes to master, although master-max="1". XML is attached. node $id="8165b1f7-da29-43db-8510-065ac1d33469" sles11-b node $id="bb56fda4-7d0d-405c-a6e4-c21b0e070303" sles11-a primitive res_Stateful_1 ocf:pacemaker:Stateful ms ms_res_St

Re: [Pacemaker] How to write the crorsync.conf to use EVS, CFG, CONFDB, CPG....with Pacemaker? Is this necessary?

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 10:44 AM, wrote: > Hi all: > >  If I want to use some services of corosync-1.1.0 with Pacemaker, Don't. You wont be able to shutdown the cluster. The patches to fix it exist, but Steve hasn't committed them to the corosync repository yet. > such as > EVS, CFG, CONFDB,CP

Re: [Pacemaker] Installation woes (w/Debian packages)

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 11:17 AM, Raoul Bhatia [IPAX] wrote: > On 10/15/2009 10:51 AM, Matthew Palmer wrote: >> On Thu, Oct 15, 2009 at 10:07:56AM +0200, Colin wrote: >>> On Sun, Oct 11, 2009 at 9:13 PM, Andrew Beekhof wrote: On Fri, Oct 9, 2009 at 3:12 PM, Colin wrote: > The config exp

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Andrew Beekhof
On Thu, Oct 15, 2009 at 10:47 AM, Lars Ellenberg wrote: > On Thu, Oct 15, 2009 at 10:08:59AM +0200, Andrew Beekhof wrote: >> Hmmm... looks like "Slave" does the right thing, but not "Started" > > In that case, I vote for a Documentation change only. > > for MS resources, > target-role=Started is e

[Pacemaker] Openais 0.80.5 or 0.80.6 with Pacemaker 1.0.5?

2009-10-15 Thread Ossi
Hi! We're investigation and setting up Pacemaker cluster with RHEL 5.4. Seem that it is recommended to use openais-0.80.5-15.1 rpm for compactibility reasons, but it seems that it is Openais 1.x which has problems with Pacemaker. My actual question is: is it ok to use RHEL5's own Openais rpm (0.8

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Raoul Bhatia [IPAX]
On 10/15/2009 11:17 AM, Lars Ellenberg wrote: >>> In that case, I vote for a Documentation change only. >>> > > >>> > > for MS resources, >>> > > target-role=Started is equivalent to target-role=Master >>> > > target-role=Slave is possible for MS resources only, and does just that. >>> > > target-

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Dominik Klein
> i thought that for multistate resources, Started == Slave. > am i mistaken? did this change some time ago? Afaik, that was only true for status display in crm_mon. But also, that was fixed quite a while ago. Regards Dominik ___ Pacemaker mailing list

Re: [Pacemaker] Installation woes (w/Debian packages)

2009-10-15 Thread Raoul Bhatia [IPAX]
On 10/15/2009 10:51 AM, Matthew Palmer wrote: > On Thu, Oct 15, 2009 at 10:07:56AM +0200, Colin wrote: >> On Sun, Oct 11, 2009 at 9:13 PM, Andrew Beekhof wrote: >>> On Fri, Oct 9, 2009 at 3:12 PM, Colin wrote: The config explained document is excellent -- once everything is up and runni

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Lars Ellenberg
On Thu, Oct 15, 2009 at 10:58:12AM +0200, Raoul Bhatia [IPAX] wrote: > On 10/15/2009 10:47 AM, Lars Ellenberg wrote: > >> Hmmm... looks like "Slave" does the right thing, but not "Started" > > > > In that case, I vote for a Documentation change only. > > > > for MS resources, > > target-role=Star

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Raoul Bhatia [IPAX]
On 10/15/2009 10:47 AM, Lars Ellenberg wrote: >> Hmmm... looks like "Slave" does the right thing, but not "Started" > > In that case, I vote for a Documentation change only. > > for MS resources, > target-role=Started is equivalent to target-role=Master > target-role=Slave is possible for MS reso

[Pacemaker] How to write the crorsync.conf to use EVS, CFG, CONFDB, CPG....with Pacemaker? Is this necessary?

2009-10-15 Thread xin . liang
Hi all: If I want to use some services of corosync-1.1.0 with Pacemaker, such as EVS, CFG, CONFDB,CPG How to write the crorsync.conf ? Is this necessary? Thanks a lot ;-)___ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.o

Re: [Pacemaker] Installation woes (w/Debian packages)

2009-10-15 Thread Matthew Palmer
On Thu, Oct 15, 2009 at 10:07:56AM +0200, Colin wrote: > On Sun, Oct 11, 2009 at 9:13 PM, Andrew Beekhof wrote: > > On Fri, Oct 9, 2009 at 3:12 PM, Colin wrote: > >> The config explained document is excellent -- once everything is up > >> and running to arrive at "its level". > > > > Agreed. ?I'v

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Lars Ellenberg
On Thu, Oct 15, 2009 at 10:08:59AM +0200, Andrew Beekhof wrote: > On Wed, Oct 14, 2009 at 5:07 PM, Rasto Levrinc > wrote: > > On Wed, October 14, 2009 4:36 pm, Andrew Beekhof wrote: > >> On Wed, Oct 14, 2009 at 4:12 PM, Lars Ellenberg > >> wrote: > >> > >>> > >>> > >>> with below config, accordi

Re: [Pacemaker] bug: multi state and target-role=started results in promote

2009-10-15 Thread Andrew Beekhof
On Wed, Oct 14, 2009 at 5:07 PM, Rasto Levrinc wrote: > On Wed, October 14, 2009 4:36 pm, Andrew Beekhof wrote: >> On Wed, Oct 14, 2009 at 4:12 PM, Lars Ellenberg >> wrote: >> >>> >>> >>> with below config, according to documentation, ms_res_Stateful_1 should >>> only be started, not promoted. >>

Re: [Pacemaker] Installation woes (w/Debian packages)

2009-10-15 Thread Colin
On Sun, Oct 11, 2009 at 9:13 PM, Andrew Beekhof wrote: > On Fri, Oct 9, 2009 at 3:12 PM, Colin wrote: >> The config explained document is excellent -- once everything is up >> and running to arrive at "its level". > > Agreed.  I've started working on some howtos to fill the gap, but it > will tak

Re: [Pacemaker] more package misery

2009-10-15 Thread Andrew Beekhof
On Wed, Oct 14, 2009 at 5:49 PM, Johan Verrept wrote: > Hi Andrew, > > On Wed, 2009-10-14 at 16:46 +0200, Andrew Beekhof wrote: >> > The distro is non-standard. I don't see how this would be different on >> > OpenSuSE? Do they use untagged (or specifically tagged) versions? >> >> I just built the

Re: [Pacemaker] failback off

2009-10-15 Thread Andrew Beekhof
On Wed, Oct 14, 2009 at 8:05 PM, E-Blokos wrote: > > - Original Message - From: "Andrew Beekhof" > To: > Cc: > Sent: Sunday, October 11, 2009 4:04 PM > Subject: Re: [Pacemaker] failback off > > >> Should be.  Did you try it? >> >> On Wed, Oct 7, 2009 at 5:36 PM, E-Blokos wrote: >>> >>>

[Pacemaker] Stonith with VMWare/Vshpere

2009-10-15 Thread Ronny Tjoa
Hello, I am new to Pacemaker and clustering. I manage to setup 3 nodes (VMWare ESXi) monitoring VIP, Asterisk and SIP messages. I would like to reboot the node with fail resource after switching to another node. Stonith seems to be the one that I need. However, there is no information/exampl

Re: [Pacemaker] pacemaker node score

2009-10-15 Thread Johan Verrept
To see how node scores are calculated, try ptest -L -s J. On Wed, 2009-10-14 at 19:07 +0300, Mihai wrote: > Hello, > I have a config like this: > Online: [ int3.test.tst wor1.test.tst wor2.test.tst wor3.test.tst > int1.test.tst int2.test.tst ] > > ip1 (ocf::heartbeat:IPaddr):