Re: [Linux-HA] ocf resource agent

2008-09-11 Thread Michael Alger
On Thu, Sep 11, 2008 at 12:38:13PM +0530, devi thapa wrote: > I have written an ocf script to start and stop a virtual machine. > I run the script and its working fine. > I included this script as a resource of heartbeat. > There is even httpd (lsb script) which is a resource of a > heartbeat. > Af

Re: [Linux-HA] "Reverse" heartbeat

2008-09-10 Thread Michael Alger
On Mon, Sep 08, 2008 at 12:22:33PM +0200, Marc Gràcia Galobart wrote: > I have two mirrored groups of servers that serve images. Those two > groups, are load balanced. > Inside each group, there are a number of servers, each one having > part of the images to serve. One of them has a reverse proxy

Re: ??: [Linux-HA] How to get the full source code package.

2008-09-01 Thread Michael Alger
On Mon, Sep 01, 2008 at 05:14:12PM +0100, Paul Walsh wrote: > Lars Marowsky-Bree wrote: >> On 2008-09-01T08:56:04, Wang Zhenwu <[EMAIL PROTECTED]> wrote: >>> I want to get the 2.1.4 >>> >>> I try to download the tar.gz >>> (URL=http://hg.linux-ha.org/lha-2.1/archive/STABLE-2.1.4.tar.bz2) >>> >>>

Re: [Linux-HA] internal ip failover solution (same machine)

2008-08-29 Thread Michael Alger
On Thu, Aug 28, 2008 at 06:30:21PM +0200, Raúl Hernández wrote: > I have got a question ip failover when our node is a client in the > network. Some ASCII to get the picture: > >Linux box > +--+ >/ NIC1 ->

Re: [Linux-HA] iptables settings for services

2008-08-23 Thread Michael Alger
On Sat, Aug 23, 2008 at 11:47:44AM +0200, KrisR wrote: > I'd like to prevent people from using services on ha-nodes via > their real addresses and to make them use the virtual IP. > Let me clear it a bit. Let say that I have two servers HA1 and HA2 > with eth0 192.168.1.251 and 192.168.1.252 respec

Re: [Linux-HA] Handling of logrotate of heartbeat managed services

2008-08-21 Thread Michael Alger
On Thu, Aug 21, 2008 at 05:13:22PM +0200, Chris Joelly wrote: > On Thu, Aug 21, 2008 at 11:59:15AM +0200, Andrew Beekhof wrote: >> On Aug 21, 2008, at 1:01 AM, Chris Joelly wrote: >>> i have a question on handling logrotate with services which are >>> managed using heartbeat / crm: >>> >>> if e.g.

Re: [Linux-HA] bad path to pingd

2008-08-18 Thread Michael Alger
On Mon, Aug 18, 2008 at 09:20:28AM +0200, Andrew Beekhof wrote: > On Thu, Aug 14, 2008 at 16:32, Chase Simms <[EMAIL PROTECTED]> wrote: >> I have the following message throughout my logs. >> >> lrmd[3302]: 2008/08/14_08:54:53 info: RA output: >> (resource_Pingd:monitor:stderr) >> /usr/lib/ocf/resou

Re: [Linux-HA] FEW QUESTIONS

2008-08-06 Thread Michael Alger
On Wed, Aug 06, 2008 at 09:36:02AM +0200, Carlo Granisso wrote: > 1) I need to make an HA system with no main node but "distributed" > control system: Heartbeat itself will elect a "master" server which serves to coordinate the actions of the cluster, however any server is capable of filling this

Re: [Linux-HA] Resources starting twice

2008-08-05 Thread Michael Alger
On Fri, Aug 01, 2008 at 10:09:13AM -0500, Angel Rengifo Cancino wrote: > mmm, this is a different question: Do I really need to start/stop > services with haresources? Why can't I just simply mantain my > services always running (chkconfig services on)? Is it not enough > to change the IP alias bet

Re: [Linux-HA] Resources starting twice

2008-07-31 Thread Michael Alger
On Thu, Jul 31, 2008 at 04:44:31PM -0500, Angel Rengifo Cancino wrote: >> I can't understand why httpd and squid are starting again after >> they're already started previously. Is there something wrong with >> my configuration? This problems is causing hearbeat to give up >> due to failure of squid

Re: [Linux-HA] Using heartbeat with multiple nodes, directors and switches

