Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2004

    one server +one failover server, HOW TO?

    Hi All
    need helps here

    we need to setup one server=Linux+ WEB+MySQL+DNS and "maybe" cpanel on it and clients want that when this server fails, there is another one takeing over seamlessly and automatically, how to achieve this? load balancer? any cheaper software solution?

  2. #2
    Join Date
    Dec 2009
    Maryland, USA.

    But "cloud" hosting may be the easier way to go.

  3. #3
    Join Date
    May 2006
    NJ, USA
    you could do drbd mirroring.
    simplywww: directadmin and cpanel hosting that will rock your socks
    Need some work done in a datacenter in the NYC area? NYC Remote Hands can do it.

    Follow my "deals" Twitter for hardware specials.. @dougysdeals

  4. #4
    Join Date
    Aug 2009
    Orlando, FL
    This is one of those cases, where you would probably be better off doing things right on the primary server. Setting up a "seemless" solution for your requirements isn't easy. More importantly it's not cheap either. Especially from a network side.

    It's fairly easy to replicate data across servers, but getting the network side to seemlessly flipover is another story. I have had requests like this before. Once you explain the cost involved with doing it, the client all of the sudden isn't as interested in a "seemless" solution.

  5. #5
    Assuming the server is in the same datacenter and you can get a virtual IP... look at rsync+scp to copy over web files between servers, mysql replication for the database, dns cluster in cpanel, and keepalived for IP failover. Good luck!
    WEB.COM.PH Inc.
    Domain Registration | Shared Hosting | Dedicated Servers | Colocation | Server Management

  6. #6
    Join Date
    Aug 2009
    Orlando, FL
    piggybacking on what nowanda was suggesting...

    Doing what he said wht rsnyc, mySQL replication, and DNS. You could run 2 servers with different IPs. One the 2nd server setup a script that pings the primary server. If the script detects it as down, you could run a bash script that adds the primary servers IP on the second box.

    You would have to setup your apache to listen on *:80 and *:443. If you have multiple IPs then it gets hairy though, but it's a simple solution (if done right) for doing what you want. If you have a ton of sites with different IPs and SSL certs then its get a lot more complicated.

    For what it's worth, as long as you use good hardware and configure it correctly, you should have much downtime.

  7. #7
    Join Date
    Apr 2011
    Riga, Latvia
    I did that for my hosting and the results are great (about 1-2 minutes to switch over). Just put OpenVZ virtual machines there on a DRBD storage. Once the failover happens, the same virtual system with the same MAC and IP starts on the secondary system. Pretty easy, but requires writing custom scripts and debugging-debugging-debugging

    As for rsync/etc, many people who tried that path report problems. I didn't try to do this, but from what I hear, it is pretty troublesome. DRBD is inherently faster, as it works in kernelspace as a driver and operates with blocks, not files.
    If availability is important, choose Serveriem.LV - the uptime makers
    Shared hosting and OpenVZ VPS

  8. #8
    Join Date
    Feb 2002
    New York, NY
    A simple way of doing it would be to use DRBD. The server in Primary mode would do all the serving, and writes to the hard drives would be synchronously sent to the Secondary server. If the main server fails, you just put the other server in Primary mode and start your services. You can put your DRBD resources on LVM volumes so that you can take periodic snapshots.

    We do something similar, but with Xen VMs. If a Xen server fails, the VMs reboot on another server within minutes.
    Scott Burns, President
    BQ Internet Corporation
    Remote Rsync and FTP backup solutions
    *** ***

  9. #9
    Join Date
    Mar 2009
    mirror it, if you do not know how, my advice would be to get a company to do it for you .. properly.

    Make sure you TEST, doesn't matter who sets it up, test, test, and test some more. - Corp.
    Web Hosting, Cloud VPS, and Dedicated Solutions since 1998
    Offering Windows, and Linux OS's

Similar Threads

  1. Failover Server
    By abertrand in forum Web Hosting
    Replies: 7
    Last Post: 07-20-2008, 12:24 PM
  2. Failover for my Server
    By espradley in forum Reseller Hosting
    Replies: 1
    Last Post: 06-01-2008, 11:59 AM
  3. Failover dedicated Server....
    By engineersaeed in forum Dedicated Server
    Replies: 1
    Last Post: 12-11-2007, 01:59 PM
  4. failover server
    By sehh in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-26-2007, 12:05 PM
  5. DNS Server - failover
    By tmesolutions in forum Hosting Security and Technology
    Replies: 1
    Last Post: 12-21-2005, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts