LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-10-2007, 09:04 AM   #1
hobbit666
LQ Newbie
 
Registered: Apr 2007
Posts: 1

Rep: Reputation: 0
File Replication


I know from searching this is something that's been asked a few times, but i'm a newbie to linux and need a solution for my problem.

What i got is two machine with CentOS4.4 as a host OS then i run two Virtual Machines (using VMware Server) on each.

What i now what to do is replicate these VM's onto a 3rd machine for Disater Recovery. So i need a product that will replicate the Folder /usr/lib/Virtual Machines/*.* on both machines onto the 3rd server in the same location.

We are talking atm each VM being around the 20GB mark.
 
Old 04-10-2007, 09:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
rsync is designed for replicating entire directory structures. It has the beauty of allow you to update later so that it only transfers the changes rather than the whole thing over again.

Whether or not replicating a VM directory structure will have the effect you want is another question that I can't answer but the above tool will let you do the replication.
 
Old 04-11-2007, 12:22 AM   #3
TheLateJC
Member
 
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
If you have ssh running on either host then you can use scp to just copy the vm files across. If you will want to do this on a regular basis you can use cron (crontab) to schedule the execution of the scp command.
 
Old 04-11-2007, 07:32 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
scp is a good thing for copying and what I use for quick copying from host to host. However for any sort of recurring process I'd use rsync because of the control it allows and the fact that it only transfers things that have changed thereby saving bandwidth. It has other flags such as one that will let you even tell it to delete things on the target if they don't exist on the source so you can be sure both directories are exactly the same.
 
Old 04-11-2007, 10:01 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
For that kind of data size, rsync over ssh is definitely a must.
 
  


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
Linux real-time file replication/synchronization bretticus Linux - Networking 12 10-18-2007 02:53 AM
File Byte Level replication. Jamesman Linux - Software 3 01-26-2006 02:40 PM
Linux realtime file replication bretticus Linux - Software 4 11-03-2005 09:28 AM
Webserver file replication (master and slave) demetri007 Linux - Software 1 08-21-2004 09:07 AM
File Replication Software rgerhards Linux - Software 4 12-23-2003 09:29 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:56 PM.

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