Linux server failover question.

Posted on 2004-11-17
Last Modified: 2010-03-18
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,
Question by:the-muse
    LVL 1

    Accepted Solution

    The best way to do this is to use Heartbeat  and here is a link to the overview
    The RPMs for RedHat are here
    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
    You can the RedHat 9 RPM at
    This does take some time to set up and fully test but this is what I use for my mission critical servers

    Author Comment

    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:

    Best regards,

    Author Comment

    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,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now