LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2012, 10:01 PM   #1
dacdave
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
Configure fail-over to hot spare Ubuntu server


I have an application server running on Ubuntu that is accessed via a public URL that is widely known and used by all of my users to get to our service. I have a second, twin server (with its own, unique TCP/IP address, obviously) that is a hot spare for the production server.

What is the best way to fail over from the main server to the hot spare? I cannot wait for DNS servers around the world to update their caches. Should I bring down the main server (which is probably down anyway, or why would I be failing over to the spare), reconfigure the spare with the TCP/IP address on the broken main server, and then reboot the spare?

It seems like there should be a more elegant way.

Dave Smith
 
Old 08-25-2012, 11:14 PM   #2
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Can't use a load balancer?
 
Old 08-26-2012, 04:32 AM   #3
dacdave
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Don't have one yet...

A load balancer is probably in the future for this site. At the moment, it does not have one. Online production server is backed up daily and these backups are applied to the standby server. No real-time synch at the moment.

Thank for the reply.
 
Old 08-26-2012, 12:17 PM   #4
iamwilliam
Member
 
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78

Rep: Reputation: 21
Hi,

Have a look at Linux-HA or LVS. In a nutshell, your DNS records resolve to a Floating IP/Virtual IP. Heartbeat will determine which server is active thus, getting the Virtual IP. This failover should be automatic.

The Piranha+LVS setup is well documented here
 
Old 08-26-2012, 02:50 PM   #5
dacdave
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Question Will this work on Ubuntu?

iamwilliam,

It looks from your link that your solution requires Redhat servers. My servers are running Ubuntu. Isn't that a problem for me?

Dave
 
Old 08-26-2012, 02:57 PM   #6
dacdave
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
All,

I agree that the desired long-term solution is a high availability cluster configuration. At the moment I am just trying to set up a manual fail-over between two identical application servers.
 
Old 08-26-2012, 09:09 PM   #7
TheMadIndian
Member
 
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 117

Rep: Reputation: 23
Quote:
Originally Posted by dacdave View Post
All,

I agree that the desired long-term solution is a high availability cluster configuration. At the moment I am just trying to set up a manual fail-over between two identical application servers.
what do you use for a firewall? you could use destination nat

can you build another server that has two nics? you could easily make a linux router and you could use iptables with dnat and change the dnat ip based on which host you want to use manually and use masquerading so the external IP never changes

what ports and protocols does the app require? I could give you an example of what I'm talking about
 
  


Reply

Tags
dns, failover, url address


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone know any Hot Fail-over application sampappachan_nyc Linux - Software 3 09-02-2010 06:13 PM
Hot Spare in Raid eldo Linux - Server 3 11-21-2009 12:09 PM
assign hot spare for a meta device eldo Linux - Server 1 11-18-2009 02:05 PM
Fail to start X server on ubuntu install... frascelly Linux - Newbie 2 04-16-2007 12:01 AM
How to configure hot stand by server on RHEL AS 3 VKTiwari Linux - Enterprise 1 02-06-2007 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration