Hello, I have the following situation: I have two offices, which both require local speed access to their file shares. Currently there is a single windows server that provides network shares to both offices, the remote one through a vpn. I have used Samba since the early days, and am quite familiar with it's capabilities and limitations, however I have never tried to perform replication with it. My current plan, which certainly has some limitations is to take 2 samba servers, put one in each office. Rsync the two every half an hour. This will provide redundancy and solve the major problem at hand, but will introduce new problems. 30 minutes is too long, and users may work on the same file simultaneously resulting in a conflict and changes lost. Has anyone approached this problem before? What replication options work well with the current stable build of samba? Is there any way to replicate when a file is locked, so the user will get the warning that the file is locked? Any feedback would be helpful, even if it is a link. Thanks in advance, Steve Francia
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Steve Francia wrote:> Hello, I have the following situation: > > I have two offices, which both require local speed access to their file > shares. Currently there is a single windows server that provides network > shares to both offices, the remote one through a vpn. > > I have used Samba since the early days, and am quite familiar with it's > capabilities and limitations, however I have never tried to perform > replication with it. > > My current plan, which certainly has some limitations is to take 2 samba > servers, put one in each office. Rsync the two every half an hour. This will > provide redundancy and solve the major problem at hand, but will introduce > new problems. > > 30 minutes is too long, and users may work on the same file simultaneously > resulting in a conflict and changes lost. > > Has anyone approached this problem before? > What replication options work well with the current stable build of samba? > Is there any way to replicate when a file is locked, so the user will get > the warning that the file is locked? > > Any feedback would be helpful, even if it is a link.This is relevant here, yes? http://ctdb.samba.org/ - -- ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$&| |__| | | |__/ | \| _| |novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIB2pumb+gadEcsb4RAsCUAKCrXIDD/EqRA8HoLzcGWHSnLQgrAwCdFR9m lzmoxEn9qc1mEESIMm+q27A=FDKy -----END PGP SIGNATURE-----
what do you mean by local speed access? you mean they need 100mbit/gigabit speed to their files? are they streaming DVD rips? if both offices just need the same file share, look at DFS in samba. rsync is one way mirroring, have you looked at Unison (two way file syncing) and croning it to run every minute? http://www.cis.upenn.edu/~bcpierce/unison/ what sort of speed are the remote offices to each other? t1's or dsl/cable? you could just have one office also shared to the samba share on office two. but if its anything more then files over 100K in size they'll notice a little latency. Steve Francia wrote:> Hello, I have the following situation: > > I have two offices, which both require local speed access to their file > shares. Currently there is a single windows server that provides network > shares to both offices, the remote one through a vpn. > > I have used Samba since the early days, and am quite familiar with it's > capabilities and limitations, however I have never tried to perform > replication with it. > > My current plan, which certainly has some limitations is to take 2 samba > servers, put one in each office. Rsync the two every half an hour. This will > provide redundancy and solve the major problem at hand, but will introduce > new problems. > > 30 minutes is too long, and users may work on the same file simultaneously > resulting in a conflict and changes lost. > > Has anyone approached this problem before? > What replication options work well with the current stable build of samba? > Is there any way to replicate when a file is locked, so the user will get > the warning that the file is locked? > > Any feedback would be helpful, even if it is a link. > > Thanks in advance, > Steve Francia >