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
the-museAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.