LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-02-2009, 11:51 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Need a openfile being synchronized?


Hello all,
I have a requirement from client that I have a NFS Server where an open file is present.What I need is if I write anything in that file, that file content should get synchronized at the other end.Means it should show whatever I had written in NFSServer:Filename1 to NFSClient:Filename1. Its no issue if it write after 1 and 1/2 minutes but the file should get updated at the other end.
Any idea how gonna it be possible?

Last edited by your_shadow03; 12-02-2009 at 11:52 PM.
 
Old 12-03-2009, 01:22 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I tried out unison. And it does update the contents changed in first machine to the second machine.
But anyone who can help me with how can I automate the process.
I don't want to run manually and make changes.It want the changes in one file in a host reflect immediately in other host file
 
Old 12-03-2009, 02:29 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
something like this?
http://www.howtoforge.com/high_avail...drbd_heartbeat
 
Old 12-03-2009, 04:31 AM   #4
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I don't need Clustering stuffs here.
Though thanks for your suggestions.
All I have tried with rsync - a Very Powerful tool it seems.
All tried with:

Code:
Server1:

$ping localhost > /opt/first1

$fuser -v /opt/first1

it showed that file is busy with username
$touch /opt/first2

Server1: 
rsync -v /opt/first1 /opt/first2

It went well.
Done.
 
  


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
Synchronized gmail backups? fhsm Linux - Software 2 05-28-2009 05:09 AM
RHEL unable to set a user's ulimit (openfile) murali23.unix Linux - Newbie 1 07-28-2008 10:05 PM
synchronized in Java xeon123 Programming 1 09-09-2007 08:16 AM
synchronized file use across internet exodist Linux - Software 0 11-02-2004 02:30 PM
synchronized passwd files? Calamus Linux - Networking 1 01-07-2003 06:38 AM

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

All times are GMT -5. The time now is 10:15 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