2008-07-25 Thread Michael Alger
On Fri, Jul 25, 2008 at 01:24:37PM +0100, Matthew Macdonald-Wallace wrote: > The system should be able to cope with the following: > > a) A Director Outage > b) A Web Node Outage > c) A Network Outage > > > 2) What I currently have (excuse the poor ascii art!): > > > '--' heartbeat '-

Re: [Linux-HA] Where is BasicSanityCheck?

2008-07-25 Thread Michael Alger
d your organization... I > recommend looking through the changelogs to see if there is anything > relevant to your configuration. > Particularly anything labeled with the "High:" prefix Sounds like a good plan. > On Tue, Jul 22, 2008 at 18:12, Michael Alger <[EMAIL PROTECTED]&g

Re: [Linux-HA] Where is BasicSanityCheck?

2008-07-22 Thread Michael Alger
On Tue, Jul 22, 2008 at 05:25:36PM +0200, Schmidt, Florian wrote: > Yeah, that's the question. > > I don't find it in /usr/lib/heartbeat, nor does > find / -name *BasicSanity* > > rpm -qa|grep heart > pacemaker-heartbeat-0.6.1-5.3 > heartbeat-common-2.1.3-15.1 > heartbeat-2.1.3-15.1 > heartbeat-

Re: [Linux-HA] ip ressource with alias instead of secondary address

2008-07-16 Thread Michael Alger
On Thu, Jul 17, 2008 at 06:49:40AM +0200, Dirk H. Schulz wrote: > I have setup a simple cluster that only switches a virtual IP > adress. That works fine, but the address is added to the real > interface as secondary address (like "ip add" would do). > > What I need is an interface alias with it's

Re: [Linux-HA] Problem apprehending heartbeat 2.1.3

2008-07-11 Thread Michael Alger
On Fri, Jul 11, 2008 at 10:29:55AM +0200, Thibaut Perrin wrote: > I have one more question, my guess would be using colocation, but > I'm not sure : > > I have 2 nodes on my cluster, and for the moment I have 1 IP > addresse resource and 1 apache resource. > > I have set the stickiness scores to

Re: [Linux-HA] Question about monitoring operations in Heartbeat

2008-07-10 Thread Michael Alger
On Thu, Jul 10, 2008 at 01:22:16PM +0200, Lukas Pecha wrote: > I would like to know, if I can limit Heartbeat monitor operations > to run on some nodes in cluster only? I think heartbeat will run the monitor script regardless, because it wants to make sure each resource is running in only one plac

Re: [Linux-HA] Tomcat times out

2008-07-07 Thread Michael Alger
On Mon, Jul 07, 2008 at 04:18:48PM +0200, Ehlers, Kolja wrote: >> I am running Apache and one virtual ip adress in one group now >> and 9 tomcat instances ungrouped. I want heartbeat to start and >> monitor the apache/ip group on only one node and all tomcats on >> both nodes. So if apache or the i

Re: [Linux-HA] Tomcat times out

2008-07-07 Thread Michael Alger
On Mon, Jul 07, 2008 at 11:40:06AM +0200, Ehlers, Kolja wrote: > > I have a general question about bash programming since yet I am > not too familiar with it. The isrunning_tomcat() function in the > tomcat ocf keeps returning an error code. This is the function: > > if wget -O /dev/null $R

Re: [Linux-HA] updating cib.xml?

2008-07-03 Thread Michael Alger
On Fri, Jul 04, 2008 at 10:14:57AM +1200, Steve Wray wrote: > Having made a copy of the cib.xml file and modified that copy, I > had thought that the way to make it live was to run: > > # cibadmin -R -x cib.xml > Call cib_replace failed (-45): Update was older than existing configuration > > >

Re: [Linux-HA] cibadmin.

2008-07-03 Thread Michael Alger
On Thu, Jul 03, 2008 at 08:53:35AM +0200, Patrik Martinsson wrote: > When i use cibadmin to update my cib, the actual cluster gets > updated but the actual file, cib.xml, doesn't, which ofcourse > means that, if i take down heartbeat and start it again it will > read from the cib.xml which is the o

Re: [Linux-HA] cibadmin not working...

2008-07-02 Thread Michael Alger
On Thu, Jul 03, 2008 at 02:54:34PM +1200, Steve Wray wrote: > I've been running with a v1 config fine for a while and now have > v2 on the test bed. > > So far its working ok with respect to failovers but I've hit a > problem with administering it. > > # cibadmin -Q > Signon to CIB failed: connec

Re: [Linux-HA] Fw: Resources won't run

2008-07-02 Thread Michael Alger
On Wed, Jul 02, 2008 at 04:42:08PM -0500, [EMAIL PROTECTED] wrote: > Hello I'm having problems getting resources to run on my nodes. > To keep things simple I've gone down to one IpAddr2 resource and > only one node. Basically I'm getting "resource cannot run > anywhere errors" on any resource I t

Re: [Linux-HA] Strange HB Status displayed for root vs. unprivileged users; bug or feature?

2008-07-01 Thread Michael Alger
On Tue, Jul 01, 2008 at 04:04:54PM +0200, [EMAIL PROTECTED] wrote: > After I had successfully upgraded this cluster to the new OS I was > wondering, why my Nagios plugin always returned CRITICAL states > though heartbeat was running on the node at the time. > Then I discovered that the output of my

Re: [Linux-HA] OCF monitor troubles.

2008-06-30 Thread Michael Alger
On Mon, Jun 30, 2008 at 10:03:39PM -0700, codeline wrote: > I have been using heartbeat 2.0.8 on linux 2.6. All the cli tools > seem to work well and I am able to test fail over successfully > when the network or heartbeat fails. You might want to consider updating to the latest version, as there

Re: [Linux-HA] sometimes crm_resource -F fails

2008-06-25 Thread Michael Alger
On Wed, Jun 25, 2008 at 07:44:25PM -0600, Serge Dubrouski wrote: > On Wed, Jun 25, 2008 at 5:49 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: >> A long story - a short patch :) and the morale: >> always include a default clause for the switch statement > > Nope. There was a default for OCF_ERRA

Re: [Linux-HA] Monitoring a non-managed resource

2008-06-23 Thread Michael Alger
On Mon, Jun 23, 2008 at 09:39:10AM +0200, Andrew Beekhof wrote: > On Mon, Jun 23, 2008 at 07:03, Michael Alger <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 20, 2008 at 01:33:40PM +0200, Andrew Beekhof wrote: > >> On Fri, Jun 20, 2008 at 12:35, Michael Alger <[EMAIL PROTECT

Re: [Linux-HA] Monitoring a non-managed resource

2008-06-22 Thread Michael Alger
On Fri, Jun 20, 2008 at 01:33:40PM +0200, Andrew Beekhof wrote: > On Fri, Jun 20, 2008 at 12:35, Michael Alger <[EMAIL PROTECTED]> wrote: >> Is it possible to configure heartbeat such that a managed >> resource (an IPaddr) is affected by the status of an unmanaged >> re

Re: [Linux-HA] Monitoring a non-managed resource

2008-06-22 Thread Michael Alger
On Fri, Jun 20, 2008 at 10:53:04AM -0400, Meyer, Fred H (Fred) wrote: > How do you configure an unmanaged resource in the CIB? I have > been looking at the Configuration Explained doc. Just set its is_managed attribute to false. You'll also need to create a script for heartbeat to invoke, but tha

[Linux-HA] Monitoring a non-managed resource

2008-06-20 Thread Michael Alger
The question in brief: Is it possible to configure heartbeat such that a managed resource (an IPaddr) is affected by the status of an unmanaged resource? In theory I could possibly set up a process outside of heartbeat that periodically checks the status of the service in question, and updates an

Re: [Linux-HA] Resource script not being executed [RESOLVED]

2008-06-19 Thread Michael Alger
On Tue, Jun 17, 2008 at 11:30:37AM +0200, Michael Schwartzkopff wrote: > Am Dienstag, 17. Juni 2008 11:05 schrieb Michael Alger: >> I'm trying to set up a simple two-node cluster for a squid reverse >> proxy, running on Debian etch (heartbeat 2.0.7). > > Use at least

[Linux-HA] Resource script not being executed

2008-06-17 Thread Michael Alger
I'm trying to set up a simple two-node cluster for a squid reverse proxy, running on Debian etch (heartbeat 2.0.7). I'm using IPaddr to manage an IP address resource and that works fine. Where I'm having problems is in trying to add some local monitoring of squid, with the end goal being to constra