Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jun 24, 2014 7:09 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
It is not automated, because it requires that your servers perform specific, coordinated actions under conditions of your choosing. Linode gives you the ability to do it, you just have to do it when the time is right. (Something like Heartbeat and Pacemaker can automate this nicely.)

Also, you'd want to shut the "main server" down before bringing it up on the standby server, since all hell breaks loose if the same IP is on two servers at once. Also, it can help to originate a packet or two from the failed-over IP address, since routers tend to cache IP-to-MAC mappings for some time.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Tue Jun 24, 2014 8:19 am 
Offline
Senior Member
User avatar

Joined: Thu Jul 12, 2012 3:55 pm
Posts: 133
Website: http://www.amitywebsolutions.co.uk
I mean the re-pointing of the IP address to the new server is automatic, once the main server shuts down? Or is that why I run the command "ip addr add"? I didn't run this. Or is adding it to eth0:0 like this OK and rebooting? https://library.linode.com/networking/c ... interfaces

And to confirm, I assume when the main one comes back up I should remove the Ip address from the standby server again? As you say, you cant have multiple servers using the same IP? If this is true then thats a shame, I was hoping I could leave them in there. I was hoping a failover could work if the server goes down for unplanned maintenance without me doing anything.

Thanks

_________________
Web Development Agency in South Wales


Top
   
PostPosted: Wed Jun 25, 2014 6:33 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
It's just like having two servers on a traditional Ethernet network: they can't both have the same IP address at the same time. An IP address maps to exactly one MAC address.

If you want more than one server sharing an IP address... well, that's what Nodebalancers are for. If it were as easy as just setting up the same IP address on two different servers, then Nodebalancers wouldn't need to exist...

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Wed Jun 25, 2014 8:44 am 
Offline
Senior Member
User avatar

Joined: Thu Jul 12, 2012 3:55 pm
Posts: 133
Website: http://www.amitywebsolutions.co.uk
No I understand thats fine. Setting up the failover will still be much quicker than messing with DNS manually. I shall give it a go next time I think.

May I ask one more question... do you know if I need to reboot the standby server in question? So when I shutdown the main linode, and add the IP address to the standby one, do I need to reboot that one? Just trying to estimate downtime as it sounds like there will be downtime between the IP address being re-assigned.

Thanks

_________________
Web Development Agency in South Wales


Top
   
PostPosted: Wed Jun 25, 2014 8:43 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
No reboot is necessary -- any Linode that is set up to bring that IP up can bring it up at any time, as long as no more than one Linode has it at any time.

I'd recommend firing up a couple Linodes and practicing...

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group