[Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Lino Moragon
Hi List, I've got a 2 Node HA-cluster running on a XEN Host. To fence the nodes I wanted to implement the external/ssh plugin in order to fence the node if both configured heartbeat links on 2 NICs went down. My question: Is it possible to configure the plugin, so that the good node, that has got

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Serge Dubrouski
I have a such plugin if you are interested in it. On Mon, Feb 25, 2008 at 8:35 AM, Lino Moragon <[EMAIL PROTECTED]> wrote: > Hi List, > > I've got a 2 Node HA-cluster running on a XEN Host. > To fence the nodes I wanted to implement the external/ssh plugin in > order to fence the node if both c

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Lino Moragon
Serge Dubrouski schrieb: > I have a such plugin if you are interested in it. I'm very interested in it :-) That would be very nice. Would you post or attach it? Thanks, Lino > On Mon, Feb 25, 2008 at 8:35 AM, Lino Moragon <[EMAIL PROTECTED]> wrote: >> Hi List, >> >> I've got a 2 Node HA-clu

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Serge Dubrouski
Plugin is attached. Put it into /usr/lib/stonith/plugins/external/. And here is an example how to use it:

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Lino Moragon
Hey Serge Thanks a lot! Really very kind of you. I will give it a try. With your instructions i hope i won't have too many troubles implementing it. Thanks again, Lino Serge Dubrouski schrieb: > Plugin is attached. Put it into /usr/lib/stonith/plugins/external/. > And here is an example how to u

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Dejan Muhamedagic
Hi Serge, On Mon, Feb 25, 2008 at 10:27:10AM -0700, Serge Dubrouski wrote: > Plugin is attached. Put it into /usr/lib/stonith/plugins/external/. Do you feel like contributing the thing? If so, you know the drill :) Thanks, Dejan > And here is an example how to use it: > > >

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Serge Dubrouski
I would love to do that and already tried it. Though we didn't come to agreement on how configuration parameters should look like. So if you wish and have time please review it, let me know your thoughts and I'll be glad to make any changes. Allan already have my form submitted. On Mon, Feb 25, 2

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Dejan Muhamedagic
Hi, On Mon, Feb 25, 2008 at 11:27:38AM -0700, Serge Dubrouski wrote: > I would love to do that and already tried it. Though we didn't come to > agreement on how configuration parameters should look like. Why? Was there a discussion on the list about it? The configuration is a bit unusual. Other s

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Serge Dubrouski
On Mon, Feb 25, 2008 at 12:10 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: > Hi, > > > On Mon, Feb 25, 2008 at 11:27:38AM -0700, Serge Dubrouski wrote: > > I would love to do that and already tried it. Though we didn't come to > > agreement on how configuration parameters should look like. >

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-25 Thread Dejan Muhamedagic
Hi, On Mon, Feb 25, 2008 at 12:17:40PM -0700, Serge Dubrouski wrote: > On Mon, Feb 25, 2008 at 12:10 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: > > Hi, > > > > > > On Mon, Feb 25, 2008 at 11:27:38AM -0700, Serge Dubrouski wrote: > > > I would love to do that and already tried it. Though we

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-26 Thread Serge Dubrouski
On Mon, Feb 25, 2008 at 4:02 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: > Hi, > > > On Mon, Feb 25, 2008 at 12:17:40PM -0700, Serge Dubrouski wrote: > > On Mon, Feb 25, 2008 at 12:10 PM, Dejan Muhamedagic <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > > > > > > > On Mon, Feb 25, 2008 at

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-26 Thread Serge Dubrouski
Dejan - I found a compromise :-) Attached is a version of that plugin that supports following parameters: 1. hostlist. A string that has a list of controlled nodes separated by space or commas. A required parameter. In a simple form its just a list of nodes. If one needs to use non-standard Xen c

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-28 Thread Dejan Muhamedagic
Hi Serge, On Tue, Feb 26, 2008 at 09:46:14AM -0700, Serge Dubrouski wrote: > Dejan - > > I found a compromise :-) Attached is a version of that plugin that > supports following parameters: > > 1. hostlist. A string that has a list of controlled nodes separated by > space or commas. A required pa

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-28 Thread Serge Dubrouski
Attached. On Thu, Feb 28, 2008 at 3:35 AM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: > Hi Serge, > > > On Tue, Feb 26, 2008 at 09:46:14AM -0700, Serge Dubrouski wrote: > > Dejan - > > > > I found a compromise :-) Attached is a version of that plugin that > > supports following parameters:

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-02-28 Thread Dejan Muhamedagic
Hi, On Thu, Feb 28, 2008 at 06:43:17AM -0700, Serge Dubrouski wrote: > Attached. Applied. Thanks! Dejan > > On Thu, Feb 28, 2008 at 3:35 AM, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote: > > Hi Serge, > > > > > > On Tue, Feb 26, 2008 at 09:46:14AM -0700, Serge Dubrouski wrote: > > > Dejan - >

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-03 Thread Lino Moragon
Hi, I'm using now the most actual xen0 stonith plugin, that Serge attachted the 2008-02-28 to this thread. I thought I configured everything correct but it seems that the stonith clone cannot be started on my 2nd node. I must admit I configured the Clone via hb_gui but I still have some issues. As

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-03 Thread Serge Dubrouski
Configuration looks right to me, I even tested it and it worked fine on my test cluster. So hints are obvious: 1. Check that you really put that script on a second node and made it executable. 2. Nodes should be able to ping each other. That programmed in a "status" function. On Mon, Mar 3, 200

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-03 Thread Lino Moragon
Serge Dubrouski wrote: Configuration looks right to me, I even tested it and it worked fine on my test cluster. So hints are obvious: 1. Check that you really put that script on a second node and made it executable. That was my first error, but i noticed a error message in the logfile and c

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-03 Thread Serge Dubrouski
On Mon, Mar 3, 2008 at 12:08 PM, Lino Moragon <[EMAIL PROTECTED]> wrote: > Serge Dubrouski wrote: > > Configuration looks right to me, I even tested it and it worked fine > > on my test cluster. So hints are obvious: > > > > 1. Check that you really put that script on a second node and made it

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-04 Thread Serge Dubrouski
Lino, were you able to make it work? On Mon, Mar 3, 2008 at 11:28 AM, Serge Dubrouski <[EMAIL PROTECTED]> wrote: > On Mon, Mar 3, 2008 at 12:08 PM, Lino Moragon <[EMAIL PROTECTED]> wrote: > > Serge Dubrouski wrote: > > > Configuration looks right to me, I even tested it and it worked fine > >

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-05 Thread Lino Moragon
Serge Dubrouski schrieb: > Lino, were you able to make it work? Well, I was... But I don't know how :-). I always received that same errormessages until I shutdown both nodes and started my secondary. Then the Clone was able to get running on my 2nd. As I powered on again the first node the clone

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-05 Thread DAIKI MATSUDA
Hi, I have already made similar one. And I tested your 'xen0'. It has a little problem. The domU's hostname is not always same as config file name. So, I fixed it to pick up the target node from config file. Regards MATSUDA, Daiki 2008/2/28, Serge Dubrouski <[EMAIL PROTECTED]>: > Attached. > > >

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-05 Thread Serge Dubrouski
You are right, they can be different but the main idea was thet a user must provide a correct node name. So I'm not sure in this patch because it creates some kind of a loop in logic: config file depends on a node name from hostlist, and now you are making node name to depend on that config file.

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-06 Thread Serge Dubrouski
As it sometimes happens after a second thought I'm absolutely agree with a proposed patch. Dejan, could you please apply a following patch to xen0 script? --- xen0.old2008-03-06 08:37:20.0 -0500 +++ xen02008-03-06 08:34:03.0 -0500 @@ -81,7 +81,13 @@ case $2 i

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-06 Thread DAIKI MATSUDA
Sorry, previous patch is a little dangerous. Could you use attached one? Regards MATSUDA, Daiki 2008/3/6, Serge Dubrouski <[EMAIL PROTECTED]>: > As it sometimes happens after a second thought I'm absolutely agree > with a proposed patch. > > Dejan, could you please apply a following patch to xe

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-07 Thread Serge Dubrouski
In fact this one has a little problem too. Spaces around = aren't required in xen config files, so one can have "name=node_name" and in this case this patch fails. So the better version would be something like this: --- xen0.old2008-03-06 08:37:20.0 -0500 +++ xen02008-03-07 10:

Re: [Linux-HA] question: external/ssh stonith to poweroff badnode via xen-host

2008-03-09 Thread DAIKI MATSUDA
thanks. 2008/3/8, Serge Dubrouski <[EMAIL PROTECTED]>: > In fact this one has a little problem too. Spaces around = aren't > required in xen config files, so one can have "name=node_name" and in > this case this patch fails. So the better version would be something > like this: > > > --- xen0.