[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

Linux server failover question.

I recently purchased a second linux (Redhat 9) server to have as a backup of data on my primary linux (Redhat 9) server (including several mySQL databases used by my clients for their ecommerce websites).  Is there a way to keep my backup linux server in synch with my primary linux server, then have it automatically assume the tasks of the primary linux server should the primary linux server fail for any reason?

Thank you,
The-Muse
0
the-muse
Asked:
the-muse
  • 2
1 Solution
 
terweeCommented:
The best way to do this is to use Heartbeat  and here is a link to the overview http://www.linux-ha.org/download/GettingStarted.html
The RPMs for RedHat are here http://www.ultramonkey.org/download/heartbeat/1.3.0/redhat_9/
This covers the fail over in case your main server goes down but you also need to keep your data in sync
For that  I would use DRBD there is a good article at this url that gives a good quick explanation http://www.linux-mag.com/2003-11/drbd_01.html
You can the RedHat 9 RPM at http://download.atrpms.net/testing/packages/redhat-9-i386/atrpms/drbd-0.7.5-4.rh9.at.i386.rpm
This does take some time to set up and fully test but this is what I use for my mission critical servers
0
 
the-museAuthor Commented:
Thank you for the suggestions.  I have too many questions about heartbeat and DRBD that would make impementing it at this time impractical.

I did find a solution that may work until I can better understand heartbeat and DRBD at: http://www.autofailover.com.

Best regards,
the-muse
0
 
the-museAuthor Commented:
I'd like to thank terwee for his answer, and the time he took to respond to my question.  Although I may not be using his solution, because I do not yet fully understand it, I am grateful for the links and have been studying about Heartbeat and DRBD, and feel confident that his solution would be an acceptable answer to my question if I were more linux literate.

Research to date has revealed that this question can lead the beginning linux enthusiast to understanding much about linux not even implied within this question.  For me, that implication is, for lack of a better word, "fun".  I've also discovered several options to a potential solution to the question at other internet sites, many of which have varying perspectives on the best way to accomplish "high availability" or "failover" configuration, but none of which serve as the ultimate solution for someone at the "advanced beginner" level who now owns two servers before learning how to best administer the first one.  I stuck my toe in the water - it wasn't cold - so I dove in.  I don't imagine I'll drown, and I love swimming.

Best wishes,
The-Muse
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now