[Pacemaker] Asymmetrical cluster : should it probe resources that won't be installed on a node ?

2009-12-07 Thread Thomas Guthmann
Hi, I was wondering why pacemaker is throwing errors about program not installed when it is normal that is not. For instance, on a loadbalancer node (ed-lb2) we don't want to host named (DNS daemon). The cluster is working so far even if pacemaker seems not happy because it still tries to see

[Pacemaker] build issues

2009-12-07 Thread Frank DiMeo
Please disregard the build issues I asked about. Another clone that I pulled seems to build fine. Sorry about that. -Frank From: Frank DiMeo [mailto:frank.di...@bigbandnet.com] Sent: Monday, December 07, 2009 5:13 PM To: pacemaker@oss.clusterlabs.org Subject: Re: [Pacemaker] patch for

[Pacemaker] crm.dtd

2009-12-07 Thread Frank DiMeo
It looks like "crm.dtd" is a file that's generated during the make. I suggest removing it from the repo, so it's not under control. -Frank From: Frank DiMeo [mailto:frank.di...@bigbandnet.com] Sent: Monday, December 07, 2009 5:13 PM To: pacemaker@oss.clusterlabs.org Subject: Re: [Pacem

Re: [Pacemaker] patch for rsc_order loops.

2009-12-07 Thread Frank DiMeo
I pulled a copy of the latest corosync sources, and the mar_gen.h file in that package is identical to the one I have in /usr/include/corosync, so that's not the problem. Is anyone else having problems building the tip of the repo? -Frank From: Frank DiMeo [mailto:frank.di...@bigbandnet.

Re: [Pacemaker] patch for rsc_order loops.

2009-12-07 Thread Frank DiMeo
Actually, now that I look at it more closely, that a corosync file. Maybe I need to update my corosync source? -Frank From: Frank DiMeo [mailto:frank.di...@bigbandnet.com] Sent: Monday, December 07, 2009 4:58 PM To: pacemaker@oss.clusterlabs.org Subject: Re: [Pacemaker] patch for rsc_or

Re: [Pacemaker] patch for rsc_order loops.

2009-12-07 Thread Frank DiMeo
Is the repo at http://hg.clusterlabs.org/pacemaker/stable-1.0 broken? When I try to build it, I get an error in mar_gen.h, line 181. Expected ')' before '*' token. -Frank From: Frank DiMeo [mailto:frank.di...@bigbandnet.com] Sent: Monday, December 07, 2009 2:19 PM To: Andrew Beekhof Cc:

Re: [Pacemaker] pacemaker's logging level

2009-12-07 Thread Shravan Mishra
Thanks Shravan On Mon, Dec 7, 2009 at 1:59 PM, Dejan Muhamedagic wrote: > Hi, > > On Mon, Dec 07, 2009 at 11:59:54AM -0500, Shravan Mishra wrote: > > I'm using corosync, I assume I have to get cluster-glue for logd daemon, > is > > that correct? > > Yes. You need cluster-glue for pacemaker anyway

[Pacemaker] patch for rsc_order loops.

2009-12-07 Thread Frank DiMeo
I've enclosed at mercurial patch for what I believe is a fix for the resource ordering loop creation that I've been chasing. Please look it over and if you approve, I can submit it. -Frank rsc_order_loop_patch Description: rsc_order_loop_patch _

Re: [Pacemaker] pacemaker's logging level

2009-12-07 Thread Dejan Muhamedagic
Hi, On Mon, Dec 07, 2009 at 11:59:54AM -0500, Shravan Mishra wrote: > I'm using corosync, I assume I have to get cluster-glue for logd daemon, is > that correct? Yes. You need cluster-glue for pacemaker anyway. Thanks, Dejan > I'm asking this is because we have an appliance and don't have a bu

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Dejan Muhamedagic
Hi, On Mon, Dec 07, 2009 at 01:01:19PM +0100, Colin wrote: > On Mon, Dec 7, 2009 at 12:27 PM, Andrew Beekhof wrote: > > On Mon, Dec 7, 2009 at 12:14 PM, Colin wrote: > >> On Mon, Dec 7, 2009 at 12:07 PM, Andrew Beekhof wrote: > >>> On Mon, Dec 7, 2009 at 11:10 AM, Colin wrote: > >  # crm c

Re: [Pacemaker] pacemaker's logging level

2009-12-07 Thread Shravan Mishra
I'm using corosync, I assume I have to get cluster-glue for logd daemon, is that correct? I'm asking this is because we have an appliance and don't have a build env in-house , the appliance guys build it for us. There is a back-forth delay so I have to know in advance. Thanks Shravan On Mon, D

Re: [Pacemaker] bug in ordering syntax?

2009-12-07 Thread Frank DiMeo
I did't want to increase logging levels in the pengine in general (just in the function I was interested in) so I hacked the code and added a call to set_crm_log_level in the that function. (Yes, I know it says "crm" and not "pengine", but that's the function that already existed, so I used it)

Re: [Pacemaker] Openais: Corosync Executive couldn't openconfiguration component 'openaisserviceenable'

2009-12-07 Thread Frank DiMeo
AFAIK, this version uses /etc/corosync/corosync.conf. I get the impression this things are in flux right now, but once you find the right directories/files to use, it works. I'm sure that after some cleanup these seemingly conflicting elements will be removed. -Frank > -Original Message-

Re: [Pacemaker] split brain in drbd dual primary setup

2009-12-07 Thread unni krishnan
Ok, one more doubt. How heartbeat + pacemaker is going to detect that the drbd is in stand alone state. There is no cluster partition. Only drbd is disconnected. On Mon, Dec 7, 2009 at 4:40 PM, Andrew Beekhof wrote: > On Sun, Dec 6, 2009 at 8:31 PM, unni krishnan > wrote: >> Hi, >> >> We are u

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Colin
On Mon, Dec 7, 2009 at 12:27 PM, Andrew Beekhof wrote: > On Mon, Dec 7, 2009 at 12:14 PM, Colin wrote: >> On Mon, Dec 7, 2009 at 12:07 PM, Andrew Beekhof wrote: >>> On Mon, Dec 7, 2009 at 11:10 AM, Colin wrote: >  # crm configure delete Thanks, that did the trick — it recursively

Re: [Pacemaker] How can I use logical AND of two expressions?

2009-12-07 Thread Dejan Muhamedagic
Hi, On Thu, Dec 03, 2009 at 06:59:32PM -0700, hj lee wrote: > Hi, > > I want to use logical AND of two expresson in rule. For example, I want to > create location constraint like this. Assume there is pingd and hostname. > > crm configure location my-test-location my-test-resource rule inf: ping

Re: [Pacemaker] How can I use logical AND of two expressions?

2009-12-07 Thread Andrew Beekhof
On Fri, Dec 4, 2009 at 2:59 AM, hj lee wrote: > Hi, > > I want to use logical AND of two expresson in rule. For example, I want to > create location constraint like this. Assume there is pingd and hostname. > > crm configure location my-test-location my-test-resource rule inf: pingd > defined AND

Re: [Pacemaker] pacemaker's logging level

2009-12-07 Thread Andrew Beekhof
On Thu, Dec 3, 2009 at 10:02 PM, Shravan Mishra wrote: > Hi guys, > Is there a way to increase the logging level of the pacemaker. Yes, but how depends on whether you're using heartbeat or openais underneath. > I wish to see debug messages under /var/log/messages in addition to the > messages be

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Andrew Beekhof
On Mon, Dec 7, 2009 at 12:14 PM, Colin wrote: > On Mon, Dec 7, 2009 at 12:07 PM, Andrew Beekhof wrote: >> On Mon, Dec 7, 2009 at 11:10 AM, Colin wrote:  # crm configure delete >>> >>> Thanks, that did the trick — it recursively deletes everything >>> connected to the resource. >>> >>> Wond

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Colin
On Mon, Dec 7, 2009 at 12:07 PM, Andrew Beekhof wrote: > On Mon, Dec 7, 2009 at 11:10 AM, Colin wrote: >>>  # crm configure delete >> >> Thanks, that did the trick — it recursively deletes everything >> connected to the resource. >> >> Wonder why crm_resource —delete doesn't do the same thing… >

Re: [Pacemaker] split brain in drbd dual primary setup

2009-12-07 Thread Andrew Beekhof
On Sun, Dec 6, 2009 at 8:31 PM, unni krishnan wrote: > Hi, > > We are using a cluster setup something like : > > http://picasaweb.google.com/lh/photo/e_uAYjG-8nh7oRZzXDp5HA?feat=directlink > > We are using > > OpenVZ for Virtualization > DRBD with ocfs2 in dual primary mode > heartbeat + pacemaker

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Andrew Beekhof
On Mon, Dec 7, 2009 at 11:10 AM, Colin wrote: >>  # crm configure delete > > Thanks, that did the trick — it recursively deletes everything > connected to the resource. > > Wonder why crm_resource —delete doesn't do the same thing… Its not trying to be clever. It does only what you ask it to do.

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Colin
On Mon, Dec 7, 2009 at 11:06 AM, Michael Schwartzkopff wrote: > Am Montag, 7. Dezember 2009 10:53:46 schrieb Colin: >> Hi, >> >> when trying to delete a resource, either by replacing the whole >> ""-part of the CIB with cibadmin with a new version where >> some resources are missing, or by using a

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Colin
On Mon, Dec 7, 2009 at 11:03 AM, Tim Serong wrote: > On 12/7/2009 at 08:53 PM, Colin wrote: >> Hi, >> >> when trying to delete a resource, either by replacing the whole >> ""-part of the CIB with cibadmin with a new version where >> some resources are missing, or by using a "crm_resource -t primi

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Michael Schwartzkopff
Am Montag, 7. Dezember 2009 10:53:46 schrieb Colin: > Hi, > > when trying to delete a resource, either by replacing the whole > ""-part of the CIB with cibadmin with a new version where > some resources are missing, or by using a "crm_resource -t primitive > —resource name —delete", I get the follo

Re: [Pacemaker] How to delete a resource

2009-12-07 Thread Tim Serong
On 12/7/2009 at 08:53 PM, Colin wrote: > Hi, > > when trying to delete a resource, either by replacing the whole > ""-part of the CIB with cibadmin with a new version where > some resources are missing, or by using a "crm_resource -t primitive > —resource name —delete", I get the following

Re: [Pacemaker] I Like This But...

2009-12-07 Thread Darren.Mansell
Depends on what you're doing with it to make it challenging or not. The old Linux-HA had a very steep learning curve that isn't there as much anymore. A decent level of networking knowledge is required but the documentation is now excellent and with the CRM shell, Pacemaker is a lot easier to work

[Pacemaker] How to delete a resource

2009-12-07 Thread Colin
Hi, when trying to delete a resource, either by replacing the whole ""-part of the CIB with cibadmin with a new version where some resources are missing, or by using a "crm_resource -t primitive —resource name —delete", I get the following error: Error performing operation: Update does not confor

[Pacemaker] System Health Resource Agents

2009-12-07 Thread Michael Schwartzkopff
Hi, I tried to start implementing SystemHealth agents. Please find attached my first tries: HealthCPU: Measures the idle time of the system CPU. HealthSMART: Tells the CBI about the SMART status of all configured disks. Then I realized that there will be a lot of Health resources hanging aroun

[Pacemaker] Multi-level ACLs for the CIB

2009-12-07 Thread Yan Gao
Hi all, Andrew, This planned feature was proposed by Lars. After some discussions with Lars and Tim, I'm sharing it here, and looking forward to hearing your thoughts and suggestions. The goal of this feature is to provide different levels of administration to users. Some of the common scenarios