Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-25-2012, 10:01 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Rep: 
|
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
|
|
|
|
08-25-2012, 11:14 PM
|
#2
|
|
Member
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 114
Rep:
|
Can't use a load balancer?
|
|
|
|
08-26-2012, 04:32 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep: 
|
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.
|
|
|
|
08-26-2012, 12:17 PM
|
#4
|
|
Member
Registered: Apr 2006
Location: Nairobi
Distribution: CentOS
Posts: 78
Rep:
|
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
|
|
|
|
08-26-2012, 02:50 PM
|
#5
|
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep: 
|
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
|
|
|
|
08-26-2012, 02:57 PM
|
#6
|
|
LQ Newbie
Registered: Aug 2012
Posts: 6
Original Poster
Rep: 
|
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.
|
|
|
|
08-26-2012, 09:09 PM
|
#7
|
|
Member
Registered: Dec 2007
Distribution: Fedora Slackware CentOS slax RHEL
Posts: 114
Rep:
|
Quote:
Originally Posted by dacdave
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|