cottin at free.fr
Mon Apr 23 03:14:50 MDT 2001
I search the archive to find some script to check the network status, and
initiate a take over if a failure is detected; but without success. So I
will write it !!
The idea is to create a HA ressource (netmon for example), which will ping a
gateway or any other IP address, to ensure the active node is reachable from
the public network or another network.
For example, haressources will look like:
node-x IPaddr::192.168.0.x Service::Argument ipmon::192.168.168.25
So, if i have unsderstand how heartbeat works:
1/ Heartbeat starts and execute "ipmon 192.168.168.254 status"; the script
is supposed to write "stopped" or "running" on STDOUT, Ok??
2/ The result is "stopped", then heartbeat executes "ipmon 192.168.168.254
start"; otherwise, it writes a line in ha.log and starts ipmon; am I Ok??
3/ Each x seconds, hearbeat executes "ipmon 192.168.168.254 status" and if
the result is "running", it continues; but if the result is "stopped", it
initiate a take away (we are on the active node), and the passive node
initiate its take over.... Ok??
Any commemts on the 3 steps will be very appreciated;
I think there is a simple way to add the network availibility parameter into
hearbeat, and I have to better understand how it works before making the
More information about the Linux-HA