Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to be able to do live replication of a running Ubuntu server, so if the main machine goes down I can automatically failover to the other machine. I found mklivecd, but that seems to only get me to having a current backup. While that's certainly close, what I really want is to know that everything is already installed on the other machine live. Is there another utility I can pair up with mklivecd, or is there a better way?

Update: This is a web and database server, with files (ie images) that are added throughout the day. DRDB looks like it might do the job; we'll look into it. Thank you all very much!

share|improve this question
You want to do live replication of a complete system or just it's data ? – Iain Dec 11 '11 at 15:09
What you need to do to reach your goal is dependent on the services you offer from the server. E.g., a file server has different requirements to offer a fail over than a DNS or LDAP server. Anyway, a guide to a complete solution is out of the scope of this site, but we can help with specific problems of your implementation, and we could give you a few hints about what to look for if you extend your question a bit. – Sven Dec 12 '11 at 16:07
up vote 4 down vote accepted

You want something like DRDB or rsync in a frequent cron. I'd choose DRDB, personally.

mklivecd is certainly not the right tool for this job, dont even try to make it fit.

Edit: I just saw that you updated saying this is a database and web server. You'll want to use your DBMS' replication engine for that and use DRDB for the web content. You shouldn't use DRDB for live databases.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.