Hi,
  I am able to fence it using external/ssh for my testing but need some
clarification as I modified some part here... 
  I observed from log file that heartbeat GUI invokes this script for
fencing of other node (Stonith external ssh) 

/usr/lib64/stonith/plugins/external/ssh off p6pv2

But when I checked the script I found below code which is not doing any
thing (for case on and off)

case $1 in
gethosts)
        for h in $hostlist ; do
                echo $h
        done
        exit 0
        ;;
on)
        # Can't really be implemented because ssh cannot power on a
system
        # when it is powered off.
        exit 1
        ;;
off)
        # Shouldn't really be implemented because if ssh cannot power on
a
        # system, it shouldn't be allowed to power it off.

        rsh p6pv2 reboot
        exit 1
        ;;
reset)
        for h in $hostlist

off)
        # Shouldn't really be implemented because if ssh cannot power on
a
        # system, it shouldn't be allowed to power it off.
        exit 1
        ;;
    

 For testing I enabled remote ssh on node which is to be fenced and put
this code below in  case off

     off)
        # Shouldn't really be implemented because if ssh cannot power on
a
        # system, it shouldn't be allowed to power it off.

        rsh p6pv2 reboot
        exit 1
        ;;


  And I observed that it is able to reboot(fence) the other node
successfully and testing is working as expected  ...

  Anyone having idea why this part of code is not doing any thing ?
means is it some bug I found or any strong reason behind not fencing in
that part ...
   If it is bug can my corrected code can be taken as for bug fixing??


 Thanks,
-Mujtaba 


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mujtaba, Sayed
Mohammed
Sent: Friday, January 09, 2009 2:57 PM
To: General Linux-HA mailing list
Subject: RE: [Linux-HA] STONITH

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