From: Ryan Novosielski on
-----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(a)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-----
From: Adam Williams on
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
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
From: Steve Francia on
We don't need 100mbit access, but the current implementation is too
slow. Despite having fairly large pipes. Windows Clients have a ton of
latency especially when working with remote files in Office. Due to
the way windows/office are written the entire system freezes when a
write or read operation is taking place.

Because of our workflow it is unlikely that collisions will happen (a
person in office A editing the same file at the same time as a person
in office B), so Unison may work. I wonder what the overhead would be
cronning it that often. Unison seems to be a good fit here though.

The remote offices both have high download speeds, but cap out at T1
upload speeds. So saving files is the big issue here. Files can be
easily up to 15Mb routinely, though most will be around 1Mb. It is
hard to find a microsoft office file under 100k now a days.

DFS in samba seems like a good approach, but doesn't it depend on a
clustered file system for replication? Am I missing something here?


On Apr 18, 2008, at 1:37 PM, Adam Williams wrote:
> 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
>>
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
From: Uwe Laverenz on
Steve Francia schrieb:

> DFS in samba seems like a good approach, but doesn't it depend on a
> clustered file system for replication? Am I missing something here?

DFS lets your users see the shares of different servers as directories
within a single share. So you could make a share on either side of your
connected networks and within these shares you could add a link to the
other network's share. For your users this would look like a normal
directory within the local share. This is not really a "distributed
filesystem", I guess.

If you need a real distributed filesystem, you could have a look a
something like http://www.openafs.org/ .

byes,
Uwe

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba