LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 08:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration