Re: [Linux-ha-dev] postfix ocf ra

2009-05-29 Thread David Lee
On Thu, 28 May 2009, Dejan Muhamedagic wrote: On Thu, May 28, 2009 at 08:33:15PM +0200, Raoul Bhatia [IPAX] wrote: [...] please find my current version attached. Just a couple more comments, relating to portability.

Re: [Linux-ha-dev] postfix ocf ra

2009-05-29 Thread Dejan Muhamedagic
Hi David, On Fri, May 29, 2009 at 09:38:19AM +0100, David Lee wrote: On Thu, 28 May 2009, Dejan Muhamedagic wrote: On Thu, May 28, 2009 at 08:33:15PM +0200, Raoul Bhatia [IPAX] wrote: [...] please find my current version attached. Just a couple more comments, relating to portability.

Re: [Linux-ha-dev] postfix ocf ra

2009-05-29 Thread Dejan Muhamedagic
Hi Lars, On Thu, May 28, 2009 at 10:43:37PM +0200, Lars Ellenberg wrote: On Thu, May 28, 2009 at 08:33:15PM +0200, Raoul Bhatia [IPAX] wrote: the first part snipped here has just been skipped by me. isRunning() { kill -0 $1 2/dev/null } what is that supposed to prove? it

Re: [Linux-HA] Resources get restarted when a node joins the cluster

2009-05-29 Thread Tobias Appel
Thanks Andrew, I'll double check that nothing gets started automatically. Wish me luck :) Andrew Beekhof wrote: On Tue, May 26, 2009 at 2:56 PM, Tobias Appel tap...@eso.org wrote: Hi, In the past sometimes the following happened on my Heartbeat 2.1.14 cluster: 2-Node Cluster, all resources

[Linux-HA] show scores per resource/node

2009-05-29 Thread Koen Verwimp
Hi!   In Hearbeat/pacemaker scores are calculated on a per-resource basis and any node with a negative score can’t run that resource. After calculating the scores for a resource, the cluster then chooses the node with the highest one.   Is it possible to show the calculated score on a

Re: [Linux-HA] Resources get restarted when a node joins the cluster

2009-05-29 Thread Jan Kalcic
Andrew Beekhof wrote: On Tue, May 26, 2009 at 2:56 PM, Tobias Appel tap...@eso.org wrote: Hi, In the past sometimes the following happened on my Heartbeat 2.1.14 cluster: 2-Node Cluster, all resources run one node - no location constraints Now I restarted the standby node (which had no

Re: [Linux-HA] Resources get restarted when a node joins the cluster

2009-05-29 Thread Tobias Appel
Well, exactly what I expected happened! I set the 2nd node to standby - it had no resources running. We stopped Heartbeat on the 2nd node and did some maintenance. When we started Heartbeat again it joined the cluster as Online-standby and guess what! The resources on node 01 were getting

[Linux-HA] Antwort: Re: Resources get restarted when a node joins the cluster

2009-05-29 Thread Robert . Koeppl
I once had similar behaviour on one of my clusters. the reason was that the LSB-scritp of one of the resources (for which no ocf agent is written yet) was reporting the resource as running even if it was not. that caused heartbeat to think that the ressources where running on both nodes, which

Re: [Linux-HA] new doc about stonith/fencing

2009-05-29 Thread Jan Kalcic
Really interesting. I would have appreciated some more example (they are always welcome) but still very interesting. Thanks, Jan Dejan Muhamedagic wrote: Hi, Trying to make it a bit less mysterious, I wrote something about fencing and stonith quite a while ago and then forgot to share the

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Dejan Muhamedagic
Hi, On Thu, May 28, 2009 at 09:03:10PM -0400, Bernie Wu wrote: Hi Listers, I am a complete newbie when it comes to HA. The company I work for wants us to start investigating HA. My first POC setup was a 2 node cluster with a floating IP and that worked out quite well. Now the second POC

Re: [Linux-HA] Resources get restarted when a node joins the cluster

2009-05-29 Thread Andrew Beekhof
On Fri, May 29, 2009 at 10:30 AM, Tobias Appel tap...@eso.org wrote: Well, exactly what I expected happened! I set the 2nd node to standby - it had no resources running. We stopped Heartbeat on the 2nd node and did some maintenance. When we started Heartbeat again it joined the cluster as

Re: [Linux-HA] allow_migrate does not allow to migrate LIVE a Xen VM

2009-05-29 Thread Jan Kalcic
I finally got it. Replaced underscore with dash as indicated by Andrew few messages ago. In 1.0.x most underscores were replaced with dashes. So try changing allow_migrate to allow-migrate The meta attribute allow-migrate does the job for me. Thanks Andrew. I think an update into the Xen RA

Re: [Linux-HA] Recovering a Fragile CIB after Debian Lenny upgrade

2009-05-29 Thread Andrew Beekhof
On Wed, May 27, 2009 at 7:57 PM, Imran Chaudhry imran.chaud...@smoothwall.net wrote: One out-standing question I have is that if I reboot foo, then the resources will migrate to bar but when foo comes back up the resources migrate back to foo. I did not expect this to happen since I have

Re: [Linux-HA] Node Selection on Failover

2009-05-29 Thread Andrew Beekhof
On Tue, May 26, 2009 at 10:07 PM, Kevin Harms ha...@alcf.anl.gov wrote:   I have setup an 8 node cluster. The cluster has 15 resources. I setup the system such that all 15 resources are  distributed on the 7 primary nodes when the cluster starts up. I would like it such that when a node

[Linux-HA] clean CIB

2009-05-29 Thread Koen Verwimp
Hi,   What is the easiest way to clear the whole CIB configuration?   Thanks, Koen ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems

Re: [Linux-HA] clean CIB

2009-05-29 Thread Michael Schwartzkopff
Am Freitag, 29. Mai 2009 15:06:29 schrieb Koen Verwimp: Hi, What is the easiest way to clear the whole CIB configuration? Thanks, Koen cibadmin -E --force Beware if you have a heartbeat based cluster. The node information is stored elsewhere, too. -- Dr. Michael Schwartzkopff

[Linux-HA] Looking for impressive success stories

2009-05-29 Thread Michael Schwartzkopff
Hi, Since the Success Stories link of linux-ha.org is quite outdated we are looking for some recent and impressive stories that could convice the readers to use pacemaker cluster resource manager. So we could add these to clusterlabs.org. Anybody please feel free to mail me your stories.

[Linux-HA] Re sources wont run anywhere when PingNode is unreachable

2009-05-29 Thread firewall
Hi all, I'm having problems getting a split-brain to work (for demo, yes that's right). Basically, I have an active/passive cluster both configured with pingd like below. When the ping node is not reachable on the primary/active (i.e. I unplug the cable..), a failover occurs to the backup and

[Linux-HA] usage heartbeat x Oracle XE

2009-05-29 Thread Rafael - Uol
Morning, I am trying to configure the user has to the Oracle, but I can not configure correctly, I read the script / usr / lib / ocf / resource.d / heartbeat / oracle and it shows as an example: node1 10.0.0.170 oracle::RK1::/oracle/10.2::orark1 what is RK1? what is orark1? tanks!

Re: [Linux-HA] resource not failover

2009-05-29 Thread joe tse
Hi Dejan After changing to OCF RA, it is working fine. however, i would like to know what does action failed (rc=1) mean and why there is a problem within LSB? Thanks for your help. Best regards Joe -Original Message- From: linux-ha-boun...@lists.linux-ha.org [mailto:

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Dimitri Maziuk
Bernie Wu wrote: The company I work for wants us to start investigating HA. My first POC setup was a 2 node cluster with a floating IP and that worked out quite well. Now the second POC was to work with an application, in this case, apache2 in a active/passive configuration. My question is

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Les Mikesell
Dimitri Maziuk wrote: Bernie Wu wrote: The company I work for wants us to start investigating HA. My first POC setup was a 2 node cluster with a floating IP and that worked out quite well. Now the second POC was to work with an application, in this case, apache2 in a active/passive

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Bernie Wu
Hi Dima, Thanks for your reply. However, I'm using Heartbeat V2 which doesn't use the haresources file. Bernie -Original Message- From: linux-ha-boun...@lists.linux-ha.org [mailto:linux-ha-boun...@lists.linux-ha.org] On Behalf Of Dimitri Maziuk Sent: Friday, May 29, 2009 10:52 AM To:

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Bernie Wu
Hi Les, Currently, there is no database or filesystem on the active system that needs to be sync'ed. Apache currently just serves up static pages. It's too early in our POC for something fancy. Bernie -Original Message- From: linux-ha-boun...@lists.linux-ha.org

Re: [Linux-HA] How to setup a 2 node active/passive apache2 cluster for Proof of Concept

2009-05-29 Thread Dimitri Maziuk
On Friday 29 May 2009 14:44:55 Bernie Wu wrote: Hi Les, Currently, there is no database or filesystem on the active system that needs to be sync'ed. Apache currently just serves up static pages. It's too early in our POC for something fancy. Syncing only really works if people upload files