[Linux-HA] Using heartbeat v1 - fastest way to bring up a resource
ip address?
Alan Robertson
alanr at unix.sh
Wed Jun 7 21:03:29 MDT 2006
lists at netpbx.org wrote:
>
> I've searched the archives and it seems the best solution to adding an
> ip resource (haresources) to both nodes is to use:
> hb_standby and hb_takeover..
> (apart from upgrading to heartbeat2 but thats not an option at the moment.)
>
> So I'm planning to:
> 1) Update haresources on BOTH nodes to add an ip resource
> 2) On the Master do a hb_standby (slave brings up all ips including the
> new one)
> 3) Then again on the Master do a hb_takeover (master now has all ips
> including new one)
> NB. The service is LVS so it's running continually on both nodes i.e.
> doesn't need to go down and up again
>
> But I want to be able to do this as quickly as possible so that the
> master probably :-). won't loose any traffic..
> So my question is how fast can I RELIABLY do it?
>
> Typing the commands in by hand seems to work fine i..e small pause..
> But doing it from a script (very quickly) seems to fail...
> I will carry on investigating tomorrow, but thought I'd ask anyway.
>
> Ps. I've used HA-Linux on hundreds of customer systems and it's always
> worked without a hitch, thanks for a great product.
Well... If you wait for the takeover to finish, you should be able to do
it again immediately...
Or you could just add it to haresources and start up the IP address by
hand :-).
Since you've done lots of things with heartbeat, it would be great if
you'd take a few minutes to write up one or two of them for our
SuccessStories pages.
Thanks!
--
Alan Robertson <alanr at unix.sh>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
More information about the Linux-HA
mailing list