Hi,

ssh STONITH is not for production use, Dominik mentioned it already but
it cannot be said enough. 

ssh keys aren't enough, you need "at" daemon to be running also. The way
it works is that the intact node puts a "reboot" command into into the
failing node's "at scheduler" then few moments later the reboot should
begin. 

ssh-keys is step one
atd start is step two

on SuSE it should be 
insserv atd && rcatd start

Regards,
Ivan


On Fri, 2009-01-09 at 14:57 +0530, Mujtaba, Sayed Mohammed wrote:
> Hi Dominik,
>  I have already done that set up for ssh keys and able to login/ssh from
> VM1 to VM2 and vice versa but still problem exists and also I tried
> stonith xen0
> in place of external/ ssh but no effects...
> 
>  Thanks,
> -Mujtaba
> 
>  
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Dominik Klein
> Sent: Friday, January 09, 2009 1:23 PM
> To: General Linux-HA mailing list
> Subject: Re: [Linux-HA] STONITH
> 
> Mujtaba, Sayed Mohammed wrote:
> > 
> >  Hi ,
> >   I am using heartbeat STONITH (external ssh ) for fencing nodes in
> case
> > of application failover . Set up is like this (I am using heartbeat
> > cluster)
> 
> ssh stonith is just meant for testing and not supported or suggested for
> any kind of production use.
> 
> >  I am using two VMs on two different host machines say VM1 on host
> > machine1 and VM2 on host machine 2. My desired configuration is such
> > that when some application fails on VM1(of host machine 1) then
> VM2(of
> > host machine 2) should fence VM1 but it is failing and throwing
> messages
> > below
> >          
> >  Jan  8 12:28:52 p7pv2 stonithd: [27295]: info: Failed to STONITH node
> > p6pv2 with one local device, exitcode = 5. Will try to use the next
> > local device.
> > 
> >  
> > 
> >  My question is whether fencing (STONITH external/ssh) is supported if
> > VMs are on different different host machines? Or it expects both VMs
> to
> > be on same host machines ?
> 
> Whether the node is a VM or not and whether VMs are on the same host
> should not matter. Are you able to login from VM1 to VM2 and vice versa?
> Iirc, you need to setup ssh keys for root in order for ssh stonith to
> work.
> 
> Regards
> Dominik
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to