On Fri, 24 Oct 2008, Leon Miller-Out wrote:
Hello, all!
I've been experimenting with heartbeat on two web servers I run. I'm trying
to find a way, with a v1-style configuration, to add (and maybe remove) IP
addresses on the fly without having to migrate any resources from wherever
they are currently running. I'm running a web application with non-clustered
sessions, so migrating the IPs to the other server means that sessions are
lost. Obviously this is to be avoided at all costs.
The general method listed in the FAQ using hb_standby involves migrating all
resources at least once and possibly twice. Another method using hb_takeover
that I found in the list archives doesn't let the inactive node know about
the new resource, so if the active node fails, so does the new resource.
Is there a way to do this with a v1-style config? I vastly prefer v1 to v2
due to its simplicity.
unofficially, yes.
with the v1 config heartbeat only looks at haresources when a transition
happens, so what you need to do is to change the file so that future transitions
will work, then do what heartbeat would do to start the resource.
so
1. edit the haresources file on both machines
2. start the resource manually with the command line that heartbeat would use
for example
/etc/ha.d/resouce.d/IPADDR 192.168.111.1 start
David Lang
Thanks!
Leon
=============================
Leon Miller-Out
President, Singlebrook Technology, Inc
p 607-330-1493
f 607-697-0457
516 W. State St. - Suite 100
Ithaca, NY 14850
_______________________________________________
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