Re: [Pacemaker] Three questions...

2009-03-18 Thread Takenaka Kazuhiro
Hello It is completely dependent on your stonith architecture. Some devices support a list of hosts which means you only need one stonith resource. Even if there is a such device, the Pacemaker stonith mechanism provides insufficient support for it. Suppose: how should its plugin instance do w

Re: [Pacemaker] host came online, but is ignored

2009-03-18 Thread Andrew Beekhof
On Wed, Mar 18, 2009 at 17:05, Juha Heinanen wrote: > Andrew Beekhof writes: > >  > crmd[1923]: 2009/03/18_14:13:33 WARN: crmd_ha_msg_callback: Ignoring >  > HA message (op=join_announce) from lenny1: not in our membership list >  > (size=1) >  > >  > apparently some part of the cluster is under t

Re: [Pacemaker] host came online, but is ignored

2009-03-18 Thread Juha Heinanen
Andrew Beekhof writes: > crmd[1923]: 2009/03/18_14:13:33 WARN: crmd_ha_msg_callback: Ignoring > HA message (op=join_announce) from lenny1: not in our membership list > (size=1) > > apparently some part of the cluster is under the impression lenny1 is > not part of the cluster. crm_mon show

Re: [Pacemaker] host came online, but is ignored

2009-03-18 Thread Andrew Beekhof
On Wed, Mar 18, 2009 at 13:29, Juha Heinanen wrote: > i kept on testing the example configuration and found a failure situation > when i rebooted the host (lenny1) that was online, but was not master. > > starting situation: > > r...@lenny2:~# crm_mon -1 > > > Last updated: Wed Mar 18

Re: [Pacemaker] do we have nodeid?

2009-03-18 Thread Andrew Beekhof
2009/3/18 Priyanka Ranjan : > Thanks a lot Andrew for your reply, >> >> We decided not to expose the nodeid to "normal users" - time will tell >> if that was a good decision. >> The easiest way to check what value is being used is simply grep the log >> files. > > I tried to grep node id  in syslog

[Pacemaker] host came online, but is ignored

2009-03-18 Thread Juha Heinanen
i kept on testing the example configuration and found a failure situation when i rebooted the host (lenny1) that was online, but was not master. starting situation: r...@lenny2:~# crm_mon -1 Last updated: Wed Mar 18 14:12:09 2009 Current DC: lenny2 (f13aff7b-6c94-43ac-9a24-b118e62d5

Re: [Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Dominik Klein
> i wonder why the line > > location ms-drbd0-master-on-xen-1 ms-drbd0 rule role=master 100: #uname eq > xen-1 > > is in the example config, because heartbeat seems to be doing what the > line says even without it. The section states that "If you want to prefer a node to run the master role (xe

Re: [Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Juha Heinanen
Dominik Klein writes: > > when i shutdown the current primary, the resources get moved ok to > secondary, > > but when the old primary comes back up, the resources are automatically > > relocated back to the it. why is that and how to prevent it? > > I understood your mysql moved to a drbd

Re: [Pacemaker] do we have nodeid?

2009-03-18 Thread Priyanka Ranjan
Thanks a lot Andrew for your reply, > > We decided not to expose the nodeid to "normal users" - time will tell > if that was a good decision. > The easiest way to check what value is being used is simply grep the log > files. > I tried to grep node id in syslog (/var/log/messages) but could not

Re: [Pacemaker] do we have nodeid?

2009-03-18 Thread Andrew Beekhof
2009/3/18 Priyanka Ranjan : > Thanks for your reply Andrew and Chrissie, > > On Tue, Mar 17, 2009 at 2:48 PM, Andrew Beekhof wrote: >> >> On Sat, Mar 14, 2009 at 19:14, Priyanka Ranjan >> wrote: >> > Hi All, >> > i am using suse 11 (openais+pacemaker ) cluster. do we have any way to >> > get >> >

Re: [Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Dominik Klein
Juha Heinanen wrote: > Dominik Klein writes: > > > Sounds like you missed the order and colocation constraints. Please post > > your configuration. > > i have "order" and "colocation", but removed "location", because i > thought that by doing so, the resources will stay where they are > working

Re: [Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Juha Heinanen
Dominik Klein writes: > Sounds like you missed the order and colocation constraints. Please post > your configuration. i have "order" and "colocation", but removed "location", because i thought that by doing so, the resources will stay where they are working. -- juha $ crm configure show nod

Re: [Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Dominik Klein
Juha Heinanen wrote: > i tried the apache web server example of DRBD HowTo 1.0 with small changes: > > 1) replaced "webserver" primitive with "mysqlserver" primitive > 2) removed "location" primitive, since i don't care which node the resources >run. > > when i shutdown the current primary, t

Re: [Pacemaker] couple of comments/questions on DRBD HowTo 1.0

2009-03-18 Thread Dominik Klein
Juha Heinanen wrote: > "Prerequisites" section says that "DRBD must not be started by init.". In > Debian lenny at least, drbd init script load drbd module. if drbs init > is not run, drbd modules needs to be loaded by some other means, for > example, by adding "drbd" line to /etc/modules. The R

[Pacemaker] how to prevent auto relocation of recources to old primary?

2009-03-18 Thread Juha Heinanen
i tried the apache web server example of DRBD HowTo 1.0 with small changes: 1) replaced "webserver" primitive with "mysqlserver" primitive 2) removed "location" primitive, since i don't care which node the resources run. when i shutdown the current primary, the resources get moved ok to second

[Pacemaker] couple of comments/questions on DRBD HowTo 1.0

2009-03-18 Thread Juha Heinanen
"Prerequisites" section says that "DRBD must not be started by init.". In Debian lenny at least, drbd init script load drbd module. if drbs init is not run, drbd modules needs to be loaded by some other means, for example, by adding "drbd" line to /etc/modules. i have not managed to make drbd.co

Re: [Pacemaker] do we have nodeid?

2009-03-18 Thread Priyanka Ranjan
Thanks for your reply Andrew and Chrissie, On Tue, Mar 17, 2009 at 2:48 PM, Andrew Beekhof wrote: > On Sat, Mar 14, 2009 at 19:14, Priyanka Ranjan > wrote: > > Hi All, > > i am using suse 11 (openais+pacemaker ) cluster. do we have any way to > get > > nodeid or any other way to uniquely identi