[Linux-HA] reset server with stonith
Dave Blaschke
debltc at us.ibm.com
Thu Oct 19 13:54:04 MDT 2006
Javier Terceiro wrote:
> Hi,
>
> I need reset my server heartbeat when a resource service failes. I
> want use
> stonith, but I don`t use it, and I don`t find information about it.
>
> My stonith module suport ( stonith -L ) suicide, but I don`t work with
> it.
> Some configuration that knows to make work it?
>
> My /etc/ha.d/ha.cf
>
> logfacility daemon
> keepalive 1
> deadtime 10
> warntime 5
> initdead 10
> udpport 694 # UDP port
> auto_failback off
> # Name of nodes
> node melchor
> node gaspar
> use_logd yes
> #Compresion??
> compression bz2
> compression_threshold 2
> crm yes
> autojoin any
> watchdog /dev/watchdog
> #Multicast
> mcast eth0 225.0.0.0 694 2 0
> #Stonith line
> stonith_host * suicide
>
> With stonith ssh module (NOT producction) it don`t work either.
>
> My /etc/ha.d/ha.cf
> ...
> ...
> ...
> #Stonith line
> stonith_host * ssh melchor gaspar
Do the machines in the hostlist match their network node hostnames?
What this means is that "uname -n" on melchor returns melchor. If so,
does stonith work from the command line? Try:
stonith -t ssh -p "melchor gaspar" -T reset melchor
from gaspar or vice versa. If it doesn't, add the -d option to see more
detailed logging.
> _________________________________________________________________________
>
> How I can obtain that the server reboot when failing a resource (without
> using to power swtich)?
>
> Thanks
More information about the Linux-HA
mailing list