[Pacemaker] [PATCH 2 of 2] low: remove various bashisms

2010-07-07 Thread Simon Horman
# HG changeset patch # User Simon Horman # Date 1278569313 -32400 # Node ID 48a51108d0d181ecb21c3289d3bc86b46f77f622 # Parent 110d056193472fa64ffabd3069d5ed20d32b01c2 low: remove various bashisms As reported by Debian's devscripts's checkbashisms. Signed-off-by: Simon Horman diff -r 110d05619

[Pacemaker] [PATCH 0 of 2] remove bashisms

2010-07-07 Thread Simon Horman
Hi, together the following two patches remove all the bashims that Debian's devscripts's checkbashisms flags which I think make sense. This should allow Debian bug #581132 to be closed. http://bugs.debian.org/581132 ___ Pacemaker mailing list: Pacemak

[Pacemaker] [PATCH 1 of 2] low: Use awk instead of bash to calculate memory and disk sizes

2010-07-07 Thread Simon Horman
# HG changeset patch # User Simon Horman # Date 1278569160 -32400 # Node ID 110d056193472fa64ffabd3069d5ed20d32b01c2 # Parent e823bf55e0d875bcd9dc1668f24547345b9bdf81 low: Use awk instead of bash to calculate memory and disk sizes The initial motivation for this work was to remove bashisms. Howe

[Pacemaker] Possible bug with ibmrsa stonith resource

2010-07-07 Thread Claude . Durocher
- Avis: Ce message est confidentiel et ne s'adresse qu'aux destinataires. Si vous le recevez par erreur, veuillez le supprimer et nous en aviser. - I'm using the latest version of the external/ibmrsa stonith resource. When I start or monitor the ressource, the log file is filled with error message

Re: [Pacemaker] Upgraded mysql from 5.0 to 5.1 - And changed to OCF RA

2010-07-07 Thread Jake Bogie
Slight update, I put qad01 into Standby and all the resources came online on qad02...except for mysql-server. I stopped the corosync service on qad01 and all of a sudden mysql-server came online on qad02..what's going on here? [r...@qad02 heartbeat]# crm status Last updated: Wed Jul

Re: [Pacemaker] Drbd/Nfs MS don't failover on slave node

2010-07-07 Thread Guillaume Chanaud
I was so taken up by configuration parameters that i didn't checked those parameters names was correctly typed (i didn't use the console directly, but update a cib dump with "configure load update /pat/mycib". So i didn't had the reflex to use auto-completion). I have to wait the full resync

Re: [Pacemaker] Upgraded mysql from 5.0 to 5.1 - And changed to OCF RA

2010-07-07 Thread Raoul Bhatia [IPAX]
On 07/07/2010 05:55 PM, Jake Bogie wrote: > So I took Dan's advice this time and cleaned up my resource > configuration, updated the script, and verified...however I'm still not > getting the resource online... hi, please use hb_report to gather the logfiles. > # cat /var/log/messages | grep mys

[Pacemaker] Upgraded mysql from 5.0 to 5.1 - And changed to OCF RA

2010-07-07 Thread Jake Bogie
So I took Dan's advice this time and cleaned up my resource configuration, updated the script, and verified...however I'm still not getting the resource online... [r...@qad01 heartbeat]# crm resource start mysql-server [r...@qad01 heartbeat]# crm status Last updated: Wed Jul 7 11:49:

Re: [Pacemaker] Drbd/Nfs MS don't failover on slave node

2010-07-07 Thread Vadym Chepkov
On Jul 7, 2010, at 11:41 AM, Guillaume Chanaud wrote: > I already tried the > > no_quorum-policy="ignore" > which has no effect > > I just retried when reading your mail and resources doesn't migrate. > In fact even if i boot only one server, this one won't promote the resources > until the se

Re: [Pacemaker] Drbd/Nfs MS don't failover on slave node

2010-07-07 Thread Guillaume Chanaud
I already tried the no_quorum-policy="ignore" which has no effect I just retried when reading your mail and resources doesn't migrate. In fact even if i boot only one server, this one won't promote the resources until the second is up...which is far from HA ;) Guillaume On Mon, Jul 05, 201

Re: [Pacemaker] SysInfo_mem_units()

2010-07-07 Thread Simon Horman
On Wed, Jul 07, 2010 at 11:16:21AM +0200, Andrew Beekhof wrote: > On Wed, Jul 7, 2010 at 8:53 AM, Simon Horman wrote: > > On Wed, Jul 07, 2010 at 08:27:17AM +0200, Andrew Beekhof wrote: > >> On Wed, Jul 7, 2010 at 6:17 AM, Simon Horman wrote: > >> > Hi, > >> > > >> > I am currently pondering the

Re: [Pacemaker] [PATCH] suggested bashism fixes for hb2openais.sh

2010-07-07 Thread Raoul Bhatia [IPAX]
On 07/07/2010 11:37 AM, Dejan Muhamedagic wrote: > Yes, this is just an auxiliary script, I'll make it a bash > script. why not apply the rather trivial changes? thanks, raoul -- DI (FH) Raoul Bhatia M.Sc. email.

Re: [Pacemaker] Upgraded mysql from 5.0 to 5.1

2010-07-07 Thread Dan Frincu
Have you copied twice this line? socket="/var/lib/mysql/mysql.sock" binary="/usr/sbin/mysqld" socket="/var/lib/mysql/mysql.sock" binary="/usr/sbin/mysqld" I think so. Regardless, to test a resource agent manually requires that you define some variables and then call the script by hand. Also, ch

Re: [Pacemaker] Upgraded mysql from 5.0 to 5.1

2010-07-07 Thread Dejan Muhamedagic
Hi, On Tue, Jul 06, 2010 at 12:42:41PM -0400, Jake Bogie wrote: > So I took Raoul's advice and ditched the lsb:mysql check and went for > the ocf:heartbeat version however... > > I'm getting this now... > > What am I missing? I'm having a hard time finding a document on how to > setup this resou

Re: [Pacemaker] [PATCH] suggested bashism fixes for hb2openais.sh

2010-07-07 Thread Dejan Muhamedagic
Hi, On Wed, Jul 07, 2010 at 01:12:20AM +0200, Lars Ellenberg wrote: > On Tue, Jul 06, 2010 at 04:45:13PM +0200, Raoul Bhatia [IPAX] wrote: > > # HG changeset patch > > # User Raoul Bhatia [IPAX] > > # Date 1278427473 -7200 > > # Branch stable-1.0 > > # Node ID 6396b06964a167a53b57b80ab316c96c9de3

Re: [Pacemaker] SysInfo_mem_units()

2010-07-07 Thread Andrew Beekhof
On Wed, Jul 7, 2010 at 8:53 AM, Simon Horman wrote: > On Wed, Jul 07, 2010 at 08:27:17AM +0200, Andrew Beekhof wrote: >> On Wed, Jul 7, 2010 at 6:17 AM, Simon Horman wrote: >> > Hi, >> > >> > I am currently pondering the SysInfo_mem_units() function >> > of sources/SysInfo (with a view to turning

Re: [Pacemaker] [PATCH]Omitted STONITH of useless broadcast.(only 2 nodes configuration)

2010-07-07 Thread renayama19661014
Hi Andrew, Thank you for comment. > It should be able to calculate the expected number of votes/replies > from the ais/heartbeat membership list directly. > The crmd shouldn't need to pass that info in IMHO. OK. I think about a patch of the form to acquire memberlist from stonithd. Best Regard

Re: [Pacemaker] [PATCH] suggested bashism fixes for hb2openais.sh

2010-07-07 Thread Raoul Bhatia [IPAX]
On 07/07/2010 01:12 AM, Lars Ellenberg wrote: >> -let sw=sw+1 >> > + sw=$((sw+1)) > all of these need to be sw=$(( $sw + 1 )) > and similar. > > ok, so it also works like this in "recent" dash. oh... i wasn't aware of that. i used checkbashism on debian and made the changes in reference to h