Thanks for your suggestions. I will try out GlusterFS or Csync. Someone wrote about Csync on this list a couple of months ago, so it has been used with Rivendell. A shame it isn't in the Centos repo.
Kind regards, Morten 2012/7/31 Wayne Merricks <waynemerri...@thevoiceasia.com>: > Hi, > > I assume you've got both PCs hooked up to the same database? Otherwise > you would get all sorts of weird stuff going on. > > Anyway heres the second problem you will have, rsync is only one way (it > gets really complicated if you're trying for a two way sync and has all > sorts of problems as you've seen). This will cause you issues when the > remote voice track gets completed as it will automatically go into the > local /var/snd and will need to be copied back to the server /var/snd. > But what if the remote rsync starts sending a file and the local rsync > kicks in on just the small chunk of a file. All of a sudden you have > all sorts of weird overwriting problems and race conditions. > > A step up from rsync is csync which is what own cloud uses (basically > two way version of rsync). It seems to work but I've never used it for > Riv (just in testing out own cloud). > > From the client side point of view (e.g. rdlibrary) the database entry > will be in place long before the sound files are copied around so you'll > see lots of errors as the sound doesn't actually exist yet until > rsync/csync finishes. > > GlusterFS is an option as James pointed out but its a bit complicated to > get going from what I remember. > > Wayne Merricks > The Voice Asia > > On 31/07/12 17:16, Morten Krarup Nielsen wrote: >> When I discovered incomplete files on the client-pc, I was just >> importing a file or two on the server via RDlibrary - nothing fancy >> being done there. I guess I could add a sleep command to my script, >> but eventually I would be unlucky that Rsync on the client would >> conflict with some file operation on the server. >> Maybe Rsync isn't the way to go? What are other people using for >> syncing /var/snd between computers? >> >> Thank you. >> >> Kind regards, >> Morten >> >> 2012/7/31 Gregg Wonderly <ge...@cox.net>: >>> Practically, I don't think it makes sense to do this continuously. A sleep >>> between runs of at least 5 seconds, will unload your machine so that it can >>> do other things, otherwise it will be quite busy starting and stopping >>> these processes. >>> >>> I'll let others talk about the specifics of Rivendell, as I'm still getting >>> up to speed on what interactions are between the parts of the system. But, >>> overall, if you are dropping files into the server with simple file copies, >>> with, potentially incomplete files existing on the server, at the time that >>> rsync runs, then it can create incomplete files on the client. >>> >>> When I want to have filesystem synchronization like this going on, I >>> sometimes do things like copy to a different directory, on the same >>> filesystem, and then use "ssh" back to the server, and move (mv) all the >>> new files into the correct directory. Then, they will be complete, because >>> a "mv" on the same file system will be a link and unlink, instead of a copy >>> and remove. >>> >>> Are you populating the server directory with simple file copy/creation >>> operations which can cause incomplete files to be visible to the rsync? >>> >>> Gregg Wonderly >>> >>> On Jul 31, 2012, at 9:27 AM, Morten Krarup Nielsen <morte...@gmail.com> >>> wrote: >>> >>>> Hi. >>>> I've installed the Paravel Broadcast CD on a PC which operates as a >>>> file-server and MySQL server for my Rivendell setup. I need two client >>>> machines to be able to voice-track. Since they're far far away, I >>>> thought of keeping a local backup of /var/snd on both client machines. >>>> I tried mounting the folder via NFS, but it was to slow to work with, >>>> I tried with a small Rsync-script which should run on the client. The >>>> thought was that it should run in a loop, so it always get new music >>>> from the server, and in the same time uploads voice-tracks to the >>>> file-server. >>>> However I get all kind of errors: Missing files on both sides, message >>>> showing "No energy data" in 'Edit markers' and so on. >>>> What should be the right approach to this? >>>> >>>> Thank you! >>>> >>>> Kind regards, >>>> Morten >>>> >>>> My small script: >>>> >>>> #!/bin/sh >>>> while true ; >>>> do >>>> #from server to client >>>> rsync -avz -e ssh root@10.0.0.2:/var/snd /var >>>> #from client to server >>>> rsync -avz -e ssh /var/snd root@10.0.0.2:/var/ >>>> done >>>> _______________________________________________ >>>> Rivendell-dev mailing list >>>> Rivendell-dev@lists.rivendellaudio.org >>>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >>> _______________________________________________ >>> Rivendell-dev mailing list >>> Rivendell-dev@lists.rivendellaudio.org >>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev >> _______________________________________________ >> Rivendell-dev mailing list >> Rivendell-dev@lists.rivendellaudio.org >> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev > > > ####################### > Scanned by MailMarshal > ####################### > > ############ > > Attention: > > The information contained in this message is confidential and intended > for the addressee(s) only. If you have received this message in error > or there are any problems, please notify the originator immediately. > The unauthorised use, disclosure, copying or alteration of this message > is strictly forbidden. Christian Vision or any of its subsidiaries will > not be liable for direct, special, indirect or consequential damages > arising from alteration of the contents of this message by a third party > or as a result of any virus being passed on. Please note that we reserve > the right to monitor and read any e-mails sent or received by the > company under the Telecommunications (Lawful Business Practice) > (Interception of Communications) Regulation 2000. Christian Vision is > registered in England as a limited company 2842414 and as a charity > 1031031 > > ############ > _______________________________________________ > Rivendell-dev mailing list > Rivendell-dev@lists.rivendellaudio.org > http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev _______________________________________________ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev