LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-03-2007, 03:43 AM   #1
jdutfield
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
file replication


I am looking to replicate a directoory from a live (production) linux server to a failover Linux server. Does anyone have any idea on the best way of doing this

Cheers

Jonathan
 
Old 10-03-2007, 06:23 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 38
Best way of doing this is imho actually using the same ressource in both servers.

For example the ressources needed in both servers resides on NFS or in a SAN together with a cluster filesystem like GFS.

So both servers may have concurrent read/write access to the same files without the need to replicate data.
 
Old 10-03-2007, 06:29 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The answer is, of course, "it depends".

The simplest way is to run a script once every so often from cron which copies modifiy files from one server to another. rsync is super for this, as it if very efficient so long as the amount which has changed is small compared to the amount which is the same on each subsequent copy. This method is suitable for replication where you do not mind there being some delay, and hence the possibility that you will "miss" some updates when fail over occurs, but it won't be so many, depending on how often the job runs.

At the other end of the scale, if you require transaction level synchronisation it is a bit more complicated. Failover database systems typically have this functionality built into the database engine, or as a bolt-on for that engine. I'm not so sure about replicating filesystems which have to be transaction-synchronised...
 
Old 10-03-2007, 11:06 AM   #4
jdutfield
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
installing rsync

Thanks for the advice matthewg42

I'm a bit new to all this linux stuff could you please give me a bit of help how to intstall the binary files.

I have downloaded to the linux server now need to install. Can i do this via the comnmand line?

Regards

Jonathan
 
Old 10-03-2007, 11:24 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
You need to provide a lot more information that that. What are you trying to install? What distro do you use?
 
Old 10-03-2007, 11:38 AM   #6
jdutfield
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
rsync

I am trying to install rsync, on a production server and will and replicate a test file over to a failover server using ssh. I have never installed any thing on a linux server. I am able to copy all the banary files over to the prodcution server but i have to login into the prod server via putty so will have to intslaa using the cammand line.

How do i install the rsync-2.6.9.tar.gz file that I have copied over to the prodcution server?

Many thanks

Jonathan
 
Old 10-03-2007, 11:46 AM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
What distro is the server (e.g. Redhat, SUSE, debian, another)?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File System Replication stickman Linux - Enterprise 2 08-23-2007 02:24 PM
File Replication hobbit666 Linux - Enterprise 4 04-11-2007 11:01 AM
File Byte Level replication. Jamesman Linux - Software 3 01-26-2006 03:40 PM
Linux realtime file replication bretticus Linux - Software 4 11-03-2005 10:28 AM
File Replication Software rgerhards Linux - Software 4 12-23-2003 10:29 AM


All times are GMT -5. The time now is 07:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration