LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2008, 02:39 PM   #1
ritec
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Rep: Reputation: 0
Cloning a hard drive while being used in Production (no unmounting allowed)


Hello everyone, great resource you have here, I'm very glad it exists. Now let's cut to the chase. I have a webserver which is in production and I absolutely can not take offline, turn it off or unmount any drives or partitions. Now I need to make a clone of this drive as soon as possible, so that if anything happens I can just turn on my backup machine(same specs as the production server) and it will be as good as new and up and running again.

I've heard dd can do this but it requires the drive to be unmounted while the process is going in order to keep consistency.

Is there any other way of cloning my harddrive while it's in production?
I can plug in a USB drive if need be.

If not, is there a way of at least backing up most of the files in order to have a really fast way of bringing the system up if something were to happen?

Thanks a lot in advance and best regards!!
 
Old 09-04-2008, 03:10 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
you could build a duplicate system then configure rsync to automatically keep the data files current.

what distro ?

if you want to go all out you could setup an apache high availability cluster to balance the load and keep the site up if one of the servers fails..

http://www.ultramonkey.org/

http://www.howtoforge.com/high_avail...apache_cluster

etc..

Last edited by farslayer; 09-04-2008 at 03:17 PM.
 
Old 09-04-2008, 03:17 PM   #3
ritec
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
I am using red hat 7.1. I could definitely do that but I don't have much time I am trying to do this backup before I leave work today. that's in about 3 hours... I know I should have done it a long time ago.

also what happens if I run dd without unmounting the drive? will it mess up the production server or just the "backup".
 
Old 09-04-2008, 05:18 PM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
I've run dd without unmounting any drives about 4 times today, all with no appreciable problems. If this is a webserver, your logs are likely to be garbled due to the constant appending that happens, but you can rsync those over, after the procedure, if need be.
 
Old 09-04-2008, 07:24 PM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Just do it with dd. Then mount the image and wipe out the contents of /tmp, /var/tmp, and /var/run. So long as you do that, unless you installed a package or changed a config file while dd was running, you should be fine.
 
Old 09-10-2008, 08:43 AM   #6
ritec
LQ Newbie
 
Registered: Mar 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks everyone I will go ahead and dd away! : )
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cloning Hard Drive FredGSanford Linux - Software 5 08-28-2008 05:37 AM
Cloning a hard drive! Shioni Linux - General 6 03-19-2006 11:39 AM
Hard drive cloning sabeel_ansari Programming 2 02-14-2006 01:40 PM
Cloning a hard drive davcefai Debian 3 11-28-2005 05:36 PM
Cloning Hard Drive rls Linux - Software 3 08-23-2003 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration