IP faillover
I want one of those IP addresses to fail over to the other linode when necessary.
I've been beating myself up with linux-ha (another drama altogether), and I thought I'd take a break from that and just see if the IP address would work on the second server. So far, manually assigning the IP to an interface doesn't work at all.
Any ideas?
6 Replies
Here's what I do in a minutely cron job on both servers:
ping -c 5 -w 30 74.207.247.xxx > /dev/null
if [ $? -eq 1 ]
then
echo 'No response from main IP... Adding IP to eth0...'
ip address add 74.207.247.xxx/24 dev eth0
arping -UI eth0 -qc 5 74.207.247.xxx
fi
It appears that a reboot is necessary once you give a linode permission to use an IP address from another. I rebooted, everything works fine now.
Still a little disappointed that linux-ha won't work right, but I'll get something figured out now that this is working. Thanks.
@cg2112:
That's essentially what I was doing, with no luck.
It appears that a reboot is necessary once you give a linode permission to use an IP address from another. I rebooted, everything works fine now.
Still a little disappointed that linux-ha won't work right, but I'll get something figured out now that this is working. Thanks.
Try this out, been using it for years for ip failover.
The two sides don't see each other for some reason. I'll get it eventually, I just don't have time to mess with it right now.
Have you ever evaluate a Dns failover solution like Dns Made Easy or Postpart?
I never used one but would like to understand if its a valid solution.
Postpart even has Geo Redundancy.