Re: [Pacemaker] How to stop a resource?

2012-03-19 Thread Dejan Muhamedagic
Hi, On Mon, Mar 19, 2012 at 09:27:30AM +, Tim Ward wrote: > > From: Lars Marowsky-Bree [mailto:l...@suse.com] > > > > > > crm has a synchronous mode nowadays too. > > > > > How do I use that? - I haven't noticed it in any of the > > documentation that I've found. > > > > crm -w > > > > ma

Re: [Pacemaker] How to stop a resource?

2012-03-19 Thread Tim Ward
> From: Lars Marowsky-Bree [mailto:l...@suse.com] > > > > crm has a synchronous mode nowadays too. > > > How do I use that? - I haven't noticed it in any of the > documentation that I've found. > > crm -w > > man crm should have it, if you've got a recent enough version. The documentation on

Re: [Pacemaker] How to stop a resource?

2012-03-16 Thread Lars Marowsky-Bree
On 2012-03-16T10:00:41, Tim Ward wrote: > > crm has a synchronous mode nowadays too. > How do I use that? - I haven't noticed it in any of the documentation that > I've found. crm -w man crm should have it, if you've got a recent enough version. Regards, Lars -- Architect Storage/HA SU

Re: [Pacemaker] How to stop a resource?

2012-03-16 Thread Tim Ward
> From: Lars Marowsky-Bree [mailto:l...@suse.com] > > crm has a synchronous mode nowadays too. How do I use that? - I haven't noticed it in any of the documentation that I've found. Tim Ward Brett Ward Limited - www.brettward.co.uk This message contains confidential information and may

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Lars Marowsky-Bree
On 2012-03-15T14:39:52, Andreas Kurz wrote: > I think your problem is, that a "crm resource stop" is asynchronous ... crm has a synchronous mode nowadays too. He should use that, and first "stop" the resource he wants to stop before starting to delete bits from the CIB, I think. Regards,

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Arnold Krille
Hi, On 15.03.2012 14:39, Andreas Kurz wrote: On 03/15/2012 02:23 PM, Tim Ward wrote: From: Jake Smith [mailto:jsm...@argotec.com] Maybe totally in the wrong direction for what you want but... Put commands in a script and add a until loop with a pgrep test and sleep 1 till the specific resource

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Tim Ward
> From: Andreas Kurz [mailto:andr...@hastexo.com] > >> > >> Maybe totally in the wrong direction for what you want but... > >> Put commands in a script and add a until loop with a pgrep > test and > >> sleep 1 till the specific resource is stopped then continue? > > > > Yes, probably is in the

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Andreas Kurz
On 03/15/2012 02:23 PM, Tim Ward wrote: >> From: Jake Smith [mailto:jsm...@argotec.com] >> >> Maybe totally in the wrong direction for what you want but... >> Put commands in a script and add a until loop with a pgrep >> test and sleep 1 till the specific resource is stopped then continue? > > Y

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Tim Ward
> From: Jake Smith [mailto:jsm...@argotec.com] > > Maybe totally in the wrong direction for what you want but... > Put commands in a script and add a until loop with a pgrep > test and sleep 1 till the specific resource is stopped then continue? Yes, probably is in the wrong direction. I'm driv

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Jake Smith
- Original Message - > From: "Tim Ward" > To: "The Pacemaker cluster resource manager" > Sent: Thursday, March 15, 2012 8:58:19 AM > Subject: Re: [Pacemaker] How to stop a resource? > > I think that describes an interactive session? > > I

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Tim Ward
5 March 2012 12:48 > To: pacemaker@oss.clusterlabs.org > Subject: Re: [Pacemaker] How to stop a resource? > > Le 15/03/2012 12:50, Tim Ward a écrit : > > > So, does anyone have any ideas as to what is going on here, > and/or how to actually stop and then delete something? - thanks! >

Re: [Pacemaker] How to stop a resource?

2012-03-15 Thread Florian Crouzat
Le 15/03/2012 12:50, Tim Ward a écrit : So, does anyone have any ideas as to what is going on here, and/or how to actually stop and then delete something? - thanks! $ crm configure property maintenance-mode=true commit quit $ /etc/init.d/myResource stop $ crm resource cleanup myResource # so

[Pacemaker] How to stop a resource?

2012-03-15 Thread Tim Ward
The description of resource agents at http://www.linux-ha.org/wiki/Resource_Agents includes "They are synchronous in nature. That is, you start them, and they complete some time later, and you are expected to wait for them to complete." I am assured by team members that we have verified that ou