LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2006, 08:35 PM   #1
Sertys
Member
 
Registered: Oct 2006
Posts: 42

Rep: Reputation: 15
Samba synchronization


Well, i'm doing kind of a research on file storage synchronization. It's a common topic with a spicy touch. I've got a VPN between two offices, one of the offices is running a samba fileserver and is running fine , i've bridged the VPN so that the users on both sides of the vpn can see each other(they share the same broadcast segment after all).
Office 1 physically has a file server, Office 2 has a fileserver logically over the VPN. Here comes the problem - Office 1 has a broadband connection , but Office 2 is on some ADSL and it's upload capabilities are too limited for comfortable work.It's like capped to 128kbps upload and 1mbps down. I can't get over that speed limit, because of geo restrictions. I've decided to put another fileserver in Office-2 and have it synchronized with Office-1's fileserver and vice-versa. Background synchronization is better that waiting 30 minutes to save your excel sheet and i can imply compression. Off-line synchronization is done fine either with some rsync wrappings or unison, but still data concurrency has to be kept. I can't afford to have just-saved files to be overwritten. So i'm onto writing a daemon for both of the servers listening for commands and casting flock()(on deepfs level, not nfs/smbfs implementations) or fcntl()'s whenever a file is locked on any side of the "array".
I've already learned the VFS hooking and it's not a problem to do it. With the event-based interface from that VFS-ing i can do it easy and reliable.

After 'at tirade of words, i'm wondering - is there any better solution for samba synchronization or doing a custom solution is appropriate.
 
Old 12-19-2006, 05:13 AM   #2
eendoe
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: Smooth, Deb, Ubu, KNX, RH mainly
Posts: 25

Rep: Reputation: 15
Exclamation Choke push

If you want to re-invent the wheel.....

Why dont you latch onto the OS system call for file writes within the replicated filesystem and let that trigger a 1 to 1 sync?


Thinking laterally though?
Might sound silly but have you looked at setting up an iscsi mirror with one volume on site1 and the other on site2, and seeing if you can tweak the synching clocks?


Not game?
Use rsync to push from ADSL site.




Have fun.
 
  


Reply



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
LDAP synchronization ANU Linux - General 1 08-02-2006 05:03 AM
PDA Synchronization doctorberen Linux - Software 1 11-26-2005 03:31 PM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM
samba and nis password synchronization? preetam Linux - Networking 1 02-10-2004 07:05 PM
SAMBA UNIX password synchronization sewer_monkey Linux - Networking 2 10-30-2002 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration