[Pacemaker] Demo SystemHealth RA

2009-11-20 Thread Michael Schwartzkopff
Hi, During a seminar we delevoped a Resource agent that measures CPU load and writes the according state into the #health-cpu attribute. The agent measures the percentage of the cpu idle. If it drops below red_limit the attribute will be red. Yellow according. Please review my agent and eventu

Re: [Pacemaker] Fwd: virtual IP

2009-11-20 Thread Tim Serong
On 11/21/2009 at 06:25 AM, Shravan Mishra wrote: > This is my exact output: > > > Last updated: Fri Nov 20 18:20:51 2009 > Stack: openais > Current DC: node1.itactics.com - partition with quorum > Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601 > 2 Nodes configured, 2

[Pacemaker] Fwd: virtual IP

2009-11-20 Thread Shravan Mishra
This is my exact output: Last updated: Fri Nov 20 18:20:51 2009 Stack: openais Current DC: node1.itactics.com - partition with quorum Version: 1.0.5-9e9faaab40f3f97e3c0d623e4a4c47ed83fa1601 2 Nodes configured, 2 expected votes 4 Resources configured. Online: [ node1.itac

[Pacemaker] basic configuration question

2009-11-20 Thread Frank DiMeo
Hi All, In a simple two node cluster, I load the enclosed xml file. I expect that this is the simplest syntax to specify two resources, eyes and clock, where "eyes" and "clock" run on the same node. Actual behavior is that "eyes" and "clock" run on opposite nodes. Is my xml file wr

[Pacemaker] crm_ commands logging to syslog

2009-11-20 Thread Димитър Бойн
Hi, I have noticed commands like "/usr/sbin/crm_attribute --query --name=ClusterId -quiet"would log to /var/log/messages. What is the reason for that? Can I suppress somehow? Thanks! ./Dimitar Boyn ___ Pacemaker mailing list Pacemaker@oss.clusterl

Re: [Pacemaker] NFS server shutdown issue

2009-11-20 Thread Judd Tracy
On Fri, Nov 20, 2009 at 1:29 PM, Andrew Beekhof wrote: > On Fri, Nov 20, 2009 at 7:12 PM, Judd Tracy wrote: > > It is a weird issue. Redhat kills the nfs daemons with a kill -2 in > their > > init script. But when pacemaker starts the nfs daemons the only way to > kill > > the daemons is a kil

[Pacemaker] virtual IP

2009-11-20 Thread Shravan Mishra
H i guys, I'm trying to bring up my vitrual ip on eth1 interface but I'm getting when I do crm_mon I get :invalid parameter error That part of the config is : My eth1 ip address 172.30.0.145. eth1'

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 8:05 PM, Andrew Beekhof wrote: > On Fri, Nov 20, 2009 at 12:36 PM, Andrew Beekhof wrote: >> Remote notifications should work, I'll test that today. > > As of http://hg.clusterlabs.org/pacemaker/stable-1.0/rev/a6d70b1b479d > they finally work for clear-text connections. > T

Re: [Pacemaker] **** SPAM **** Re: pacemaker-1.0.6 + corosync 1.1.2 crashing

2009-11-20 Thread Steven Dake
Nik, Any chance you have a backtrace of the core files? That might be helpful in pinpointing the issue. To do this run gdb binaryname corefilename gdb> bt Regards -steve On Thu, 2009-11-19 at 17:50 +0100, Nikola Ciprich wrote: > Hi Andrew, > sorry to bother again, do You have some idea what el

Re: [Pacemaker] resource dependency

2009-11-20 Thread Alexandre Biancalana
On Fri, Nov 20, 2009 at 4:35 PM, Andrew Beekhof wrote: > On Fri, Nov 20, 2009 at 5:42 PM, Alexandre Biancalana > wrote: >> Hi list, >> >>  I'm building a 4 node cluster where 2 nodes will export drbd devices >> via ietd iscsi target (storage nodes) and other 2 nodes will run xen >> vm (app nodes)

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 12:36 PM, Andrew Beekhof wrote: > Remote notifications should work, I'll test that today. As of http://hg.clusterlabs.org/pacemaker/stable-1.0/rev/a6d70b1b479d they finally work for clear-text connections. Testing encrypted ones now. __

Re: [Pacemaker] resource dependency

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 5:42 PM, Alexandre Biancalana wrote: > Hi list, > >  I'm building a 4 node cluster where 2 nodes will export drbd devices > via ietd iscsi target (storage nodes) and other 2 nodes will run xen > vm (app nodes) stored in lvm partition accessed via open-iscsi > initiator, usi

Re: [Pacemaker] {Pacemaker] Is there a way for a resource to receive an event of node join or left?

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 7:15 PM, hj lee wrote: > > > On Fri, Nov 20, 2009 at 12:42 AM, Andrew Beekhof wrote: >> >> > >> > I need a resource to do something on event of node join/left. Is it >> > possible >> > to receive node join/left event at resource level? >> >> If its a clone, then you can as

Re: [Pacemaker] {Pacemaker] Is there a way for a resource to receive an event of node join or left?

2009-11-20 Thread Lundgren, Andrew
Will enabling traps do what you want? From: hj lee [mailto:kerd...@gmail.com] Sent: Friday, November 20, 2009 11:16 AM To: pacemaker@oss.clusterlabs.org Subject: Re: [Pacemaker] {Pacemaker] Is there a way for a resource to receive an event of node join or left? On Fri, Nov 20, 2009 at 12:42 AM,

Re: [Pacemaker] NFS server shutdown issue

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 7:12 PM, Judd Tracy wrote: > It is a weird issue.  Redhat kills the nfs daemons with a kill -2 in their > init script.  But when pacemaker starts the nfs daemons the only way to kill > the daemons is a kill -9.  I don't have a clue what pacemaker is doing that > would cause

Re: [Pacemaker] {Pacemaker] Is there a way for a resource to receive an event of node join or left?

2009-11-20 Thread hj lee
On Fri, Nov 20, 2009 at 12:42 AM, Andrew Beekhof wrote: > > > > I need a resource to do something on event of node join/left. Is it > possible > > to receive node join/left event at resource level? > > If its a clone, then you can ask for notifications. > Otherwise, you need to look in the cib or

Re: [Pacemaker] NFS server shutdown issue

2009-11-20 Thread Judd Tracy
It is a weird issue. Redhat kills the nfs daemons with a kill -2 in their init script. But when pacemaker starts the nfs daemons the only way to kill the daemons is a kill -9. I don't have a clue what pacemaker is doing that would cause this behavior. As far as the mysql order constraint since

Re: [Pacemaker] resource dependency

2009-11-20 Thread Matthew Palmer
On Fri, Nov 20, 2009 at 03:14:16PM -0200, Alexandre Biancalana wrote: > On Fri, Nov 20, 2009 at 2:53 PM, Matthew Palmer wrote: > > On Fri, Nov 20, 2009 at 02:42:29PM -0200, Alexandre Biancalana wrote: > >> ?I'm building a 4 node cluster where 2 nodes will export drbd devices > >> via ietd iscsi ta

Re: [Pacemaker] resource dependency

2009-11-20 Thread Alexandre Biancalana
On Fri, Nov 20, 2009 at 2:53 PM, Matthew Palmer wrote: > On Fri, Nov 20, 2009 at 02:42:29PM -0200, Alexandre Biancalana wrote: >>  I'm building a 4 node cluster where 2 nodes will export drbd devices >> via ietd iscsi target (storage nodes) and other 2 nodes will run xen >> vm (app nodes) stored i

Re: [Pacemaker] resource dependency

2009-11-20 Thread Matthew Palmer
On Fri, Nov 20, 2009 at 02:42:29PM -0200, Alexandre Biancalana wrote: > I'm building a 4 node cluster where 2 nodes will export drbd devices > via ietd iscsi target (storage nodes) and other 2 nodes will run xen > vm (app nodes) stored in lvm partition accessed via open-iscsi > initiator, using mu

[Pacemaker] resource dependency

2009-11-20 Thread Alexandre Biancalana
Hi list, I'm building a 4 node cluster where 2 nodes will export drbd devices via ietd iscsi target (storage nodes) and other 2 nodes will run xen vm (app nodes) stored in lvm partition accessed via open-iscsi initiator, using multipath to failover. Configuring the cluster resources order I cam

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 1:05 PM, Colin wrote: > PS: I believe this CRM_ASSERT() in lib/common/remote.c can never trigger. Its designed to detect if somehow we asked for an encrypted message when Pacemaker wasn;t built with gnutls. Its a sanity check, its not supposed to go off. > >    if(encrypt

Re: [Pacemaker] Resource capacity limit

2009-11-20 Thread Yan Gao
Hi Andrew, On 11/20/09 04:10, Andrew Beekhof wrote: > Btw. You're still missing some test cases ;-) Oh, right:-) I created some. Hope I created them in the correct way. Sorry for so many attachments... Thanks, Yan -- y...@novell.com Software Engineer China Server Team, OPS Engineering Novell,

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Colin
PS: I believe this CRM_ASSERT() in lib/common/remote.c can never trigger. if(encrypted) { #ifdef HAVE_GNUTLS_GNUTLS_H reply = cib_recv_tls(session); #else CRM_ASSERT(encrypted == FALSE); #endif } else { ___ Pacemaker mailing list

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Colin
On Fri, Nov 20, 2009 at 12:36 PM, Andrew Beekhof wrote: > On Fri, Nov 20, 2009 at 11:17 AM, Colin wrote: >> - The assumption that a partial read (wrt. the buffer) signals no more >> data is IMO not valid. > > It is if you didn't get a signal. What if the number of payload bytes per IP packet is

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Andrew Beekhof
On Fri, Nov 20, 2009 at 11:17 AM, Colin wrote: > Hi, > > this is looking better again: A remote "cibadmin -Q" is now doing the > right thing, however a remote "crm_mon" is still _not_ working > correctly. > > Let's see, now that I should know where to look ... the function > cib_recv_plaintext() i

Re: [Pacemaker] Remote Access not Working

2009-11-20 Thread Colin
Hi, this is looking better again: A remote "cibadmin -Q" is now doing the right thing, however a remote "crm_mon" is still _not_ working correctly. Let's see, now that I should know where to look ... the function cib_recv_plaintext() in lib/common/remote.c looks a bit suspicious to me: - The "if

Re: [Pacemaker] ocf:heartbeat:pingd receives wrong value in $__ACTION

2009-11-20 Thread Dejan Muhamedagic
On Thu, Nov 19, 2009 at 06:49:53PM +0100, Andrew Beekhof wrote: > On Thu, Nov 19, 2009 at 3:34 PM, Dejan Muhamedagic > wrote: > > Hi, > > > > On Thu, Nov 19, 2009 at 01:17:10PM +0100, Andrew Beekhof wrote: > >> On Thu, Nov 19, 2009 at 12:30 PM, Dejan Muhamedagic > >> wrote: > >> > Hi, > >> > >