LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need a openfile being synchronized? (https://www.linuxquestions.org/questions/linux-newbie-8/need-a-openfile-being-synchronized-773112/)

your_shadow03 12-02-2009 11:51 PM

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?

your_shadow03 12-03-2009 01:22 AM

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

Tinkster 12-03-2009 02:29 AM

something like this?
http://www.howtoforge.com/high_avail...drbd_heartbeat

your_shadow03 12-03-2009 04:31 AM

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.



All times are GMT -5. The time now is 04:27 AM.